Commit 874855b7 authored by Mark Brand's avatar Mark Brand Committed by Daniel Stenberg
Browse files

configure: add support for pkg-config detection of libidn

parent ac54d27d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2376,6 +2376,15 @@ case "$LIBIDN" in
         fi
       fi

       if test "x$idn" != "xyes"; then
         dnl check with pkg-config
         PKG_CHECK_MODULES(LIBIDN_PC, libidn >= 0.0.0, [idn=yes], [idn=no])
         if test "x$idn" = "xyes"; then
            LIBS="$LIBS $LIBIDN_PC_LIBS"
            CPPFLAGS="$CPPFLAGS $LIBIDN_PC_CFLAGS"
         fi
       fi

       if test "x$idn" != "xyes"; then
          dnl check with default paths
          idn="yes"