-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
+# Delete old cache directories.
+# automake will stop if their contents was created by an earlier version.
+rm -rf autom4te.cache