]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
25 years ago* aclang.m4 (AC_PROG_F77): Check for f95 and fc too.
Akim Demaille [Wed, 7 Jun 2000 13:25:54 +0000 (13:25 +0000)] 
* aclang.m4 (AC_PROG_F77): Check for f95 and fc too.

25 years ago`foo=1 foo=2 cmd' has an undefined behavior.
Akim Demaille [Wed, 7 Jun 2000 11:57:11 +0000 (11:57 +0000)] 
`foo=1 foo=2 cmd' has an undefined behavior.

* acgeneral.m4 (_AC_COMPUTE_INT_COMPILE): Do not put two shell
variable assignments in one shell command.
* doc/autoconf.texi (Shell Substitutions): Document.

25 years agoMore about test -e.
Akim Demaille [Wed, 7 Jun 2000 10:39:37 +0000 (10:39 +0000)] 
More about test -e.

25 years ago* aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Fix problem on Cray due to
Akim Demaille [Wed, 7 Jun 2000 07:16:15 +0000 (07:16 +0000)] 
* aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Fix problem on Cray due to
confusion from the link command getting echoed in quotes.  In the
future, a more general fix for quoted arguments with spaces might
be better.

25 years ago* doc/autoconf.texi (Limitations of Builtins): More on `test' and
Akim Demaille [Wed, 7 Jun 2000 07:07:39 +0000 (07:07 +0000)] 
* doc/autoconf.texi (Limitations of Builtins): More on `test' and
`case'.
Some on `if' and `break'.

25 years ago* acspecific.m4 (_AC_PATH_X_DIRECT): Include `X11/Intrinsic.h'
Akim Demaille [Wed, 7 Jun 2000 07:07:01 +0000 (07:07 +0000)] 
* acspecific.m4 (_AC_PATH_X_DIRECT): Include `X11/Intrinsic.h'
when trying to use `XtMalloc' to actually have a chance of
succeeding.

25 years agoHard (code) X.
Akim Demaille [Wed, 7 Jun 2000 07:02:26 +0000 (07:02 +0000)] 
Hard (code) X.

* acspecific.m4 (_AC_PATH_X_DIRECT): Hard code `X11/Intrinsic.h'
instead of using `ac_x_direct_test_include', likewise for `Xt' and
`ac_x_direct_test_lib', `XtMalloc' and
`ac_x_direct_test_function'.

25 years ago* acspecific.m4 (AC_PATH_X): Use AC_DIVERT.
Akim Demaille [Wed, 7 Jun 2000 07:00:07 +0000 (07:00 +0000)] 
* acspecific.m4 (AC_PATH_X): Use AC_DIVERT.
Use `no', not `NO' for ac_x_includes and ac_x_libraries.
Adjust dependencies.
(_AC_PATH_X_DIRECT): Introduce ac_x_header_dirs to factor the list
of places where headers and libs might be.
(AC_PATH_XTRA): Don't quote the argument of `case'.

25 years ago* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Put the expansion of
Akim Demaille [Wed, 7 Jun 2000 06:57:51 +0000 (06:57 +0000)] 
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Put the expansion of
AC_LIST_LINKS in an unquoted `here'-document.

25 years ago* tests/aclocal.m4 (AC_ENV_SAVE): Skip `no_x'.
Akim Demaille [Tue, 6 Jun 2000 17:00:46 +0000 (17:00 +0000)] 
* tests/aclocal.m4 (AC_ENV_SAVE): Skip `no_x'.
From Mark Elbrecht.

25 years ago* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Move the setting
Akim Demaille [Mon, 5 Jun 2000 16:05:49 +0000 (16:05 +0000)] 
* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Move the setting
of ac_tool_prefix before the call to AC_DIVERT_POP.

25 years agoTODO: less pressure on 2.50.
Akim Demaille [Mon, 5 Jun 2000 13:30:07 +0000 (13:30 +0000)] 
TODO: less pressure on 2.50.

25 years agoTODO: less pressure on 2.50.
Akim Demaille [Mon, 5 Jun 2000 12:45:53 +0000 (12:45 +0000)] 
TODO: less pressure on 2.50.

25 years ago* acgeneral.m4 (AC_CHECK_TOOL_PREFIX): AU define it.
Akim Demaille [Mon, 5 Jun 2000 10:04:15 +0000 (10:04 +0000)] 
* acgeneral.m4 (AC_CHECK_TOOL_PREFIX): AU define it.
Suggested by Mo DeJong.

25 years ago* aclang.m4 (AC_C_CHAR_UNSIGNED): Use the new compiler-test
Akim Demaille [Mon, 5 Jun 2000 10:00:41 +0000 (10:00 +0000)] 
* aclang.m4 (AC_C_CHAR_UNSIGNED): Use the new compiler-test
technology so that we can do the test via compilations only.  Also
use (char) -1 instead of (char) 255 to check if char is unsigned.

25 years agoUpdate TODO.
Akim Demaille [Mon, 5 Jun 2000 09:54:00 +0000 (09:54 +0000)] 
Update TODO.

25 years agofix typo
Jim Meyering [Fri, 2 Jun 2000 12:41:18 +0000 (12:41 +0000)] 
fix typo

25 years ago(AC_FUNC_STRERROR_R): Call strerror_r with 2nd arg
Jim Meyering [Sun, 28 May 2000 16:27:56 +0000 (16:27 +0000)] 
(AC_FUNC_STRERROR_R): Call strerror_r with 2nd arg
of type char*, not int.  Suggestion from Paul Eggert.

25 years ago.
Jim Meyering [Sun, 28 May 2000 16:21:08 +0000 (16:21 +0000)] 
.

25 years ago.
Jim Meyering [Sun, 28 May 2000 16:18:49 +0000 (16:18 +0000)] 
.

25 years ago(Particular Functions): Give better description of
Jim Meyering [Sun, 28 May 2000 16:18:40 +0000 (16:18 +0000)] 
(Particular Functions): Give better description of
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.  From Paul Eggert.

25 years ago* doc/autoconf.texi (Limitations of Usual Tools): Document `ln -s'
Akim Demaille [Fri, 26 May 2000 18:16:46 +0000 (18:16 +0000)] 
* doc/autoconf.texi (Limitations of Usual Tools): Document `ln -s'
on DJGPP, based on the comments from Mark Elbrecht.

25 years ago* autoreconf.sh (autoconf, autoheader): Be more conscientious when
Akim Demaille [Fri, 26 May 2000 18:09:43 +0000 (18:09 +0000)] 
* autoreconf.sh (autoconf, autoheader): Be more conscientious when
looking for the executable.
* autoupdate.sh: Likewise.
* autoheader.sh: Likewise.
Suggested by Alexandre Oliva.

25 years agoThanks to --program-transform-name, `autoconf' might be install as
Akim Demaille [Fri, 26 May 2000 17:45:10 +0000 (17:45 +0000)] 
Thanks to --program-transform-name, `autoconf' might be install as
`yo-man-i-am-the-all-mighty-AVt0c0nF-eh-eh'.  But when
`yo-man-i-am-the-all-mighty-AVt0h3Ad3R-eh-eh' and the other tools
want to trace, they might stupidly invoke the program named
`autoconf' instead.  Pfff, stupid scripts :)

