summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2006-03-21 07:02:34 +0000
committerSam Lantinga <slouken@libsdl.org>2006-03-21 07:02:34 +0000
commit3d9db3824de4cc6a11023e32583ef8a078f58856 (patch)
treec8899e37ac9ca7aaa0186881725b420a28b36402
parent6f035998f4615cffd3e585e01a212aaa48c443ac (diff)
Show an error message if autoconf isn't found
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401568
-rwxr-xr-xautogen.sh7
-rwxr-xr-xtest/autogen.sh7
2 files changed, 12 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index 4ba72fa8..e679afed 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -5,9 +5,14 @@ echo "This may take a while ..."
# Regenerate configuration files
cp acinclude.m4 aclocal.m4
+found=false
for autoconf in autoconf autoconf259
-do if which $autoconf >/dev/null; then $autoconf; break; fi
+do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi
done
+if test x$found = xfalse; then
+ echo "Couldn't find autoconf, aborting"
+ exit 1
+fi
(cd test; sh autogen.sh)
# Run configure for this platform
diff --git a/test/autogen.sh b/test/autogen.sh
index 09ecb2ab..ffa21524 100755
--- a/test/autogen.sh
+++ b/test/autogen.sh
@@ -2,6 +2,11 @@
#
# Regenerate configuration files
cp acinclude.m4 aclocal.m4
+found=false
for autoconf in autoconf autoconf259
-do if which $autoconf >/dev/null; then $autoconf; break; fi
+do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi
done
+if test x$found = xfalse; then
+ echo "Couldn't find autoconf, aborting"
+ exit 1
+fi