]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
put back Makefile comment
authorDavid MacKenzie <djm@djmnet.org>
Thu, 15 Sep 1994 00:58:48 +0000 (00:58 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Thu, 15 Sep 1994 00:58:48 +0000 (00:58 +0000)
Makefile.in
NEWS
acgeneral.m4
autoconf.texi
doc/Makefile.in
doc/autoconf.texi
lib/autoconf/general.m4
testsuite/Makefile.in

index 1016795a580457f3e1c6d05924e8c4a8d4575f6e..69a9c6e07ca2dd4536e1b691fd90949729eefec5 100644 (file)
@@ -1,4 +1,3 @@
-# @configure_input@
 # Makefile for Autoconf.
 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
 
@@ -131,8 +130,8 @@ installdirs:
 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
diff --git a/NEWS b/NEWS
index a0c5509325943c02c6604d448141b0cbf2342131..0c43e60dad1bf2cde245017762d53ce0e556e76a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -26,9 +26,9 @@ Major changes in release 2.0:
 ** 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
index 805085e5f05b6bcc0d9966906c5872f6f08016e4..ee5da5445ccaa12473e37fddb7b02c3dbce3876d 100644 (file)
@@ -1455,7 +1455,9 @@ dnl The big finish.
 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.
@@ -1631,7 +1633,12 @@ changequote([, ])dnl
   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
index c59f8ea258e28bc92fe6e62ae3168dcbbcbe759f..2f8cc3ec4ce05bc520f76f86efe6249afc37982e 100644 (file)
@@ -794,11 +794,14 @@ contains.
 @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
 
index 1016795a580457f3e1c6d05924e8c4a8d4575f6e..69a9c6e07ca2dd4536e1b691fd90949729eefec5 100644 (file)
@@ -1,4 +1,3 @@
-# @configure_input@
 # Makefile for Autoconf.
 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
 
@@ -131,8 +130,8 @@ installdirs:
 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
index c59f8ea258e28bc92fe6e62ae3168dcbbcbe759f..2f8cc3ec4ce05bc520f76f86efe6249afc37982e 100644 (file)
@@ -794,11 +794,14 @@ contains.
 @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
 
index 805085e5f05b6bcc0d9966906c5872f6f08016e4..ee5da5445ccaa12473e37fddb7b02c3dbce3876d 100644 (file)
@@ -1455,7 +1455,9 @@ dnl The big finish.
 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.
@@ -1631,7 +1633,12 @@ changequote([, ])dnl
   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
index a5d1ee46ac1e2b22ebc9313a2f6923b943a19f30..c0b8ff4c448d1cb9cd1ec424ba80b51144b1345c 100644 (file)
@@ -1,4 +1,3 @@
-# @configure_input@
 # Makefile for Autoconf test suite.
 # Copyright (C) 1994 Free Software Foundation, Inc.