diff options
author | Fabian Keil <fk@fabiankeil.de> | 2010-08-19 15:50:32 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-08-28 22:51:22 +0200 |
commit | b0873cb6577a83a3db8ca59b381ec0ae266a7b15 (patch) | |
tree | e4afa6d3ae76112472f0f3f24030be7c3759f49a /buildconf | |
parent | 19d2bf4ee445759141ec440f529c1a3f7391de9e (diff) |
If the m4 version isn't recognized at all, just say so
'm4 version found. You need a GNU m4 installed!' is a bit confusing.
Diffstat (limited to 'buildconf')
-rwxr-xr-x | buildconf | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |