Commit Graph

64 Commits

Author SHA1 Message Date
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
Akim Demaille
0efbaeec6b * acgeneral.m4 (_AC_OUTPUT_HEADERS, _AC_OUTPUT_FILES): Don't use
`... echo "error: \`$f'" ...`
as it's not portable to BSDI 1.3.
Do this instead:
   `... echo "error: $f" ...`
Reported by Daniele Arena.
2000-11-29 16:08:43 +00:00
Akim Demaille
9f5b35eb49 QNX 4.2.5's expr always exits 1 when `:' is used with parens.
* doc/autoconf.texi (Limitations of Usual Tools) <expr>: More
information, thanks to Paul Berrevoets, Paul Eggert and David
Morgan.
* sh.m4 (_AS_EXPR_PREPARE): New.
(AS_DIRNAME): Use it.
2000-11-29 15:52:02 +00:00
Akim Demaille
ab3629569e * doc/autoconf.texi (Shellology): Some about /usr/xpg4/bin/sh on
Solaris.
Sort the entries.
Some words about POSIX vs Bourne shell.
From Russ Allbery and Robert Lipe.
2000-11-10 12:10:13 +00:00
Akim Demaille
3c3853ced4 * acgeneral.m4 (AU_ALIAS): Don't forget to pass the arguments to
the new macro...
Reported by Ezra Peisach.
* tests/semantics.m4 (AC_HAVE_FUNCS): New test.
* tests/tools.at (autoupdate): As a benign side effect, updating a
macro that takes no argument produces `UPDATED([])', no longer
`UPDATED()'.  Adjust the test.
2000-11-03 11:59:39 +00:00
Akim Demaille
9fe8a5d0c2 * acgeneral.m4 (_AC_INIT_PARSE_ARGS): TRIPLET can include `_' and
`-'.
Reported by Andreas Jaeger.
2000-11-03 09:22:14 +00:00
Pavel Roskin
48f158e039 * ifnames.sh: Put the opening brace on the same line with
patterns. Reported by Paul Martinolich.
        * tests/tools.at (AWK portability): Check ifnames.
        (ifnames): New test for ifnames.
        * THANKS: Updated.
2000-11-02 17:03:32 +00:00
Akim Demaille
d470846d3e * acgeneral.m4 (_AC_INIT_PREPARE): Move the
_AC_INIT_PREPARE_ENVIRONMENT invocation to...
(_AC_INIT_DEFAULTS): here,  so that we keep the same known
environment for more of the script.
2000-10-17 12:48:50 +00:00
Akim Demaille
01383c4818 * acspecific.m4 (AC_PROG_RANLIB): Use AC_CHECK_TOOL.
* doc/autoconf.texi (Limitations of Usual Tools): Typos.
2000-08-04 09:21:52 +00:00
Akim Demaille
c528b19557 * doc/autoconf.texi (Installation Directory Variables):
Clarifications and typos.
2000-08-01 08:21:38 +00:00
Akim Demaille
7ba559deeb Update Peter Simons' address. 2000-07-26 10:01:26 +00:00
Akim Demaille
17680fe3fb * autoconf.sh (_ac_warnings): Fix call to tr.
Reported by Johan Danielsson.
2000-07-12 16:33:38 +00:00
Akim Demaille
6a1acb0259 * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Keep -lm, if a Fortran
compiler needs it, it is likely to be required when linking C/C++
with Fortran.
<-YP,*>: Fix the list of arguments to loop on.
Don't mess with the user variable name space.
<ac_ld_run_path>: Prepend LD_RUN_PATH directories with -R only
when running Solaris (without this, link errors occur).
2000-07-07 08:49:18 +00:00
Akim Demaille
c50f5b336c * acgeneral.m4 (_AC_SHELL_TMPDIR): When using `mktemp -d', be sure
that the directory was created: under Ultrix 4.3 it just returns
a name, but does not create the directory.
Reported by Christian Krackowizer.
2000-07-05 16:01:57 +00:00
Akim Demaille
4c8b976769 * acgeneral.m4 (AC_CACHE_VAL): Swap the arguments of `regexp'.
Reported by Alexandre Oliva.
2000-06-26 10:57:46 +00:00
Akim Demaille
12e3a8ea6e The current implementation of AC_REQUIRE fails on
| AC_DEFUN([TEST1],  [REQUIRE([TEST2a])REQUIRE([TEST2b])])
| AC_DEFUN([TEST2a], [])
| AC_DEFUN([TEST2b], [REQUIRE([TEST3])])
| AC_DEFUN([TEST3],  [REQUIRE([TEST2a])])
|
| AC_INIT
| TEST1