* Makefile.am (editsh): Transfer the names of the install
`autoconf' and `autoheader'.
* autoconf.sh: Add a missing period at the end of the comment
# Parse command line
Make sure to have a ChangeLog much longer than the patch.
* autoheader.sh: Use the right `autoconf'.
* autoupdate.sh: Likewise.
* autoreconf.sh: Likewise, and for `autoheader' too.
Simplify the handling of localdir and AC_MACRODIR.
* ifnames.sh: Formatting changes.

25 years agoDon't use f2c as a possible Fortran compiler, since by itself it
Akim Demaille [Fri, 26 May 2000 17:30:07 +0000 (17:30 +0000)] 
Don't use f2c as a possible Fortran compiler, since by itself it
cannot produce object code.

* aclang.m4 (AC_PROG_F77): Remove f2c from the search list.
* doc/autoconf.texi: Excise mentions of f2c in AC_PROG_F77 docs.

25 years agoCurrently, AC_PROG_LN_S incorrectly reports yes with DJGPP. This
Akim Demaille [Fri, 26 May 2000 17:27:24 +0000 (17:27 +0000)] 
Currently, AC_PROG_LN_S incorrectly reports yes with DJGPP. This
is because the DJGPP `ln' emulates soft links for executables by
generating a stub that in turn calls the real program.  This
feature also works with nonexistent files like in the Unix
spec. So `ln -s X conftestdata' will generate `conftestdata.exe'
which will attempt to call 'X.exe'. But this feature only works
for executables.  Fix it.

* acspecific.m4 (AC_PROG_LN_S): Create a sample file and use it to
test `ln -s'.

25 years agoFix the archive: some parts of the following patches were missing:
Akim Demaille [Fri, 26 May 2000 17:12:01 +0000 (17:12 +0000)] 
Fix the archive: some parts of the following patches were missing:
- CC < aCC
- unquote the argument of case
- AC_FUNC_STRERROR_R
- AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
- typos in autoconf.texi

25 years ago* aclang.m4 (AC_PROG_CXX): Look for aCC before CC.
Akim Demaille [Fri, 26 May 2000 16:01:46 +0000 (16:01 +0000)] 
* aclang.m4 (AC_PROG_CXX): Look for aCC before CC.

25 years ago* acspecific.m4 (AC_FUNC_STRERROR_R): New, from `strerror_r.m4',
Akim Demaille [Fri, 26 May 2000 15:59:19 +0000 (15:59 +0000)] 
* acspecific.m4 (AC_FUNC_STRERROR_R): New, from `strerror_r.m4',
serial 2, by Jim Meyering.
(AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New, from
`lstat-slash.m4', serial 1, by Jim Meyering.
* acfunctions: Adjust.

25 years ago* acgeneral.m4 (AC_CHECK_TOOLS): Don't require
Akim Demaille [Fri, 26 May 2000 15:50:04 +0000 (15:50 +0000)] 
* acgeneral.m4 (AC_CHECK_TOOLS): Don't require
AC_CHECK_TOOL_PREFIX, it's dead.

25 years ago* acgeneral.m4 (AC_CHECK_TOOLS): Don't require
Akim Demaille [Fri, 26 May 2000 15:04:33 +0000 (15:04 +0000)] 
* acgeneral.m4 (AC_CHECK_TOOLS): Don't require
AC_CHECK_TOOL_PREFIX, it's dead.

25 years ago* acgeneral.m4: Simplify all the
Akim Demaille [Fri, 26 May 2000 15:02:42 +0000 (15:02 +0000)] 
* acgeneral.m4: Simplify all the
case "$switch" in
into
case $switch in
* acspecific.m4: Likewise.
* aclang.m4: Likewise.

