test/configure

changeset 4
6bf4c948d0ba
parent 3
9d60baefa4ed
child 5
895bf81d3b6e
--- a/test/configure	Sat Aug 03 10:22:14 2019 +0200
+++ b/test/configure	Sat Aug 03 11:02:55 2019 +0200
@@ -391,6 +391,20 @@
 	echo no
 	return 1
 }
+dependency_deptest()
+{
+    printf "checking for deptest... "
+    # dependency deptest 
+    while true
+    do
+        CFLAGS+="-DDEPTEST"    
+		echo yes
+        return 0
+    done
+	
+	echo no
+	return 1
+}
 dependency_libxml2()
 {
     printf "checking for libxml2... "
@@ -611,6 +625,29 @@
     echo "DAV_LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk
 fi
 
+# Target
+CFLAGS=
+LDFLAGS=
+CXXFLAGS=
+
+dependency_deptest
+if [ $? -ne 0 ]; then
+	DEPENDENCIES_FAILED+="deptest "
+	ERROR=1
+fi
+
+
+echo >> $TEMP_DIR/config.mk
+if [[ ! -z ${CFLAGS} ]]; then
+    echo "CFLAGS  += $CFLAGS" >> $TEMP_DIR/config.mk
+fi
+if [[ ! -z ${CXXFLAGS} ]]; then
+    echo "CXXFLAGS += $CXXFLAGS" >> $TEMP_DIR/config.mk
+fi
+if [[ ! -z ${LDFLAGS} ]]; then
+    echo "LDFLAGS += $LDFLAGS" >> $TEMP_DIR/config.mk
+fi
+
 if [ $ERROR -ne 0 ]; then
 	echo
 	echo "Error: Unresolved dependencies"

mercurial