X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=buildconf.sh;h=ce336468b9714a34ea958dfbc75fb11bb7837eb8;hp=60dd2002097355cd100f4d72dab375b3b33207ea;hb=c3ff843e467932c6027a8b3b2ebda7b44612447e;hpb=12ed44cad4b6c14fd21384e26c077349af702fcb diff --git a/buildconf.sh b/buildconf.sh index 60dd200..ce33646 100755 --- a/buildconf.sh +++ b/buildconf.sh @@ -1,16 +1,54 @@ #!/bin/sh -# $Id: buildconf.sh,v 1.5 2001-02-28 09:01:41 adam Exp $ -dir=`aclocal --print-ac-dir` -if [ -f $dir/yaz.m4 ]; then - aclocal || exit 1 -else - aclocal -I . || exit 1 + +if [ -d .git ]; then + git submodule init + git submodule update fi -test -d isamc || mkdir isamc -test -d isamb || mkdir isamb -test -d isam || mkdir isam -automake -a >/dev/null 2>&1 || exit 2 -autoconf || exit 3 -if [ -f config.cache ]; then - rm config.cache + +. m4/id-config.sh + +if $enable_help; then + cat <