25 years agoTypos in documentation.
Akim Demaille [Fri, 26 May 2000 14:55:42 +0000 (14:55 +0000)] 
Typos in documentation.

25 years ago* acgeneral.m4 (AC_CHECK_TOOL_PREFIX): Remove.
Akim Demaille [Fri, 26 May 2000 14:41:17 +0000 (14:41 +0000)] 
* acgeneral.m4 (AC_CHECK_TOOL_PREFIX): Remove.
Adjust dependencies.
(_AC_INIT_PARSE_ARGS): Set ac_tool_prefix.

25 years agoIn `info', it is easier to type `autoconf <TAB>' to reach the list
Akim Demaille [Fri, 26 May 2000 14:38:15 +0000 (14:38 +0000)] 
In `info', it is easier to type `autoconf <TAB>' to reach the list
of options, that `Invoking autoc<TAB>'.

* doc/autoconf.texi: s/Invoking foo/foo Invocation/.

25 years agoMerge `Upgrading' and `Obsolete Constructs' together.
Akim Demaille [Fri, 26 May 2000 14:34:21 +0000 (14:34 +0000)] 
Merge `Upgrading' and `Obsolete Constructs' together.

* doc/autoconf.texi (Obsolete Constructs): Move right after
`Recreation a Configuration.
(Invoking autoupdate): Be a subsection of
`Obsolete Constructs'.
(Upgrading): Demote from chapter to section.
Be a section of `Obsolete Constructs'.
Rename as `Autoconf 1'.

25 years agoFind a means to extract integers from the compiler.
Akim Demaille [Fri, 26 May 2000 11:33:54 +0000 (11:33 +0000)] 
Find a means to extract integers from the compiler.
Use this technology to compute `sizeof' even when cross-compiling.
Ideas and initial suggestion by Kaveh Ghazi.
Binary search by Bruno Haible.

* aclang.m4 (AC_LANG_BOOL_COMPILE_TRY,
AC_LANG_BOOL_COMPILE_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C++),
AC_LANG_INT_SAVE, AC_LANG_INT_SAVE(C), AC_LANG_INT_SAVE(C++)): New
macros.
* acgeneral.m4 (_AC_COMPUTE_INT_COMPILE, _AC_COMPUTE_INT_RUN,
_AC_COMPUTE_INT): New.
(AC_CHECK_SIZEOF): Use them.
Check whether the type exists beforehand.
* tests/semantics.m4 (AC_CHECK_SIZEOF): Strengthen.

25 years ago* aclang.m4 (AC_PROG_CXX): Look for aCC KCC RCC xlC_r xlC.
Akim Demaille [Fri, 26 May 2000 09:42:13 +0000 (09:42 +0000)] 
* aclang.m4 (AC_PROG_CXX): Look for aCC KCC RCC xlC_r xlC.
s/c++ g++/g++ c++/.
* doc/autoconf.texi (Compilers and Preprocessors): Adjust.

25 years agoNo library nor special privilege is needed to run `getloadavg'
Akim Demaille [Fri, 26 May 2000 08:37:38 +0000 (08:37 +0000)] 
No library nor special privilege is needed to run `getloadavg'
under FreeBSD.
Reported by Alec Wolman.

* acspecific.m4 (AC_FUNC_GETLOADAVG): Check for `getloadavg'
without any additional library.
Fixes Autoconf/109.

