If the m4 version isn't recognized at all, just say so
authorFabian Keil <fk@fabiankeil.de>
Thu, 19 Aug 2010 13:50:32 +0000 (15:50 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 28 Aug 2010 20:51:22 +0000 (22:51 +0200)
'm4 version  found. You need a GNU m4 installed!' is a bit confusing.

buildconf

index 2b62afd..10eed4c 100755 (executable)
--- a/buildconf
+++ b/buildconf
@@ -254,7 +254,11 @@ m4_version=`echo $m4 | sed -e 's/^.* \([0-9]\)/\1/' -e 's/[a-z]* *$//'`
 if { echo $m4 | grep "GNU" >/dev/null 2>&1; } then
   echo "buildconf: GNU m4 version $m4_version (ok)"
 else
-  echo "buildconf: m4 version $m4 found. You need a GNU m4 installed!"
+  if test -z "$m4"; then
+    echo "buildconf: m4 version not recognized. You need a GNU m4 installed!"
+  else
+    echo "buildconf: m4 version $m4 found. You need a GNU m4 installed!"
+  fi
   exit 1
 fi