]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
25 years ago* libm4.m4: Be robust to multiple inclusion.
Akim Demaille [Thu, 11 May 2000 14:29:00 +0000 (14:29 +0000)] 
* libm4.m4: Be robust to multiple inclusion.
Have the first `changequote' robust to the current quotation
system.
Always quote the first argument of `define'.

25 years agoThe Associated Rewriters are proud to present...
Akim Demaille [Thu, 11 May 2000 14:05:52 +0000 (14:05 +0000)] 
The Associated Rewriters are proud to present...

^
/   U  T  O  U  P  D  A  T  E    I I I
/===+ /           It bells, It whistles...

* autoupdate.sh: Complete rewrite.  See that file for a detailed
explanation.
* acgeneral.sh: Don't use AU_DEFINE, but AU_DEFUN.
(AC_OUTPUT_COMMANDS_CNT): Renamed as...
(_AC_OUTPUT_COMMANDS_CNT): this.

25 years agoGet rid of the m4 name spaces.
Akim Demaille [Thu, 11 May 2000 13:28:47 +0000 (13:28 +0000)] 
Get rid of the m4 name spaces.

* libm4.m4 (m4_changequote, m4_define, m4_defn, m4_dnl, m4_indir,
m4_popdef, m4_pushdef, m4_undefine, m4_namespace_push,
m4_namespace_pop, m4_namespace_register, m4_namespace_define,
m4_disable, m4_enable): Removed.
All dependencies adjusted.
* libm4.m4: Remove all the name space initialization.
* acgeneral.m4: Adjust.
(AU_DEFINE): Redefine as `AC_DEFUN'.
* autoupdate.m4: Adjust.
* tests/tools.m4: Temporarily disable the `autoupdate' test.

25 years agoEradicate AC_TRY_COMPILE.
Akim Demaille [Thu, 11 May 2000 13:09:05 +0000 (13:09 +0000)] 
Eradicate AC_TRY_COMPILE.

* aclang.m4 (AC_PROG_CC_STDC, AC_C_BIGENDIAN, AC_C_INLINE,
AC_C_CONST, AC_C_VOLATILE, AC_F77_NAME_MANGLING): Use
`AC_COMPILE_IFELSE'.
* acspecific.m4 (AC_DECL_SYS_SIGLIST, _AC_CHECK_HEADER_DIRENT,
AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_TYPE_SIGNAL,
AC_FUNC_GETLOADAVG, AC_FUNC_SELECT_ARGTYPES, AC_STRUCT_TM,
AC_CYGWIN, AC_MINGW32, AC_EMXOS2): Likewise.
* tests/semantics.m4 (C keywords): Check that AC_C_CONST,
AC_C_VOLATILE, and AC_C_INLINE function properly with GCC.

25 years agoReplace AC_LANG_SAVE/AC_LANG_RESTORE with AC_LANG_PUSH/AC_LANG_POP.
Akim Demaille [Thu, 11 May 2000 12:41:33 +0000 (12:41 +0000)] 
Replace AC_LANG_SAVE/AC_LANG_RESTORE with AC_LANG_PUSH/AC_LANG_POP.

* aclang.m4 (_AC_LANG_CURRENT, AC_LANG_STACK): You two are the same
thing, which now we shall name `_AC_LANG'.
All users adjusted.
(AC_LANG_PUSH, AC_LANG_POP): New macros.
(AC_LANG_SAVE, AC_LANG_RESTORE): AU defined.
(AC_PROG_CC_WORKS, AC_PROG_CXXCPP, AC_PROG_CXX_WORKS,
AC_PROG_F77_WORKS, AC_F77_LIBRARY_LDFLAGS, AC_F77_NAME_MANGLING):
Use them.
(AC_F77_LIBRARY_LDFLAGS): Move the requirements at its top.
* doc/autoconf.texi (Language Choice): Document them.
(Old Macros): Welcome AC_LANG_SAVE and AC_LANG_RESTORE.

25 years ago* aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Less adventurous use of
Akim Demaille [Thu, 11 May 2000 11:14:03 +0000 (11:14 +0000)] 
* aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Less adventurous use of
`test'.
Fixes Autoconf/108.

25 years ago* doc/autoconf.texi (Particular Headers): Some more sorting.
Akim Demaille [Thu, 11 May 2000 10:08:48 +0000 (10:08 +0000)] 
* doc/autoconf.texi (Particular Headers): Some more sorting.
Use `@multitable'.

25 years ago* acspecific.m4 (_AC_CHECK_HEADER_DIRENT): Use more modern
Akim Demaille [Thu, 11 May 2000 08:31:16 +0000 (08:31 +0000)] 
* acspecific.m4 (_AC_CHECK_HEADER_DIRENT): Use more modern
Autoconf idioms.
(_AC_CHECK_HEADERS_DIRENT): Removed, instead...
(AC_HEADER_DIRENT): Handle the loop.

25 years agoProvide a means to track the dependencies of files created by
Akim Demaille [Thu, 11 May 2000 08:14:18 +0000 (08:14 +0000)] 
Provide a means to track the dependencies of files created by
`configure'.

* acgeneral.m4 (AT_FILE_DEPENDENCY, _AC_CONFIG_DEPENDENCY,
_AC_CONFIG_DEPENDENCIES): New macros.
(AC_CONFIG_FILES, AC_CONFIG_HEADERS, AC_CONFIG_LINKS): Use them.

25 years agoMerge AC_DECL_YYTEXT into AC_PROG_LEX.
Akim Demaille [Thu, 11 May 2000 07:59:08 +0000 (07:59 +0000)] 
Merge AC_DECL_YYTEXT into AC_PROG_LEX.

* acgeneral.m4 (AC_DECL_YYTEXT): Rename as
(_AC_DECL_YYTEXT): this.
(AC_PROG_LEX): Use it.
(AC_DECL_YYTEXT): New AU macro.
* doc/autoconf.texi: Adjust.

25 years ago* aclang.m4 (AC_F77_NAME_MANGLING): Use AC_COMPILE_IFELSE.
Akim Demaille [Wed, 10 May 2000 17:11:21 +0000 (17:11 +0000)] 
* aclang.m4 (AC_F77_NAME_MANGLING): Use AC_COMPILE_IFELSE.
Move the requirements at the top of the macro.

25 years agoUpdate and polish the documentation.
Akim Demaille [Wed, 10 May 2000 16:52:35 +0000 (16:52 +0000)] 
Update and polish the documentation.

* doc/autoconf.texi: Use @sc where upper case names were used.
Remove a few useless `dnl'.
Convert some `dnl' into comments.
Promote `$(foo)' in Makefiles, not `${foo}'.
Promote `$foo' in shell scripts, not `${foo}'.
Promote `foo = bar' in Makefiles, not `foo=bar'.
(Language Choice): Document `AC_LANG', move `AC_LANG_C',
`AC_LANG_CPLUSPLUS' and `AC_LANG_FORTRAN77' to
(Old Macros): here.
* doc/install.texi: Fix a typo in the specification of the system
quadruples.

