summaryrefslogtreecommitdiff
path: root/m4/m4.m4
diff options
context:
space:
mode:
authorAkim Demaille <akim@epita.fr>2000-05-23 14:46:23 +0000
committerAkim Demaille <akim@epita.fr>2000-05-23 14:46:23 +0000
commit999100ca483afac908bc6980bd21420ce6ccc06b (patch)
treefefd13ff43e3389c63fcb619752abb1c9ae25892 /m4/m4.m4
parenta856ba815e1e522376c304b5720b96b1e33b5218 (diff)
downloadautoconf-999100ca483afac908bc6980bd21420ce6ccc06b.tar.gz
AC_PROG_GNU_M4 should actually be private to the package
Autoconf. * acspecific.m4 (AC_PROG_GNU_M4): Move to... * m4/m4.m4: here. * m4/Makefile.am (EXTRA_DIST): Adjust. * doc/autoconf.texi (Particular Programs): Adjust.
Diffstat (limited to 'm4/m4.m4')
-rw-r--r--m4/m4.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/m4/m4.m4 b/m4/m4.m4
new file mode 100644
index 00000000..2033dfdb
--- /dev/null
+++ b/m4/m4.m4
@@ -0,0 +1,12 @@
+# AC_PROG_GNU_M4
+# --------------
+# Check for GNU m4, at least 1.3 (supports frozen files).
+AC_DEFUN([AC_PROG_GNU_M4],
+[AC_PATH_PROGS(M4, gm4 gnum4 m4, m4)
+AC_CACHE_CHECK(whether m4 supports frozen files, ac_cv_prog_gnu_m4,
+[ac_cv_prog_gnu_m4=no
+if test x"$M4" != x; then
+ case `$M4 --help < /dev/null 2>&1` in
+ *reload-state*) ac_cv_prog_gnu_m4=yes ;;
+ esac
+fi])])