25 years ago* doc/autoconf.texi (Limitations of Usual Tools, Limitations of
Akim Demaille [Fri, 26 May 2000 08:32:45 +0000 (08:32 +0000)] 
* doc/autoconf.texi (Limitations of Usual Tools, Limitations of
Builtins): Integrate comments from Paul Eggert and Jim Meyering.
Add the sed limitation discovered by Philippe De Muyter.
Typo from Pavel Roskin.

25 years agoThe test suite needs GNU m4.
Akim Demaille [Thu, 25 May 2000 16:37:12 +0000 (16:37 +0000)] 
The test suite needs GNU m4.
Reported by Bob Friesenhahn.

* tests/atconfig.in (M4): Set it.
* tests/base.m4: Use it.

25 years agoUpdate `missing'.
Akim Demaille [Thu, 25 May 2000 16:31:12 +0000 (16:31 +0000)] 
Update `missing'.

25 years agoRegenerate configure.
Akim Demaille [Thu, 25 May 2000 10:16:22 +0000 (10:16 +0000)] 
Regenerate configure.

25 years ago* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Don't use negated character
Akim Demaille [Thu, 25 May 2000 07:49:39 +0000 (07:49 +0000)] 
* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Don't use negated character
classes with `case'.  Use `expr' instead.
Suggested by Paul Eggert.
* doc/autoconf.texi (Limitations of Builtins): Explain expr, the
`x' trick, and negated character classes.

25 years agoFix the ChangeLog.
Akim Demaille [Wed, 24 May 2000 16:47:51 +0000 (16:47 +0000)] 
Fix the ChangeLog.

25 years ago* aclang.m4 (AC_LANG(C++)): Change `ac_ext' from from `C' to `cc'
Akim Demaille [Wed, 24 May 2000 15:50:19 +0000 (15:50 +0000)] 
* aclang.m4 (AC_LANG(C++)): Change `ac_ext' from from `C' to `cc'
to avoid potential ambiguities on case-insensitive shells.

25 years agoFix ChangeLog.
Akim Demaille [Wed, 24 May 2000 15:46:45 +0000 (15:46 +0000)] 
Fix ChangeLog.

25 years agoHave --host=sun4 automatically look for CC=sun4-cc etc.
Akim Demaille [Wed, 24 May 2000 15:46:12 +0000 (15:46 +0000)] 
Have --host=sun4 automatically look for CC=sun4-cc etc.

* acgeneral.m4 (AC_CHECK_TOOLS): New.
* aclang.m4 (AC_PROG_CXX, AC_PROG_CC, AC_PROG_F77): Use new
AC_CHECK_TOOLS macro instead of AC_CHECK_PROGS so that a cross
compiler is found by default with --host.
* doc/autoconf.texi (Generic Programs, Manual Configuration):
Describe new AC_CHECK_TOOLS macro. Fix unclear working about
AC_CHECK_PROGS.
* tests/Makefile.am (FILTER_MACROS): Adjust.

25 years agoThe night of the living dead...
Akim Demaille [Wed, 24 May 2000 14:39:24 +0000 (14:39 +0000)] 
The night of the living dead...

* acspecific.m4 (AC_XENIX_DIR, AC_DYNIX_SEQ, AC_IRIX_SUN,
AC_SCO_INTL): Wake up a few zombies.
* doc/autoconf.texi: Adjust.
* tests/aclocal.m4 (AC_ENV_SAVE): Likewise.

25 years ago* acgeneral.m4 (AC_LANG_FUNC_LINK_TRY, AC_LANG_FUNC_LINK_TRY(C),
Akim Demaille [Wed, 24 May 2000 14:22:39 +0000 (14:22 +0000)] 
* acgeneral.m4 (AC_LANG_FUNC_LINK_TRY, AC_LANG_FUNC_LINK_TRY(C),
AC_LANG_FUNC_LINK_TRY(C++)): New macros.
(AC_CHECK_FUNC): Use it, together with AC_LINK_ELSE.

25 years ago* acspecific.m4 (AC_FUNC_VFORK): Quote properly.
Akim Demaille [Wed, 24 May 2000 13:14:13 +0000 (13:14 +0000)] 
* acspecific.m4 (AC_FUNC_VFORK): Quote properly.
(AC_FUNC_STRFTIME, AC_FUNC_VFORK, AC_FUNC_VPRINTF): Don't use
AC_DEFINE, just use the AC_CHECK_*S macro.

25 years ago* acgeneral.m4 (_AC_WHICH_A): Replace it with...
Akim Demaille [Wed, 24 May 2000 13:07:38 +0000 (13:07 +0000)] 
* acgeneral.m4 (_AC_WHICH_A): Replace it with...
(AC_SHELL_PATH_WALK): this.
(AC_CHECK_PROG, AC_PATH_PROG): Use it.

25 years ago* doc/autoconf.texi (Limitations of Builtins): Document `unset'.
Akim Demaille [Wed, 24 May 2000 13:00:34 +0000 (13:00 +0000)] 
* doc/autoconf.texi (Limitations of Builtins): Document `unset'.
(Special Shell Variables): Adjust.
(Shellology): New section.  Introduce bash and zsh.
(Special Shell Variables): Some data on NULLCMD.
(Quotation Thumb Rule): Rename as
(Quotation Rule of Thumb): this.
* acgeneral.m4 (AC_SHELL_UNSET): Remove.
(AC_SHELL_UNSETENV): Rename as...
(AC_SHELL_UNSET): this.
(_AC_INIT_PREPARE_ENVIRONMENT): Prepare bash and zsh.
Adjust to AC_SHELL_UNSET.

25 years agoThe options --build etc. used to set `$build'. *If*
Akim Demaille [Wed, 24 May 2000 12:18:35 +0000 (12:18 +0000)] 
The options --build etc. used to set `$build'.  *If*
AC_CANONICAL_SYSTEM was run, then the value of `$build' given by
the user was saved into `$build_alias', and `$build' was
normalized using `config.sub'.

Now, let `--build' set `$build_alias' so that scripts with or
without `AC_CANONICAL_BUILD' have the same semantics.  This allows
to use `AC_CHECK_TOOL' without requiring `config.guess' and
`config.sub' (which was bizarre anyway).

* acgeneral.m4 (_AC_INIT_PARSE_ARGS): --build, --host and --target
set `build_alias' etc.
After the option handling, set host to $host_alias etc. for
bugward compatibility.
(AC_CANONICALIZE): Mutate into...
(_AC_CANONICAL_SPLIT): this, which does not canonicalize, it just
computes `$foo_os' etc.
(_AC_CANONICAL_THING): Remove, too confusing.
(AC_CANONICAL_BUILD): Adjust.
Do not assign any value to `build_alias', just compute `build', and
`build_{cpy, vendor, os}'.
(AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Likewise.
(AC_CHECK_TOOL_PREFIX): Fire your rule when `$host_alias' is
given, not when `$host != $build'.

* acgeneral.m4 (sinclude): Fix typo.

25 years ago* doc/autoconf.texi (Limitations of Builtins): More details on
Akim Demaille [Tue, 23 May 2000 16:59:38 +0000 (16:59 +0000)] 
* doc/autoconf.texi (Limitations of Builtins): More details on
`test -n ='.

25 years agoSimplify the interface: users shouldn't need to explicitly check
Akim Demaille [Tue, 23 May 2000 14:54:49 +0000 (14:54 +0000)] 
Simplify the interface: users shouldn't need to explicitly check
for special environments.

* acspecific.m4 (AC_EXEEXT, AC_OBJEXT): AU defined to
nothing.  Replace them by...
(_AC_EXEEXT, _AC_OBJEXT): this.
* aclang.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): Call them.
(AC_PROG_CC_G, AC_PROG_CXX_G, AC_PROG_F77_G): Rename as...
(_AC_PROG_CC_G, _AC_PROG_CXX_G, _AC_PROG_F77_G): this.
Adjust dependencies.
* tests/Makefile.am (FILTER_MACROS): Adjust.
* doc/autoconf.texi (Compilers and Preprocessors): New section,
move the documentation of AC_PROG_CC, AC_PROG_CC_C_O,
AC_PROG_CC_STDC, AC_PROG_CPP, AC_PROG_CXX, AC_PROG_CXXCPP,
AC_PROG_F77, AC_PROG_F77_C_O, AC_PROG_GCC_TRADITIONAL here.
Factor the comment documentation of AC_PROG_CC, AC_PROG_CXX,
AC_PROG_F77.

