When libidn is detected without explicitly told to, we provide -L/lib and

-I/include options. Not anymore.
This commit is contained in:
Daniel Stenberg 2004-11-11 14:41:37 +00:00
Родитель 2467f814a8
Коммит 7bb6d76d14
1 изменённых файлов: 13 добавлений и 10 удалений

Просмотреть файл

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