2003-06-06 19:00:42 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
## $Id$
|
|
|
|
|
|
|
|
# this file is only for bootstrapping the "Makefile.in" files and "Makefile"
|
|
|
|
# files; you probably don't need to run this if the Makefile.in files were
|
|
|
|
# correctly checked into the repository.
|
|
|
|
|
2005-04-28 22:04:32 +00:00
|
|
|
if [ -d autom4te.cache ]; then
|
|
|
|
/bin/rm -rf autom4te.cache
|
|
|
|
fi
|
|
|
|
|
2003-06-06 19:00:42 +00:00
|
|
|
echo "Bootstrapping configure script and makefiles:"
|
|
|
|
|
2005-04-28 22:04:32 +00:00
|
|
|
ACLOCAL=aclocal
|
|
|
|
AUTOHEADER=autoheader
|
|
|
|
AUTOMAKE=automake
|
|
|
|
AUTOCONF=autoconf
|
|
|
|
|
|
|
|
if $ACLOCAL -I m4 && $AUTOHEADER && $AUTOMAKE && $AUTOCONF; then
|
2005-01-17 15:25:27 +00:00
|
|
|
## We don't always run ./configure ourselves here, because the user may not
|
|
|
|
## want to run it, or may want to run with custom parameters.
|
|
|
|
|
|
|
|
if [ "$1" = "-a" ]; then
|
|
|
|
./configure -C --enable-maintainer-mode
|
|
|
|
elif [ "$1" = "-c" ]; then
|
|
|
|
./configure -C
|
|
|
|
else
|
|
|
|
echo "Done, now run ./configure"
|
|
|
|
echo " ./configure -C to enable caching"
|
|
|
|
echo " ./configure --enable-maintainer-mode to enable maintainer depedencies"
|
|
|
|
exit 0
|
|
|
|
fi
|
2003-07-11 22:10:05 +00:00
|
|
|
else
|
2005-01-17 15:25:27 +00:00
|
|
|
echo "Something failed .... please check error-message and re-run when fixed."
|
|
|
|
echo "exiting..."
|
|
|
|
exit 1
|
2003-07-11 22:10:05 +00:00
|
|
|
fi
|