1 * Major changes in Autoconf 2.59c
3 ** The configure command now redirects standard input from /dev/null,
4 to help avoid problems with subsidiary commands that might mistakenly
5 read standard input. AS_ORIGINAL_STDIN_FD points to the original
6 standard input before this redirection, if you really want configure to
7 read from standard input.
9 ** Directory variables adjusted to recent changes in the GNU Coding Standards.
10 The following directory variables are new:
12 datarootdir read-only architecture-independent data root [PREFIX/share]
13 localedir locale-specific message catalogs [DATAROOTDIR/locale]
14 docdir documentation root [DATAROOTDIR/doc/PACKAGE]
15 htmldir html documentation [DOCDIR]
16 dvidir dvi documentation [DOCDIR]
17 pdfdir pdf documentation [DOCDIR]
18 psdir ps documentation [DOCDIR]
20 The following variables have new default values:
22 datadir read-only architecture-independent data [DATAROOTDIR]
23 infodir info documentation [DATAROOTDIR/info]
24 mandir man documentation [DATAROOTDIR/man]
26 This means that if you use any of `@datadir@', `@infodir@', or
27 `@mandir@' in a file, you will have to ensure `${datarootdir}' is
30 ** @top_builddir@ is now a dir name: it is always nonempty and doesn't have
31 a trailing slash. Similar change will be made to ac_top_builddir in a
32 future release; the old style value, which matches (../)*, is (and will
33 continue to be) available as ac_top_build_prefix.
36 New macro to check for support of 'typeof' syntax a la GNU C.
38 ** AC_PROG_CC_C89, AC_PROG_CC_C99
39 New macros for ISO C99 support. AC_PROG_CC_C89 and AC_PROG_CC_C99
40 check for ANSI C89 and ISO C99 support respectively.
43 Has been unobsoleted, and will check if the compiler supports ISO
44 C99, falling back to ANSI C89 if not. ac_cv_prog_cc_stdc is
45 retained for backwards compatibility, assuming the value of
46 ac_cv_prog_cc_c99 or ac_cv_prog_cc_c89 (whichever is valid, in
50 The subtituted value can now contain newlines.
53 The substitution now occurs only when @variable@ is on a line by itself,
54 optionally surrounded by spaces and tabs. The whole line is replaced.
57 New macro for copyright notices in testsuite files.
59 ** ALLOCA, LIBOBJS, LTLIBOBJS
60 Object names added to these variables are now prefixed with `${LIBOBJDIR}',
61 as in `${LIBOBJDIR}alloca.o'. LIBOBJDIR is meant to be defined from
62 `Makefile.in' in case the object files lie in a different directory.
64 * Major changes in Autoconf 2.59b
66 Released 2004-08-20, by Paul Eggert.
69 New macro that computes the default alignment of a type.
71 ** AC_CHECK_TOOL, AC_PATH_TOOL, AC_CHECK_TOOLS
72 When cross-compiling, these macros will give a warning if the tool
73 is not prefixed. In the future, unprefixed cross tools will not
74 be detected; please consult the info documentation for information
75 about the reason of this change.
77 ** AC_CHECK_TARGET_TOOL, AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOLS
78 New macros that detect programs whose name is prefixed with the
79 target type, if the build type and target type are different.
81 ** AC_REQUIRE_AUX_FILE
82 New trace macro that declares expected auxiliary files.
85 New macro that tests for a grep program that accepts as a long a line
88 ** AC_PROG_EGREP, AC_PROG_FGREP
89 These macros now require AC_PROG_GREP, and try EGREP="$GREP -E" and
90 FGREP="$GREP -F" respectively if possible, or else run a path search for
91 a program that accepts as long a line as possible.
94 New macro that tests for a sed program that truncates as few characters
98 New macro which is defined to the name of the first declared config header
99 or undefined if no config headers have been declared yet.
101 * Major changes in Autoconf 2.59
103 Released 2003-11-04, by Akim Demaille
105 ** ac_abs_builddir etc.
106 Absolute file names were actually relative in 2.58.
108 * Major changes in Autoconf 2.58
110 Released 2003-11-04, by Akim Demaille
113 core.* files are no longer removed, as they may be valid user files.
115 ** autoreconf and auxiliary directory
116 Autoreconf creates the auxiliary directory if needed. This is
117 especially useful for initial "bootstrapping" of fresh CVS checkouts.
119 ** AC_CONFIG_MACRO_DIR
120 Use this macro to declare the directory for local m4 macros for aclocal.
123 No longer includes twice the same file in LIBOBJS if invoked
126 ** AC_CONFIG_COMMANDS
127 The directory for its first argument is automatically created. For
130 AC_CONFIG_COMMANDS([src/modules.hh], [...])
132 $top_builddir/src/ is created if needed.
134 ** Autotest and local.at
135 The optional file local.at is always included in Autotest test suites.
138 The warnings are always issued, including with cached runs.
139 This became a significant problem since aclocal and automake can
140 run autoconf behind the scene.
142 ** autoheader warnings
143 The warnings of autoheader can be turned off, using --warning.
144 For instance, -Wno-obsolete disables the complaints about acconfig.h
145 and other deprecated constructs.
148 AC_C_RESTRICT, AC_INCLUDES_DEFAULT, AC_LANG_ASSERT, AC_LANG_WERROR,
151 ** AC_DECL_SYS_SIGLIST
155 Now checks that mktime is the inverse of localtime.
157 ** Improve DJGPP portability
158 The Autoconf tools and configure behave better under DJGPP.
160 ** Present But Cannot Be Compiled
161 New FAQ section dedicated to the mystic
163 configure: WARNING: pi.h: present but cannot be compiled
164 configure: WARNING: pi.h: check for missing prerequisite headers?
165 configure: WARNING: pi.h: proceeding with the preprocessor's result
168 ** Concurrent executions of autom4te
169 autom4te now locks its internal files, which enables concurrent
170 executions of autom4te, likely to happen if automake, autoconf,
171 autoheader etc. are run simultaneously.
174 Use of Libtool 1.5 and higher is encouraged. Compatibility with
175 Libtool pre-1.4 is not checked.
178 Testsuites no longer rerun failed tests in verbose mode; instead,
179 failures are logged while the test is run.
181 In addition, expected failures can be marked as such.
183 * Major changes in Autoconf 2.57
185 Released 2002-12-03 by Paul Eggert.
187 Bug fixes for problems with AIX linker, with freestanding C compilers,
188 with GNU m4 limitations, and with obsolete copies of GNU documents.
190 The Free Documentation License has been upgraded from 1.1 to 1.2.
192 * Major changes in Autoconf 2.56
194 Released 2002-11-15 by Akim Demaille.
196 One packaging problem fixed (config/install-sh was not executable).
198 * Major changes in Autoconf 2.55
200 Released 2002-11-14 by Akim Demaille.
204 Have your configure.ac checked by autoscan ("autoscan").
205 Try the warning options ("autoreconf -fv -Wall").
209 - AC_CHECK_HEADER, AC_CHECK_HEADERS
210 More information on proper use.
212 - Writing Test Programs
214 This sections explains how to write good test sources to use with
215 AC_COMPILE_IFELSE etc. It documents AC_LANG_PROGRAMS and so forth.
217 - AC_FOO_IFELSE vs. AC_TRY_FOO
219 Explains why Autoconf moves from AC_TRY_COMPILE etc. to
220 AC_COMPILE_IFELSE and AC_LANG_PROGRAM etc.
224 - Is more robust to different Gettext installations.
226 - Produces messages (when --verbose) to be understood by Emacs'
229 - Supports -W/--warnings.
232 Once the GNU Build System reinstalled, run `./config.status
233 --recheck && ./config.status && make' if possible.
237 - Supports --cache, and --no-cache.
239 - ~/.autom4te.cfg makes it possible to disable the caching mechanism
240 (autom4te.cache). See `Customizing autom4te' in the documentation.
247 Support for the obsoleted options -m, --macrodir, -l, --localdir is
248 dropped in favor of the safer --include/--prepend-include scheme.
253 AC_COMPILER_IFELSE, AC_FUNC_MBRTOWC, AC_HEADER_STDBOOL,
254 AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM, AC_LANG_CALL,
255 AC_LANG_FUNC_TRY_LINK, AC_MSG_FAILURE, AC_PREPROC_IFELSE.
258 Obsoleted macros are kept for Autoconf backward compatibility, but
259 should be avoided in configure.ac. Running autoupdate is advised.
262 - AC_DEFINE/AC_DEFINE_UNQUOTED
264 We have to stop using the old compatibility scheme --that tried to
265 avoid useless backslashes-- because Libtool 1.4.3 contains a
267 AC_DEFINE([error_t], [int],
268 [Define to a type to use for \`error_t' if it is not
269 otherwise available.])
271 We have to quote the single quotes and backslashes with \. The old
272 compatibility scheme saw that ` was backslashed, and therefore did
273 not quote the single quote... Failure. Hence, Autoconf 2.54 is not
274 compatible with Libtool. Autoconf 2.55 is, but in some cases might
275 produce more \ than wanted.
277 Please, note that in the future the same problem will happen with
278 AC_MSG_*: use `autoreconf -f -Wall'.
282 - Portability of the Autoconf package to Solaris.
284 - Spurious warnings caused by config.status.
285 This bug is benign, but painful: on some systems (typically
286 FreeBSD), warnings such as:
288 config.status: creating Makefile
289 mv: Makefile: set owner/group (was: 1357/0): Operation not permitted
291 could be issued. This is fixed.
294 Simultaneous executions of config.status are possible again.
296 - Precious variables accumulation
298 config.status could stack several copies of the precious variables
302 ** Plans for later versions
306 The compatibility hooks with the old scheme will be completely
307 removed. Please, advice/use `--build', `--host', and `--target'
310 - AC_CHECK_HEADER, AC_CHECK_HEADERS
312 The tests will be stricter, please make sure your invocations are
317 Shell functions will gradually be introduced, probably starting with
318 Autotest. If you know machines which are in use that you suspect
319 *not* to support shell functions, please run the test suite of
320 Autoconf 2.55 on it, and report the results to
321 bug-autoconf@gnu.org.
325 Special characters in AC_MSG_* need not be quoted. Currently,
326 Autoconf has heuristics to decide when a string is escaped, or has
327 to be escaped. This scheme is fragile, and will be removed; the
328 only risk is uglified messages. Please, run `autoreconf -f -Wall'
329 to find occurrences that will be affected.
331 * Major changes in Autoconf 2.54
333 Released 2002-09-13 by Akim Demaille.
337 - autoreconf no longer changes the version of the gettext/po/intl
338 support files. It now adds the files the correspond to the
339 AM_GNU_GETTEXT_VERSION declared in configure.ac.
341 Warning: It now relies on the 'autopoint' program, which is part
342 of GNU gettext 0.11.4 and newer.
344 Please note that you need to have a GNU gettext version that
345 corresponds at least to the AM_GNU_GETTEXT_VERSION declared
346 in configure.ac. You can upgrade to newer GNU gettext versions,
347 though, without needing to change configure.ac.
349 - The -I DIR or --include=DIR option now appends DIR to the include path
350 instead of prepending; this is for consistency with other GNU tools.
351 The new -B DIR or --prepend-include=DIR option has the old behavior.
356 Now handles all the gory details about LIBOBJS and LTLIBOBJS.
357 Please, remove lines such as
359 # This is necessary so that .o files in LIBOBJS are also
360 # built via the ANSI2KNR-filtering rules.
361 LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
363 and read the `AC_LIBOBJ vs LIBOBJS' section. Do not define U in
364 your Makefiles either.
366 - AC_CONFIG_LINKS now makes copies if it can't make links.
368 - AC_FUNC_FNMATCH now tests only for POSIX compatibility, reverting to
369 Autoconf 2.13 behavior. The new macro AC_FUNC_FNMATCH_GNU also
370 tests for GNU extensions to fnmatch, and replaces fnmatch if needed.
372 - AC_FUNC_SETVBUF_REVERSED no longer fails when cross-compiling.
374 - AC_PROG_CC_STDC is integrated into AC_PROG_CC.
376 - AC_PROG_F77 default search no longer includes cf77 and cfg77.
380 AC_C_BACKSLASH_A, AC_CONFIG_LIBOBJ_DIR, AC_GNU_SOURCE,
381 AC_PROG_EGREP, AC_PROG_FGREP, AC_REPLACE_FNMATCH,
382 AC_FUNC_FNMATCH_GNU, AC_FUNC_REALLOC, AC_TYPE_MBSTATE_T.
385 looks for getloadavg.c in the CONFIG_LIBOBJ_DIR.
388 Now defines HAVE_MALLOC to 0 if `malloc' does not work, and asks
389 for an AC_LIBOBJ replacement.
393 - Spurious complaints from `m4_bmatch' about invalid regular
394 expressions are suppressed.
396 - Empty top_builddirs are properly handled.
398 - AC_CHECK_MEMBER works correctly when the member is an aggregate.
401 Now colon in the optional path arguments are properly handled.
403 ** Improved portability
405 - Both Autoconf the package, and the scripts it produces, should run
406 more reliably with Zsh. Bear in mind it is the default Bourne shell
409 - Autoconf and the scripts it produces no longer assume the existence of
410 the obsolescent commands egrep and fgrep.
414 - Limitations of Make
418 The GNATS base moved to
419 http://bugs.gnu.org/cgi-bin/gnatsweb.pl?database=autoconf
420 (It is no longer available, though.)
425 Now contains the list of ouput variables and files (AC_SUBST,
428 * Major changes in Autoconf 2.53
430 Released 2002-03-08 by Akim Demaille.
434 Perl 5.005_03 or later is required: autom4te is written in Perl and is
435 needed by autoconf. autoheader, autoreconf, ifnames, and autoscan are
441 Argument requirements, output variables, defined macros.
442 - M4sugar, M4sh, Autotest
444 - Double quoting macros
445 AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and AC_TRY_RUN.
447 The Autoconf manual is now distributed under the terms of the GNU FDL.
448 - Section `Hosts and Cross-Compilation'
449 Explains the rationale for the 2.5x changes in the cross-compilation
450 chain, and in the relationships between build, host, and target
452 Emphasizes that `cross-compilation' == `--host is given'.
453 If you are working on compilers etc., be sure to read this section.
454 - Section `AC_LIBOBJ vs. LIBOBJS'
455 Explains why assigning LIBOBJS directly is now an error.
456 Details how to update the code.
461 Now used instead of hard coded line numbers.
462 This eases the comparison of `configure's, and diminishes the
463 pressure over control version archives.
464 Automatic replacement for shells that don't support this feature.
465 - New output variables
466 @builddir@, @top_builddir@, @abs_srcdir@, @abs_top_srcdir@, @abs_builddir@,
471 Autoconf and Autotest modes are provided.
476 New, used by the Autoconf suite to cache and speed up most processing.
478 Supported by autom4te, autoconf and autoheader.
480 Replaces --autoconf-dir and --localdir in autoconf, autoheader,
481 autoupdate, and autoreconf.
483 No longer passes --cygnus, --foreign, --gnits, --gnu, --include-deps:
484 automake options are to be given via AUTOMAKE_OPTIONS.
486 Runs gettextize and libtoolize when appropriate.
488 --m4dir is no longer supported.
490 Now runs only in the specified directories, defaulting to `.',
491 but understands AC_CONFIG_SUBDIRS for dependent directories.
492 Before, it used to run on all the `configure.ac' found in the
494 Independent packages are properly updated.
498 - The top level $prefix is propagated to the AC_CONFIG_SUBDIRS configures.
500 Under the user pressure, $? is finally available. Probably a mistake.
501 - AC_F77_LIBRARY_LDFLAGS now supports the HP/UX f90 compiler.
502 - Precious variables accumulation
503 config.status could stack several copies of the precious variables
505 - AC_PATH_PROG and family.
506 Works properly when given a literal path.
508 Somewhere since 2.13, the result had been reversed.
512 - AC_C_BIGENDIAN supports the cross-compiling case.
513 - AC_C_BIGENDIAN accepts ACTION-IF-TRUE, ACTION-IF-FALSE, and
514 ACTION-IF-UNKNOWN arguments. All are facultative, and the default
515 for ACTION-IF-TRUE is to define WORDS_BIGENDIAN like AC_C_BIGENDIAN
517 - AC_C_LONG_DOUBLE now succeeds only if `long double' has more range or
518 precision than `double'.
523 It now defines the preprocessor symbols PACKAGE_NAME,
524 PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING, and
528 Admits a fourth optional parameter: the tar name.
530 - AC_CONFIG_COMMANDS, HEADERS, FILES, LINKS.
531 Provide the user with srcdir, ac_srcdir, ac_top_srcdir, ac_builddir,
532 ac_top_builddir, ac_abs_srcdir, ac_abs_top_srcdir, ac_abs_builddir,
535 - AC_CONFIG_COMMANDS, HEADERS, FILES, LINKS and AC_OUTPUT.
536 Are much less expensive when using long lists of files.
539 Works with shell variables, and non alphanumeric names.
543 - AC_FUNC_STRERROR_R now sets STRERROR_R_CHAR_P, not HAVE_WORKING_STRERROR_R,
544 because POSIX 1003.1-200x draft 7 says strerror_r returns int, not char *.
546 - AC_FUNC_STRTOD substitutes POW_LIB.
551 * Major changes in Autoconf 2.52
553 Released 2001-07-18 by Akim Demaille.
558 This feature was present in autoconf 2.50 but was not documented.
559 For example, `@<:@' is translated to `[' just before output. This
560 is useful when writing strings that contain unbalanced quotes, or
561 other hard-to-quote constructs.
562 - m4_pattern_forbid, m4_pattern_allow
563 - Tips for upgrading from 2.13.
564 - Using autoscan to maintain a configure.ac.
567 - Now include stdint.h.
568 - sys/types.h and sys/stat.h are guarded.
569 - strings.h is included if available, and not conflicting with string.h.
572 - The test suite is more robust and presents less false failures.
573 - Invocation of GNU M4 now robust to POSIXLY_CORRECT.
574 - configure accepts --prefix='' again.
575 - AC_CHECK_LIB works properly when its first argument is not a
577 - HAVE_INTTYPES_H is defined only if not conflicting with sys/types.h.
578 - build_, host_, and target_alias are AC_SUBST as in 2.13.
579 - AC_ARG_VAR properly propagates precious variables inherited from the
580 environment to ./config.status.
581 - Using --program-suffix/--program-prefix is portable.
582 - Failures to detect the default compiler's output extension are less
584 - `config.status foo' works properly when `foo' depends on variables
585 set in an AC_CONFIG_THING INIT-CMD.
586 - autoheader is more robust to broken input.
587 - Fixed Fortran name-mangling and link tests on a number of systems,
588 e.g. NetBSD; see AC_F77_DUMMY_MAIN, below.
591 - AC_CHECK_HEADER and AC_CHECK_HEADERS support a fourth argument to
592 specify pre-includes. In this case, the headers are compiled with
593 cc, not merely preprocessed by cpp. Therefore it is the _usability_
594 of a header which is checked for, not just its availability.
595 - AC_ARG_VAR refuses to run configure when precious variables have
597 - Versions of compilers are dumped in the logs.
598 - AC_CHECK_TYPE recognizes use of `foo_t' as a replacement type.
601 - AC_PATH_XTRA only adds -ldnet to $LIBS if it's needed to link.
602 - AC_FUNC_WAIT3 and AC_SYS_RESTARTABLE_SYSCALLS are obsoleted.
603 - AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH, AM_FUNC_MKTIME,
604 AM_FUNC_OBSTACK, and AM_FUNC_STRTOD are now activated.
605 Be sure to read `Upgrading from Version 2.13' to understand why
606 running `autoupdate' is needed.
607 - AC_F77_DUMMY_MAIN, AC_F77_MAIN: new macros to detect whether
608 a main-like routine is required/possible when linking C/C++ with
609 Fortran. Users of e.g. AC_F77_WRAPPERS should be aware of these.
610 - AC_FUNC_GETPGRG behaves better when cross-compiling.
612 * Major changes in Autoconf 2.51
613 There was no release of Autoconf 2.51 since some packagers had used
614 this version number without permission to ship intermediary versions
615 of 2.50. The version was skipped to avoid confusion.
617 * Major changes in Autoconf 2.50
619 Released 2001-05-21 by Akim Demaille.
622 There have been far too many to enumerate them here. Check out
623 ChangeLog if you really want to know more.
625 ** Improved documentation
626 In particular, portability issues are better covered.
629 All the standard GNU Makefile targets are supported. The layout has
630 changed: m4/ holds the m4 extensions Autoconf needs for its
631 configuration, doc/ contains the documentation, and tests/ contains
634 ** Man pages are provided
635 For autoconf, autoreconf, autoupdate, autoheader, autoscan, ifnames,
636 config.guess, config.sub.
640 Provides a safe and powerful means to trace the macro uses. This
641 provide the parsing layer for tools which need to `study'
645 Specify what category of warnings should be enabled.
647 - When recursing into subdirectories, try for configure.gnu before
648 configure to adapt for packages not using autoconf on case-insensitive
652 More errors are now caught (circular AC_REQUIRE dependencies,
653 AC_DEFINE in the action part of an AC_CACHE_CHECK, too many pops
654 etc.). In addition, their location and call stack are given.
657 autoupdate is much more powerful, and is able to provide the glue code
658 which might be needed to move from an old macro to its newer
661 You are strongly encouraged to use it to modernize both your
662 `configure.in' and your .m4 extension files.
665 The internal machinery of autoheader has completely changed. As a
666 result, using `acconfig.h' should be considered to be obsoleted, and
667 you are encouraged to get rid of it using the AH macros.
672 ** Fortran 77 compilers
673 Globally, the support for Fortran 77 is considerably improved.
675 Support for automatically determining a Fortran 77 compiler's
676 name-mangling scheme. New CPP macros F77_FUNC and F77_FUNC_ are
677 provided to wrap C/C++ identifiers, thus making it easier and more
678 transparent for C/C++ to call Fortran 77 routines, and Fortran 77 to
679 call C/C++ routines. See the Texinfo documentation for details.
682 The test suite no longer uses DejaGNU. It should be easy to submit
683 test cases in this new framework.
686 - --help, --help=long, -hl
687 no longer dumps useless items.
689 lists only specific options.
690 - --help=recursive, -hr
691 displays the help of all the embedded packages.
692 - Remembers environment variables when reconfiguring.
693 The previous scheme to set envvar before running configure was
695 what prevented configure from remembering the environment in which
696 it was run, therefore --recheck was run in an inconsistent
697 environment. Now, one should run
699 and then --recheck will work properly. Variables declared with
700 AC_ARG_VAR are also preserved.
702 $build defaults to `config.guess`, $host to $build, and then $target
704 Cross-compilation is a global status of the package, it no longer
705 depends upon the current language.
706 Cross compilation is enabled iff the user specified `--host'.
707 `configure' now fails if it can't run the executables it compiles,
708 unless cross-compilation is enabled.
710 The cache file is disabled by default. The new options
711 `--config-cache', `-C' set the cache to `config.cache'.
715 Much faster on most architectures.
716 - concurrent executions
717 It is safe to use `make -j' with config.status.
718 - human interface improved
719 It is possible to invoke
720 ./config.status foobar
721 instead of the former form (still valid)
722 CONFIG_COMMANDS= CONFIG_HEADERS= CONFIG_LINKS= \
723 CONFIG_FILES=foobar:foo.in:bar.in \
725 The same holds for configuration headers and links.
726 You can instantiate unknown files and headers:
727 ./config.status --header foo.h:foo.h.in --file bar:baz
728 - has a useful --help
729 - accepts special file name "-" for stdin/stdout
734 Specify additional copyright information.
737 Now expects the identity of the package as argument.
741 Most macros, if not all, now strictly follow the `one quotation
742 level' rule. This results in a more predictable expansion.
745 A sly bug in the AC_REQUIRE machinery, which could produce incorrect
746 configure scripts, was fixed by Axel Thimm.
750 Document and ask for the registration of an envvar.
753 Specifies the file which `configure' should look for when trying to
754 find the source tree (used to be handled by AC_INIT).
757 To add new actions to config.status. Should be used instead of
761 Replaces AC_LINK_FILES.
763 - AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS, AC_CONFIG_SUBDIRS,
764 AC_CONFIG_LINKS, and AC_CONFIG_FILES
765 They now obey sh: you should no longer use shell variables as
768 test "$package_foo_enabled" = yes && $my_subdirs="$my_subdirs foo"
769 AC_CONFIG_SUBDIRS($my_subdirs)
773 if test "$package_foo_enabled" = yes; then
774 AC_CONFIG_SUBDIRS(foo)
778 To format an Autoconf macro's help string so that it looks pretty
779 when the user executes `configure --help'.
782 ** Generic Test Macros
784 The interface of the AC_CHECK families of macros (decl, header,
785 type, member, func) is now uniform. They support the same set of
788 - AC_CHECK_DECL, AC_CHECK_DECLS
789 To check whether a symbol is declared.
791 - AC_CHECK_SIZEOF, AC_C_CHAR_UNSIGNED.
792 No longer need a cross-compilation default.
795 The test it performs is much more robust than previously, and makes
796 it possible to test builtin types in addition to typedefs.
797 It is now schizophrenic:
798 - AC_CHECK_TYPE(TYPE, REPLACEMENT)
799 remains for backward compatibility, but its use is discouraged.
800 - AC_CHECK_TYPE(TYPE, IF-FOUND, IF-NOT-FOUND, INCLUDES)
801 behaves exactly like the other AC_CHECK macros.
804 Checks whether given types are supported by the system.
806 - AC_CHECK_MEMBER, AC_CHECK_MEMBERS
807 Check for given members in aggregates (e.g., pw_gecos in struct
811 Checks if the compiler supports ISO C, included when needs special
815 Checking whether the preprocessor indicates missing includes by the
816 error code. stderr is checked by AC_TRY_CPP only as a fallback.
819 Takes a language as argument and replaces AC_LANG_C,
820 AC_LANG_CPLUSPLUS and AC_LANG_FORTRAN77.
822 - AC_LANG_PUSH, AC_LANG_POP
823 Are preferred to AC_LANG_SAVE, AC_LANG_RESTORE.
826 - AC_FUNC_CHOWN, AC_FUNC_MALLOC, AC_FUNC_STRERROR_R,
827 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, AC_FUNC_STAT, AC_FUNC_LSTAT,
828 AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD, AC_FUNC_FSEEKO.
835 Defines `HAVE_STRUCT_NLIST_N_UN_N_NAME' instead of `NLIST_NAME_UNION'.
838 Now integrates `AC_DECL_YYTEXT' which is obsoleted.
841 Arrange for large-file support.
843 - AC_EXEEXT, AC_OBJEXT
844 You are no longer expected to use them: their computation is
845 performed by default.
848 Every macro has been revisited in order to support at best CC=c++.
850 Major changes in Autoconf 2.14:
851 There was no release of GNU Autoconf 2.14.
853 Major changes in Autoconf 2.13:
855 Released 1999-05-01 by Ben Elliston.
857 * Support for building on Win32 systems where the only available C or
858 C++ compiler is the Microsoft Visual C++ command line compiler
859 (`cl'). Additional support for building on Win32 systems which are
860 using the Cygwin or Mingw32 environments.
861 * Support for alternative object file and executable file extensions.
862 On Win32, for example, these are .obj and .exe. These are discovered
863 using AC_OBJEXT and AC_EXEEXT, which substitute @OBJEXT@ and
864 @EXEEXT@ in the output, respectively.
865 * New macros: AC_CACHE_LOAD, AC_CACHE_SAVE, AC_FUNC_SELECT_ARGTYPES,
866 AC_VALIDATE_CACHED_SYSTEM_TUPLE, AC_SEARCH_LIBS, AC_TRY_LINK_FUNC,
867 AC_C_STRINGIZE, AC_CHECK_FILE(S), AC_PROG_F77 (and friends).
868 * AC_DEFINE now has an optional third argument for a description to be
869 placed in the config header input file (e.g. config.h.in).
870 * The C++ code fragment compiled for the C++ compiler test had to be
871 improved to include an explicit return type for main(). This was
872 causing failures on systems using recent versions of the EGCS C++
874 * Fixed an important bug in AC_CHECK_TYPE that would cause a configure
875 script to report that `sometype_t' was present when only `type_t'
877 * Merge of the FSF version of config.guess and config.sub to modernize
878 these scripts. Add support for a few new hosts in config.guess.
879 Incorporate latest versions of install-sh, mkinstalldirs and
880 texinfo.tex from the FSF.
881 * autoreconf is capable of running automake if necessary (and
883 * Support for Fortran 77. See the Texinfo documentation for details.
884 * Bug fixes and workarounds for quirky bugs in vendor utilities.
886 Major changes in Autoconf 2.12:
888 Released 1996-11-26 by David J. MacKenzie
890 * AC_OUTPUT and AC_CONFIG_HEADER can create output files by
891 concatenating multiple input files separated by colons, like so:
892 AC_CONFIG_HEADER(config.h:conf.pre:config.h.in:conf.post)
893 AC_OUTPUT(Makefile:Makefile.in:Makefile.rules)
894 The arguments may be shell variables, to compute the lists on the fly.
895 * AC_LINK_FILES and AC_CONFIG_SUBDIRS may be called multiple times.
896 * New macro AC_OUTPUT_COMMANDS adds more commands to run in config.status.
899 Major changes in Autoconf 2.11:
901 Released November 18th, 1996, by David J. MacKenzie
903 * AC_PROG_CC and AC_PROG_CXX check whether the compiler works.
904 They also default CFLAGS/CXXFLAGS to "-g -O2" for gcc, instead of "-g -O".
905 * AC_REPLACE_FUNCS defines HAVE_foo if the system has the function `foo'.
906 * AC_CONFIG_HEADER expands shell variables in its argument.
907 * New macros: AC_FUNC_FNMATCH, AC_FUNC_SETPGRP.
908 * The "checking..." messages and the source code for test programs that
909 fail are saved in config.log.
910 * Another workaround has been added for seds with small command length limits.
911 * config.sub and config.guess recognize more system types.
914 Major changes in Autoconf 2.10:
916 Released May 7th, 1996, by Roland McGrath
919 * The cache variable names used by `AC_CHECK_LIB(LIB, FUNC, ...)' has
920 changed: now $ac_cv_lib_LIB_FUNC, previously $ac_cv_lib_LIB.
922 Major changes in Autoconf 2.9:
924 Released March 16th, 1996, by Roland McGrath
928 Major changes in Autoconf 2.8:
930 Released March 8th, 1996, by Roland McGrath
934 Major changes in Autoconf 2.7:
936 Released November 22nd, 1995, by David J. MacKenzie
940 Major changes in Autoconf 2.6:
942 Released November 20th, 1995, by David J. MacKenzie
946 Major changes in Autoconf 2.5:
948 Released November 17th, 1995, by Roland McGrath
950 * New configure options --bindir, --libdir, --datadir, etc., with
951 corresponding output variables.
952 * New macro: AC_CACHE_CHECK, to make using the cache easier.
953 * config.log contains the command being run as well as any output from it.
954 * AC_CHECK_LIB can check for libraries with "." or "/" or "+" in their name.
955 * AC_PROG_INSTALL doesn't cache a name for install-sh, for sharing caches.
956 * AC_CHECK_PROG, AC_PATH_PROG, AC_CHECK_PROGS, AC_PATH_PROGS, and
957 AC_CHECK_TOOL can search a path other than $PATH.
958 * AC_CHECK_SIZEOF takes an optional size to use when cross-compiling.
960 Major changes in Autoconf 2.4:
962 Released June 14th, 1995, by David J. MacKenzie
964 * Fix a few bugs found by Emacs testers.
966 Major changes in Autoconf 2.3:
968 Released March 27th, 1995, by David J. MacKenzie
970 * Fix the cleanup trap in several ways.
971 * Handle C compilers that are picky about option placement.
972 * ifnames gets the version number from the right directory.
974 Major changes in Autoconf 2.2:
976 Released March 8th, 1995, by David J. MacKenzie
978 * The ifnames utility is much faster but requires a "new awk" interpreter.
979 * AC_CHECK_LIB and AC_HAVE_LIBRARY check and add the new
980 library before existing libs, not after, in case it uses them.
981 * New macros: AC_FUNC_GETPGRP, AC_CHECK_TOOL.
983 * Many additions to the TODO file :-)
985 Major changes in Autoconf 2.1:
987 Released November 4th, 1994, by David J. MacKenzie
990 * More explanations in the manual.
991 * Fix a spurious failure in the testsuite.
992 * Clarify some warning messages.
993 * autoreconf by default only rebuilds configure and config.h.in files
994 that are older than any of their particular input files; there is a
995 --force option to use after installing a new version of Autoconf.
997 Thanks to everybody who's submitted changes and additions to Autoconf!
998 I've incorporated many of them, and am still considering others for
999 future releases -- but I didn't want to postpone this release indefinitely.
1001 Caution: don't indiscriminately rebuild configure scripts with
1002 Autoconf version 2. Some configure.in files need minor adjustments to
1003 work with it; the documentation has a chapter on upgrading. A few
1004 configure.in files, including those for GNU Emacs and the GNU C
1005 Library, need major changes because they relied on undocumented
1006 internals of version 1. Future releases of those packages will have
1007 updated configure.in files.
1009 It's best to use GNU m4 1.3 (or later) with Autoconf version 2.
1010 Autoconf now makes heavy use of m4 diversions, which were implemented
1011 inefficiently in GNU m4 releases before 1.3.
1013 Major changes in Autoconf 2.0:
1015 Released October 26th, 1994, by David J. MacKenzie
1017 ** New copyright terms:
1018 * There are no restrictions on distribution or use of configure scripts.
1021 * Autoconf manual is reorganized to make information easier to find
1022 and has several new indexes.
1023 * INSTALL is reorganized and clearer and is now made from Texinfo source.
1026 * autoscan to generate a preliminary configure.in for a package by
1027 scanning its source code for commonly used nonportable functions,
1028 programs, and header files.
1029 * ifnames to list the symbols used in #if and #ifdef directives in a
1031 * autoupdate to update a configure.in to use the version 2 macro names.
1032 * autoreconf to recursively remake configure and configuration header
1033 files in a source tree.
1035 ** Changed utilities:
1036 * autoheader can take pieces of acconfig.h to replace config.h.{top,bot}.
1037 * autoconf and autoheader can look for package-local definition files
1038 in an alternate directory.
1041 * AC_CACHE_VAL to share results of tests between configure runs.
1042 * AC_DEFUN to define macros, automatically AC_PROVIDE them, and ensure
1043 that macros invoked with AC_REQUIRE don't interrupt other macros.
1044 * AC_CONFIG_AUX_DIR, AC_CANONICAL_SYSTEM, AC_CANONICAL_HOST, AC_LINK_FILES to
1045 support deciding unguessable features based on the host and target types.
1046 * AC_CONFIG_SUBDIRS to recursively configure a source tree.
1047 * AC_ARG_PROGRAM to use the options --program-prefix,
1048 --program-suffix, and --program-transform-name to change the names
1049 of programs being installed.
1050 * AC_PREFIX_DEFAULT to change the default installation prefix.
1051 * AC_TRY_COMPILE to compile a test program without linking it.
1052 * AC_CHECK_TYPE to check whether sys/types.h or stdlib.h defines a given type.
1053 * AC_CHECK_LIB to check for a particular function and library.
1054 * AC_MSG_CHECKING and AC_MSG_RESULT to print test results, on a single line,
1055 whether or not the test succeeds. They obsolete AC_CHECKING and AC_VERBOSE.
1056 * AC_SUBST_FILE to insert one file into another.
1057 * AC_FUNC_MEMCMP to check whether memcmp is 8-bit clean.
1058 * AC_FUNC_STRFTIME to find strftime even if it's in -lintl.
1059 * AC_FUNC_GETMNTENT to find getmntent even if it's in -lsun or -lseq.
1060 * AC_HEADER_SYS_WAIT to check whether sys/wait.h is POSIX.1 compatible.
1063 * Many macros renamed systematically, but old names are accepted for
1064 backward compatibility.
1065 * AC_OUTPUT adds the "automatically generated" comment to
1066 non-Makefiles where it finds @configure_input@ in an input file, to
1067 support files with various comment syntaxes.
1068 * AC_OUTPUT does not replace "prefix" and "exec_prefix" in generated
1069 files when they are not enclosed in @ signs.
1070 * AC_OUTPUT allows the optional environment variable CONFIG_STATUS to
1071 override the file name "config.status".
1072 * AC_OUTPUT takes an optional argument for passing variables from
1073 configure to config.status.
1074 * AC_OUTPUT and AC_CONFIG_HEADER allow you to override the input-file names.
1075 * AC_OUTPUT automatically substitutes the values of CFLAGS, CXXFLAGS,
1076 CPPFLAGS, and LDFLAGS from the environment.
1077 * AC_PROG_CC and AC_PROG_CXX now set CFLAGS and CXXFLAGS, respectively.
1078 * AC_PROG_INSTALL looks for install-sh or install.sh in the directory
1079 specified by AC_CONFIG_AUXDIR, or srcdir or srcdir/.. or
1080 srcdir/../.. by default.
1081 * AC_DEFINE, AC_DEFINE_UNQUOTED, and AC_SUBST are more robust and smaller.
1082 * AC_DEFINE no longer prints anything, because of the new result reporting
1083 mechanism (AC_MSG_CHECKING and AC_MSG_RESULT).
1084 * AC_VERBOSE pays attention to --quiet/--silent, not --verbose.
1085 * AC_ARG_ENABLE and AC_ARG_WITH support whitespace in the arguments to
1086 --enable- and --with- options.
1087 * AC_CHECK_FUNCS and AC_CHECK_HEADERS take optional shell commands to
1088 execute on success or failure.
1089 * Checking for C functions in C++ works.
1092 * AC_REMOTE_TAPE and AC_RSH removed; too specific to tar and cpio, and
1093 better maintained with them.
1094 * AC_ARG_ARRAY removed because no one was likely using it.
1095 * AC_HAVE_POUNDBANG replaced with AC_SYS_INTERPRETER, which doesn't
1096 take arguments, for consistency with all of the other specific checks.
1099 * Comes with config.sub and config.guess, and uses them optionally.
1100 * Uses config.cache to cache test results. An alternate cache file
1101 can be selected with the --cache-file=FILE option.
1102 * Uses optional shell scripts $prefix/share/config.site and
1103 $prefix/etc/config.site to perform site or system specific initializations.
1104 * configure saves compiler output to ./config.log for debugging.
1105 * New files autoconf.m4 and autoheader.m4 load the other Autoconf macros.
1106 * acsite.m4 is the new name for the system-wide aclocal.m4.
1107 * Has a DejaGnu test suite.
1109 Major changes in Autoconf 1.11:
1111 * AC_PROG_INSTALL calls install.sh with the -c option.
1112 * AC_SET_MAKE cleans up after itself.
1113 * AC_OUTPUT sets prefix and exec_prefix if they weren't set already.
1114 * AC_OUTPUT prevents shells from looking in PATH for config.status.
1116 Plus a few other bug fixes.
1118 Major changes in Autoconf 1.10:
1120 * autoheader uses config.h.bot if present, analogous to config.h.top.
1121 * AC_PROG_INSTALL looks for install.sh in srcdir or srcdir/.. and
1123 * AC_PROG_CXX looks for cxx as a C++ compiler.
1125 Plus several bugs fixed.
1127 Major changes in Autoconf 1.9:
1129 * AC_YYTEXT_POINTER replaces AC_DECLARE_YYTEXT.
1130 * AC_SIZEOF_TYPE generates the cpp symbol name automatically,
1131 and autoheader generates entries for those names automatically.
1132 * AC_FIND_X gets the result from xmkmf correctly.
1133 * AC_FIND_X assumes no X if --without-x was given.
1134 * AC_FIND_XTRA adds libraries to the variable X_EXTRA_LIBS.
1135 * AC_PROG_INSTALL finds OSF/1 installbsd.
1137 Major changes in Autoconf 1.8:
1140 * New macros AC_LANG_C, AC_LANG_CPLUSPLUS, AC_LANG_SAVE, AC_LANG_RESTORE,
1141 AC_PROG_CXX, AC_PROG_CXXCPP, AC_REQUIRE_CPP
1142 for checking both C++ and C features in one configure script.
1143 * New macros AC_CHECKING, AC_VERBOSE, AC_WARN, AC_ERROR for printing messages.
1144 * New macros AC_FIND_XTRA, AC_MMAP, AC_SIZEOF_TYPE, AC_PREREQ,
1145 AC_SET_MAKE, AC_ENABLE.
1148 * AC_FIND_X looks for X in more places.
1149 * AC_PROG_INSTALL defaults to install.sh instead of cp, if it's in srcdir.
1150 install.sh is distributed with Autoconf.
1151 * AC_DECLARE_YYTEXT has been removed because it can't work, pending
1152 a rewrite of quoting in AC_DEFINE.
1153 * AC_OUTPUT adds its comments in C format when substituting in C files.
1154 * AC_COMPILE_CHECK protects its ECHO-TEXT argument with double quotes.
1156 ** New or changed command line options:
1157 * configure accepts --enable-FEATURE[=ARG] and --disable-FEATURE options.
1158 * configure accepts --without-PACKAGE, which sets withval=no.
1159 * configure accepts --x-includes=DIR and --x-libraries=DIR.
1160 * Giving --with-PACKAGE no argument sets withval=yes instead of withval=1.
1161 * configure accepts --help, --version, --silent/--quiet, --no-create options.
1162 * configure accepts and ignores most other Cygnus configure options, and
1163 warns about unknown options.
1164 * config.status accepts --help, --version options.
1166 ** File names and other changes:
1167 * Relative srcdir values are not made absolute.
1168 * The values of @prefix@ and @exec_prefix@ and @top_srcdir@ get substituted.
1169 * Autoconf library files are installed in ${datadir}/autoconf, not ${datadir}.
1170 * autoheader optionally copies config.h.top to the beginning of config.h.in.
1171 * The example Makefile dependencies for configure et al. work better.
1172 * Namespace cleanup: all shell variables used internally by Autoconf
1173 have names beginning with `ac_'.
1175 More big improvements are in process for future releases, but have not
1176 yet been (variously) finished, integrated, tested, or documented enough
1179 Major changes in Autoconf 1.7:
1181 * New macro AC_OBSOLETE.
1182 * Bugs in Makefile.in fixed.
1183 * AC_LONG_FILE_NAMES improved.
1185 Major changes in Autoconf 1.6:
1187 * New macro AC_LONG_64_BITS.
1188 * Multiple .h files can be created.
1189 * AC_FIND_X looks for X files directly if it doesn't find xmkmf.
1190 * AC_ALLOCA defines C_ALLOCA if using alloca.c.
1191 * --with-NAME can take a value, e.g., --with-targets=sun4,hp300bsd.
1192 * Unused --no-create option to configure removed.
1193 * autoheader doesn't change the timestamp of its output file if
1194 the file didn't change.
1195 * All macros that look for libraries now use AC_HAVE_LIBRARY.
1196 * config.status checks three optional environment variables to
1197 modify its behavior.
1198 * The usual bug fixes.
1200 Major changes in Autoconf 1.5:
1202 * New macros AC_FIND_X, AC_OFF_T, AC_STAT_MACROS_BROKEN, AC_REVISION.
1203 * autoconf and autoheader scripts have GNU standards conforming
1204 --version and --help options (they print their message and exit).
1207 Major changes in Autoconf 1.4:
1209 * New macros AC_HAVE_POUNDBANG, AC_TIME_WITH_SYS_TIME, AC_LONG_DOUBLE,
1210 AC_GETGROUPS_T, AC_DEFINE_UNQUOTED.
1211 * autoconf and autoheader use the M4 environment variable to determine the
1212 name of the m4 program to use.
1213 * The --macrodir option to autoconf and autoheader specifies the directory
1214 in which acspecific.m4, acgeneral.m4, etc. reside if not the default.
1215 * autoconf and autoheader can take `-' as their file names, which means to
1216 read stdin as input.
1217 * Resulting configure scripts can take a --verbose option which causes them
1218 to print the results of their tests.
1219 * AC_DEFINE quotes its second argument in such a way that spaces, magic
1220 shell characters, etc. will be preserved during various stages of
1221 expansion done by the shell. If you don't want this, use
1222 AC_DEFINE_UNQUOTED instead.
1223 * Much textual processing done with external calls to tr and sed have been
1224 internalized with builtin m4 `patsubst' and `translit' calls.
1225 * AC_OUTPUT doesn't hardwire the file names it outputs. Instead, you can
1226 set the shell variables `gen_files' and `gen_config' to the list of
1227 file names to output.
1228 * AC_DECLARE_YYTEXT does an AC_SUBST of `LEX_OUTPUT_ROOT', which may be
1229 "lex.yy" or "lexyy", depending on the system.
1230 * AC_PROGRAMS_CHECK takes an optional third arg. If given, it is used as
1232 * If AC_ALLOCA chooses alloca.c, it also defines STACK_DIRECTION.
1233 * AC_CONST works much more reliably on more systems.
1236 Major changes in Autoconf 1.3:
1238 configure no longer requires awk for packages that use a config.h.
1239 Support handling --with-PACKAGE options.
1240 New `autoheader' script to create `config.h.in' from `configure.in'.
1241 Ignore troublesome -lucb and -lPW when searching for alloca.
1242 Rename --exec_prefix to --exec-prefix for GNU standards conformance.
1243 Improve detection of STDC library.
1244 Add AC_HAVE_LIBRARY to check for non-default libraries.
1245 Function checking should work with future GNU libc releases.
1247 Major changes in Autoconf 1.2:
1249 The --srcdir option is now usually unnecessary.
1250 Add a file containing sample comments describing CPP macros.
1251 A comment in config.status tells which host it was configured on.
1252 Substituted variable values can now contain commas.
1253 Fix bugs in various feature checks.
1255 Major changes in Autoconf 1.1:
1257 Added AC_STRCOLL macro.
1258 Made AC_GETLOADAVG check for more things.
1259 AC_OUTPUT argument is now optional.
1264 Copyright (C) 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
1265 2003, 2004, 2005 Free Software Foundation, Inc.
1267 This file is part of GNU Autoconf.
1269 GNU Autoconf is free software; you can redistribute it and/or modify
1270 it under the terms of the GNU General Public License as published by
1271 the Free Software Foundation; either version 2, or (at your option)
1274 GNU Autoconf is distributed in the hope that it will be useful,
1275 but WITHOUT ANY WARRANTY; without even the implied warranty of
1276 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1277 GNU General Public License for more details.
1279 You should have received a copy of the GNU General Public License
1280 along with GNU Autoconf; see the file COPYING. If not, write to
1281 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
1282 Boston, MA 02110-1301, USA.