aboutsummaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index b7633c66..2b04f995 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -2,6 +2,12 @@
#
# Run this script to regenerate autoconf files
#
+recheck=false
+if [ x"$1" = x--recheck ]; then
+ recheck=true
+ config=$(sh config.status --config 2>/dev/null)
+fi
+
mkdir -p autoconf autoconf/aux config
autolib="`automake --print-libdir`"
for prg in install-sh compile config.guess config.sub; do
@@ -18,3 +24,8 @@ rm -rf autoconf/m4.old
autoheader -B autoconf
autoconf -B autoconf
rm -rf autom4te.cache config.log config.status config/config.h Makefile
+
+if $recheck; then
+ # This bizarre statement has to do with how config.status quotes its output
+ echo exec sh configure $config | sh -
+fi