25 years agoModernize AC_EXEEXT and AC_OBJEXT.
Akim Demaille [Tue, 23 May 2000 14:50:43 +0000 (14:50 +0000)] 
Modernize AC_EXEEXT and AC_OBJEXT.
Now work with other languages than C and C++.

* acspecific.m4 (AC_EXEEXT, AC_OBJEXT): Use
AC_COMPILE_IFELSE/AC_LINK_IFELSE and AC_LANG_PROGRAM instead of
ad hoc code.
Use `$ac_ext' instead of listing `.c', `.C' etc.
Use AC_CACHE_CHECK.
* doc/autoconf.texi (System Services): Adjust.

25 years agoSimplify the interface: users shouldn't need to explicitly check
Akim Demaille [Tue, 23 May 2000 14:47:33 +0000 (14:47 +0000)] 
Simplify the interface: users shouldn't need to explicitly check
for special environments.

* acspecific.m4 (AC_CYGWIN, AC_EMXOS2, AC_MINGW32): AU defined to
nothing.  Replace them by...
(_AC_CYGWIN, _AC_EMXOS2, _AC_MINGW32): these, which are
automatically called by...
(AC_EXEEXT): this.
* doc/autoconf.texi (System Services, Obsolete Macros): Adjust.

25 years agoAC_PROG_GNU_M4 should actually be private to the package
Akim Demaille [Tue, 23 May 2000 14:46:23 +0000 (14:46 +0000)] 
AC_PROG_GNU_M4 should actually be private to the package
Autoconf.

* acspecific.m4 (AC_PROG_GNU_M4): Move to...
* m4/m4.m4: here.
* m4/Makefile.am (EXTRA_DIST): Adjust.
* doc/autoconf.texi (Particular Programs): Adjust.

25 years ago* doc/autoconf.texi (Exiting from Shell Scripts): Move contents
Akim Demaille [Tue, 23 May 2000 14:15:27 +0000 (14:15 +0000)] 
* doc/autoconf.texi (Exiting from Shell Scripts): Move contents
into...
(Limitations of Builtins): this new node.
Document limitations of `exit', `export' and `case'.
Welcome the documentation of `test' from...
(Limitations of Usual Tools): here.

25 years agoLoad the additions *before* running AC_INIT.
Akim Demaille [Tue, 23 May 2000 09:52:05 +0000 (09:52 +0000)] 
Load the additions *before* running AC_INIT.
This is important if you want to redefine AC_INIT or some of its
sub macros (eeerk!), or if you want to use user defined macros
before AC_INIT.
Suggested by Didier Verna.

* acgeneral.m4 (_AC_INIT): Don't include `acsite.m4' and
`aclocal.m4'.
* autoconf.sh (run_m4, run_m4f): Do it.

25 years agoReading the ChangeLog revealed that the recent update of
Akim Demaille [Mon, 22 May 2000 15:31:54 +0000 (15:31 +0000)] 
Reading the ChangeLog revealed that the recent update of
AC_FUNC_GETLOADAVG introduced a bug which already happened (see
Mon Nov 11 18:02:58 1996  David J MacKenzie).

* acgeneral.m4 (AC_CHECK_LIB): Use a less tempting name:
s/ac_save_LIBS/ac_check_lib_save_LIBS/.

25 years ago* acspecific.m4 (_AC_LIBOBJ_ALLOCA): New macro, extracted from...
Akim Demaille [Mon, 22 May 2000 14:09:35 +0000 (14:09 +0000)] 
* acspecific.m4 (_AC_LIBOBJ_ALLOCA): New macro, extracted from...
(AC_FUNC_ALLOCA): here.  Adjust.

25 years agoTypos in ChangeLog.
Akim Demaille [Mon, 22 May 2000 13:54:32 +0000 (13:54 +0000)] 
Typos in ChangeLog.

25 years agoAdd `configure --config-cache', `-C' as a shortcut for
Akim Demaille [Mon, 22 May 2000 13:31:00 +0000 (13:31 +0000)] 
Add `configure --config-cache', `-C' as a shortcut for
`--cache-file=config.cache'.

* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Let `configure' support
`--config-cache' and `-C'.
Report them in `--help'.
Fix the display of missing argument.
(_AC_OUTPUT_SUBDIRS): Adjust.
* doc/install.texi (Invoking configure): Rename the node as
(Running configure scripts): this, the name of the chapter.
(Operation Controls): Rename as...
(Invoking configure): this.
Document the new options.
* doc/autoconf.texi (direntry): Huh?  What is this `aclocal' doing
here?  Point to `Invoking configure'.
(Cache Files): No need to document the disabling of the cache.

25 years agoFix typos in ChangeLog.
Akim Demaille [Mon, 22 May 2000 12:29:01 +0000 (12:29 +0000)] 
Fix typos in ChangeLog.

25 years agoMore MS-DOS support.
Akim Demaille [Mon, 22 May 2000 10:29:46 +0000 (10:29 +0000)] 
More MS-DOS support.

* acgeneral.m4 (_AC_OUTPUT_FILES): Fix the computation of
`ac_file_inputs' for `$ac_given_srcdir' containing a colon.
(AC_CHECK_MEMBERS, AC_PATH_PROG): s/ac_save_ifs/ac_save_IFS/.