25 years ago* libm4.m4 (m4_foreach): Rewritten so that it does not require
Akim Demaille [Wed, 10 May 2000 16:16:31 +0000 (16:16 +0000)] 
* libm4.m4 (m4_foreach): Rewritten so that it does not require
lists in between parens.
(m4_foreach_quoted): new copy of the previous `m4_foreach' which
is still used by `m4_wrap'.
* acgeneral.m4 (AC_INCLUDE, AC_INCLUDES): Removed.
(AC_FOREACH): Don't use parens with `m4_foreach'.
(AC_CHECK_MEMBER, AC_CHECK_DECLS, AC_CHECK_TYPES): Adjust the
description.
* acspecific.m4 (AC_STRUCT_TIMEZONE, AC_STRUCT_ST_BLKSIZE,
AC_STRUCT_ST_BLOCKS, AC_STRUCT_ST_RDEV): Adjust.
* autoconf.texi (AC_CHECK_MEMBER, AC_CHECK_DECLS, AC_CHECK_TYPES):
Adjust their documentation.
(AC_INCLUDE): Undocument.
* tests/semantics.m4: Adjust.
* tests/actest.m4: Rename as...
* tests/aclocal.m4: this.
* tests/atspecific.m4: No longer include actest.m4.
* tests/torture.m4: Likewise.
* tests/Makefile.am: Adjust.

25 years ago* doc/autoconf.texi (Obsolete Macros): Document `AU_DEFUN'.
Akim Demaille [Wed, 10 May 2000 15:39:22 +0000 (15:39 +0000)] 
* doc/autoconf.texi (Obsolete Macros): Document `AU_DEFUN'.
Move the documentation of `AC_OBSOLETE' from here, to...
(Old Macros): here.
* acspecific.m4 (AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV):
AU_DEFUN'd.

25 years ago* acgeneral.m4 (AC_LIBOBJ_DECL, AC_LIBOBJ): New macros.
Akim Demaille [Wed, 10 May 2000 11:47:35 +0000 (11:47 +0000)] 
* acgeneral.m4 (AC_LIBOBJ_DECL, AC_LIBOBJ): New macros.
(AC_REPLACE_FUNCS): Use AC_LIBOBJ.
* acspecific.m4 (AC_FUNC_MKTIME, AC_FUNC_MEMCMP,
AC_STRUCT_ST_BLOCKS): Use AC_LIBOBJ.
* doc/autoconf.texi : Adjust so that the user is not encouraged to
use LIBOBJS directly.
(Generic Functions): Document AC_LIBOBJ_DECL and AC_LIBOBJ.

25 years ago.
Jim Meyering [Tue, 9 May 2000 11:22:11 +0000 (11:22 +0000)] 
.

25 years ago(AC_SEARCH_LIBS): Remove double quotes around `no'.
Jim Meyering [Tue, 9 May 2000 11:21:46 +0000 (11:21 +0000)] 
(AC_SEARCH_LIBS): Remove double quotes around `no'.

25 years ago* acgeneral.m4 (_AC_OUTPUT_FILES): Don't automatically spit
Akim Demaille [Tue, 9 May 2000 11:01:20 +0000 (11:01 +0000)] 
* acgeneral.m4 (_AC_OUTPUT_FILES): Don't automatically spit
`Generated by...' in Makefiles.
Fixes Autoconf/102.

25 years agoLet `config.status' use a private temp dir.
Akim Demaille [Tue, 9 May 2000 09:45:04 +0000 (09:45 +0000)] 
Let `config.status' use a private temp dir.
Suggested by Jim Meyering.

* acgeneral.m4 (_AC_SHELL_TMPDIR): New macro.
(_AC_OUTPUT_CONFIG_STATUS): Use it.
Use more quoted here docs to improve readability.
Compute `$me' and use it in the error messages.
Define `$configure' and `$configure_args' to avoid continuously
mixing the uses of `configure' and `config.status' evaluation in a
single line.
Define `$SHELL' and use it.
Simplify all the unjustified `[$]foo' into `$foo', the quotes
are needed only for `$[1]', `$[@]' etc.
Replace all the uses of `ac_cs_root' with files in the tmp dir of
`config.status'.
Remove a few `rm' covered by the removal of the `$tmp' dir.
Let `config.status' support `--debug'.
(_AC_INIT_PREPARE): Avoid the leading space in `ac_configure_args'.
* doc/autoconf.texi (Invoking config.status): Adjust.

25 years ago*** empty log message ***
Jim Meyering [Fri, 5 May 2000 15:00:19 +0000 (15:00 +0000)] 
*** empty log message ***

25 years ago(_AC_OUTPUT_CONFIG_STATUS): Set up traps to remove
Jim Meyering [Fri, 5 May 2000 14:58:44 +0000 (14:58 +0000)] 
(_AC_OUTPUT_CONFIG_STATUS): Set up traps to remove
temporaries upon exit, too, not just upon receipt of signal.

25 years agoAC_CHECK_PROG macro fails if REJECT value is set under Digital
Akim Demaille [Fri, 5 May 2000 13:29:47 +0000 (13:29 +0000)] 
AC_CHECK_PROG macro fails if REJECT value is set under Digital
Unix 4.0x and 5.0 because `"$@"' expands into an empty parameter
(instead of nothing) when there are no positional parameters.
From Nicolas Joly.

