dnl Zebra, Index Data Aps, 1994-1999
-dnl $Id: configure.in,v 1.12 1999-12-01 13:30:30 adam Exp $
+dnl $Id: configure.in,v 1.15 2000-02-04 08:49:26 adam Exp $
dnl See the file LICENSE.2 for details.
dnl
AC_INIT(include/zebraver.h)
AC_PROG_INSTALL
AC_PROG_RANLIB
dnl
+dnl ------ Create sub directory lib/bin
+if test ! -d lib; then
+ mkdir lib
+fi
+if test ! -d bin; then
+ mkdir bin
+fi
dnl ------ Build root
AC_SUBST(build_root)
AC_ARG_WITH(build-root, [ --with-buildroot RPM Build root],[build_root=$withval],[build_root=""])
dnl use yaz-config found in PATH.
yazconfig=NONE
yazpath=NONE
-AC_ARG_WITH(yazconfig, [ --with-yazconfig Path for yaz-config], [yazpath=$withval])
+AC_ARG_WITH(yazconfig, [ --with-yazconfig=DIR yaz-config in DIR (example /home/yaz-1.5)], [yazpath=$withval])
if test "x$yazpath" != "xNONE"; then
yazconfig=$yazpath/yaz-config
else
TCL_LIB=""
TCL_INCLUDE=""
tclconfig=NONE
-AC_ARG_WITH(tclconfig, [ --with-tclconfig Path for tclConfig.sh], [tclconfig=$withval])
+AC_ARG_WITH(tclconfig, [ --with-tclconfig=DIR tclConfig.sh in DIR], [tclconfig=$withval])
if test "x$tclconfig" = xNONE; then
saveprefix=${prefix}
AC_PREFIX_PROGRAM(tclsh)
tclconfig=${prefix}/lib
prefix=${saveprefix}
fi
+AC_MSG_CHECKING(for Tcl)
if test -r ${tclconfig}/tclConfig.sh; then
- AC_MSG_CHECKING(for Tcl)
. ${tclconfig}/tclConfig.sh
if test -r ${tclconfig}/../generic/tcl.h; then
TCL_INCLUDE=-I${tclconfig}/../generic
AC_MSG_RESULT($TCL_VERSION)
ODEFS="-DHAVE_TCL_H=1"
else
+ AC_MSG_RESULT(Not found)
ODEFS="-DHAVE_TCL_H=0"
fi
dnl
../lib/recctrl.a ../lib/bfile.a ../lib/dfa.a\
../lib/zebrautl.a"
AC_DEFINE(ZMBOL,0)
- if ! test -d isamc; then
+ if test ! -d isamc; then
mkdir isamc
fi
- if ! test -r isamc/Makefile.in; then
+ if test ! -r isamc/Makefile.in; then
touch isamc/Makefile.in
fi
- if ! test -d isam; then
+ if test ! -d isam; then
mkdir isam
fi
- if ! test -r isam/Makefile.in; then
+ if test ! -r isam/Makefile.in; then
touch isam/Makefile.in
fi
fi