-# @configure_input@
# Makefile for Autoconf.
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
install: all $(M4FILES) acconfig.h installdirs install-info
@case `$(M4) --help < /dev/null 2>&1` in \
*reload-state*) echo installing frozen m4 files; \
- $(M4) -F $(acdatadir)/autoconf.m4f autoconf.m4 ; \
- $(M4) -F $(acdatadir)/autoheader.m4f autoheader.m4 ;; \
+ $(M4) -F $(acdatadir)/autoconf.m4f -I${srcdir} ${srcdir}/autoconf.m4 ; \
+ $(M4) -F $(acdatadir)/autoheader.m4f -I${srcdir} ${srcdir}/autoheader.m4 ;; \
*traditional*) ;; \
*) echo Error: Autoconf requires GNU m4 1.1 or later; exit 1 ;; \
esac
** Changed macros:
* Many macros renamed systematically, but old names are accepted for
backward compatibility.
-* AC_OUTPUT adds the "automatically generated" comment only where it
- find @configure_input@ in an input file, to support files with
- various comment syntaxes.
+* AC_OUTPUT adds the "automatically generated" comment to
+ non-Makefiles where it finds @configure_input@ in an input file, to
+ support files with various comment syntaxes.
* AC_OUTPUT does not replace "prefix" and "exec_prefix" in generated
files when they are not enclosed in @ signs.
* AC_OUTPUT allows the optional environment variable CONFIG_STATUS to
dnl Produce config.status, config.h, and links, and configure subdirs.
dnl AC_OUTPUT([FILE...] [, EXTRA-CMDS] [, INIT-CMDS])
define(AC_OUTPUT,
-[AC_CACHE_SAVE
+[trap '' 1 2 15
+AC_CACHE_SAVE
+trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
test "x$prefix" = xNONE && prefix=/usr/local
# Let make expand exec_prefix.
echo creating "$ac_file"
rm -f "$ac_file"
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
- sed -e "
+ case "$ac_file" in
+ *Makefile*) ac_comsub="1i\\
+# $configure_input" ;;
+ *) ac_comsub= ;;
+ esac
+ sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
@defvar configure_input
@ovindex configure_input
A comment saying that the file was generated automatically by configure
-and giving the name of the input file. You should reference this
-variable in a comment at the top of each input file. For example, a
-@file{Makefile.in} should begin like this:
+and giving the name of the input file. @code{AC_OUTPUT} adds a comment
+line containing this variable to the top of every @file{Makefile} it
+creates. For other files, you should reference this variable in a
+comment at the top of each input file. For example, an input
+shell script should begin like this:
@example
+#!/bin/sh
# @@configure_input@@
@end example
-# @configure_input@
# Makefile for Autoconf.
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
install: all $(M4FILES) acconfig.h installdirs install-info
@case `$(M4) --help < /dev/null 2>&1` in \
*reload-state*) echo installing frozen m4 files; \
- $(M4) -F $(acdatadir)/autoconf.m4f autoconf.m4 ; \
- $(M4) -F $(acdatadir)/autoheader.m4f autoheader.m4 ;; \
+ $(M4) -F $(acdatadir)/autoconf.m4f -I${srcdir} ${srcdir}/autoconf.m4 ; \
+ $(M4) -F $(acdatadir)/autoheader.m4f -I${srcdir} ${srcdir}/autoheader.m4 ;; \
*traditional*) ;; \
*) echo Error: Autoconf requires GNU m4 1.1 or later; exit 1 ;; \
esac
@defvar configure_input
@ovindex configure_input
A comment saying that the file was generated automatically by configure
-and giving the name of the input file. You should reference this
-variable in a comment at the top of each input file. For example, a
-@file{Makefile.in} should begin like this:
+and giving the name of the input file. @code{AC_OUTPUT} adds a comment
+line containing this variable to the top of every @file{Makefile} it
+creates. For other files, you should reference this variable in a
+comment at the top of each input file. For example, an input
+shell script should begin like this:
@example
+#!/bin/sh
# @@configure_input@@
@end example
dnl Produce config.status, config.h, and links, and configure subdirs.
dnl AC_OUTPUT([FILE...] [, EXTRA-CMDS] [, INIT-CMDS])
define(AC_OUTPUT,
-[AC_CACHE_SAVE
+[trap '' 1 2 15
+AC_CACHE_SAVE
+trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
test "x$prefix" = xNONE && prefix=/usr/local
# Let make expand exec_prefix.
echo creating "$ac_file"
rm -f "$ac_file"
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
- sed -e "
+ case "$ac_file" in
+ *Makefile*) ac_comsub="1i\\
+# $configure_input" ;;
+ *) ac_comsub= ;;
+ esac
+ sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
-# @configure_input@
# Makefile for Autoconf test suite.
# Copyright (C) 1994 Free Software Foundation, Inc.