-dnl Zebra, Index Data Aps, 1994-2002
-dnl $Id: configure.in,v 1.37 2002-07-03 10:04:34 adam Exp $
+dnl Zebra, Index Data Aps, 1995-2002
+dnl $Id: configure.in,v 1.41 2002-08-23 13:42:59 adam Exp $
dnl
AC_INIT(include/zebraver.h)
-AC_MSG_CHECKING(for package)
-if test -r ${srcdir}/LICENSE.zmbol; then
- AC_MSG_RESULT([Z'mbol])
- PROGPREFIX=zmbol
- AC_DEFINE(ZMBOL,1)
- AM_INIT_AUTOMAKE(zmbol,1.2.0)
-else
- AC_MSG_RESULT([Zebra])
- PROGPREFIX=zebra
- AC_DEFINE(ZMBOL,0)
- AM_INIT_AUTOMAKE(zebra,1.2.0)
-fi
-AM_CONDITIONAL(ISZMBOL,test $PACKAGE = zmbol)
+AM_INIT_AUTOMAKE(zebra,1.3.1)
dnl ------ Substitutions
AC_SUBST(TCL_INCLUDE)
AC_SUBST(TCL_LIB)
-AC_SUBST(PROGPREFIX)
dnl
dnl ------ Checking programs
AC_PROG_CC
fi
])
dnl
-YAZ_INIT(threads)
-dnl
+AC_ARG_ENABLE(threads, [ --disable-threads disable threads],[enable_threads=$enableval],[enable_threads=yes])
+if test "$enable_threads" = "yes"; then
+ yazflag=threads
+else
+ yazflag=""
+fi
+YAZ_INIT($yazflag)
+
dnl ------ Look for Tcl
dnl See if user has specified location of tclConfig.sh; otherwise
dnl see if tclConfig.sh exists in same prefix lcoation as tclsh; otherwise
fi
dnl
dnl ------ times
-AC_CHECK_HEADERS(sys/times.h)
+AC_CHECK_HEADERS(sys/times.h iconv.h)
dnl ------ mkstemp
AC_CHECK_FUNCS(mkstemp)
dnl