* acgeneral.m4 (AC_CHECK_PROG, AC_CHECK_PROGS): Prefer
`$$1' to `[$]$1', `$foo' to `[$]foo', `$[1]' to `[$]1', and
`${1+"$[@]"}' to `"[$]@"'.

25 years agoFix typos in ChangeLog.
Akim Demaille [Thu, 4 May 2000 11:53:58 +0000 (11:53 +0000)] 
Fix typos in ChangeLog.

25 years agoAC_PREREQ understand `2.14a' as `2.141'.
Akim Demaille [Thu, 4 May 2000 11:39:46 +0000 (11:39 +0000)] 
AC_PREREQ understand `2.14a' as `2.141'.
Reported by Didier Verna.

* acgeneral.m4 (AC_PREREQ): Don't quote AC_ACVERSION.

25 years ago* acgeneral.m4 (AH_TOP, AH_BOTTOM): New macros.
Akim Demaille [Thu, 4 May 2000 10:26:02 +0000 (10:26 +0000)] 
* acgeneral.m4 (AH_TOP, AH_BOTTOM): New macros.
(_AH_COUNTER): New variable.
* tests/tools.m4 (autoheader): Check their proper functioning.

25 years ago* doc/autoconf.texi (Obsolete Macros): Rename as...
Akim Demaille [Thu, 4 May 2000 09:25:43 +0000 (09:25 +0000)] 
* doc/autoconf.texi (Obsolete Macros): Rename as...
(Obsoleting Macros): this.
(Old Macros): Rename as...
(Obsolete Macros): this.
Be a section of...
(Obsolete Constructs): New chapter.
(Invoking autoheader): Move the `acconfig.h' documentation to...
(acconfig.h): here, new section of `Obsolete Constructs'.
(Autoheader Macros): Document AH_VERBATIM, AH_TEMPLATE, AH_TOP and
AH_BOTTOM.

25 years ago* autoheader.sh (config_h): Added templates sort. Under NetBSD 1.4.1
Akim Demaille [Wed, 3 May 2000 15:43:40 +0000 (15:43 +0000)] 
* autoheader.sh (config_h): Added templates sort. Under NetBSD 1.4.1
/bin/sh `set' command do not return a sorted variables list.

25 years ago* tests/tools.m4 (autoheader): Don't pass `-l at_srcdir' to
Akim Demaille [Wed, 3 May 2000 12:28:17 +0000 (12:28 +0000)] 
* tests/tools.m4 (autoheader): Don't pass `-l at_srcdir' to
`autoheader', since `acconfig.h' is created in the build dir.
There's one empty line less in `config.h.in' than before when
using `acconfig.h'.

25 years agoSimplify the handling of `acconfig.h'.
Akim Demaille [Wed, 3 May 2000 11:22:50 +0000 (11:22 +0000)] 
Simplify the handling of `acconfig.h'.

* autoheader.sh: No longer try to select the needed paragraphs of
`acconfig.h', just dump everything into `config.h.in'.
Implement support for `--warnings'.
Warn the users that these auxiliary files are obsolete when `-W
obsolete'.
* doc/autoconf.texi (Invoking autoheader): Adjust.

25 years agoSupport of acconfig.h was broken. Fix and test.
Akim Demaille [Wed, 3 May 2000 11:00:46 +0000 (11:00 +0000)] 
Support of acconfig.h was broken.  Fix and test.
Reported by Jim Meyering.

* autoheader.sh: Trace AC_DEFINE and AC_DEFINE_UNQUOTED to build
the list of $syms which are defined.
* tests/tools.m4 (autoheader): New test.

25 years agoRename the language FORTRAN77 as Fortran 77.
Akim Demaille [Wed, 3 May 2000 10:08:37 +0000 (10:08 +0000)] 
Rename the language FORTRAN77 as Fortran 77.

* aclang.m4 (AC_LANG(FORTRAN77), AC_LANG_SOURCE(FORTRAN77),
AC_LANG_PROGRAM(FORTRAN77), AC_LANG_CALL(FORTRAN77)): Rename as...
(AC_LANG(Fortran 77), AC_LANG_SOURCE(Fortran 77),
AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77)): This.
(AC_LANG_FORTRAN77): Adjust.

25 years agoProvide a macro to canonicalize a configuration name.
Akim Demaille [Wed, 3 May 2000 09:53:55 +0000 (09:53 +0000)] 
Provide a macro to canonicalize a configuration name.
Suggested by Ralf Corsepius.

*  acgeneral.m4 (AC_CANONICALIZE): New macro.
(_AC_CANONICAL_THING): Use it.

25 years agoDon't double quote in AC_MSG_*.
Akim Demaille [Wed, 3 May 2000 08:53:06 +0000 (08:53 +0000)] 
Don't double quote in AC_MSG_*.

* acgeneral.m4 (_AC_SH_QUOTE): Don't double quote.  Escape the
double quotes too.
(_AC_ECHO_UNQUOTED): Don't double quote :).
(_AC_ECHO, _AC_ECHO_N): Quote the call to _AC_SH_QUOTE.

The autoheader chain needs to be adjusted.

* acgeneral.m4 (AH_VERBATIM): Just pass two arguments to AH_OUTPUT
instead of trying to build what `autoheader' needs: let it handle
the format by itself.
* autoheader.m4: Adjust.
s,tmp/config.h,tmp/config.hin.

The adjustment revealed that `autoconf --trace' is not robust to
single quotes in its argument.

* autoconf.sh: Fix this issue.
Rename the escape `$*' as `$%'.  Implement `$@'.
* doc/autoconf.texi: Adjust.