because it produces TEST3; TEST2a; TEST2b; TEST1.
Fix this bug, implement the solution provided by Axel Thimm,
and test AC_REQUIRE.

* acgeneral.m4: Document this implementation.
(_AC_DEFUN_PRO, _AC_DEFUN_EPI, AC_REQUIRE): Be sure that macros
are emitted in the same order as they are expanded.
(AC_REQUIRE): Forbid being calling out of an AC_DEFUN'd	macro (in
particular the top level).
* tests/base.m4 (AC_REQUIRE): New test.
2000-06-26 09:06:02 +00:00
Akim Demaille
aa8bef1fcd 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.
2000-05-26 08:37:38 +00:00
Akim Demaille
bbd3b7f40c 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.
2000-05-23 09:52:05 +00:00
Akim Demaille
e6f88d2705 * doc/autoconf.texi: Fix typos. 2000-05-12 07:44:40 +00:00
Akim Demaille
b2c5b8a278 Provide a macro to canonicalize a configuration name.
Suggested by Ralf Corsepius.

*  acgeneral.m4 (AC_CANONICALIZE): New macro.
(_AC_CANONICAL_THING): Use it.
2000-05-03 09:53:55 +00:00
Akim Demaille
04149796fa * acspecific.m4 (AC_FUNC_MKTIME): Use AC_SUBST. 2000-04-20 11:49:53 +00:00
Akim Demaille
afd63112d9 * 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.
2000-04-12 11:50:57 +00:00
Akim Demaille
8f0e1b3401 Fix typo. 2000-04-03 11:19:22 +00:00
Akim Demaille
bb84983e28 * acgeneral.m4 (_AC_INIT_HELP, _AC_OUTPUT_SUBDIRS): Fix the DOS
absolute path pattern: s/?:[[/\]]/?:[[/\]]*/.
2000-03-27 11:44:22 +00:00
Akim Demaille
f684a9be3d * 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.
2000-03-25 09:16:53 +00:00
Akim Demaille
aac61512e0 In Autoconf 2.13, although AC_OUTPUT_COMMANDS did double quote its
arguments, AC_OUTPUT arguments 2 and 3 were not!  Currently,
AC_OUTPUT over quotes too: stop that.
Reported by Martin Buchholz.

* doc/autoconf.texi (Output): Don't expand on the ternary
AC_OUTPUT.
* acgeneral.m4 (AC_OUTPUT): Don't over quote $2 and $3.
2000-03-17 10:07:56 +00:00
Akim Demaille
ab542b1f77 * acspecific.m4 (AC_SYS_LONG_FILE_NAMES): Security fixes: create
the temp files in a private temporary directory, not directly in
TMPDIR.
2000-03-17 08:40:27 +00:00
Akim Demaille
134cd844f3 * tests/actest.m4 (AC_ENV_SAVE): Don't consider RANDOM and LINENO
which some shells update.
2000-03-14 08:59:11 +00:00
Akim Demaille
47f8108881 * acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Added some missing
headers if they exist (needed for some missing prototypes) and
corrects the signal handler prototype/definition.  The signal
handler prototype is now prepended with an `extern "C"' for C++
compilers since some platforms explicitly require an `extern "C"'
signal handler.
2000-03-09 15:44:40 +00:00
Akim Demaille
0f81aa0974 * acgeneral.m4 (_AC_INIT_PARSE_ARGS): Fix copy n' paste typos in
`--with-*', `--without-*' and `*' decoding.
Reported by Raja R Harinath.
Fixes autoconf/119.
2000-03-08 11:13:31 +00:00
Akim Demaille
f765eb228e * autoscan.pl (parse_args): Add support for -m <macrodir>. 2000-03-02 18:25:34 +00:00
Akim Demaille
df786bcc63 * libm4.m4 (m4_noquote): New macro. 2000-03-02 17:11:31 +00:00