mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
configure: add support for pkg-config detection of libidn
This commit is contained in:
parent
ac54d27d4b
commit
874855b743
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user