1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

configure: add support for pkg-config detection of libidn

This commit is contained in:
Mark Brand 2011-11-25 23:00:16 +01:00 committed by Daniel Stenberg
parent ac54d27d4b
commit 874855b743

View File

@ -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"