25 years ago* acspecific.m4 (AC_FUNC_CHOWN): New macro, based on Jim
Akim Demaille [Mon, 22 May 2000 08:46:23 +0000 (08:46 +0000)] 
* acspecific.m4 (AC_FUNC_CHOWN): New macro, based on Jim
Meyering's `chown.m4' serial 4.
(AC_FUNC_GETGROUPS): New macro, based on Jim Meyering's
`getgroups.m4' serial 3.
(AC_FUNC_MEMCMP): Updated, based on Jim Meyering's `memcmp.m4'
serial 3.
(AC_FUNC_MALLOC): New macro, based on Jim Meyering's
`malloc.m4' serial 3.
(AC_FUNC_MMAP): Include `stdlib.h' when `STDC_HEADERS'.
* acfunctions: Sort.
Add `chown' and `malloc', point `getgroups' to `AC_FUNC_GETGROUPS'
instead of `AC_TYPE_GETGROUPS'.
* doc/autoconf.texi (Particular Functions): Adjust.

25 years ago* acgeneral.m4: Quote the names being m4-defined.
Akim Demaille [Mon, 22 May 2000 08:41:36 +0000 (08:41 +0000)] 
* acgeneral.m4: Quote the names being m4-defined.
* acspecific.m4: Likewise.
* aclang.m4: Likewise.

25 years agoFactor the AC_PROG_<compiler>_WORKS macros.
Akim Demaille [Mon, 22 May 2000 08:38:45 +0000 (08:38 +0000)] 
Factor the AC_PROG_<compiler>_WORKS macros.

* acgeneral.m4 (_AC_INIT_DEFAULTS): Set `cross_compiling'.
(AC_TRY_COMPILER): Remove.
* aclang.m4 (AC_PROG_CC_WORKS, AC_PROG_CXX_WORKS,
AC_PROG_F77_WORKS): Removed.
(_AC_LANG_COMPILER_WORKS): New macro.
(AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): Adjust.

25 years agoFactor the AC_PROG_<compiler>_WORKS macros.
Akim Demaille [Mon, 22 May 2000 08:38:44 +0000 (08:38 +0000)] 
Factor the AC_PROG_<compiler>_WORKS macros.

* acgeneral.m4 (_AC_INIT_DEFAULTS): Set `cross_compiling'.
(AC_TRY_COMPILER): Remove.
* aclang.m4 (AC_PROG_CC_WORKS, AC_PROG_CXX_WORKS,
AC_PROG_F77_WORKS): Removed.
(_AC_LANG_COMPILER_WORKS): New macro.
(AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): Adjust.

25 years ago* aclang.m4: Formatting changes.
Akim Demaille [Mon, 22 May 2000 08:06:51 +0000 (08:06 +0000)] 
* aclang.m4: Formatting changes.

25 years agoMore than one argument to `configure' builds a broken
Akim Demaille [Mon, 22 May 2000 08:05:40 +0000 (08:05 +0000)] 
More than one argument to `configure' builds a broken
`config.status'.  Fix and test.

* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Use
`$ac_configure_args' directly, no via a tmp variable.
* tests/torture.m4 (command line interface): Test with more than
one argument.

25 years ago* acgeneral.m4 (AC_MSG_WARN): s/warning/WARNING/.
Akim Demaille [Fri, 19 May 2000 13:21:05 +0000 (13:21 +0000)] 
* acgeneral.m4 (AC_MSG_WARN): s/warning/WARNING/.
* autoheader.sh: Likewise.
From François Pinard.

25 years ago* acgeneral.m4 (AC_PACKAGE): Rename as _AC_INIT_PACKAGE.
Akim Demaille [Fri, 19 May 2000 13:16:06 +0000 (13:16 +0000)] 
* acgeneral.m4 (AC_PACKAGE): Rename as _AC_INIT_PACKAGE.
(AC_INIT): Dispatch your arguments either to _AC_INIT_PACKAGE or
to AC_CONFIG_SRCDIR.
(AU::AC_INIT): New.
* configure.in: Adjust.
Use `#', not `dnl'.
* doc/autoconf.texi (configure.in Layout): Document the new form
of AC_INIT.
Document AC_CONFIG_SRCDIR.
(Obsolete Macros): Document the old one.

