test/configure

changeset 20
2d3fe2c44163
parent 19
e05f3e8ec2cb
parent 18
0df7309d498e
child 34
4486849e6a6c
--- a/test/configure	Sun Apr 16 14:16:31 2023 +0200
+++ b/test/configure	Sun Apr 16 14:17:08 2023 +0200
@@ -293,6 +293,28 @@
 dependency_libxml2()
 {
     printf "checking for libxml2... "
+    # dependency libxml2 platform="macos"
+    while true
+    do
+    	if isnotplatform "macos"; then
+            break
+        fi
+        xml2-config --cflags > /dev/null
+        if [ $? -eq 0 ]; then
+            CFLAGS="$CFLAGS `xml2-config --cflags`"
+        else
+            break
+        fi
+        xml2-config --libs > /dev/null
+        if [ $? -eq 0 ]; then
+            LDFLAGS="$LDFLAGS `xml2-config --libs`"
+        else
+            break
+        fi
+		echo yes
+        return 0
+    done
+	
     # dependency libxml2 
     while true
     do

mercurial