+2001-01-12 Akim Demaille <akim@epita.fr>
+
+ * acgeneral.m4: Last changes for `configure.ac'.
+ (_AC_INIT_HELP, _AC_OUTPUT_SUBDIRS): Take `configure.ac' into
+ account.
+ * autoreconf.sh: Likewise.
+
+
2001-01-11 Motoyuki Kasahara <m-kasahr@sra.co.jp>
* acfunctions.m4 (AC_FUNC_MEMCMP): Missing comma in AC_TRY_RUN
# KILL is only used to suppress output.
#
# The layers of `configure'. We let m4 undivert them by itself, when
-# it reaches the end of `configure.in'.
+# it reaches the end of `configure.ac'.
#
# - BINSH
# AC_REQUIRE'd #! /bin/sh line
# Also define NAME as a macro which code is NEW-CODE.
#
# This allows to share the same code for both supporting obsoleted macros,
-# and to update a configure.in.
+# and to update a configure.ac.
# See `acobsolete.m4' for a longer description.
m4_define([AU_DEFUN],
[AU_DEFINE([$1],
# It is suggested that the macros in this section appear before
-# AC_INIT in `configure.in'. Nevertheless, this is just stylistic,
+# AC_INIT in `configure.ac'. Nevertheless, this is just stylistic,
# and from the implementation point of, AC_INIT *must* be expanded
# beforehand: it puts data in diversions which must appear before the
# data provided by the macros of this section.
# _AC_INIT_DEFAULTS
# -----------------
-# Values which defaults can be set from `configure.in'.
+# Values which defaults can be set from `configure.ac'.
# `/bin/machine' is used in `glibcbug'. The others are used in config.*
m4_define([_AC_INIT_DEFAULTS],
[m4_divert_push([DEFAULTS])dnl
elif test -f $ac_sub_srcdir/configure; then
echo
$SHELL $ac_sub_srcdir/configure --help=recursive
- elif test -f $ac_sub_srcdir/configure.in; then
+ elif test -f $ac_sub_srcdir/configure.ac ||
+ test -f $ac_sub_srcdir/configure.in; then
echo
$ac_configure --help
else
# `default-2' etc. for each call.
#
# Unfortunately this scheme is fragile: bad things might happen
-# if you update an included file and configure.in: you might have
+# if you update an included file and configure.ac: you might have
# clashes :( On the other hand, I'd like to avoid weird keys (e.g.,
# depending upon __file__ or the pid).
AU_DEFUN([AC_OUTPUT_COMMANDS],
cat >>$CONFIG_STATUS <<EOF
dnl Neutralize VPATH when `$srcdir' = `.'.
sed "$ac_vpsub
-dnl Shell code in configure.in might set extrasub.
+dnl Shell code in configure.ac might set extrasub.
dnl FIXME: do we really want to maintain this feature?
$extrasub
EOF
ac_sub_configure="$SHELL $ac_sub_srcdir/configure.gnu"
elif test -f $ac_sub_srcdir/configure; then
ac_sub_configure="$SHELL $ac_sub_srcdir/configure"
- elif test -f $ac_sub_srcdir/configure.in; then
+ elif test -f $ac_sub_srcdir/configure.ac ||
+ test -f $ac_sub_srcdir/configure.in; then
ac_sub_configure=$ac_configure
else
AC_MSG_WARN([no configuration information is in $ac_subdir])
# Transform the traces from m4 into an m4 input file.
# Typically, transform:
#
- # | m4trace:configure.in:3: -1- AC_SUBST([exec_prefix], [NONE])
+ # | m4trace:configure.ac:3: -1- AC_SUBST([exec_prefix], [NONE])
#
# into
#
- # | AT_AC_SUBST([configure.in], [3], [1], [AC_SUBST], [exec_prefix], [NONE])
+ # | AT_AC_SUBST([configure.ac], [3], [1], [AC_SUBST], [exec_prefix], [NONE])
#
# Pay attention that the file name might include colons, if under DOS
# for instance, so we don't use `[^:][^:]*'.
# Transform the traces from m4 into an m4 input file.
# Typically, transform:
#
- # | m4trace:configure.in:3: -1- AC_SUBST([exec_prefix], [NONE])
+ # | m4trace:configure.ac:3: -1- AC_SUBST([exec_prefix], [NONE])
#
# into
#
- # | AT_AC_SUBST([configure.in], [3], [1], [AC_SUBST], [exec_prefix], [NONE])
+ # | AT_AC_SUBST([configure.ac], [3], [1], [AC_SUBST], [exec_prefix], [NONE])
#
# Pay attention that the file name might include colons, if under DOS
# for instance, so we don't use `[^:][^:]*'.
#! @SHELL@
-# autoheader -- create `config.h.in' from `configure.in'
+# autoheader -- create `config.h.in' from `configure.ac'
# Copyright 1992, 1993, 1994, 1996, 1998, 1999, 2000
# Free Software Foundation, Inc.
test -r $localdir/acconfig.h &&
sed '/@BOTTOM@/,$d;s/@TOP@//' $localdir/acconfig.h >>$tmp/config.hin
-# Dump the templates from `configure.in'.
+# Dump the templates from `configure.ac'.
for verb in `(set) 2>&1 | sed -n -e '/^ac_verbatim/s/^\([^=]*\)=.*$/\1/p' | sort`; do
echo >>$tmp/config.hin
eval echo '"${'$verb'}"' >>$tmp/config.hin
#! @SHELL@
-# autoheader -- create `config.h.in' from `configure.in'
+# autoheader -- create `config.h.in' from `configure.ac'
# Copyright 1992, 1993, 1994, 1996, 1998, 1999, 2000
# Free Software Foundation, Inc.
test -r $localdir/acconfig.h &&
sed '/@BOTTOM@/,$d;s/@TOP@//' $localdir/acconfig.h >>$tmp/config.hin
-# Dump the templates from `configure.in'.
+# Dump the templates from `configure.ac'.
for verb in `(set) 2>&1 | sed -n -e '/^ac_verbatim/s/^\([^=]*\)=.*$/\1/p' | sort`; do
echo >>$tmp/config.hin
eval echo '"${'$verb'}"' >>$tmp/config.hin
# Make a list of directories to process.
# The xargs grep filters out Cygnus configure.in files.
-find . -name configure.in -print |
-xargs grep -l AC_OUTPUT |
-sed 's%/configure\.in$%%; s%^./%%' |
+find . -name configure.ac -o -name configure.ac -print |
+xargs grep -l AC_INIT |
+sed 's,/configure\.ac$,,;s,/configure\.in$,,;s,^./,,' |
while read dir; do
(
cd $dir || continue
# Make a list of directories to process.
# The xargs grep filters out Cygnus configure.in files.
-find . -name configure.in -print |
-xargs grep -l AC_OUTPUT |
-sed 's%/configure\.in$%%; s%^./%%' |
+find . -name configure.ac -o -name configure.ac -print |
+xargs grep -l AC_INIT |
+sed 's,/configure\.ac$,,;s,/configure\.in$,,;s,^./,,' |
while read dir; do
(
cd $dir || continue
#! @PERL@ -w
-# autoscan - Create configure.scan (a preliminary configure.in) for a package.
+# autoscan - Create configure.scan (a preliminary configure.ac) for a package.
# Copyright 1994, 1999, 2000 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
Examine source files in the directory tree rooted at SRCDIR, or the
current directory if none is given. Search the source files for
common portability problems and create a file `configure.scan' which
-is a preliminary `configure.in' for that package.
+is a preliminary `configure.ac' for that package.
-h, --help print this help, then exit
-V, --version print version number, then exit
# The data file format supports only one line of macros per function.
# If more than that is required for a common portability problem,
# a new Autoconf macro should probably be written for that case,
- # instead of duplicating the code in lots of configure.in files.
+ # instead of duplicating the code in lots of configure.ac files.
foreach $kind ('functions', 'headers', 'identifiers', 'programs',
'makevars') {
}
}
-# Print a configure.in.
+# Print a configure.ac.
sub output
{
local (%unique_makefiles);
#! @PERL@ -w
-# autoscan - Create configure.scan (a preliminary configure.in) for a package.
+# autoscan - Create configure.scan (a preliminary configure.ac) for a package.
# Copyright 1994, 1999, 2000 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
Examine source files in the directory tree rooted at SRCDIR, or the
current directory if none is given. Search the source files for
common portability problems and create a file `configure.scan' which
-is a preliminary `configure.in' for that package.
+is a preliminary `configure.ac' for that package.
-h, --help print this help, then exit
-V, --version print version number, then exit
# The data file format supports only one line of macros per function.
# If more than that is required for a common portability problem,
# a new Autoconf macro should probably be written for that case,
- # instead of duplicating the code in lots of configure.in files.
+ # instead of duplicating the code in lots of configure.ac files.
foreach $kind ('functions', 'headers', 'identifiers', 'programs',
'makevars') {
}
}
-# Print a configure.in.
+# Print a configure.ac.
sub output
{
local (%unique_makefiles);
# Transform the traces from m4 into an m4 input file.
# Typically, transform:
#
- # | m4trace:configure.in:3: -1- AC_SUBST([exec_prefix], [NONE])
+ # | m4trace:configure.ac:3: -1- AC_SUBST([exec_prefix], [NONE])
#
# into
#
- # | AT_AC_SUBST([configure.in], [3], [1], [AC_SUBST], [exec_prefix], [NONE])
+ # | AT_AC_SUBST([configure.ac], [3], [1], [AC_SUBST], [exec_prefix], [NONE])
#
# Pay attention that the file name might include colons, if under DOS
# for instance, so we don't use `[^:][^:]*'.
#! @SHELL@
-# autoheader -- create `config.h.in' from `configure.in'
+# autoheader -- create `config.h.in' from `configure.ac'
# Copyright 1992, 1993, 1994, 1996, 1998, 1999, 2000
# Free Software Foundation, Inc.
test -r $localdir/acconfig.h &&
sed '/@BOTTOM@/,$d;s/@TOP@//' $localdir/acconfig.h >>$tmp/config.hin
-# Dump the templates from `configure.in'.
+# Dump the templates from `configure.ac'.
for verb in `(set) 2>&1 | sed -n -e '/^ac_verbatim/s/^\([^=]*\)=.*$/\1/p' | sort`; do
echo >>$tmp/config.hin
eval echo '"${'$verb'}"' >>$tmp/config.hin
# Make a list of directories to process.
# The xargs grep filters out Cygnus configure.in files.
-find . -name configure.in -print |
-xargs grep -l AC_OUTPUT |
-sed 's%/configure\.in$%%; s%^./%%' |
+find . -name configure.ac -o -name configure.ac -print |
+xargs grep -l AC_INIT |
+sed 's,/configure\.ac$,,;s,/configure\.in$,,;s,^./,,' |
while read dir; do
(
cd $dir || continue
#! @PERL@ -w
-# autoscan - Create configure.scan (a preliminary configure.in) for a package.
+# autoscan - Create configure.scan (a preliminary configure.ac) for a package.
# Copyright 1994, 1999, 2000 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
Examine source files in the directory tree rooted at SRCDIR, or the
current directory if none is given. Search the source files for
common portability problems and create a file `configure.scan' which
-is a preliminary `configure.in' for that package.
+is a preliminary `configure.ac' for that package.
-h, --help print this help, then exit
-V, --version print version number, then exit
# The data file format supports only one line of macros per function.
# If more than that is required for a common portability problem,
# a new Autoconf macro should probably be written for that case,
- # instead of duplicating the code in lots of configure.in files.
+ # instead of duplicating the code in lots of configure.ac files.
foreach $kind ('functions', 'headers', 'identifiers', 'programs',
'makevars') {
}
}
-# Print a configure.in.
+# Print a configure.ac.
sub output
{
local (%unique_makefiles);
at some point @file{config.cache} contains results you don't want to
keep, you may remove or edit it.
-The file @file{configure.in} is used to create @file{configure} by a
-program called @code{autoconf}. You only need @file{configure.in} if
-you want to change it or regenerate @file{configure} using a newer
-version of @code{autoconf}.
+The file @file{configure.ac} (or @file{configure.in}) is used to create
+@file{configure} by a program called @code{autoconf}. You only need
+@file{configure.ac} if you want to change it or regenerate
+@file{configure} using a newer version of @code{autoconf}.
@noindent
The simplest way to compile this package is:
# KILL is only used to suppress output.
#
# The layers of `configure'. We let m4 undivert them by itself, when
-# it reaches the end of `configure.in'.
+# it reaches the end of `configure.ac'.
#
# - BINSH
# AC_REQUIRE'd #! /bin/sh line
# Also define NAME as a macro which code is NEW-CODE.
#
# This allows to share the same code for both supporting obsoleted macros,
-# and to update a configure.in.
+# and to update a configure.ac.
# See `acobsolete.m4' for a longer description.
m4_define([AU_DEFUN],
[AU_DEFINE([$1],
# It is suggested that the macros in this section appear before
-# AC_INIT in `configure.in'. Nevertheless, this is just stylistic,
+# AC_INIT in `configure.ac'. Nevertheless, this is just stylistic,
# and from the implementation point of, AC_INIT *must* be expanded
# beforehand: it puts data in diversions which must appear before the
# data provided by the macros of this section.
# _AC_INIT_DEFAULTS
# -----------------
-# Values which defaults can be set from `configure.in'.
+# Values which defaults can be set from `configure.ac'.
# `/bin/machine' is used in `glibcbug'. The others are used in config.*
m4_define([_AC_INIT_DEFAULTS],
[m4_divert_push([DEFAULTS])dnl
elif test -f $ac_sub_srcdir/configure; then
echo
$SHELL $ac_sub_srcdir/configure --help=recursive
- elif test -f $ac_sub_srcdir/configure.in; then
+ elif test -f $ac_sub_srcdir/configure.ac ||
+ test -f $ac_sub_srcdir/configure.in; then
echo
$ac_configure --help
else
# `default-2' etc. for each call.
#
# Unfortunately this scheme is fragile: bad things might happen
-# if you update an included file and configure.in: you might have
+# if you update an included file and configure.ac: you might have
# clashes :( On the other hand, I'd like to avoid weird keys (e.g.,
# depending upon __file__ or the pid).
AU_DEFUN([AC_OUTPUT_COMMANDS],
cat >>$CONFIG_STATUS <<EOF
dnl Neutralize VPATH when `$srcdir' = `.'.
sed "$ac_vpsub
-dnl Shell code in configure.in might set extrasub.
+dnl Shell code in configure.ac might set extrasub.
dnl FIXME: do we really want to maintain this feature?
$extrasub
EOF
ac_sub_configure="$SHELL $ac_sub_srcdir/configure.gnu"
elif test -f $ac_sub_srcdir/configure; then
ac_sub_configure="$SHELL $ac_sub_srcdir/configure"
- elif test -f $ac_sub_srcdir/configure.in; then
+ elif test -f $ac_sub_srcdir/configure.ac ||
+ test -f $ac_sub_srcdir/configure.in; then
ac_sub_configure=$ac_configure
else
AC_MSG_WARN([no configuration information is in $ac_subdir])
# The Axel Thimm implementation at work
# -------------------------------------
#
-# We consider the macros above, and this configure.in:
+# We consider the macros above, and this configure.ac:
#
# AC_INIT
# TEST1
# The Axel Thimm implementation at work
# -------------------------------------
#
-# We consider the macros above, and this configure.in:
+# We consider the macros above, and this configure.ac:
#
# AC_INIT
# TEST1
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
-.TH AUTOHEADER "1" "December 2000" "GNU autoconf 2.49c" FSF
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24.
+.TH AUTOHEADER "1" "January 2001" "GNU autoconf 2.49c" FSF
.SH NAME
autoheader \- Create a template header for configure
.SH SYNOPSIS
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
-.TH AUTOSCAN "1" "December 2000" "GNU autoconf 2.49c" FSF
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24.
+.TH AUTOSCAN "1" "January 2001" "GNU autoconf 2.49c" FSF
.SH NAME
autoscan \- Generate a preliminary configure.in
.SH SYNOPSIS
Examine source files in the directory tree rooted at SRCDIR, or the
current directory if none is given. Search the source files for
common portability problems and create a file `configure.scan' which
-is a preliminary `configure.in' for that package.
+is a preliminary `configure.ac' for that package.
.TP
\fB\-h\fR, \fB\-\-help\fR
print this help, then exit
.B autoupdate
[\fIOPTION\fR] ... [\fITEMPLATE-FILE\fR...]
.SH DESCRIPTION
-Update the TEMPLATE-FILE... if given, or `configure.in' if present,
+Update the TEMPLATE-FILE... if given, or `configure.ac' if present,
or else `configure.in', to the syntax of the current version of
Autoconf. The original files are backed up.
.SS "Operation modes:"