25 years ago* acgeneral.m4: Simplify all the unjustified `[\$]foo' into
Akim Demaille [Fri, 19 May 2000 13:07:13 +0000 (13:07 +0000)] 
* acgeneral.m4: Simplify all the unjustified `[\$]foo' into
`\$foo', the quotes are needed only for `\$[1]', `\$[@]' etc.
Prefer `$$1' to `[$]$1', `$foo' to `[$]foo', `$[1]' to `[$]1' etc.
* aclang.m4: Likewise.
* acspecific.m4: Likewise.

25 years ago* acgeneral.m4 (AC_TRY_COMPILER): Fix quotation.
Akim Demaille [Fri, 19 May 2000 12:58:15 +0000 (12:58 +0000)] 
* acgeneral.m4 (AC_TRY_COMPILER): Fix quotation.

25 years agoFix ChangeLog
Akim Demaille [Fri, 19 May 2000 12:56:24 +0000 (12:56 +0000)] 
Fix ChangeLog

25 years agoFix Autoconf/FIXME:.
Akim Demaille [Fri, 19 May 2000 12:55:42 +0000 (12:55 +0000)] 
Fix Autoconf/FIXME:.

* libm4.m4: Rename `symbols' as `m4_symbols'.

25 years ago* aclang.m4 (AC_PROG_CC_GNU, AC_PROG_CXX_GNU, AC_PROG_F77_GNU):
Akim Demaille [Fri, 19 May 2000 12:55:02 +0000 (12:55 +0000)] 
* aclang.m4 (AC_PROG_CC_GNU, AC_PROG_CXX_GNU, AC_PROG_F77_GNU):
Rename as:
(_AC_PROG_CC_GNU, _AC_PROG_CXX_GNU, _AC_PROG_F77_GNU): these.
Compute the value of GCC, GXX and G77 here.
Set to `no' (instead of empty) if not the GNU compiler.
(AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): Adjust.
* doc/autoconf.texi: Adjust.

25 years agoFix ChangeLog
Akim Demaille [Fri, 19 May 2000 12:44:35 +0000 (12:44 +0000)] 
Fix ChangeLog

25 years agoFix Autoconf/FIXME.
Akim Demaille [Fri, 19 May 2000 12:41:56 +0000 (12:41 +0000)] 
Fix Autoconf/FIXME.

* aclang.m4 (AC_PROG_F77): Follow strictly the same scheme as
AC_PROG_CC to compute the default FFLAGS.

25 years agoEither we cross-compile the whole package, or we don't.
Akim Demaille [Fri, 19 May 2000 12:40:45 +0000 (12:40 +0000)] 
Either we cross-compile the whole package, or we don't.
Using --host enables cross-compilation.

* acgeneral.m4 (_AC_INIT_PARSE_ARGS): `--host' enables cross
compilation.
(AC_CANONICAL_BUILD): The help string should explicitly mention
cross compilation.
* aclang.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Fortran 77)): Don't
set `cross_compiling'.
(AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77): Run your `WORK' partner
only if not cross-compiling.
(AC_PROG_CC_WORKS, AC_PROG_CXX_WORKS, AC_PROG_F77_WORKS):
If does not work, don't assume an implicit cross-compilation:
fail.
* doc/autoconf.texi: Adjust.

25 years ago* acgeneral.m4 (AC_SHELL_UNSETENV, AC_SHELL_UNSET): Add the
Akim Demaille [Fri, 19 May 2000 12:21:55 +0000 (12:21 +0000)] 
* acgeneral.m4 (AC_SHELL_UNSETENV, AC_SHELL_UNSET): Add the
missing quotes.

25 years ago* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Prefer
Akim Demaille [Fri, 19 May 2000 12:20:41 +0000 (12:20 +0000)] 
* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Prefer
case $foo in
*[^-a-zA-Z0-9_]*) AC_ACTION;;
esac
over
if echo "$foo" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
AC_ACTION
fi

25 years ago* doc/autoconf.texi (Testing Values and Files): Delete, move its
Akim Demaille [Fri, 19 May 2000 12:17:29 +0000 (12:17 +0000)] 
* doc/autoconf.texi (Testing Values and Files): Delete, move its
content into...
(Limitations of Usual Tools::test): here.
Document more limitations.

25 years ago* acspecific.m4 (_AC_LIBOBJ_GETLOADAVG): New macro, extracted from
Akim Demaille [Fri, 19 May 2000 12:15:14 +0000 (12:15 +0000)] 
* acspecific.m4 (_AC_LIBOBJ_GETLOADAVG): New macro, extracted from
(AC_FUNC_GETLOADAVG): here.
Use it.

25 years ago* acgeneral.m4 (AC_SPECIALIZE): Avoid a useless `indir'.
Akim Demaille [Fri, 19 May 2000 12:11:47 +0000 (12:11 +0000)] 
* acgeneral.m4 (AC_SPECIALIZE): Avoid a useless `indir'.
(AC_CHECK_MEMBER, AC_CHECK_MEMBERS): Fix to work properly on
`struct f.g.h'.
* acspecific.m4 (AC_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS and
AC_CHECK_MEMBERS instead of performing their task by hand.

25 years agoSynchronize AC_FUNC_GETLOADAVG with the version of the shellutils
Akim Demaille [Fri, 19 May 2000 12:08:46 +0000 (12:08 +0000)] 
Synchronize AC_FUNC_GETLOADAVG with the version of the shellutils
1.16f (serial 4).

* acspecific.m4 (AC_FUNC_GETLOADAVG): Check for
`pstat_getdynamic'.
Define `C_GETLOADAVG' if compiling `getloadavg.c'.
Check for NLS.
Compute `GETLOADAVG_LIBS'.
(AC_FUNC_MKTIME): Remove a forgotten `AC_SUBST(LIBOBJS)'.

