Browse Source

Check return value of autoreconf. Thanks to Lauri Nurmi.

Stéphane Raimbault 11 years ago
parent
commit
1a4fb4eb8e
1 changed files with 13 additions and 8 deletions
  1. 13 8
      autogen.sh

+ 13 - 8
autogen.sh

@@ -1,9 +1,14 @@
 #! /bin/sh
-autoreconf --install --symlink --force
-
-
-echo
-echo "------------------------------------------------------"
-echo "Initialized build system. You can now run ./configure "
-echo "------------------------------------------------------"
-echo
+if autoreconf --install --symlink --force; then
+	echo
+	echo "------------------------------------------------------"
+	echo "Initialized build system. You can now run ./configure "
+	echo "------------------------------------------------------"
+	echo
+else
+	echo
+	echo "--------------------------"
+	echo "Running autoreconf failed."
+	echo "--------------------------"
+	echo
+fi