Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
configure: add support for pkg-config detection of libidn
  • Loading branch information
mabrand authored and bagder committed Nov 25, 2011
1 parent ac54d27 commit 874855b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions configure.ac
Expand Up @@ -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"
Expand Down

0 comments on commit 874855b

Please sign in to comment.