Permalink
Browse files

autogen.sh: don't tell to install autoconf if autoreconf exists and f…

…ails

autoreconf could exist but fail to run, and in this case the user would
be getting "Please install autoconf".

Fix this.
  • Loading branch information...
knocte committed Sep 24, 2012
1 parent e2d20c4 commit 1fff740109b3f23552d9b6838477789bfe0b1ae4
Showing with 2 additions and 2 deletions.
  1. +2 −2 autogen.sh
View
@@ -1,3 +1,3 @@
#!/usr/bin/env sh
-which autoreconf > /dev/null && autoreconf || echo "Please install autoconf"
-./configure $@
+which autoreconf > /dev/null || (echo "Please install autoconf" && exit 1)
+autoreconf && ./configure $@

0 comments on commit 1fff740

Please sign in to comment.