blob: ddb2425a658d48479813b452cadcaf2542189884 [file] [log] [blame]
#!/bin/sh
# you can either set the environment variables AUTOCONF and AUTOMAKE
# to the right versions, or leave them unset and get the RedHat 7.3 defaults
export PATH="/bin:/usr/bin:$PATH"
if test -z $AUTOMAKE; then
export AUTOMAKE=automake
export ACLOCAL=aclocal
fi
# if you would want to be running autoheader as well, you will have to do
# something similar as above for it
if test -z $AUTOCONF; then export AUTOCONF=autoconf; fi
echo "#!/bin/sh" > autoregen.sh
echo "./autogen.sh $@ \$@" >> autoregen.sh
chmod +x autoregen.sh
set -x
# if any of these steps fails, the others will not execute, which is good
# we want to treat errors as soon as possible
$ACLOCAL
libtoolize --force || exit 1
# autoheader || exit 1
$AUTOMAKE -a || exit 1
$AUTOCONF || exit 1
conf_flags="--enable-maintainer-mode"
if test x$NOCONFIGURE = x; then
echo Running ./configure $conf_flags "$@" ...
./configure $conf_flags "$@" && echo Now type \`make\' to compile. || exit 1
else
echo Skipping configure process.
fi