Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Show an error message if autoconf isn't found
- Loading branch information
Showing
with
12 additions
and
2 deletions.
-
+6
−1
autogen.sh
-
+6
−1
test/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 |
|
|
|
@@ -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 |