X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=buildconf.sh;h=2788acd17eb4ceee713d802dac225f78dcf6355e;hb=eea2caea1263bed0aae268f72d985cbb1822ac30;hp=c0873b3a3926ca955561b04d5e0eadc29da234c0;hpb=933909a6cfd5dcacc446f45e7217849b917abefd;p=yazpp-moved-to-github.git diff --git a/buildconf.sh b/buildconf.sh index c0873b3..2788acd 100755 --- a/buildconf.sh +++ b/buildconf.sh @@ -1,6 +1,67 @@ #!/bin/sh -# $Id: buildconf.sh,v 1.3 2000-11-20 11:27:33 adam Exp $ -aclocal -libtoolize --force -automake -a +# $Id: buildconf.sh,v 1.11 2005-05-17 20:34:28 adam Exp $ +set -x +aclocal -I . +libtoolize --automake --force +automake --add-missing +automake --add-missing 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" + 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" CXXFLAGS="$sh_flags" ./configure $* + else + ./configure $* + fi +fi +if $enable_help; then + cat <