summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh22
1 files changed, 20 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index a41df1179..ef7b58af8 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -85,8 +85,26 @@ fi
######################################################################
-autoheader
-autoconf
+
+# configure.in reqs autoconf-2.53; try to find it
+for suf in "-2.53" "2.53" "" false; do
+ version=`autoconf$suf --version 2>/dev/null | head -1 | awk '{print $NF}' | awk -F. '{print $1 * 100 + $2}'`
+ if test "0$version" -eq 253; then
+ autoconf=autoconf$suf
+ autoheader=autoheader$suf
+ break
+ fi
+done
+
+if test -z "$autoconf"; then
+ echo "ERROR: Please install autoconf 2.53"
+ exit 1
+fi
+
+
+################################################################
+$autoheader
+$autoconf
# Automake has a bug that will let it only add one copy of a missing
# file. We need two mdate-sh, tho, one in doc/ref/ and one in