25 years agomawk suffers a severe performance loss when using `sub' with a
Akim Demaille [Fri, 28 Apr 2000 09:46:55 +0000 (09:46 +0000)] 
mawk suffers a severe performance loss when using `sub' with a
changing value.  On the `configure' script of the fileutils:
mawk '{ sub (/foo/, foo++) }'                  -> 14s.
mawk '{ if ($0 ~ /foo/) sub (/foo/, foo++) }'  -> 0.03s.
mawk '{ sub (/foo/, foo) }'                    -> 0.03s.

* autoconf.sh (task script, AWK script): Run `sub (__oline__,
oline)' only in the lines that match `__oline__'.
Suggested by Paul Eggert.

25 years ago* autoconf.sh (options handling::-W*): Strip two leading chars, not
Akim Demaille [Fri, 28 Apr 2000 09:07:21 +0000 (09:07 +0000)] 
* autoconf.sh (options handling::-W*): Strip two leading chars, not
just one.

25 years agoUpdate foreign files.
Akim Demaille [Thu, 27 Apr 2000 17:28:54 +0000 (17:28 +0000)] 
Update foreign files.

25 years ago* acspecific.m4 (AC_FUNC_MKTIME): Use AC_SUBST.
Akim Demaille [Thu, 20 Apr 2000 11:49:53 +0000 (11:49 +0000)] 
* acspecific.m4 (AC_FUNC_MKTIME): Use AC_SUBST.

25 years agoProvide a fine grained control over autoconf's warnings.
Akim Demaille [Thu, 13 Apr 2000 08:25:11 +0000 (08:25 +0000)] 
Provide a fine grained control over autoconf's warnings.

* acgeneral.m4 (AC_WARNING_IFELSE, _AC_DIAGNOSE, AC_DIAGNOSE):
New macros.
(AC_DEFUN_ONCE, AC_OBSOLETE, AC_BEFORE, AU_DEFUN, AC_PREREQ,
AC_WARNING, AC_FATAL, AC_TRY_RUN): Use AC_DIAGNOSE.
* autoconf.sh: Provide support for `--warnings', `-W'.
* doc/autoconf.texi (Invoking autoconf): Adjust.
(Reporting Messages): New section.

25 years agoMore doc on AC_PROG_CC_C_O
Akim Demaille [Thu, 13 Apr 2000 08:00:38 +0000 (08:00 +0000)] 
More doc on AC_PROG_CC_C_O

25 years ago* acgeneral.m4 (_AC_INIT_HELP): Move --srcdir in the first
Akim Demaille [Wed, 12 Apr 2000 11:50:57 +0000 (11:50 +0000)] 
* acgeneral.m4 (_AC_INIT_HELP): Move --srcdir in the first
section.
Document --help=short and recursive.
Split the `Directory' section into `Installation directories' for
--prefix and --exec-prefix, and all the others into `Fine tuning
of the installation directories'.
In the latter, don't repeat `in DIR', the user understands, and it
comes out better.
Default for --exec-prefix is PREFIX.
Reported by Kathryn Hargreaves.
Move --host before --build.
Fix a test on `$ac_init_help' which was not updated.

25 years agoHave `make check' succeed with CC=g++.
Akim Demaille [Tue, 11 Apr 2000 12:07:45 +0000 (12:07 +0000)] 
Have `make check' succeed with CC=g++.

* tests/atspecific.m4 (AT_TEST_MACRO): Don't check `env-after' if
the file does not exist, which may happen when a `configure' exits
brutally.
* tests/semantics.m4 (AC_CHECK_MEMBERS, AC_CHECK_TYPES): ANSI C++
forbids members named like their hosting struct, so don't do it.

25 years ago* autoscan.pl: Reindent using 2 spaces, not 4.
Akim Demaille [Tue, 11 Apr 2000 12:06:12 +0000 (12:06 +0000)] 
* autoscan.pl: Reindent using 2 spaces, not 4.
Use `#' to denote Autoconf comments, not `dnl'.
Put a few `' here and there to avoid misfontification and
misindentation.
Use your base name when reporting errors.
(parse_args::usage): Use $0, use the same order as the other
executables.
(parse_args): Don't dump `--help' on cmd line errors.

25 years ago* acgeneral.m4 (AC_PROVIDE_IF): Rename as...
Akim Demaille [Tue, 11 Apr 2000 12:02:34 +0000 (12:02 +0000)] 
* acgeneral.m4 (AC_PROVIDE_IF): Rename as...
(AC_PROVIDE_IFELSE): this.  Change all callers.
Spread the use of AC_PROVIDE_IFELSE, no macro should know how
AC_PROVIDE names its internal variables.

25 years ago* acgeneral.m4: Simplify all the `foo="$bar"' into `foo=$bar'.
Akim Demaille [Tue, 11 Apr 2000 12:00:13 +0000 (12:00 +0000)] 
* acgeneral.m4: Simplify all the `foo="$bar"' into `foo=$bar'.
* acspecific.m4: Likewise.
* aclang.m4: Likewise.

25 years agoMove obsolete macros' definitions out of the way.
Akim Demaille [Tue, 11 Apr 2000 11:53:26 +0000 (11:53 +0000)] 
Move obsolete macros' definitions out of the way.

* doc/autoconf.texi (Old Macro Names): Rename as...
(Old Macros): this.  Change the @table enumeration into a list of
@defmac.
(AC_CHECKING, AC_CHECK_TYPE, AC_COMPILE_CHECK, AC_C_CROSS,
AC_DYNIX_SEQ, AC_HAVE_LIBRARY, AC_IRIX_SUN, AC_LINK_FILES,
AC_OUTPUT, AC_OUTPUT_COMMANDS, AC_SCO_INTL, AC_VERBOSE,
AC_XENIX_DIR): Move their descriptions into here.
Kill a few TeX warnings.

25 years ago* acgeneral.m4 (AC_MSG_ERROR_UNQUOTED): Remove.
Akim Demaille [Tue, 11 Apr 2000 10:13:05 +0000 (10:13 +0000)] 
* acgeneral.m4 (AC_MSG_ERROR_UNQUOTED): Remove.
(AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED): Output to the log too.
(AC_CHECKING, AC_VERBOSE): AU_ define.

