X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=configure.in;h=34f28e96e2154d7de29a23984786324a2cacd601;hb=2b17f33968c38dfe50b7710da1c9e5004da9cf8b;hp=50e51ce2589fd6222e26689efaacad5664eb6373;hpb=ffc71045cdd726d0b720ec4b6ce91c8db31929ce;p=idzebra-moved-to-github.git diff --git a/configure.in b/configure.in index 50e51ce..34f28e9 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Zebra, Index Data Aps, 1995-2002 -dnl $Id: configure.in,v 1.47 2002-09-09 09:36:24 adam Exp $ +dnl $Id: configure.in,v 1.48 2002-09-13 09:24:16 adam Exp $ dnl AC_INIT(include/zebraver.h) AM_INIT_AUTOMAKE(idzebra,1.3.2) @@ -117,10 +117,25 @@ else fi dnl dnl ------ times -AC_CHECK_HEADERS(sys/times.h iconv.h) +AC_CHECK_HEADERS(sys/times.h) +dnl dnl ------ mkstemp AC_CHECK_FUNCS(mkstemp) dnl +dnl ------ iconv +AC_CHECK_FUNCS(iconv_open) +if test "$ac_cv_func_iconv_open" = "no"; then + oldLibs=$LIBS + LIBS="$LIBS -liconv" + AC_CHECK_FUNCS(iconv_open) + if test "$ac_cv_func_iconv_open" = "no"; then + LIBS=$oldLibs + fi +fi +if test "$ac_cv_func_iconv_open" = "yes"; then + AC_CHECK_HEADERS(iconv.h) +fi +dnl dnl ------- BZIP2 AC_CHECK_LIB(bz2,bzCompressInit) if test "$ac_cv_lib_bz2_bzCompressInit" = "yes"; then