Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Show an error message if autoconf isn't found
  • Loading branch information
slouken committed Mar 21, 2006
1 parent 1e9efa4 commit 13dae1c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion autogen.sh
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion test/autogen.sh
Expand Up @@ -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

0 comments on commit 13dae1c

Please sign in to comment.