Skip to content
Snippets Groups Projects
Commit f92550c8 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Added fallback to gm4.

Rev: bin/mktestsuite:1.11
parent b762c3ce
No related branches found
No related tags found
No related merge requests found
...@@ -7,10 +7,17 @@ M4=m4 ...@@ -7,10 +7,17 @@ M4=m4
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
for d in $PATH; do for d in $PATH; do
test -z "$d" && ac_dir=. test -z "$d" && ac_dir=.
# GNU m4 is named gm4 on FreeBSD
if test -f $d/gm4; then
M4=$d/gm4
if echo 'divert(-1)changequote([[,]])define(DOIT,ifelse([foo],foo,[DOIT($1)]))DOIT([[m4exit(1)]])' | $d/gm4 >/dev/null; then
break
fi
fi
if test -f $d/m4; then if test -f $d/m4; then
M4=$d/m4 M4=$d/m4
if echo 'divert(-1)changequote([[,]])define(DOIT,ifelse([foo],foo,[DOIT($1)]))DOIT([[m4exit(1)]])' | $d/m4 >/dev/null; then if echo 'divert(-1)changequote([[,]])define(DOIT,ifelse([foo],foo,[DOIT($1)]))DOIT([[m4exit(1)]])' | $d/m4 >/dev/null; then
break break
fi fi
fi fi
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment