-echo -n "Locating GNU m4... "
-GNUM4=
-for prog in $M4 gm4 gnum4 m4; do
- # continue if $prog generates error (e.g. does not exist)
- ( $prog --version ) < /dev/null > /dev/null 2>&1
- if test $? -ne 0 ; then continue; fi
+# Discover what version of autoconf we are using.
+autoversion=$($AUTOCONF --version 2>/dev/null | head -n 1)