X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=buildconf.sh;h=02d38a673704919f55948f757c8d6fbfccc7a37e;hb=4dde0c63ec2098c9b99896b04f1d27eea2e2c6da;hp=122cff1cf6803ba3654135610361a2071bb35b81;hpb=8bce7c5592247e2c2c70f123f8e5e5294a84dfda;p=idzebra-moved-to-github.git diff --git a/buildconf.sh b/buildconf.sh index 122cff1..02d38a6 100755 --- a/buildconf.sh +++ b/buildconf.sh @@ -1,15 +1,80 @@ #!/bin/sh -# $Id: buildconf.sh,v 1.10 2003-05-06 12:09:24 adam Exp $ +# $Id: buildconf.sh,v 1.10.2.2 2006-11-22 09:41:47 adam Exp $ set -x dir=`aclocal --print-ac-dir` -if [ -f $dir/yaz.m4 ]; then - aclocal -else - aclocal -I . -fi +aclocal -I . +libtoolize --automake --force automake -a automake -a autoconf +set - if [ -f config.cache ]; then rm config.cache fi + +enable_configure=false +enable_help=true +sh_flags="" +conf_flags="" +case $1 in + -d) + sh_flags="-g -Wall -Wdeclaration-after-statement" + enable_configure=true + enable_help=false + shift + ;; + -o) + sh_flags="-g -Wall -O2 -Wdeclaration-after-statement" + enable_configure=true + enable_help=false + shift + ;; + -p) + sh_flags="-g -pg -Wall -Wdeclaration-after-statement" + enable_configure=true + enable_help=false + shift + ;; + -c) + sh_flags="" + enable_configure=true + enable_help=false + shift + ;; +esac + +if $enable_configure; then + if test -n "$sh_flags"; then + CFLAGS="$sh_flags" ./configure $* + else + ./configure $* + fi +fi +if $enable_help; then + cat <