X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=buildconf.sh;h=2788acd17eb4ceee713d802dac225f78dcf6355e;hb=9245208f93f95246e44cb597317f9e13c8b60e67;hp=858ad3b85757bfe0bebee083bc6c96fd49b65e47;hpb=5ddfd8539ebd230cd671d1b2cc639c83aa841722;p=yazpp-moved-to-github.git diff --git a/buildconf.sh b/buildconf.sh index 858ad3b..2788acd 100755 --- a/buildconf.sh +++ b/buildconf.sh @@ -1,6 +1,67 @@ #!/bin/sh -# $Id: buildconf.sh,v 1.4 2000-12-07 13:27:14 adam Exp $ +# $Id: buildconf.sh,v 1.11 2005-05-17 20:34:28 adam Exp $ +set -x aclocal -I . -libtoolize --force -automake -a +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 <