summaryrefslogtreecommitdiff
path: root/m4/header.m4
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1996-11-22 06:25:29 +0000
committerTom Tromey <tromey@redhat.com>1996-11-22 06:25:29 +0000
commitb67f2a261bd05bf1effd863360de354016e0d4dd (patch)
tree9b6bd449a88116e5d36f543b544f1b9475dfe3b1 /m4/header.m4
parent41018bc35c7d9fc5dd762b6709423e00fb4184cc (diff)
downloadautomake-b67f2a261bd05bf1effd863360de354016e0d4dd.tar.gz
Wrote AM_CONFIG_HEADER
Diffstat (limited to 'm4/header.m4')
-rw-r--r--m4/header.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/m4/header.m4 b/m4/header.m4
new file mode 100644
index 000000000..0477b3a6c
--- /dev/null
+++ b/m4/header.m4
@@ -0,0 +1,12 @@
+# Like AC_CONFIG_HEADER, but automatically create stamp file.
+
+AC_DEFUN(AM_CONFIG_HEADER,
+[AC_PREREQ([2.11.2])
+AC_CONFIG_HEADER($1)
+dnl When config.status generates a header, we must update the stamp-h file.
+dnl This file resides in the same directory as the config header
+dnl that is generated. We must strip everything past the first ":",
+dnl and everything past the last "/".
+changequote(<<,>>)
+AC_OUTPUT_COMMANDS(<<test -z "<<$>>CONFIG_HEADER" || echo timestamp > patsubst($1, <<^\([^:]*/\)?.*>>, <<\1>>)>>)
+changequote([,])])