X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=configure.in;h=34f28e96e2154d7de29a23984786324a2cacd601;hb=2b17f33968c38dfe50b7710da1c9e5004da9cf8b;hp=9f77f075311752b251ac7f5da71972c357640a9a;hpb=0ea0788a838ebc8f5918758a7c2d14d4c15c7f25;p=idzebra-moved-to-github.git diff --git a/configure.in b/configure.in index 9f77f07..34f28e9 100644 --- a/configure.in +++ b/configure.in @@ -1,8 +1,8 @@ dnl Zebra, Index Data Aps, 1995-2002 -dnl $Id: configure.in,v 1.44 2002-08-29 14:04:45 mike 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(zebra,1.3.1) +AM_INIT_AUTOMAKE(idzebra,1.3.2) dnl ------ Substitutions AC_SUBST(TCL_INCLUDE) AC_SUBST(TCL_LIB) @@ -86,7 +86,7 @@ if test "x$tclconfig" = xNONE; then if test ! -r ${tclconfig}/tclConfig.sh; then # Not found, try search for Tcl on Debian systems. for d in /usr/lib/tcl*; do - if test -d $d; then + if test -f $d/tclConfig.sh; then tclconfig=$d fi done @@ -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