25 years ago* acgeneral.m4: s/1>&/>&/g.
Akim Demaille [Tue, 11 Apr 2000 09:21:29 +0000 (09:21 +0000)] 
* acgeneral.m4: s/1>&/>&/g.
(AC_FD_LOG): New macro, replaces...
(AC_FD_CC): this.  Provide an AU definition.
(_AC_ECHO_UNQUOTED, _AC_ECHO_N): Use m4_default.

25 years agoAt the end of `./configure', save the cache values, and the CPP
Akim Demaille [Wed, 5 Apr 2000 08:53:19 +0000 (08:53 +0000)] 
At the end of `./configure', save the cache values, and the CPP
values.

* acgeneral.m4 (_AC_CACHE_DUMP): New macro.
(AC_CACHE_SAVE, AC_OUTPUT): Use it.
(AC_OUTPUT): Dump confdefs.h into config.log.
(_AC_INIT_PREPARE::config.log): Name the package being configured
if you can.

25 years agoDisable caching by default, so as not to cause problems when
Akim Demaille [Wed, 5 Apr 2000 07:42:06 +0000 (07:42 +0000)] 
Disable caching by default, so as not to cause problems when
newbies accidentally use a stale cache file.

* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Set cache_file to /dev/null
to disable caching by default.
(_AC_INIT_HELP): Adjust the --help message.
(AC_CACHE_LOAD, AC_CACHE_SAVE): Don't print "loading/updating
/dev/null" messages.
* autoconf.texi: Note that caching is disabled, how to enable it,
and that `./config.cache' is the traditional name of the cache file.
* install.texi: Likewise.

25 years ago* acgeneral.m4 (_AC_INIT_PARSE_ARGS): If any option waiting for a
Akim Demaille [Mon, 3 Apr 2000 16:16:09 +0000 (16:16 +0000)] 
* acgeneral.m4 (_AC_INIT_PARSE_ARGS): If any option waiting for a
directory receives a relative path, die (bindir, sbindir,
libexecdir, datadir, sysconfdir, sharedstatedir, localstatedir,
libdir, includedir, oldincludedir, infodir, mandir, exec_prefix,
prefix).  Fixes Autoconf 42.

25 years agoFix typo.
Akim Demaille [Mon, 3 Apr 2000 12:33:59 +0000 (12:33 +0000)] 
Fix typo.

25 years ago* doc/autoconf.texi (Canonicalizing): Officially recognize
Akim Demaille [Mon, 3 Apr 2000 12:05:02 +0000 (12:05 +0000)] 
* doc/autoconf.texi (Canonicalizing): Officially recognize
AC_CANONICAL_TARGET and AC_CANONICAL_BUILD.

25 years agoMore doc on portability.
Akim Demaille [Mon, 3 Apr 2000 12:02:37 +0000 (12:02 +0000)] 
More doc on portability.

25 years agoMore doc on quotation.
Akim Demaille [Mon, 3 Apr 2000 12:01:27 +0000 (12:01 +0000)] 
More doc on quotation.

25 years ago* doc/autoconf.texi (Writing configure.in): Explain what Autoconf
Akim Demaille [Mon, 3 Apr 2000 11:59:27 +0000 (11:59 +0000)] 
* doc/autoconf.texi (Writing configure.in): Explain what Autoconf
is.  Explain how to use the quotation scheme used in Autoconf.
(Quoting): Update.  Do not advocate changequote.

25 years agoFix typo.
Akim Demaille [Mon, 3 Apr 2000 11:19:22 +0000 (11:19 +0000)] 
Fix typo.

25 years agoFix F77 name-mangling macros to work with cached values (so
Akim Demaille [Mon, 3 Apr 2000 08:47:05 +0000 (08:47 +0000)] 
Fix F77 name-mangling macros to work with cached values (so
they don't break the second time you run configure).

* aclang.m4 (AC_F77_NAME_MANGLING): Extract f77_case,
f77_underscore from cache variable.
(AC_F77_WRAPPERS): Get rid of ac_cv_f77_wrappers, it's useless.
Simplify the nested case-esac into a single one.
Simplify the documentation strings of CPP symbols.

25 years ago* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the accumulation in
Akim Demaille [Fri, 31 Mar 2000 15:47:30 +0000 (15:47 +0000)] 
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the accumulation in
CONFIG_HEADERS.

25 years ago* autoheader.sh: Catch up with the `mktemp -d' changes in
Akim Demaille [Fri, 31 Mar 2000 08:20:09 +0000 (08:20 +0000)] 
* autoheader.sh: Catch up with the `mktemp -d' changes in
autoconf.sh.
* autoupdate.sh: Likewise.

25 years ago* aclang.m4 (AC_F77_LIBRARY_LDFLAGS): bug fix in F77 test program
Akim Demaille [Fri, 31 Mar 2000 08:06:38 +0000 (08:06 +0000)] 
* aclang.m4 (AC_F77_LIBRARY_LDFLAGS): bug fix in F77 test program
(missing whitespace--F77 requires program statements to start in
column 7).

25 years agoRewrite the autoheader chain on top of `autoconf --trace'.
Akim Demaille [Wed, 29 Mar 2000 16:48:00 +0000 (16:48 +0000)] 
Rewrite the autoheader chain on top of `autoconf --trace'.

* autoheader.m4: Dispatch the prototypes next to there AC_
siblings.
(AH_TEMPLATE, AH_VERBATIM): Move to...
* acgeneral.m4: here.
(AH_OUTPUT): New macro.
* autoheader.sh: Run `autoconf --trace' instead of `m4 autoheader.m4'.
* autoheader.m4: Remove.
* Makefile.am: Adjust.
* tests/tools.m4 (AH_DEFUN): Remove, no longer makes sense.
* tests/actests.m4 (autoheader::AC_TATOOINE): Remove, was used by
the test above.

