Skip to content
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...
1 parent e2d20c4 commit 1fff740109b3f23552d9b6838477789bfe0b1ae4 @knocte knocte committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 autogen.sh
View
4 autogen.sh
@@ -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.
Something went wrong with that request. Please try again.