25 years ago* acgeneral.m4 (AC_SHELL_UNSET, AC_SHELL_UNSETENV): New macro.
Akim Demaille [Fri, 19 May 2000 11:54:04 +0000 (11:54 +0000)] 
* acgeneral.m4 (AC_SHELL_UNSET, AC_SHELL_UNSETENV): New macro.
(_AC_INIT_PREPARE_ENVIRONMENT): Use AC_SHELL_UNSETENV.
Set CDPATH.  Fixes Autoconf/96.

* doc/autoconf.texi (Special Shell Variables): New node.
Document `status', `CDPATH', `LANG', `LC_ALL', `LC_MESSAGES' and
`LC_CTYPE'.

25 years agoUpdate aclocal.m4 and configure.
Akim Demaille [Tue, 16 May 2000 12:43:19 +0000 (12:43 +0000)] 
Update aclocal.m4 and configure.

25 years ago* acgeneral.m4 (sinclude): Define, some packages (binutils) need
Akim Demaille [Fri, 12 May 2000 12:19:57 +0000 (12:19 +0000)] 
* acgeneral.m4 (sinclude): Define, some packages (binutils) need
it.

25 years ago* doc/autoconf.texi (Invoking config.status): Move the
Akim Demaille [Fri, 12 May 2000 11:29:07 +0000 (11:29 +0000)] 
* doc/autoconf.texi (Invoking config.status): Move the
documentation of the envvar CONFIG_(FILES, HEADERS, COMMANDS,
LINKS) to
(Obsolete config.status Use): here.

25 years agoOops, this should have gone away a long time ago
Akim Demaille [Fri, 12 May 2000 10:33:23 +0000 (10:33 +0000)] 
Oops, this should have gone away a long time ago

25 years ago* doc/autoconf.texi (Exiting from Shell Scripts): New node.
Akim Demaille [Fri, 12 May 2000 09:15:01 +0000 (09:15 +0000)] 
* doc/autoconf.texi (Exiting from Shell Scripts): New node.
(Autoconf Language): Follow the advice in the new node.

25 years ago* doc/autoconf.texi: Fix typos.
Akim Demaille [Fri, 12 May 2000 07:44:40 +0000 (07:44 +0000)] 
* doc/autoconf.texi: Fix typos.

25 years agoUpdate NEWS and TODO
Akim Demaille [Fri, 12 May 2000 07:38:52 +0000 (07:38 +0000)] 
Update NEWS and TODO

25 years agoAC_CONFIG_SUBDIRS needs two lists: one, ac_subdirs_all, which
Akim Demaille [Thu, 11 May 2000 16:56:13 +0000 (16:56 +0000)] 
AC_CONFIG_SUBDIRS needs two lists: one, ac_subdirs_all, which
contains all the possible subdirs for `--help=recursive', and
another, `subdirs' which can be built dynamically for launching
sub configurations.

* acgeneral.m4  (AC_CONFIG_SUBDIRS): Define `subdirs' dynamically.
Define `ac_subdirs_all' statically.
Warn if the argument is not a literal.
(AC_LIST_SUBDIRS): Rename as...
(_AC_LIST_SUBDIRS): this.
(_AC_INIT_HELP): Loop over `ac_subdirs_all', not `subdirs'.
(_AC_OUTPUT_SUBDIRS): Loop over `subdirs', not `AC_LIST_SUBDIRS'.
* doc/autoconf.texi (Subdirectories): Adjust.

* acgeneral.m4: Replace all the `test ! -d foo && bar' with
`test -d foo || bar'.

* Makefile.am (.m4.m4f): Stop hiding what you're doing.
Don't check for GNU m4, let it die.

25 years agoTypos in ChangeLog.
Akim Demaille [Thu, 11 May 2000 16:00:45 +0000 (16:00 +0000)] 
Typos in ChangeLog.

25 years agoThe Associated Rewriters are even prouder to present...
Akim Demaille [Thu, 11 May 2000 15:45:34 +0000 (15:45 +0000)] 
The Associated Rewriters are even prouder to present...
  .
  |
  |
 /-+ /   + )===(   U  T  O  U  P  D  A  T  E    I V
       //   \
      =========
    _//_     _\_      The ``Eiffel Tower'' Release

* autoupdate.sh: Complete rewrite.  See that file for a detailed
explanation.  Basically, simulate the name spaces thanks to
`autoconf --trace' and auxiliary files.
No longer use `autoupdate.m4', remove the dependencies.
Synchronize the options and `--help'.
* doc/autoconf.texi (Invoking autoupdate): Humanoupdate.
* autoupdate.m4: Delete.
* tests/Makefile.am (FILTER_MACROS): Add `AC_OUTPUT'.
Since `AC_OUTPUT' is now AU_DEFUN'd, it is extracted for testing,
while it was not before.
* tests/tools.m4 (autoupdate): Re-enable.  Adjust the expected
output with the right quotation (yeah!).
Pass `-m $top_srcdir': autoupdate want the `.m4' files, not the
frozen files.
* Makefile.am (nodistpkgdataDATA): Move `acversion.m4' to
(distpkgdataDATA): here, so that all the `.m4' files are in the
source hierarchy, not split across src and build.
* acversion.m4.in: Update to today's standards.
* Makefile.am: Adjust.