25 years agosilent.m4 depends upon the current quotation in m4, which changes
Akim Demaille [Wed, 29 Mar 2000 16:18:52 +0000 (16:18 +0000)] 
silent.m4 depends upon the current quotation in m4, which changes
if `-i' is used or not.

* autoconf.sh (trace::silent.m4): Removed.
(trace::run_m4_trace): Pass -Derrprint.

25 years agoFix the call to umask in the previous checkin.
Akim Demaille [Wed, 29 Mar 2000 16:15:22 +0000 (16:15 +0000)] 
Fix the call to umask in the previous checkin.

25 years agoUse `mktemp -d' when possible to create securely a tmp work dir.
Akim Demaille [Wed, 29 Mar 2000 11:09:59 +0000 (11:09 +0000)] 
Use `mktemp -d' when possible to create securely a tmp work dir.

* autoconf.sh: Use it when possible to create the dir $tmp.
Stop using variables for tmp files, use their names in $tmp.
[install]: Use the new features of autoconf --trace.

25 years agoProbably all the versions of bash up to 2.04 fail on
Akim Demaille [Tue, 28 Mar 2000 14:48:56 +0000 (14:48 +0000)] 
Probably all the versions of bash up to 2.04 fail on
  fnmatch ("/tmp", "[/\\]")
The backslash must not be last.

* acgeneral.m4 (_AC_INIT_HELP, AC_PATH_PROG, _AC_OUTPUT_FILES,
_AC_OUTPUT_LINKS, _AC_OUTPUT_SUBDIRS): Always make `\' be the
first character in all the `[]' of `case' patterns.

25 years agoUpdate NEWS.
Akim Demaille [Tue, 28 Mar 2000 13:36:43 +0000 (13:36 +0000)] 
Update NEWS.

25 years ago* acgeneral.m4 (_AC_CHECK_TOOL_PREFIX): Rename back as
Akim Demaille [Mon, 27 Mar 2000 15:47:35 +0000 (15:47 +0000)] 
* acgeneral.m4 (_AC_CHECK_TOOL_PREFIX): Rename back as
AC_CHECK_TOOL_PREFIX since some packages rely on it.

25 years agoMove all the language dependent macros into aclang.m4.
Akim Demaille [Mon, 27 Mar 2000 12:26:33 +0000 (12:26 +0000)] 
Move all the language dependent macros into aclang.m4.

* aclang.m4: New file.
* autoconf.m4: Include it.
* autoheader.m4: Likewise.
* autoupdate.m4: Likewise.
* Makefile.am: Adjust.
* test/Makefile.am: Likewise.
* acgeneral.m4 (AC_LANG_CASE,AC_LANG_SAVE, _AC_LANG_DISPATCH,
AC_LANG, _AC_LANG_CURRENT, AC_LANG_SOURCE, AC_LANG_PROGRAM,
AC_LANG_CALL, AC_LANG(C), AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C),
AC_LANG_CALL(C), AC_LANG(C++), AC_LANG_SOURCE(C++),
AC_LANG_PROGRAM(C++), AC_LANG_CALL(C++), AC_LANG(FORTRAN77),
AC_LANG_SOURCE(FORTRAN77), AC_LANG_PROGRAM(FORTRAN77),
AC_LANG_CALL(FORTRAN77): Move to...
* aclang.m4: here.
* acspecific.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77,
AC_PROG_CC_WORKS, AC_PROG_CXX_WORKS, AC_PROG_F77_WORKS,
AC_PROG_CC_GNU, AC_PROG_CXX_GNU, AC_PROG_F77_GNU, AC_PROG_CC_G,
AC_PROG_CXX_G, AC_PROG_F77_G, AC_PROG_GCC_TRADITIONAL,
AC_PROG_CC_C_O, AC_PROG_F77_C_O, AC_PROG_CC_STDC, AC_PROG_CPP,
AC_PROG_CXXCPP, AC_REQUIRE_CPP, AC_PROG_LEX, AC_TYPE_MODE_T,
AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE, AC_C_BIGENDIAN,
AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE, AC_C_STRINGIZE,
AC_C_PROTOTYPES, AC_F77_LIBRARY_LDFLAGS, AC_F77_NAME_MANGLING,
AC_F77_WRAPPERS): Move to...
* aclang.m4: here.

25 years ago* autoconf.sh (trace): Let translate_awk do the whole translation
Akim Demaille [Mon, 27 Mar 2000 12:19:01 +0000 (12:19 +0000)] 
* autoconf.sh (trace): Let translate_awk do the whole translation
from `$trace' to the m4 program.

25 years ago* acgeneral.m4 (AC_PACKAGE): Also define AC_PACKAGE_STRING.
Akim Demaille [Mon, 27 Mar 2000 12:03:56 +0000 (12:03 +0000)] 
* acgeneral.m4 (AC_PACKAGE): Also define AC_PACKAGE_STRING.
Use it here and there.

25 years ago* acgeneral.m4 (_AC_INIT_HELP, _AC_OUTPUT_SUBDIRS): Fix the DOS
Akim Demaille [Mon, 27 Mar 2000 11:44:22 +0000 (11:44 +0000)] 
* acgeneral.m4 (_AC_INIT_HELP, _AC_OUTPUT_SUBDIRS): Fix the DOS
absolute path pattern: s/?:[[/\]]/?:[[/\]]*/.

25 years ago* acgeneral.m4 (_AC_CANONICAL_TARGET, _AC_CANONICAL_BUILD): Rename
Akim Demaille [Sat, 25 Mar 2000 09:24:16 +0000 (09:24 +0000)] 
* acgeneral.m4 (_AC_CANONICAL_TARGET, _AC_CANONICAL_BUILD): Rename
as (AC_CANONICAL_TARGET, AC_CANONICAL_BUILD), although internal,
too much foreign code depends upon them.

25 years ago* autoconf.sh (translate_awk): `> "/dev/stderr"' is not portable
Akim Demaille [Sat, 25 Mar 2000 09:17:40 +0000 (09:17 +0000)] 
* autoconf.sh (translate_awk): `> "/dev/stderr"' is not portable
to systems without a real /dev/stderr in the file system or if not
using one of the three free awks.  Use
print message | "cat >&2"
...
END { close("cat >&2") }
From Aharon Robbins.

25 years ago* autoheader.sh (checking completeness): Be ready to recognize
Akim Demaille [Sat, 25 Mar 2000 09:16:53 +0000 (09:16 +0000)] 
* autoheader.sh (checking completeness): Be ready to recognize
patterns with a value, and spaces between `#' and the directive, e.g.
# define FOO FIXME:
Reported by John Fortin.

