Commit Graph

95 Commits

Author SHA1 Message Date
Akim Demaille
9a56bdde71 * doc/autoconf.texi (Limitations of Usual Tools): Some about mv
from /tmp.
Thanks to Bill Moseley and Paul Eggert.
* lib/m4sugar/m4sh.m4 (AS_TMPDIR): $2 is the directory into which
the tmpdir must be created.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Have the tmp
dir be in the build tree, instead of $TMPDIR.
2002-09-27 08:20:26 +00:00
Akim Demaille
c751364a4a * bin/autoreconf.in: Don't use Cwd::chdir, since in its internals
(chdir_init) might hang when stat'ing mounted directories.
Reported by Vance Shipley.
2002-09-13 06:59:56 +00:00
Akim Demaille
899f0c52eb * doc/autoconf.texi (Setting Output Variables): Clarify what
precious variables are.
Suggested by Pontus Skoeld.
2002-09-06 11:10:37 +00:00
Akim Demaille
c236414974 * doc/autoconf.texi: Use @enddots{} or @dots{} where appropriate. 2002-07-09 08:32:40 +00:00
Akim Demaille
dad5b29768 * bin/autom4te.in (warn_forbidden): When rejecting a token,
suggest m4_pattern_allow.
Suggested by Adam J. Richter.
2002-06-07 08:03:55 +00:00
Akim Demaille
d658e7f3be * doc/autoconf.texi: Mention "set -e -x" lossage
under node "Limitations of Builtins".
2002-04-29 13:35:51 +00:00
Akim Demaille
e00977c735 * doc/install.texi: Better wording for setting variables when
running configure.
From Christian Cornelssen.
2002-04-29 13:33:22 +00:00
Akim Demaille
ee1648fd44 * doc/autoconf.texi (Obsolete Macros): Typo.
Reported by Vladimir Volovich.
2002-04-25 15:32:15 +00:00
Akim Demaille
3e6f1ca1e0 Remove a spurious comma. 2002-04-22 11:07:26 +00:00
Akim Demaille
ac07b92899 Comment changes. 2002-04-10 17:36:45 +00:00
Akim Demaille
9d658eddd9 * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Install the Zsh
workaround for ${1+"$@"}.
* doc/autoconf.texi (Shell Substitutions): Explain it.
From Oliver Kiddle and Peter Stephenson.
Have M4sh perform minimal shell sanitizing.
* lib/m4sugar/m4sh.at (AS_SHELL_SANITIZE): Split the `_AS_PREPARE_*'
part into...
(_AS_PREPARE): this new macro.
(AS_PREPARE): New.
(AS_INIT): Invoke AS_SHELL_SANITIZE.
* tests/m4sh.at (AT_DATA_LINENO): Use _AS_PREPARE.
Adjust Autoconf and Autotest.
* lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Don't invoke
AS_SHELL_SANITIZE, AS_INIT did it, but invoke AS_PREPARE.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS):
Invoke _AS_PREPARE (not AS_PREPARE) in addition to
AS_SHELL_SANITIZE.
Use this M4sh to generate Autoconf's shell scripts.
* tests/wrapsh.as: New, precursor of wrapsh.in.
* tests/Makefile.am: Include lib/freeze.mk to get the dependencies
on Autotest and M4sh.
($(TESTSUITE)): Use $(autotest_m4f_dependencies).
(wrapsh.in): New target.
* bin/autoconf.as: New, precursor of autoconf.in.
(autoconf.in): New target.
2002-04-10 15:58:19 +00:00
Akim Demaille
3b4578e038 * doc/autoconf.texi: Adjust @code/@command, @xref/@ref usage.
From Nishio Futoshi.
2002-03-19 15:20:58 +00:00
Akim Demaille
b8d6b81d64 * doc/autoconf.texi (Limitations of Usual Tools): Some about `cp
-p'.
From Bob Proulx.
2002-03-13 09:44:21 +00:00
Akim Demaille
772b0c11e2 * lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Fix the test.
From Akinori Musha.
2002-02-25 17:38:41 +00:00
Akim Demaille
0913170fae Fix Autoconf PR/209.
Also reported by Frank Denis.
* lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Don't over quote.
2002-02-07 15:49:31 +00:00
Akim Demaille
d03ab7023b * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
case/esac, some shells don't support it.
Reported by Zack Weinberg.
* tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
2002-02-06 17:51:01 +00:00
Akim Demaille
06978acd7b * tests/torture.at (Configuring subdirectories): Use configure.in,
so that aclocal 1.4 works.
Reported by Alexandre Duret-Lutz and Larry Schmitt.
2002-01-29 17:19:29 +00:00
Akim Demaille
fa91df12dd * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Use PATH_SEPARATOR.
(_AS_PATH_SEPARATOR_PREPARE): Don't expect $SHELL to be
Bourne. Use /bin/sh.
From Andreas Buening.
2002-01-24 17:53:52 +00:00
Akim Demaille
eb93e2e245 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS)
(_AC_INIT_PREPARE): Support -n as --no-create, as documented.
Reported by Geir Ove Myhr.
2002-01-24 17:15:54 +00:00
Akim Demaille
ce9afffc01 * doc/autoconf.texi (Output): Improved wording regarding use of
AC_OUTPUT.
From Olly Betts.
2002-01-03 11:17:28 +00:00
Akim Demaille
3593206439 * lib/autoconf/general.m4 (_AC_INIT_PREPARE): We cleaning up the
trailing files, don't apply `-rf' to files which might not be
created by configure (core, core.*, and *.core), but just `rm -f'.
Suggested by Jonathan Kamens.
2001-12-14 18:06:28 +00:00
Akim Demaille
e3a8667131 * lib/autoconf/general.m4: Avoid duplicates in `$ac_configure_args'. 2001-12-14 18:01:13 +00:00
Akim Demaille
7a8927ef93 * m4sugar.m4 (_m4_foreach): Make it linear instead quadratic.
(m4_car2): New.
(m4_car): Properly quote arguments.
2001-11-13 10:42:05 +00:00
Akim Demaille
cf951e25b3 * tests/base.at, tests/m4sh.at: Be sure to issue the bangshe line
_first_.
Reported by Gerrit P. Haase.
2001-09-13 15:47:34 +00:00
Akim Demaille
503e11606c * lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
to avoid GCC warnings.
From Uwe Seimet.
2001-09-05 08:46:53 +00:00
Akim Demaille
23f9787fe5 * doc/autoconf.texi (Examining Declarations) <AC_TRY_CPP>:
(Examining Syntax) <AC_TRY_COMPILE>
(Examining Libraries) <AC_TRY_LINK>
(Test Programs) <AC_TRY_RUN>: These macros double quote some of
their arguments.
Reported by Werner Lemberg.
2001-08-20 14:46:41 +00:00
Alexandre Duret-Lutz
6667f46047 * lib/autoconf/c.m4 (AC_C_BIGENDIAN): Guess endianness by grep'ing
magic values from an object file when cross-compiling.
Based on code by Guido Draheim <Guido.Draheim@gmx.de>.
2001-08-12 12:22:29 +00:00
Akim Demaille
9098f2529a The runtime test for AC_FUNC_GETPGRP fails when prototypes are
used.  Well, then use the prototypes when you can, and runtime as
a last resort.
Reported by Artur Frysiak
* acfunctions.m4 (_AC_FUNC_GETPGRP_TEST): New.
(AC_FUNC_GETPGRP): Use it.
First try to compile with 0-ary or 1-ary calls.
2001-07-17 16:21:25 +00:00
Akim Demaille
d467ad19b9 * Makefile.am (INSTALL.txt): Don't use $@ and $< in non suffix
rules.
From Marc Espie.
* Makefile.maint (release-archive-dir): Rename as...
(release_archive_dir): this, so that it can be specialized in
Makefile.
2001-07-17 07:29:35 +00:00
Akim Demaille
f25219dfd6 For some AWK, such as on HPUX 11, xfoo' does not match foo|^bar'.
Reported by Michael Elizabeth Chastain.
* autoconf.in: Refuse such AWK.
* configure.in: Likewise.
* Makefile.am (acversion.m4): Do not use move-if-change this file
has dependencies.
* doc/autoconf.texi (Fortran 77 Compiler): Some typos.
2001-07-12 12:42:46 +00:00
Akim Demaille
17c8111864 * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
confdefs.h when non-zero.
2001-06-28 16:05:29 +00:00
Akim Demaille
ee0ed17eec Typos. 2001-06-19 17:44:12 +00:00
Akim Demaille
4ce12bf79e * acfunctions.m4: (AC_FUNC_VFORK) rename as...
(_AC_FUNC_VFORK): this.
Remove AC_DEFINEs and don't guess cross-compilation values.
(_AC_FUNC_FORK): New, check whether fork() isn't just a stub.
(AC_FUNC_FORK): New, use _AC_FUNC_VFORK and _AC_FUNC_FORK to
define HAVE_WORKING_FORK, HAVE_WORKING_VFORK; and vfork to fork if
vfork doesn't work.
Guess values if cross-compiling, but warn.
* acfunctions: Add AC_FUNC_FORK.
* doc/autoconf.texi: Document AC_FUNC_FORK. Give example to define
and vfork appropriately.
2001-06-18 19:11:24 +00:00
Akim Demaille
cb1bba338d * acgeneral.m4 (AC_CHECK_LIB): Fix the cache var name to work
properly when $1 is not a literal.
Fixes PR Autoconf/187, reported by Bram Moolenaar.
2001-06-06 15:03:29 +00:00
Akim Demaille
ec1c2ffd43 * acgeneral.m4 (_AC_INIT_PARSE_ARGS): prefix' and exec_prefix'
can be empty.
`*dir' variables cannot be NONE.
Reported by Mark Kettenis.
2001-06-05 12:44:13 +00:00
Akim Demaille
791ec9f1f4 * tests/base.at, tests/m4sh.at: When using AC_PLAIN_SCRIPT be sure
to emit the bangshe line.
Reported by David Carter.
2001-05-31 07:02:13 +00:00
Lars J. Aas
da51c46ca7 tabs to spaces 2001-05-10 15:43:28 +00:00
Akim Demaille
060b6812f6 * tests/compile.at (AC_PROG_CPP via CC): New.
From Daniel Carroll.
2001-05-10 15:41:16 +00:00
Steven G. Johnson
d0a3c356e4 eh, don't hyphenate up-to-date here 2001-04-20 14:13:45 +00:00
Steven G. Johnson
d632f95780 grammar fix 2001-04-20 14:11:38 +00:00
Lars J. Aas
d35407c9a7 Use spaces intead of tabs. 2001-04-10 11:37:03 +00:00
Akim Demaille
9c1db6a872 Missing maindex, from Enrique Robledo Arnuncio. 2001-02-26 14:37:24 +00:00
Akim Demaille
d145543abd acfunctions.m4 was still using the old AC_LIBOBJ_DECL.
Reported by Derek R. Price.
* tests/semantics.at (AC_REPLACE_FUNCS): New test.
* acfunctions.m4 (AC_REPLACE_FUNCS, _AC_LIBOBJ_ALLOCA): Use
AC_LIBSOURCES.
2001-02-05 10:16:32 +00:00
Akim Demaille
b8d698ca1d The recent addition of `exit's prototype in confdefs.h causes
AC_OUTPUT_MAKE_DEFS to include junky -D switches.
Reported by Wolfgang Mueller.
* tests/torture.at (#define header templates): Include trash in
confdefs.h.
* tests/atgeneral.at (AT_INIT): Don't expect `find' to support
-maxdepth, hence don't use -follow either.
Reported by Nicolas Joly.
* acgeneral.m4 (AC_OUTPUT_MAKE_DEFS) <confdef2opt.sed>: In the
`quote' section, `p'rint the result.
If neither `#define' pattern match, just call `d' to start a new
cycle.
Call this sed program with -n.
2001-01-30 19:29:38 +00:00
Akim Demaille
5fef1ba952 * tests/foreign.at (Autoconf & Libtool): configure.in', not .ac'
since Libtool does not yet support it.
Let the test suite be more verbose about at-path.
From Patrick Welche.
2001-01-18 13:16:02 +00:00
Akim Demaille
4c6ce32f58 * m4sh.m4 (AS_EXIT): Don't rely on exit == exit $?.
Reported by Tim Van Holder.
2001-01-16 10:27:19 +00:00
Akim Demaille
bd132b191d * acfunctions.m4 (AC_FUNC_MEMCMP): Missing comma in AC_TRY_RUN
invocation.
2001-01-11 16:12:00 +00:00
Akim Demaille
6a0c144a03 * autoconf.texi (Shellology): Fix an @end itemize, and a typo. 2001-01-11 14:26:45 +00:00
Akim Demaille
d7e11d6a4a Normalize ChangeLog. 2000-12-15 14:38:48 +00:00
Akim Demaille
cc458dbc82 * acspecific.m4 (_AC_OBJEXT, _AC_EXEEXT): Ignore .d files produced
by CFLAGS=-MD.
2000-12-05 18:15:44 +00:00