608 |
if test "$ICONV" = "yes"; then |
if test "$ICONV" = "yes"; then |
609 |
AM_ICONV |
AM_ICONV |
610 |
if test "$am_cv_func_iconv" != "yes"; then |
if test "$am_cv_func_iconv" != "yes"; then |
611 |
echo "iconv() is missing, did you install the libraries and the developer packages for libiconv?" |
AC_MSG_FAILURE([iconv() is missing, did you install the libraries and the developer packages for libiconv?]) |
|
exit 1 |
|
612 |
fi |
fi |
613 |
LIBS="$LIBS $LIBICONV" |
LIBS="$LIBS $LIBICONV" |
614 |
AC_CHECK_FUNCS([locale_charset]) |
AC_CHECK_FUNCS([locale_charset],, |
615 |
|
AC_TRY_LINK([#include <langinfo.h>], |
616 |
|
[char* cs = nl_langinfo(CODESET);], |
617 |
|
AC_MSG_NOTICE(found nl_langinfo(CODESET)), |
618 |
|
[AC_MSG_FAILURE(Your iconv implementation is incomplete)])) |
619 |
|
AC_CHECK_LIB(charset,locale_charset) |
620 |
AC_CHECK_HEADERS([libcharset.h]) |
AC_CHECK_HEADERS([libcharset.h]) |
621 |
AC_CHECK_HEADERS([locale.h]) |
AC_CHECK_HEADERS([locale.h]) |
|
AC_CHECK_LIB(charset,locale_charset) |
|
622 |
else |
else |
623 |
AC_DEFINE(DISABLE_ICONV, 1, [Define to 1 if you want to replace iconv and related with stubs.]) |
AC_DEFINE(DISABLE_ICONV, 1, [Define to 1 if you want to replace iconv and related with stubs.]) |
624 |
fi |
fi |
625 |
|
|
|
|
|
626 |
# On linux plaforms, we will have to check that includes from kernel are |
# On linux plaforms, we will have to check that includes from kernel are |
627 |
# available. glibc version test was shamelessly taken from |
# available. glibc version test was shamelessly taken from |
628 |
# http://public.activestate.com/gsar/APC/perl-5.8.x/Configure |
# http://public.activestate.com/gsar/APC/perl-5.8.x/Configure |
636 |
CPPFLAGS=$OLD_CPPFLAGS] |
CPPFLAGS=$OLD_CPPFLAGS] |
637 |
) |
) |
638 |
AC_CHECK_HEADERS(gnu/libc-version.h,,) |
AC_CHECK_HEADERS(gnu/libc-version.h,,) |
639 |
AC_MSG_CHECKING(Checking for GNU C Library version) |
AC_MSG_CHECKING(for GNU C Library version) |
640 |
|
|
641 |
cat >try.c <<'EOCP' |
cat >try.c <<'EOCP' |
642 |
/* Find out version of GNU C library. __GLIBC__ and __GLIBC_MINOR__ |
/* Find out version of GNU C library. __GLIBC__ and __GLIBC_MINOR__ |
998 |
|
|
999 |
if test "$IM" = "yes"; then |
if test "$IM" = "yes"; then |
1000 |
CRYPTOKIT=no |
CRYPTOKIT=no |
1001 |
AC_MSG_CHECKING(Checking for CryptoKit) |
AC_MSG_CHECKING(for CryptoKit) |
1002 |
if test -f $OCAMLLIB/cryptokit.$OCAMLLIB_EXT; then |
if test -f $OCAMLLIB/cryptokit.$OCAMLLIB_EXT; then |
1003 |
CRYPTOKIT=yes |
CRYPTOKIT=yes |
1004 |
AC_MSG_RESULT(yes) |
AC_MSG_RESULT(yes) |