25 years ago* acgeneral.m4 (AC_RUN_IFELSE): New macro.
Akim Demaille [Sat, 25 Mar 2000 09:12:59 +0000 (09:12 +0000)] 
* acgeneral.m4 (AC_RUN_IFELSE): New macro.
(AC_TRY_RUN_NATIVE): Remove.
(AC_TRY_RUN): Use AC_RUN_IFELSE, not AC_TRY_RUN_NATIVE.

25 years ago* acgeneral.m4 (AC_CHECK_LIB): Ah ah! I recognized you, even
Akim Demaille [Sat, 25 Mar 2000 09:07:37 +0000 (09:07 +0000)] 
* acgeneral.m4 (AC_CHECK_LIB): Ah ah!  I recognized you, even
masked: you are AC_TRY_LINK_FUNC.
Fix quotation.
(AC_SEARCH_LIBS): Use AC_SHELL_IFELSE.

25 years ago* tests/semantics.m4 (AC_TRY_LINK_FUNC, AC_CHECK_LIB): New tests.
Akim Demaille [Sat, 25 Mar 2000 09:06:24 +0000 (09:06 +0000)] 
* tests/semantics.m4 (AC_TRY_LINK_FUNC, AC_CHECK_LIB): New tests.

25 years ago* acgeneral.m4 (AC_LANG_CALL, AC_LANG_CALL(C), AC_LANG_CALL(C++),
Akim Demaille [Sat, 25 Mar 2000 09:05:22 +0000 (09:05 +0000)] 
* acgeneral.m4 (AC_LANG_CALL, AC_LANG_CALL(C), AC_LANG_CALL(C++),
AC_LANG_CALL(FORTRAN77)): New macros.
(AC_TRY_LINK_FUNC): Use it.
(AC_TRY_CPP): Argument was output twice.
(AC_COMPILE_IFELSE, AC_LINK_IFELSE): Output $3 only if needed.

25 years ago* acgeneral.m4 (AC_TRY_COMPILER): Use AC_LINK_IFELSE.
Akim Demaille [Sat, 25 Mar 2000 09:04:13 +0000 (09:04 +0000)] 
* acgeneral.m4 (AC_TRY_COMPILER): Use AC_LINK_IFELSE.
(AC_TRY_LINK_FUNC, AC_CHECK_LIB, AC_CHECK_FUNC): Don't check that
the current language is C++ to output `extern "C"': the CPP
condition is enough.

25 years ago* acgeneral.m4 (AC_LINK_IFELSE, AC_COMPILE_IFELSE): New macros.
Akim Demaille [Sat, 25 Mar 2000 09:00:53 +0000 (09:00 +0000)] 
* acgeneral.m4 (AC_LINK_IFELSE, AC_COMPILE_IFELSE): New macros.
(AC_TRY_LINK, AC_TRY_COMPILE): Use them.
(AC_CHECK_MEMBER, AC_COMPILE_CHECK, AC_CHECK_DECL,
_AC_CHECK_TYPE_NEW): Adjust.
* acspecific.m4 (AC_DECL_YYTEXT, AC_PATH_XTRA): Adjust.

25 years ago* acspecific.m4 (AC_F77_NAME_MANGLING): Need to use
Akim Demaille [Fri, 24 Mar 2000 09:03:56 +0000 (09:03 +0000)] 
* acspecific.m4 (AC_F77_NAME_MANGLING): Need to use
AC_F77_LIBRARY_LDFLAGS when linking C and Fortran code.

25 years ago* acgeneral.m4 (AC_LANG_PROGRAM, AC_LANG_PROGRAM(C),
Akim Demaille [Thu, 23 Mar 2000 18:15:28 +0000 (18:15 +0000)] 
* acgeneral.m4 (AC_LANG_PROGRAM, AC_LANG_PROGRAM(C),
AC_LANG_PROGRAM(C++), AC_LANG_PROGRAM(FORTRAN77)): New macros.
(AC_TRY_COMPILE, AC_TRY_LINK): Use them.

25 years ago* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Support --help={long, short,
Akim Demaille [Thu, 23 Mar 2000 18:10:42 +0000 (18:10 +0000)] 
* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Support --help={long, short,
recursive}.
(_AC_INIT_HELP): Propagate --help=recursive to CONFIG_SUBDIRS.
Code stolen from...
(AC_OUTPUT_SUBDIRS): s/ac_config_dir/ac_subdir/g.

25 years ago* libm4.m4 (m4_do): New macro.
Akim Demaille [Thu, 23 Mar 2000 16:14:57 +0000 (16:14 +0000)] 
* libm4.m4 (m4_do): New macro.

25 years agoTypos in ChangeLog
Akim Demaille [Thu, 23 Mar 2000 16:11:19 +0000 (16:11 +0000)] 
Typos in ChangeLog

25 years agoProvide a language independent means to generate language specific
Akim Demaille [Tue, 21 Mar 2000 12:41:22 +0000 (12:41 +0000)] 
Provide a language independent means to generate language specific
programs.

* acgeneral.m4 (_AC_LANG_DISPATCH): New macro.
(AC_LANG): Use it.
(AC_LANG_SOURCE, AC_LANG_SOURCE(C), AC_LANG_SOURCE(C++),
AC_LANG_SOURCE(FORTRAN77)): New macros.
(AC_TRY_COMPILER, AC_EGREP_CPP, AC_TRY_RUN_NATIVE): Use
AC_LANG_SOURCE.

25 years agoFix a bug: some macros (e.g., AC_REVISION, AC_COPYRIGHT etc.) can
Akim Demaille [Tue, 21 Mar 2000 12:33:37 +0000 (12:33 +0000)] 
Fix a bug: some macros (e.g., AC_REVISION, AC_COPYRIGHT etc.) can
be used before AC_INIT, but they do require it.  But then, the
argument of the explicit AC_INIT call is lost.

* acgeneral.m4 (AC_CONFIG_SRCDIR): New macro.
(_AC_INIT_SRCDIR): Adjust.
(_AC_INIT): Pass your argument to AC_CONFIG_SRCDIR.

25 years ago* tests/semantics.m4 (AC_PATH_PROG, AC_PATH_PROGS): New tests.
Akim Demaille [Tue, 21 Mar 2000 12:22:27 +0000 (12:22 +0000)] 
* tests/semantics.m4 (AC_PATH_PROG, AC_PATH_PROGS): New tests.

25 years agoStart the language support overhaul: Introduce AC_LANG().
Akim Demaille [Tue, 21 Mar 2000 12:15:54 +0000 (12:15 +0000)] 
Start the language support overhaul: Introduce AC_LANG().

* acgeneral.m4 (AC_LANG): Renamed as _AC_LANG_CURRENT.
(AC_LANG, AC_LANG(C), AC_LANG(C++), AC_LANG(FORTRAN77)): New
macros.
(AC_LANG_C, AC_LANG_CPLUSPLUS, AC_LANG_FORTRAN): AU_DEFUN'ed.
Adjust all callers.
* acspecific.m4 (AC_F77_NAME_MANGLING): Remove the exceeding
AC_LANG_RESTORE.
* tests/Makefile.am (FILTER_MACROS): Add AC_LANG.

25 years agoSpeed ups.
Akim Demaille [Tue, 21 Mar 2000 12:09:31 +0000 (12:09 +0000)] 
Speed ups.

* libm4.m4 (m4_append, m4_list_append): Use m4_define, not define.
On my machine the former implementation takes 4mn 40s to run the
test suite.  Using m4_define leads to 4mn 15s.
* acgeneral.m4 (_AC_SUBST): Use AC_EXPAND_ONCE (which uses
m4_define, not define).  4mn.
(_AC_DIVERT): Don't use m4_case.  Starting from those 4mn, if you
just move NORMAL* first in m4_case, the test suite is run in 3mn.
If instead of using m4, you use an `associative array' plus a
wrapper (current implementation), it falls to 2mn.

25 years ago* tests/tools.m4 (autoconf --trace): New test.
Akim Demaille [Tue, 21 Mar 2000 12:08:24 +0000 (12:08 +0000)] 
* tests/tools.m4 (autoconf --trace): New test.

25 years ago* autoconf.sh (task trace): Pipe the output of the first m4 into
Akim Demaille [Tue, 21 Mar 2000 12:06:30 +0000 (12:06 +0000)] 
* autoconf.sh (task trace): Pipe the output of the first m4 into
the second one, instead of saving to a tmp file, so that we can
trace endless configure.in expansion.

25 years agoUniform idioms.
Akim Demaille [Tue, 21 Mar 2000 12:03:55 +0000 (12:03 +0000)] 
Uniform idioms.

* acgeneral.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
_AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Prefer
for i in : $is; do test $i = : && continue
over
for i in .. $is; do if test $i != ..; then

25 years ago* acgeneral.m4 (_AC_INIT_PREPARE, _AC_INIT_PARSE_ARGS): Move more
Akim Demaille [Tue, 21 Mar 2000 11:13:50 +0000 (11:13 +0000)] 
* acgeneral.m4 (_AC_INIT_PREPARE, _AC_INIT_PARSE_ARGS): Move more
initializations to...
(_AC_INIT_DEFAULTS): here.

25 years agoGive a means to compute `srcdir' earlier in configure.
Akim Demaille [Tue, 21 Mar 2000 10:01:40 +0000 (10:01 +0000)] 
Give a means to compute `srcdir' earlier in configure.

* acgeneral.m4 (_AC_INIT_SRCDIR): New macro, pulled out from...
(_AC_INIT_PREPARE): No longer compute `srcdir'.
(_AC_INIT): Use _AC_INIT_SRCDIR.
(AC_INIT): Don't forget to pass the argument to _AC_INIT.

25 years ago* acgeneral.m4 (AC_OUTPUT_SUBDIRS): Rename as _AC_OUTPUT_SUBDIRS.
Akim Demaille [Tue, 21 Mar 2000 09:20:40 +0000 (09:20 +0000)] 
* acgeneral.m4 (AC_OUTPUT_SUBDIRS): Rename as _AC_OUTPUT_SUBDIRS.
No argument, use AC_LIST_SUBDIRS.
Adjust callers.

25 years ago* acgeneral.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Double quote the head
Akim Demaille [Tue, 21 Mar 2000 09:18:31 +0000 (09:18 +0000)] 
* acgeneral.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Double quote the head
of the help snippet.

25 years agoGive an identity to `configure' scripts.
Akim Demaille [Tue, 21 Mar 2000 09:07:15 +0000 (09:07 +0000)] 
Give an identity to `configure' scripts.

* acgeneral.m4 (AC_PACKAGE): New macro.
(_AC_COPYRIGHT_SEPARATOR): Remove.
(AC_COPYRIGHT): Adjust.
(_AC_INIT_HELP, _AC_INIT_VERSION): Name the package you configure
when you want.
(_AC_INIT): Adjust.
* configure.in (AC_PACKAGE): Add.

25 years ago.
Jim Meyering [Mon, 20 Mar 2000 11:16:58 +0000 (11:16 +0000)] 
.

25 years ago(AC_SYS_LONG_FILE_NAMES): Don't test for existence
Jim Meyering [Mon, 20 Mar 2000 11:16:40 +0000 (11:16 +0000)] 
(AC_SYS_LONG_FILE_NAMES): Don't test for existence
of $ac_xdir.  Not only is `test -e' not portable, but the test isn't
necessary at all;  the following mkdir ends up accomplishing the
same goal.  Suggestion from Alexandre Oliva.