* lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
[autoconf.git] / NEWS
blob2478bb73f5c8e909236c9ddcd50961f3865f1697
1 * Major changes in Autoconf 2.59a
3 ** AC_PROG_GREP
4   New macro that tests for a grep program that accepts as a long a line
5   as possible.
7 ** AC_PROG_EGREP, AC_PROG_FGREP
8   These macros now require AC_PROG_GREP, and try EGREP="$GREP -E" and
9   FGREP="$GREP -F" respectively if possible, or else run a path search for
10   a program that accepts as long a line as possible.
12 ** AC_PROG_SED
13   New macro that tests for a sed program that truncates as few characters
14   as possible.
16 * Major changes in Autoconf 2.59
18   Released 2003-11-04, by Akim Demaille
20 ** ac_abs_builddir etc.
21   Absolute paths were actually relative in 2.58.
23 * Major changes in Autoconf 2.58
25   Released 2003-11-04, by Akim Demaille
27 ** core.*
28   core.* files are no longer removed, as they may be valid user files.
30 ** autoreconf and auxiliary directory
31   Autoreconf creates the auxiliary directory if needed.  This is
32   especially useful for initial "bootstrapping" of fresh CVS checkouts.
34 ** AC_CONFIG_MACRO_DIR
35   Use this macro to declare the directory for local m4 macros for aclocal.
37 ** AC_LIBOBJS
38   No longer includes twice the same file in LIBOBJS if invoked
39   multiple times.
41 ** AC_CONFIG_COMMANDS
42   The directory for its first argument is automatically created.  For
43   instance, with
45       AC_CONFIG_COMMANDS([src/modules.hh], [...])
47   $top_builddir/src/ is created if needed.
49 ** Autotest and local.at
50   The optional file local.at is always included in Autotest test suites.
52 ** Warnings
53   The warnings are always issued, including with cached runs.
54   This became a significant problem since aclocal and automake can
55   run autoconf behind the scene.
57 ** autoheader warnings
58   The warnings of autoheader can be turned off, using --warning.
59   For instance, -Wno-obsolete disables the complaints about acconfig.h
60   and other deprecated constructs.
62 ** New macros
63   AC_C_RESTRICT, AC_INCLUDES_DEFAULT, AC_LANG_ASSERT, AC_LANG_WERROR,
64   AS_SET_CATFILE.
66 ** AC_DECL_SYS_SIGLIST
67   Works again.
69 ** AC_FUNC_MKTIME
70   Now checks that mktime is the inverse of localtime.
72 ** Improve DJGPP portability
73   The Autoconf tools and configure behave better under DJGPP.
75 ** Present But Cannot Be Compiled
76   New FAQ section dedicated to the mystic
78     configure: WARNING: pi.h: present but cannot be compiled
79     configure: WARNING: pi.h: check for missing prerequisite headers?
80     configure: WARNING: pi.h: proceeding with the preprocessor's result
81       messages.
83 ** Concurrent executions of autom4te
84   autom4te now locks its internal files, which enables concurrent
85   executions of autom4te, likely to happen if automake, autoconf,
86   autoheader etc. are run simultaneously.
88 ** Libtool
89   Use of Libtool 1.5 and higher is encouraged.  Compatibility with
90   Libtool pre-1.4 is not checked.
92 ** Autotest
93   Testsuites no longer rerun failed tests in verbose mode; instead,
94   failures are logged while the test is run.
96   In addition, expected failures can be marked as such.
98 * Major changes in Autoconf 2.57
100   Released 2002-12-03 by Paul Eggert.
102 Bug fixes for problems with AIX linker, with freestanding C compilers,
103 with GNU m4 limitations, and with obsolete copies of GNU documents.
105 The Free Documentation License has been upgraded from 1.1 to 1.2.
107 * Major changes in Autoconf 2.56
109   Released 2002-11-15 by Akim Demaille.
111 One packaging problem fixed (config/install-sh was not executable).
113 * Major changes in Autoconf 2.55
115   Released 2002-11-14 by Akim Demaille.
117 Release tips:
119            Have your configure.ac checked by autoscan ("autoscan").
120              Try the warning options ("autoreconf -fv -Wall").
122 ** Documentation
124 - AC_CHECK_HEADER, AC_CHECK_HEADERS
125   More information on proper use.
127 - Writing Test Programs
129   This sections explains how to write good test sources to use with
130   AC_COMPILE_IFELSE etc.  It documents AC_LANG_PROGRAMS and so forth.
132 - AC_FOO_IFELSE vs. AC_TRY_FOO
134   Explains why Autoconf moves from AC_TRY_COMPILE etc. to
135   AC_COMPILE_IFELSE and AC_LANG_PROGRAM etc.
137 ** autoreconf
139 - Is more robust to different Gettext installations.
141 - Produces messages (when --verbose) to be understood by Emacs'
142   compile mode.
144 - Supports -W/--warnings.
146 - -m/--make
147   Once the GNU Build System reinstalled, run `./config.status
148   --recheck && ./config.status && make' if possible.
150 ** autom4te
152 - Supports --cache, and --no-cache.
154 - ~/.autom4te.cfg makes it possible to disable the caching mechanism
155   (autom4te.cache).  See `Customizing autom4te' in the documentation.
157 ** config.status
158   Supports --quiet.
160 ** Obsolete options
162   Support for the obsoleted options -m, --macrodir, -l, --localdir is
163   dropped in favor of the safer --include/--prepend-include scheme.
165 ** Macros
167 - New macros
168   AC_COMPILER_IFELSE, AC_FUNC_MBRTOWC, AC_HEADER_STDBOOL,
169   AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM, AC_LANG_CALL,
170   AC_LANG_FUNC_TRY_LINK, AC_MSG_FAILURE, AC_PREPROC_IFELSE.
172 - Obsoleted
173   Obsoleted macros are kept for Autoconf backward compatibility, but
174   should be avoided in configure.ac.  Running autoupdate is advised.
175   AC_DECL_SYS_SIGLIST.
177 - AC_DEFINE/AC_DEFINE_UNQUOTED
179   We have to stop using the old compatibility scheme --that tried to
180   avoid useless backslashes-- because Libtool 1.4.3 contains a
182   AC_DEFINE([error_t], [int],
183             [Define to a type to use for \`error_t' if it is not
184              otherwise available.])
186   We have to quote the single quotes and backslashes with \.  The old
187   compatibility scheme saw that ` was backslashed, and therefore did
188   not quote the single quote...  Failure.  Hence, Autoconf 2.54 is not
189   compatible with Libtool.  Autoconf 2.55 is, but in some cases might
190   produce more \ than wanted.
192   Please, note that in the future the same problem will happen with
193   AC_MSG_*: use `autoreconf -f -Wall'.
195 ** Bug Fixes
197 - Portability of the Autoconf package to Solaris.
199 - Spurious warnings caused by config.status.
200   This bug is benign, but painful: on some systems (typically
201   FreeBSD), warnings such as:
203      config.status: creating Makefile
204      mv: Makefile: set owner/group (was: 1357/0): Operation not permitted
206   could be issued.  This is fixed.
208 - Parallel Builds
209   Simultaneous executions of config.status are possible again.
211 - Precious variables accumulation
213   config.status could stack several copies of the precious variables
214   assignments.
217 ** Plans for later versions
219 - ./configure <host>
221   The compatibility hooks with the old scheme will be completely
222   removed.  Please, advice/use `--build', `--host', and `--target'
223   only.
225 - AC_CHECK_HEADER, AC_CHECK_HEADERS
227   The tests will be stricter, please make sure your invocations are
228   valid.
230 - shell functions
232   Shell functions will gradually be introduced, probably starting with
233   Autotest.  If you know machines which are in use that you suspect
234   *not* to support shell functions, please run the test suite of
235   Autoconf 2.55 on it, and report the results to
236   bug-autoconf@gnu.org.
238 - AC_MSG_*
240   Special characters in AC_MSG_* need not be quoted.  Currently,
241   Autoconf has heuristics to decide when a string is escaped, or has
242   to be escaped.  This scheme is fragile, and will be removed; the
243   only risk is uglified messages.  Please, run `autoreconf -f -Wall'
244   to find occurrences that will be affected.
246 * Major changes in Autoconf 2.54
248   Released 2002-09-13 by Akim Demaille.
250 ** Executables
252 - autoreconf no longer changes the version of the gettext/po/intl
253   support files. It now adds the files the correspond to the
254   AM_GNU_GETTEXT_VERSION declared in configure.ac.
256   Warning: It now relies on the 'autopoint' program, which is part
257   of GNU gettext 0.11.4 and newer.
259   Please note that you need to have a GNU gettext version that
260   corresponds at least to the AM_GNU_GETTEXT_VERSION declared
261   in configure.ac. You can upgrade to newer GNU gettext versions,
262   though, without needing to change configure.ac.
264 - The -I DIR or --include=DIR option now appends DIR to the include path
265   instead of prepending; this is for consistency with other GNU tools.
266   The new -B DIR or --prepend-include=DIR option has the old behavior.
268 ** Macros
270 - AC_OUTPUT
271   Now handles all the gory details about LIBOBJS and LTLIBOBJS.
272   Please, remove lines such as
274         # This is necessary so that .o files in LIBOBJS are also
275         # built via the ANSI2KNR-filtering rules.
276         LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
278   and read the `AC_LIBOBJ vs LIBOBJS' section.  Do not define U in
279   your Makefiles either.
281 - AC_CONFIG_LINKS now makes copies if it can't make links.
283 - AC_FUNC_FNMATCH now tests only for POSIX compatibility, reverting to
284   Autoconf 2.13 behavior.  The new macro AC_FUNC_FNMATCH_GNU also
285   tests for GNU extensions to fnmatch, and replaces fnmatch if needed.
287 - AC_FUNC_SETVBUF_REVERSED no longer fails when cross-compiling.
289 - AC_PROG_CC_STDC is integrated into AC_PROG_CC.
291 - AC_PROG_F77 default search no longer includes cf77 and cfg77.
293 - New macros
295   AC_C_BACKSLASH_A, AC_CONFIG_LIBOBJ_DIR, AC_GNU_SOURCE,
296   AC_PROG_EGREP, AC_PROG_FGREP, AC_REPLACE_FNMATCH,
297   AC_FUNC_FNMATCH_GNU, AC_FUNC_REALLOC, AC_TYPE_MBSTATE_T.
299 - AC_FUNC_GETLOADAVG
300   looks for getloadavg.c in the CONFIG_LIBOBJ_DIR.
302 - AC_FUNC_MALLOC
303   Now defines HAVE_MALLOC to 0 if `malloc' does not work, and asks
304   for an AC_LIBOBJ replacement.
306 ** Bug fixes
308 - Spurious complaints from `m4_bmatch' about invalid regular
309   expressions are suppressed.
311 - Empty top_builddirs are properly handled.
313 - AC_CHECK_MEMBER works correctly when the member is an aggregate.
315 - AC_PATH_PROG
316   Now colon in the optional path arguments are properly handled.
318 ** Improved portability
320 - Both Autoconf the package, and the scripts it produces, should run
321   more reliably with Zsh.  Bear in mind it is the default Bourne shell
322   on Darwin.
324 - Autoconf and the scripts it produces no longer assume the existence of
325   the obsolescent commands egrep and fgrep.
327 ** Documentation
329 - Limitations of Make
330   More of them.
332 - GNATS
333   The GNATS base has moved to
334   http://bugs.gnu.org/cgi-bin/gnatsweb.pl?database=autoconf
336 ** Misc.
338 - config.log
339   Now contains the list of ouput variables and files (AC_SUBST,
340   AC_SUBST_FILES).
342 * Major changes in Autoconf 2.53
344   Released 2002-03-08 by Akim Demaille.
346 ** Requirements
348   Perl 5.005_03 or later is required: autom4te is written in Perl and is
349   needed by autoconf.  autoheader, autoreconf, ifnames, and autoscan are
350   rewritten in Perl.
352 ** Documentation
354 - AC_INIT
355   Argument requirements, output variables, defined macros.
356 - M4sugar, M4sh, Autotest
357   First sketch.
358 - Double quoting macros
359   AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and AC_TRY_RUN.
360 - Licensing
361   The Autoconf manual is now distributed under the terms of the GNU FDL.
362 - Section `Hosts and Cross-Compilation'
363   Explains the rationale for the 2.5x changes in the cross-compilation
364   chain, and in the relationships between build, host, and target
365   types.
366   Emphasizes that `cross-compilation' == `--host is given'.
367   If you are working on compilers etc., be sure to read this section.
368 - Section `AC_LIBOBJ vs. LIBOBJS'
369   Explains why assigning LIBOBJS directly is now an error.
370   Details how to update the code.
372 ** configure
374 - $LINENO
375   Now used instead of hard coded line numbers.
376   This eases the comparison of `configure's, and diminishes the
377   pressure over control version archives.
378   Automatic replacement for shells that don't support this feature.
379 - New output variables
380   @builddir@, @top_builddir@, @abs_srcdir@, @abs_top_srcdir@, @abs_builddir@,
381   @abs_top_builddir@.
383 ** Emacs
385   Autoconf and Autotest modes are provided.
387 ** Executables
389 - autom4te
390   New, used by the Autoconf suite to cache and speed up most processing.
391 - --force, -f
392   Supported by autom4te, autoconf and autoheader.
393 - --include, -I
394   Replaces --autoconf-dir and --localdir in autoconf, autoheader,
395   autoupdate, and autoreconf.
396 - autoreconf
397   No longer passes --cygnus, --foreign, --gnits, --gnu, --include-deps:
398   automake options are to be given via AUTOMAKE_OPTIONS.
399 - autoreconf
400   Runs gettextize and libtoolize when appropriate.
401 - autoreconf
402   --m4dir is no longer supported.
403 - autoreconf
404   Now runs only in the specified directories, defaulting to `.',
405   but understands AC_CONFIG_SUBDIRS for dependent directories.
406   Before, it used to run on all the `configure.ac' found in the
407   current tree.
408   Independent packages are properly updated.
410 ** Bug fixes
412 - The top level $prefix is propagated to the AC_CONFIG_SUBDIRS configures.
413 - AC_TRY_RUN
414   Under the user pressure, $? is finally available.  Probably a mistake.
415 - AC_F77_LIBRARY_LDFLAGS now supports the HP/UX f90 compiler.
416 - Precious variables accumulation
417   config.status could stack several copies of the precious variables
418   assignments.
419 - AC_PATH_PROG and family.
420   Works properly when given a literal path.
421 - AC_FUNC_SETPGRP
422   Somewhere since 2.13, the result had been reversed.
424 ** C Macros
426 - AC_C_BIGENDIAN supports the cross-compiling case.
427 - AC_C_BIGENDIAN accepts ACTION-IF-TRUE, ACTION-IF-FALSE, and
428   ACTION-IF-UNKNOWN arguments.  All are facultative, and the default
429   for ACTION-IF-TRUE is to define WORDS_BIGENDIAN like AC_C_BIGENDIAN
430   always did.
431 - AC_C_LONG_DOUBLE now succeeds only if `long double' has more range or
432   precision than `double'.
434 ** Generic macros
436 - AC_INIT
437   It now defines the preprocessor symbols PACKAGE_NAME,
438   PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING, and
439   PACKAGE_BUGREPORT.
441 - AC_INIT
442   Admits a fourth optional parameter: the tar name.
444 - AC_CONFIG_COMMANDS, HEADERS, FILES, LINKS.
445   Provide the user with srcdir, ac_srcdir, ac_top_srcdir, ac_builddir,
446   ac_top_builddir, ac_abs_srcdir, ac_abs_top_srcdir, ac_abs_builddir,
447   ac_abs_top_builddir.
449 - AC_CONFIG_COMMANDS, HEADERS, FILES, LINKS and AC_OUTPUT.
450   Are much less expensive when using long lists of files.
452 - AC_PREFIX_PROGRAM
453   Works with shell variables, and non alphanumeric names.
455 ** Library macros
457 - AC_FUNC_STRERROR_R now sets STRERROR_R_CHAR_P, not HAVE_WORKING_STRERROR_R,
458   because POSIX 1003.1-200x draft 7 says strerror_r returns int, not char *.
460 - AC_FUNC_STRTOD substitutes POW_LIB.
462 - AC_FUNC_STRNLEN
463   New.
465 * Major changes in Autoconf 2.52
467   Released 2001-07-18 by Akim Demaille.
469 ** Documentation
470 - AC_ARG_VAR
471 - Quadrigraphs
472   This feature was present in autoconf 2.50 but was not documented.
473   For example, `@<:@' is translated to `[' just before output.  This
474   is useful when writing strings that contain unbalanced quotes, or
475   other hard-to-quote constructs.
476 - m4_pattern_forbid, m4_pattern_allow
477 - Tips for upgrading from 2.13.
478 - Using autoscan to maintain a configure.ac.
480 ** Default includes
481 - Now include stdint.h.
482 - sys/types.h and sys/stat.h are guarded.
483 - strings.h is included if available, and not conflicting with string.h.
485 ** Bug fixes
486 - The test suite is more robust and presents less false failures.
487 - Invocation of GNU M4 now robust to POSIXLY_CORRECT.
488 - configure accepts --prefix='' again.
489 - AC_CHECK_LIB works properly when its first argument is not a
490   literal.
491 - HAVE_INTTYPES_H is defined only if not conflicting with sys/types.h.
492 - build_, host_, and target_alias are AC_SUBST as in 2.13.
493 - AC_ARG_VAR properly propagates precious variables inherited from the
494   environment to ./config.status.
495 - Using --program-suffix/--program-prefix is portable.
496 - Failures to detect the default compiler's output extension are less
497   likely.
498 - `config.status foo' works properly when `foo' depends on variables
499   set in an AC_CONFIG_THING INIT-CMD.
500 - autoheader is more robust to broken input.
501 - Fixed Fortran name-mangling and link tests on a number of systems,
502   e.g. NetBSD; see AC_F77_DUMMY_MAIN, below.
504 ** Generic macros
505 - AC_CHECK_HEADER and AC_CHECK_HEADERS support a fourth argument to
506   specify pre-includes.  In this case, the headers are compiled with
507   cc, not merely preprocessed by cpp.  Therefore it is the _usability_
508   of a header which is checked for, not just its availability.
509 - AC_ARG_VAR refuses to run configure when precious variables have
510   changed.
511 - Versions of compilers are dumped in the logs.
512 - AC_CHECK_TYPE recognizes use of `foo_t' as a replacement type.
514 ** Specific Macros
515 - AC_PATH_XTRA only adds -ldnet to $LIBS if it's needed to link.
516 - AC_FUNC_WAIT3 and AC_SYS_RESTARTABLE_SYSCALLS are obsoleted.
517 - AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH, AM_FUNC_MKTIME,
518   AM_FUNC_OBSTACK, and AM_FUNC_STRTOD are now activated.
519   Be sure to read `Upgrading from Version 2.13' to understand why
520   running `autoupdate' is needed.
521 - AC_F77_DUMMY_MAIN, AC_F77_MAIN: new macros to detect whether
522   a main-like routine is required/possible when linking C/C++ with
523   Fortran.  Users of e.g. AC_F77_WRAPPERS should be aware of these.
524 - AC_FUNC_GETPGRG behaves better when cross-compiling.
526 * Major changes in Autoconf 2.51
527 There was no release of Autoconf 2.51 since some packagers had used
528 this version number without permission to ship intermediary versions
529 of 2.50.  The version was skipped to avoid confusion.
532 * Major changes in Autoconf 2.50
534   Released 2001-05-21 by Akim Demaille.
536 ** Lots of bug fixes
537 There have been far too many to enumerate them here.  Check out
538 ChangeLog if you really want to know more.
540 ** Improved documentation
541 In particular, portability issues are better covered.
543 ** Use of Automake
544 All the standard GNU Makefile targets are supported.  The layout has
545 changed: m4/ holds the m4 extensions Autoconf needs for its
546 configuration, doc/ contains the documentation, and tests/ contains
547 the test suite.
549 ** Man pages are provided
550 For autoconf, autoreconf, autoupdate, autoheader, autoscan, ifnames,
551 config.guess, config.sub.
553 ** autoconf
554 - --trace
555   Provides a safe and powerful means to trace the macro uses.  This
556   provide the parsing layer for tools which need to `study'
557   configure.in.
559 - --warnings
560   Specify what category of warnings should be enabled.
562 - When recursing into subdirectories, try for configure.gnu before
563   configure to adapt for packages not using autoconf on case-insensitive
564   filesystems.
566 - Diagnostics
567   More errors are now caught (circular AC_REQUIRE dependencies,
568   AC_DEFINE in the action part of an AC_CACHE_CHECK, too many pops
569   etc.).  In addition, their location and call stack are given.
571 ** autoupdate
572 autoupdate is much more powerful, and is able to provide the glue code
573 which might be needed to move from an old macro to its newer
574 equivalent.
576 You are strongly encouraged to use it to modernize both your
577 `configure.in' and your .m4 extension files.
579 ** autoheader
580 The internal machinery of autoheader has completely changed.  As a
581 result, using `acconfig.h' should be considered to be obsoleted, and
582 you are encouraged to get rid of it using the AH macros.
584 ** autoreconf
585 Extensive overhaul.
587 ** Fortran 77 compilers
588 Globally, the support for Fortran 77 is considerably improved.
590 Support for automatically determining a Fortran 77 compiler's
591 name-mangling scheme.  New CPP macros F77_FUNC and F77_FUNC_ are
592 provided to wrap C/C++ identifiers, thus making it easier and more
593 transparent for C/C++ to call Fortran 77 routines, and Fortran 77 to
594 call C/C++ routines.  See the Texinfo documentation for details.
596 ** Test suite
597 The test suite no longer uses DejaGNU.  It should be easy to submit
598 test cases in this new framework.
600 ** configure
601 - --help, --help=long, -hl
602   no longer dumps useless items.
603 - --help=short, -hs
604   lists only specific options.
605 - --help=recursive, -hr
606   displays the help of all the embedded packages.
607 - Remembers environment variables when reconfiguring.
608   The previous scheme to set envvar before running configure was
609     ENV=VAL ./configure
610   what prevented configure from remembering the environment in which
611   it was run, therefore --recheck was run in an inconsistent
612   environment.  Now, one should run
613     ./configure ENV=VAR
614   and then --recheck will work properly.  Variables declared with
615   AC_ARG_VAR are also preserved.
616 - cross-compilation
617   $build defaults to `config.guess`, $host to $build, and then $target
618   to $host.
619   Cross-compilation is a global status of the package, it no longer
620   depends upon the current language.
621   Cross compilation is enabled iff the user specified `--host'.
622   `configure' now fails if it can't run the executables it compiles,
623   unless cross-compilation is enabled.
624 - Cache file
625   The cache file is disabled by default.  The new options
626   `--config-cache', `-C' set the cache to `config.cache'.
628 ** config.status
629 - faster
630   Much faster on most architectures.
631 - concurrent executions
632   It is safe to use `make -j' with config.status.
633 - human interface improved
634   It is possible to invoke
635     ./config.status foobar
636   instead of the former form (still valid)
637     CONFIG_COMMANDS= CONFIG_HEADERS= CONFIG_LINKS= \
638     CONFIG_FILES=foobar:foo.in:bar.in \
639     ./config.status
640   The same holds for configuration headers and links.
641   You can instantiate unknown files and headers:
642     ./config.status --header foo.h:foo.h.in --file bar:baz
643 - has a useful --help
644 - accepts special file name "-" for stdin/stdout
647 ** Identity Macros
648 - AC_COPYRIGHT
649   Specify additional copyright information.
651 - AC_INIT
652   Now expects the identity of the package as argument.
654 ** General changes.
655 - Uniform quotation
656   Most macros, if not all, now strictly follow the `one quotation
657   level' rule.  This results in a more predictable expansion.
659 - AC_REQUIRE
660   A sly bug in the AC_REQUIRE machinery, which could produce incorrect
661   configure scripts, was fixed by Axel Thimm.
663 ** Setup Macros
664 - AC_ARG_VAR
665   Document and ask for the registration of an envvar.
667 - AC_CONFIG_SRCDIR
668   Specifies the file which `configure' should look for when trying to
669   find the source tree (used to be handled by AC_INIT).
671 - AC_CONFIG_COMMANDS
672   To add new actions to config.status.  Should be used instead of
673   AC_OUTPUT_COMMANDS.
675 - AC_CONFIG_LINKS
676   Replaces AC_LINK_FILES.
678 - AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS, AC_CONFIG_SUBDIRS,
679   AC_CONFIG_LINKS, and AC_CONFIG_FILES
680   They now obey sh: you should no longer use shell variables as
681   argument.  Instead of
683         test "$package_foo_enabled" = yes && $my_subdirs="$my_subdirs foo"
684         AC_CONFIG_SUBDIRS($my_subdirs)
686   write
688         if test "$package_foo_enabled" = yes; then
689           AC_CONFIG_SUBDIRS(foo)
690         fi
692 - AC_HELP_STRING
693   To format an Autoconf macro's help string so that it looks pretty
694   when the user executes `configure --help'.
697 ** Generic Test Macros
698 - AC_CHECK families
699   The interface of the AC_CHECK families of macros (decl, header,
700   type, member, func) is now uniform.  They support the same set of
701   default includes.
703 - AC_CHECK_DECL, AC_CHECK_DECLS
704   To check whether a symbol is declared.
706 - AC_CHECK_SIZEOF, AC_C_CHAR_UNSIGNED.
707   No longer need a cross-compilation default.
709 - AC_CHECK_TYPE
710   The test it performs is much more robust than previously, and makes
711   it possible to test builtin types in addition to typedefs.
712   It is now schizophrenic:
713     - AC_CHECK_TYPE(TYPE, REPLACEMENT)
714       remains for backward compatibility, but its use is discouraged.
715     - AC_CHECK_TYPE(TYPE, IF-FOUND, IF-NOT-FOUND, INCLUDES)
716       behaves exactly like the other AC_CHECK macros.
718 - AC_CHECK_TYPES
719   Checks whether given types are supported by the system.
721 - AC_CHECK_MEMBER, AC_CHECK_MEMBERS
722   Check for given members in aggregates (e.g., pw_gecos in struct
723   passwd).
725 - AC_PROG_CC_STDC
726   Checks if the compiler supports ISO C, included when needs special
727   options.
729 - AC_PROG_CPP
730   Checking whether the preprocessor indicates missing includes by the
731   error code. stderr is checked by AC_TRY_CPP only as a fallback.
733 - AC_LANG
734   Takes a language as argument and replaces AC_LANG_C,
735   AC_LANG_CPLUSPLUS and AC_LANG_FORTRAN77.
737 - AC_LANG_PUSH, AC_LANG_POP
738   Are preferred to AC_LANG_SAVE, AC_LANG_RESTORE.
740 ** Specific Macros
741 - AC_FUNC_CHOWN, AC_FUNC_MALLOC, AC_FUNC_STRERROR_R,
742   AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, AC_FUNC_STAT, AC_FUNC_LSTAT,
743   AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD, AC_FUNC_FSEEKO.
744   New.
746 - AC_FUNC_GETGROUPS
747   Sets GETGROUPS_LIBS.
749 - AC_FUNC_GETLOADAVG
750   Defines `HAVE_STRUCT_NLIST_N_UN_N_NAME' instead of `NLIST_NAME_UNION'.
752 - AC_PROG_LEX
753   Now integrates `AC_DECL_YYTEXT' which is obsoleted.
755 - AC_SYS_LARGEFILE
756   Arrange for large-file support.
758 - AC_EXEEXT, AC_OBJEXT
759   You are no longer expected to use them: their computation is
760   performed by default.
762 ** C++ compatibility
763   Every macro has been revisited in order to support at best CC=c++.
765 Major changes in Autoconf 2.14:
766   There was no release of GNU Autoconf 2.14.
768 Major changes in Autoconf 2.13:
770   Released 1999-05-01 by Ben Elliston.
772 * Support for building on Win32 systems where the only available C or
773   C++ compiler is the Microsoft Visual C++ command line compiler
774   (`cl').  Additional support for building on Win32 systems which are
775   using the Cygwin or Mingw32 environments.
776 * Support for alternative object file and executable file extensions.
777   On Win32, for example, these are .obj and .exe. These are discovered
778   using AC_OBJEXT and AC_EXEEXT, which substitute @OBJEXT@ and
779   @EXEEXT@ in the output, respectively.
780 * New macros: AC_CACHE_LOAD, AC_CACHE_SAVE, AC_FUNC_SELECT_ARGTYPES,
781   AC_VALIDATE_CACHED_SYSTEM_TUPLE, AC_SEARCH_LIBS, AC_TRY_LINK_FUNC,
782   AC_C_STRINGIZE, AC_CHECK_FILE(S), AC_PROG_F77 (and friends).
783 * AC_DEFINE now has an optional third argument for a description to be
784   placed in the config header input file (e.g. config.h.in).
785 * The C++ code fragment compiled for the C++ compiler test had to be
786   improved to include an explicit return type for main(). This was
787   causing failures on systems using recent versions of the EGCS C++
788   compiler.
789 * Fixed an important bug in AC_CHECK_TYPE that would cause a configure
790   script to report that `sometype_t' was present when only `type_t'
791   was defined.
792 * Merge of the FSF version of config.guess and config.sub to modernize
793   these scripts. Add support for a few new hosts in config.guess.
794   Incorporate latest versions of install-sh, mkinstalldirs and
795   texinfo.tex from the FSF.
796 * autoreconf is capable of running automake if necessary (and
797   applicable).
798 * Support for Fortran 77. See the Texinfo documentation for details.
799 * Bug fixes and workarounds for quirky bugs in vendor utilities.
801 Major changes in Autoconf 2.12:
803   Released 1996-11-26 by David J. MacKenzie
805 * AC_OUTPUT and AC_CONFIG_HEADER can create output files by
806   concatenating multiple input files separated by colons, like so:
807   AC_CONFIG_HEADER(config.h:conf.pre:config.h.in:conf.post)
808   AC_OUTPUT(Makefile:Makefile.in:Makefile.rules)
809   The arguments may be shell variables, to compute the lists on the fly.
810 * AC_LINK_FILES and AC_CONFIG_SUBDIRS may be called multiple times.
811 * New macro AC_OUTPUT_COMMANDS adds more commands to run in config.status.
812 * Bug fixes.
814 Major changes in Autoconf 2.11:
816   Released November 18th, 1996, by David J. MacKenzie
818 * AC_PROG_CC and AC_PROG_CXX check whether the compiler works.
819   They also default CFLAGS/CXXFLAGS to "-g -O2" for gcc, instead of "-g -O".
820 * AC_REPLACE_FUNCS defines HAVE_foo if the system has the function `foo'.
821 * AC_CONFIG_HEADER expands shell variables in its argument.
822 * New macros: AC_FUNC_FNMATCH, AC_FUNC_SETPGRP.
823 * The "checking..." messages and the source code for test programs that
824   fail are saved in config.log.
825 * Another workaround has been added for seds with small command length limits.
826 * config.sub and config.guess recognize more system types.
827 * Bug fixes.
829 Major changes in Autoconf 2.10:
831   Released May 7th, 1996, by Roland McGrath
833 * Bug fixes.
834 * The cache variable names used by `AC_CHECK_LIB(LIB, FUNC, ...)' has
835   changed: now $ac_cv_lib_LIB_FUNC, previously $ac_cv_lib_LIB.
837 Major changes in Autoconf 2.9:
839   Released March 16th, 1996, by Roland McGrath
841 * Bug fixes.
843 Major changes in Autoconf 2.8:
845   Released March 8th, 1996, by Roland McGrath
847 * Bug fixes.
849 Major changes in Autoconf 2.7:
851   Released November 22nd, 1995, by David J. MacKenzie
853 * Bug fixes.
855 Major changes in Autoconf 2.6:
857   Released November 20th, 1995, by David J. MacKenzie
859 * Bug fixes.
861 Major changes in Autoconf 2.5:
863   Released November 17th, 1995, by Roland McGrath
865 * New configure options --bindir, --libdir, --datadir, etc., with
866   corresponding output variables.
867 * New macro: AC_CACHE_CHECK, to make using the cache easier.
868 * config.log contains the command being run as well as any output from it.
869 * AC_CHECK_LIB can check for libraries with "." or "/" or "+" in their name.
870 * AC_PROG_INSTALL doesn't cache a path to install-sh, for sharing caches.
871 * AC_CHECK_PROG, AC_PATH_PROG, AC_CHECK_PROGS, AC_PATH_PROGS, and
872   AC_CHECK_TOOL can search a path other than $PATH.
873 * AC_CHECK_SIZEOF takes an optional size to use when cross-compiling.
875 Major changes in Autoconf 2.4:
877   Released June 14th, 1995, by David J. MacKenzie
879 * Fix a few bugs found by Emacs testers.
881 Major changes in Autoconf 2.3:
883   Released March 27th, 1995, by David J. MacKenzie
885 * Fix the cleanup trap in several ways.
886 * Handle C compilers that are picky about option placement.
887 * ifnames gets the version number from the right directory.
889 Major changes in Autoconf 2.2:
891   Released March 8th, 1995, by David J. MacKenzie
893 * The ifnames utility is much faster but requires a "new awk" interpreter.
894 * AC_CHECK_LIB and AC_HAVE_LIBRARY check and add the new
895   library before existing libs, not after, in case it uses them.
896 * New macros: AC_FUNC_GETPGRP, AC_CHECK_TOOL.
897 * Lots of bug fixes.
898 * Many additions to the TODO file :-)
900 Major changes in Autoconf 2.1:
902   Released November 4th, 1994, by David J. MacKenzie
904 * Fix C++ problems.
905 * More explanations in the manual.
906 * Fix a spurious failure in the testsuite.
907 * Clarify some warning messages.
908 * autoreconf by default only rebuilds configure and config.h.in files
909   that are older than any of their particular input files; there is a
910   --force option to use after installing a new version of Autoconf.
912 Thanks to everybody who's submitted changes and additions to Autoconf!
913 I've incorporated many of them, and am still considering others for
914 future releases -- but I didn't want to postpone this release indefinitely.
916 Caution: don't indiscriminately rebuild configure scripts with
917 Autoconf version 2.  Some configure.in files need minor adjustments to
918 work with it; the documentation has a chapter on upgrading.  A few
919 configure.in files, including those for GNU Emacs and the GNU C
920 Library, need major changes because they relied on undocumented
921 internals of version 1.  Future releases of those packages will have
922 updated configure.in files.
924 It's best to use GNU m4 1.3 (or later) with Autoconf version 2.
925 Autoconf now makes heavy use of m4 diversions, which were implemented
926 inefficiently in GNU m4 releases before 1.3.
928 Major changes in Autoconf 2.0:
930   Released October 26th, 1994, by David J. MacKenzie
932 ** New copyright terms:
933 * There are no restrictions on distribution or use of configure scripts.
935 ** Documentation:
936 * Autoconf manual is reorganized to make information easier to find
937   and has several new indexes.
938 * INSTALL is reorganized and clearer and is now made from Texinfo source.
940 ** New utilities:
941 * autoscan to generate a preliminary configure.in for a package by
942   scanning its source code for commonly used nonportable functions,
943   programs, and header files.
944 * ifnames to list the symbols used in #if and #ifdef directives in a
945   source tree.
946 * autoupdate to update a configure.in to use the version 2 macro names.
947 * autoreconf to recursively remake configure and configuration header
948   files in a source tree.
950 ** Changed utilities:
951 * autoheader can take pieces of acconfig.h to replace config.h.{top,bot}.
952 * autoconf and autoheader can look for package-local definition files
953   in an alternate directory.
955 ** New macros:
956 * AC_CACHE_VAL to share results of tests between configure runs.
957 * AC_DEFUN to define macros, automatically AC_PROVIDE them, and ensure
958   that macros invoked with AC_REQUIRE don't interrupt other macros.
959 * AC_CONFIG_AUX_DIR, AC_CANONICAL_SYSTEM, AC_CANONICAL_HOST, AC_LINK_FILES to
960   support deciding unguessable features based on the host and target types.
961 * AC_CONFIG_SUBDIRS to recursively configure a source tree.
962 * AC_ARG_PROGRAM to use the options --program-prefix,
963   --program-suffix, and --program-transform-name to change the names
964   of programs being installed.
965 * AC_PREFIX_DEFAULT to change the default installation prefix.
966 * AC_TRY_COMPILE to compile a test program without linking it.
967 * AC_CHECK_TYPE to check whether sys/types.h or stdlib.h defines a given type.
968 * AC_CHECK_LIB to check for a particular function and library.
969 * AC_MSG_CHECKING and AC_MSG_RESULT to print test results, on a single line,
970   whether or not the test succeeds.  They obsolete AC_CHECKING and AC_VERBOSE.
971 * AC_SUBST_FILE to insert one file into another.
972 * AC_FUNC_MEMCMP to check whether memcmp is 8-bit clean.
973 * AC_FUNC_STRFTIME to find strftime even if it's in -lintl.
974 * AC_FUNC_GETMNTENT to find getmntent even if it's in -lsun or -lseq.
975 * AC_HEADER_SYS_WAIT to check whether sys/wait.h is POSIX.1 compatible.
977 ** Changed macros:
978 * Many macros renamed systematically, but old names are accepted for
979   backward compatibility.
980 * AC_OUTPUT adds the "automatically generated" comment to
981   non-Makefiles where it finds @configure_input@ in an input file, to
982   support files with various comment syntaxes.
983 * AC_OUTPUT does not replace "prefix" and "exec_prefix" in generated
984   files when they are not enclosed in @ signs.
985 * AC_OUTPUT allows the optional environment variable CONFIG_STATUS to
986   override the file name "config.status".
987 * AC_OUTPUT takes an optional argument for passing variables from
988   configure to config.status.
989 * AC_OUTPUT and AC_CONFIG_HEADER allow you to override the input-file names.
990 * AC_OUTPUT automatically substitutes the values of CFLAGS, CXXFLAGS,
991   CPPFLAGS, and LDFLAGS from the environment.
992 * AC_PROG_CC and AC_PROG_CXX now set CFLAGS and CXXFLAGS, respectively.
993 * AC_PROG_INSTALL looks for install-sh or install.sh in the directory
994   specified by AC_CONFIG_AUXDIR, or srcdir or srcdir/.. or
995   srcdir/../.. by default.
996 * AC_DEFINE, AC_DEFINE_UNQUOTED, and AC_SUBST are more robust and smaller.
997 * AC_DEFINE no longer prints anything, because of the new result reporting
998   mechanism (AC_MSG_CHECKING and AC_MSG_RESULT).
999 * AC_VERBOSE pays attention to --quiet/--silent, not --verbose.
1000 * AC_ARG_ENABLE and AC_ARG_WITH support whitespace in the arguments to
1001   --enable- and --with- options.
1002 * AC_CHECK_FUNCS and AC_CHECK_HEADERS take optional shell commands to
1003   execute on success or failure.
1004 * Checking for C functions in C++ works.
1006 ** Removed macros:
1007 * AC_REMOTE_TAPE and AC_RSH removed; too specific to tar and cpio, and
1008   better maintained with them.
1009 * AC_ARG_ARRAY removed because no one was likely using it.
1010 * AC_HAVE_POUNDBANG replaced with AC_SYS_INTERPRETER, which doesn't
1011   take arguments, for consistency with all of the other specific checks.
1013 ** New files:
1014 * Comes with config.sub and config.guess, and uses them optionally.
1015 * Uses config.cache to cache test results.  An alternate cache file
1016   can be selected with the --cache-file=FILE option.
1017 * Uses optional shell scripts $prefix/share/config.site and
1018   $prefix/etc/config.site to perform site or system specific initializations.
1019 * configure saves compiler output to ./config.log for debugging.
1020 * New files autoconf.m4 and autoheader.m4 load the other Autoconf macros.
1021 * acsite.m4 is the new name for the system-wide aclocal.m4.
1022 * Has a DejaGnu test suite.
1024 Major changes in Autoconf 1.11:
1026 * AC_PROG_INSTALL calls install.sh with the -c option.
1027 * AC_SET_MAKE cleans up after itself.
1028 * AC_OUTPUT sets prefix and exec_prefix if they weren't set already.
1029 * AC_OUTPUT prevents shells from looking in PATH for config.status.
1031 Plus a few other bug fixes.
1033 Major changes in Autoconf 1.10:
1035 * autoheader uses config.h.bot if present, analogous to config.h.top.
1036 * AC_PROG_INSTALL looks for install.sh in srcdir or srcdir/.. and
1037   never uses cp.
1038 * AC_PROG_CXX looks for cxx as a C++ compiler.
1040 Plus several bugs fixed.
1042 Major changes in Autoconf 1.9:
1044 * AC_YYTEXT_POINTER replaces AC_DECLARE_YYTEXT.
1045 * AC_SIZEOF_TYPE generates the cpp symbol name automatically,
1046   and autoheader generates entries for those names automatically.
1047 * AC_FIND_X gets the result from xmkmf correctly.
1048 * AC_FIND_X assumes no X if --without-x was given.
1049 * AC_FIND_XTRA adds libraries to the variable X_EXTRA_LIBS.
1050 * AC_PROG_INSTALL finds OSF/1 installbsd.
1052 Major changes in Autoconf 1.8:
1054 ** New macros:
1055 * New macros AC_LANG_C, AC_LANG_CPLUSPLUS, AC_LANG_SAVE, AC_LANG_RESTORE,
1056   AC_PROG_CXX, AC_PROG_CXXCPP, AC_REQUIRE_CPP
1057   for checking both C++ and C features in one configure script.
1058 * New macros AC_CHECKING, AC_VERBOSE, AC_WARN, AC_ERROR for printing messages.
1059 * New macros AC_FIND_XTRA, AC_MMAP, AC_SIZEOF_TYPE, AC_PREREQ,
1060   AC_SET_MAKE, AC_ENABLE.
1062 ** Changed macros:
1063 * AC_FIND_X looks for X in more places.
1064 * AC_PROG_INSTALL defaults to install.sh instead of cp, if it's in srcdir.
1065   install.sh is distributed with Autoconf.
1066 * AC_DECLARE_YYTEXT has been removed because it can't work, pending
1067   a rewrite of quoting in AC_DEFINE.
1068 * AC_OUTPUT adds its comments in C format when substituting in C files.
1069 * AC_COMPILE_CHECK protects its ECHO-TEXT argument with double quotes.
1071 ** New or changed command line options:
1072 * configure accepts --enable-FEATURE[=ARG] and --disable-FEATURE options.
1073 * configure accepts --without-PACKAGE, which sets withval=no.
1074 * configure accepts --x-includes=DIR and --x-libraries=DIR.
1075 * Giving --with-PACKAGE no argument sets withval=yes instead of withval=1.
1076 * configure accepts --help, --version, --silent/--quiet, --no-create options.
1077 * configure accepts and ignores most other Cygnus configure options, and
1078   warns about unknown options.
1079 * config.status accepts --help, --version options.
1081 ** Paths and other changes:
1082 * Relative srcdir values are not made absolute.
1083 * The values of @prefix@ and @exec_prefix@ and @top_srcdir@ get substituted.
1084 * Autoconf library files are installed in ${datadir}/autoconf, not ${datadir}.
1085 * autoheader optionally copies config.h.top to the beginning of config.h.in.
1086 * The example Makefile dependencies for configure et al. work better.
1087 * Namespace cleanup: all shell variables used internally by Autoconf
1088   have names beginning with `ac_'.
1090 More big improvements are in process for future releases, but have not
1091 yet been (variously) finished, integrated, tested, or documented enough
1092 to release yet.
1094 Major changes in Autoconf 1.7:
1096 * New macro AC_OBSOLETE.
1097 * Bugs in Makefile.in fixed.
1098 * AC_LONG_FILE_NAMES improved.
1100 Major changes in Autoconf 1.6:
1102 * New macro AC_LONG_64_BITS.
1103 * Multiple .h files can be created.
1104 * AC_FIND_X looks for X files directly if it doesn't find xmkmf.
1105 * AC_ALLOCA defines C_ALLOCA if using alloca.c.
1106 * --with-NAME can take a value, e.g., --with-targets=sun4,hp300bsd.
1107 * Unused --no-create option to configure removed.
1108 * autoheader doesn't change the timestamp of its output file if
1109   the file didn't change.
1110 * All macros that look for libraries now use AC_HAVE_LIBRARY.
1111 * config.status checks three optional environment variables to
1112   modify its behavior.
1113 * The usual bug fixes.
1115 Major changes in Autoconf 1.5:
1117 * New macros AC_FIND_X, AC_OFF_T, AC_STAT_MACROS_BROKEN, AC_REVISION.
1118 * autoconf and autoheader scripts have GNU standards conforming
1119   --version and --help options (they print their message and exit).
1120 * Many bug fixes.
1122 Major changes in Autoconf 1.4:
1124 * New macros AC_HAVE_POUNDBANG, AC_TIME_WITH_SYS_TIME, AC_LONG_DOUBLE,
1125   AC_GETGROUPS_T, AC_DEFINE_UNQUOTED.
1126 * autoconf and autoheader use the M4 environment variable to determine the
1127   path of the m4 program to use.
1128 * The --macrodir option to autoconf and autoheader specifies the directory
1129   in which acspecific.m4, acgeneral.m4, etc. reside if not the default.
1130 * autoconf and autoheader can take `-' as their file names, which means to
1131   read stdin as input.
1132 * Resulting configure scripts can take a --verbose option which causes them
1133   to print the results of their tests.
1134 * AC_DEFINE quotes its second argument in such a way that spaces, magic
1135   shell characters, etc. will be preserved during various stages of
1136   expansion done by the shell.  If you don't want this, use
1137   AC_DEFINE_UNQUOTED instead.
1138 * Much textual processing done with external calls to tr and sed have been
1139   internalized with builtin m4 `patsubst' and `translit' calls.
1140 * AC_OUTPUT doesn't hardwire the filenames it outputs.  Instead, you can
1141   set the shell variables `gen_files' and `gen_config' to the list of
1142   filenames to output.
1143 * AC_DECLARE_YYTEXT does an AC_SUBST of `LEX_OUTPUT_ROOT', which may be
1144   "lex.yy" or "lexyy", depending on the system.
1145 * AC_PROGRAMS_CHECK takes an optional third arg.  If given, it is used as
1146   the default value.
1147 * If AC_ALLOCA chooses alloca.c, it also defines STACK_DIRECTION.
1148 * AC_CONST works much more reliably on more systems.
1149 * Many bug fixes.
1151 Major changes in Autoconf 1.3:
1153 configure no longer requires awk for packages that use a config.h.
1154 Support handling --with-PACKAGE options.
1155 New `autoheader' script to create `config.h.in' from `configure.in'.
1156 Ignore troublesome -lucb and -lPW when searching for alloca.
1157 Rename --exec_prefix to --exec-prefix for GNU standards conformance.
1158 Improve detection of STDC library.
1159 Add AC_HAVE_LIBRARY to check for non-default libraries.
1160 Function checking should work with future GNU libc releases.
1162 Major changes in Autoconf 1.2:
1164 The --srcdir option is now usually unnecessary.
1165 Add a file containing sample comments describing CPP macros.
1166 A comment in config.status tells which host it was configured on.
1167 Substituted variable values can now contain commas.
1168 Fix bugs in various feature checks.
1170 Major changes in Autoconf 1.1:
1172 Added AC_STRCOLL macro.
1173 Made AC_GETLOADAVG check for more things.
1174 AC_OUTPUT argument is now optional.
1175 Various bug fixes.
1177 -----
1179 Copyright (C) 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003
1180 Free Software Foundation, Inc.
1182 This file is part of GNU Autoconf.
1184 GNU Autoconf is free software; you can redistribute it and/or modify
1185 it under the terms of the GNU General Public License as published by
1186 the Free Software Foundation; either version 2, or (at your option)
1187 any later version.
1189 GNU Autoconf is distributed in the hope that it will be useful,
1190 but WITHOUT ANY WARRANTY; without even the implied warranty of
1191 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1192 GNU General Public License for more details.
1194 You should have received a copy of the GNU General Public License
1195 along with GNU Autoconf; see the file COPYING.  If not, write to
1196 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
1197 Boston, MA 02111-1307, USA.
1199 Local Variables:
1200 mode: outline
1201 End: