]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* bin/autoscan.in (output): Output AC_PREREQ.
authorAkim Demaille <akim@epita.fr>
Fri, 25 Oct 2002 08:22:52 +0000 (08:22 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 25 Oct 2002 08:22:52 +0000 (08:22 +0000)
(%needed_macros): Add AC_PREREQ so that configure.ac without one
be reported.

ChangeLog
bin/autoscan.in
man/autoscan.1

index a407b061a9a587324e604ba536dea99761fb6da3..d4331b9b460931f922549ec77daefcee1c4eed4a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-10-25  Akim Demaille  <akim@epita.fr>
+
+       * bin/autoscan.in (output): Output AC_PREREQ.
+       (%needed_macros): Add AC_PREREQ so that configure.ac without one
+       be reported.
+
 2002-10-23  Akim Demaille  <akim@epita.fr>
 
        * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
index 70f1006f1a60ff926b3c99f634a1cbe0376f7299..c1beeab6ad9cf5712104773038bc809a40608321 100644 (file)
@@ -73,7 +73,10 @@ my %macro = ();
 # $NEEDED_MACROS{MACRO} is an array of locations requiring MACRO.
 # E.g., $NEEDED_MACROS{AC_FUNC_ALLOC} the list of `file:line' containing
 # `alloca (...)'.
-my %needed_macros = ();
+my %needed_macros =
+  (
+   'AC_PREREQ' => [$me],
+  );
 
 my $configure_scan = 'configure.scan';
 my $log = new Autom4te::XFile ">$me.log";
@@ -98,6 +101,8 @@ preliminary `configure.ac' for that package.
   -V, --version       print version number, then exit
   -v, --verbose       verbosely report processing
   -d, --debug         don't remove temporary files
+
+Library directories:
   -B, --prepend-include=DIR  prepend directory DIR to search path
   -I, --include=DIR          append directory DIR to search path
 
@@ -496,8 +501,11 @@ sub output ($)
   my $file = new Autom4te::XFile ">$configure_scan";
 
   print $file
-    ("# Process this file with autoconf to produce a configure script.\n"
-     . "AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)\n");
+    ("#                                               -*- Autoconf -*-\n" .
+     "# Process this file with autoconf to produce a configure script.\n" .
+     "\n" .
+     "AC_PREREQ(@VERSION@)\n" .
+     "AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)\n");
   if (defined $cfiles[0])
     {
       print $file "AC_CONFIG_SRCDIR([$cfiles[0]])\n";
index 4465c854d07d37e0bc639da4d67ffb3972540c79..b9d496da55a363b70f7649cbf33bdceeb7f470f8 100644 (file)
@@ -23,6 +23,7 @@ verbosely report processing
 .TP
 \fB\-d\fR, \fB\-\-debug\fR
 don't remove temporary files
+.SS "Library directories:"
 .TP
 \fB\-B\fR, \fB\-\-prepend\-include\fR=\fIDIR\fR
 prepend directory DIR to search path