]> granicus.if.org Git - curl/commitdiff
When libidn is detected without explicitly told to, we provide -L/lib and
authorDaniel Stenberg <daniel@haxx.se>
Thu, 11 Nov 2004 14:41:37 +0000 (14:41 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 11 Nov 2004 14:41:37 +0000 (14:41 +0000)
-I/include options. Not anymore.

configure.ac

index 78e80a5e7a29736705081c0e9489bf538265914f..473e4341dac153eb4f085676c875da74b2f1dab5 100644 (file)
@@ -968,16 +968,19 @@ case "$LIBIDN" in
 
        idn=""
        dnl if there is a given path, check that FIRST
-       if test "x$LIBIDN" != "xyes"; then
-          oldLDFLAGS=$LDFLAGS
-          oldCPPFLAGS=$CPPFLAGS
-          LDFLAGS="$LDFLAGS -L$LIBIDN/lib"
-          CPPFLAGS="$CPPFLAGS -I$LIBIDN/include"
-          idn="yes"
-          AC_CHECK_LIB(idn, idna_to_ascii_4i, ,
-                       idn=""
-                       LDFLAGS=$oldLDFLAGS
-                       CPPFLAGS=$oldCPPFLAGS)
+       if test -n "$LIBIDN"; then
+         if test "x$LIBIDN" != "xyes"; then
+            AC_MSG_WARN([moo moo $LIBIDN])
+            oldLDFLAGS=$LDFLAGS
+            oldCPPFLAGS=$CPPFLAGS
+            LDFLAGS="$LDFLAGS -L$LIBIDN/lib"
+            CPPFLAGS="$CPPFLAGS -I$LIBIDN/include"
+            idn="yes"
+            AC_CHECK_LIB(idn, idna_to_ascii_4i, ,
+                         idn=""
+                         LDFLAGS=$oldLDFLAGS
+                         CPPFLAGS=$oldCPPFLAGS)
+         fi
        fi
 
        if test "x$idn" != "xyes"; then