+Thu Nov 21 22:29:30 1996 Tom Tromey <tromey@cygnus.com>
+
+ * m4/header.m4: New file.
+
+ * automake.in (scan_configure): Recognize AM_CONFIG_HEADER.
+
Wed Nov 20 00:23:42 1996 Tom Tromey <tromey@cygnus.com>
* acinstall: Allow commentary at end of "serial" line. From Gord
document rebuilding configure. CONFIGURE_DEPENDENCIES
+_DEPENDENCIES -vs- _LIBADD/_LDADD; the tradeoffs
+
-- must document all variables that are supposed
to be public knowledge
}
# Handle configuration headers.
- if (/AC_CONFIG_HEADER\s*\((.*)\)/)
+ if (/A([CM])_CONFIG_HEADER\s*\((.*)\)/)
{
+ &am_conf_line_error
+ ($., "use \`AM_CONFIG_HEADER', not \`AC_CONFIG_HEADER'")
+ if $1 eq 'C';
+
$config_header_line = $.;
- $config_name = $1;
+ $config_name = $2;
if ($config_name =~ /^([^:]+):(.+)$/)
{
$config_name = $1;
m4datadir = $(datadir)/aclocal
m4data_DATA = ccstdc.m4 dmalloc.m4 init.m4 install.m4 \
lispdir.m4 maintainer.m4 protos.m4 ptrdiff.m4 regex.m4 strtod.m4 termios.m4 \
-winsz.m4 mktime.m4 error.m4 obstack.m4 sanity.m4
+winsz.m4 mktime.m4 error.m4 obstack.m4 sanity.m4 header.m4
EXTRA_DIST = $(m4data_DATA)
m4datadir = $(datadir)/aclocal
m4data_DATA = ccstdc.m4 dmalloc.m4 init.m4 install.m4 \
lispdir.m4 maintainer.m4 protos.m4 ptrdiff.m4 regex.m4 strtod.m4 termios.m4 \
-winsz.m4 mktime.m4 error.m4 obstack.m4 sanity.m4
+winsz.m4 mktime.m4 error.m4 obstack.m4 sanity.m4 header.m4
EXTRA_DIST = $(m4data_DATA)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
--- /dev/null
+# 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([,])])
+Thu Nov 21 22:51:35 1996 Tom Tromey <tromey@cygnus.com>
+
+ * confsub.test: Use AM_CONFIG_HEADER.
+
Tue Nov 19 23:37:32 1996 Tom Tromey <tromey@cygnus.com>
* confvar2.test: New file.
cat > configure.in << 'END'
AC_PROG_MAKE_SET
-AC_CONFIG_HEADER(subdir/config.h)
+AM_CONFIG_HEADER(subdir/config.h)
PACKAGE=nonesuch
VERSION=nonesuch
AC_PROG_CC