Generate package.m4 in build-dir, not srcdir.
[autoconf/tsuna.git] / TODO
blobfae35f32ebf5dbaaf2d6b82551a928b3d0f1dd37
1 -*- outline -*-
3 Things it might be nice to do someday.  I haven't evaluated all of
4 these suggestions... their presence here doesn't imply my endorsement.
5 -djm & his successors.
8 ------------------------------------------------------------------------------
10 * Soon
12 ** AC_PROG_INSTALL
13 This test should be extended to check that install supports the GNU
14 Install syntax: install FILES... DIR.  This will relieve everybody
15 form having to use mkinstalldirs to create the directories, as install
16 does it itself.  install-sh is already handling this case.  This also
17 makes it simple not to create the directories where nothing will be
18 installed because of configuration options, which is next to
19 impossible using the current setting.
21 In other words: everything is ready (install-sh and Automake), we just
22 need a good reimplementation of AC_PROG_INSTALL.
24 ** --target & AC_ARG_PROGRAM
25 Shouldn't *any* `program' be installed as `$target_alias-program' even
26 if AC_ARG_PROGRAM is not called?  That would be much more predictable.
27 Ian?
29 ** AC_CHECK_TOOL...
30 Write a test that checks that it honors the values set by the user.
32 ** autom4te and warnings.
33 Decide what must be done.
35 ** AC_DEFINE(func, rpl_func)
36 This scheme causes problems: if for instance, #define malloc
37 rpl_malloc, then the rest of configure will use an undefined malloc.
38 Hence some tests fail.  Up to now we simply #undef these functions
39 where we had a problem (cf. AC_FUNC_MKTIME and AC_FUNC_MMAP for
40 instance).  This is _bad_.  Maybe the #define func rpl_malloc should
41 be performed in another file than confdefs.h, say confh.h, which is
42 used for config.h generation, but not used in configure's own tests.
44 ** AC_PROG_CC
45 Currently it tries to put the C compiler in ANSI C mode by default.
46 We should change this spec so that AC_PROG_CC tries to change the
47 compiler to be the "nicest" mode, i.e. support for the latest standard
48 features (currently ISO C99) plus support for all vendor extensions,
49 even if they are slightly incompatible with C99.  The basic idea here
50 is that AC_PROG_CC should disable pedanticisms and should enable
51 extensions.
53 ** AC_GNU_SOURCE, AC_AIX, and AC_MINIX
54 Deprecate these, as they will be superseded by the AC_PROG_CC changes.
57 * Later
59 ** config.site
60 This guy is really a problem.  It's contents should be read before
61 handling the options, so that the latter properly override the latter,
62 but most people would want a means to have a config.site that depends
63 on $prefix for instance.
65 Some other would like config.site to be looked for in the current
66 directory.
68 Harlan:
70    I'll go further.
72    I'd like to see several layers of config.site available.
74    I'm starting to use "modules" at more places to handle software
75    installation, and it would be helpful to set general things like:
77         prefix=/opt/pkg/@PACKAGE@/@VERSION@
79    once at a global level, and then, for example, have things like:
81         --with-etcdir=$prefix/etc
83    stuffed "above" the various versions of SSH so I wouldn't have to hunt for
84    these things every time it was time to recompile a new version of a
85    previously installed package.
87    Something like:
89      src/config.site            Global stuff
90      ...
91      src/ssh/config.site                package-specific stuff
92      src/ssh/ssh-1.2.27/                the actual source code
94    I'd like to see automake/autoconf better support packaging tools (like
95    modules, the *BSD ports/ stuff, and others would like hooks for RPMs).
98 ** Languages
99 Integrate other Fortrans etc.
101 ** AC_CHECK_FUNCS and AC_TRY_LINK_FUNC
102 I have still not understood what's the difference  between the two
103 which requires to have two different sources: AC_LANG_CALL and
104 AC_LANG_FUNC_LINK_TRY (which names seem to be inappropriate).
105 Wouldn't one be enough?
107 ** Document AC_COMPILE_IFELSE, AC_LANG_PROGRAM etc.
108 And make AC_TRY_COMPILE etc. obsolete.
110 ** Libtool
111 Define once for all the hooks they need, any redefinition of
112 AC_PROG_CC etc. is way too dangerous and too limiting.  The GCC team
113 certainly has requirements too.
115 ** AC_SEARCH_LIBS
116 From: Tom Tromey <tromey@cygnus.com>
117 Subject: AC_SEARCH_LIBS
119 I think AC_SEARCH_LIBS has an unfortunate interface.
121 ACTION-IF-FOUND is run in addition to the default action.  Most
122 autoconf macros don't work this way.  This is confusing.
124 In my case I can't use this macro because it always appends to LIBS.
125 I don't want that.  Instead I want to use ACTION-IF-FOUND to set my
126 own macro.
128 Also there is no documentation on the format of library names expected
129 by the macro.  Even a reference to some other function (e.g., "the
130 library name can have the same forms as with AC_HAVE_LIBRARY" (if that
131 is true, which I haven't looked up) would be fine.
133 ** Revamp the language support
134 We should probably have a language for C89, and C99.  We must give the
135 means to the users to specify some needs over the compilers, and
136 actually look for a good compiler, instead of stopping at the first
137 compiler we find.
139 In fact, the AC_CHECK_PROG macro and variations have proved their
140 limitation: we really need something more powerful and simpler too.
142 We must take into account the specific problems of the GCC team.  We
143 must extend AC_CHECK_FUNCS in order to use the headers instead of fake
144 declarations as we currently do.  Default headers could be triggered
145 on when C99, but not with the other languages?
147 At the end, we should have a simple macro, such as AC_LANG_COMPILER
148 for instance, which is built over simpler macros.  Each language
149 support should come with these simpler macros, but each language
150 should follow the same process.
152 We also need to check the srcext which are supported by the compiler.
153 In fact, this macro is also probably the right place to check for
154 objext and exeext.
156 ** AC_PROG_CC_STDC
157 Should be: AC_PROG_CC_ISO?  Or even more specific for the ISO version?
158 Should include more tests (e.g., AC_C_CONST etc.)?  See Peter for very
159 useful comments on the technology.  Should we make this a new
160 language?  AC_LANG(ISO C).  It would be great to introduce
161 AC_LANG_COMPILER in this release too.
163 ** autoupdate
164 We should probably install the files which do not depend upon the
165 user, just the Autoconf library files.  But conversely autoupdate must
166 be opened to user macros, i.e., for instance libtool itself must be
167 able to say that AM_PROG_LIBTOOL is now AC_PROG_LIBTOOL, and have
168 autoupdate do its job on old configure.ac.
170 * Even later
172 ** Pentateuch
173 Heck, there is nothing after `Deuteronomy'!  We're stuck, but we
174 _must_ update the `history' section.  Can't go to `New testament', we
175 might hurt feelings?  In addition, it means that the Messiah has come,
176 which might be slightly presumptuous :).  Still, someone fluent in
177 English should write it.
179 ** AC_PATH_X
180 Hi Robert,
182 > Hi, autoconf people.  While packaging plotutils-2.2 (just released),
183 > I noticed what looks like a small error in the autoconf-2.13 texinfo
184 > documentation, the entry for AC_PATH_XTRA, in particular.
186 > The documentation says that AC_PATH_XTRA
187 >       ... adds the C compiler flags that X needs to output variable
188 >       `X_CFLAGS', and the X linker flags to `X_LIBS'.  If X is not
189 >       available, adds `-DX_DISPLAY_MISSING' to `X_CFLAGS'.
191 > It doesn't seem to add -DX_DISPLAY_MISSING to X_CFLAGS.  X_DISPLAY_MISSING
192 > ends up defined in config.h, instead.
194 That's only because you're no doubt using AC_CONFIG_HEADER(..) to send
195 your defines to a config.h-style file.  If you were to not use
196 AC_CONFIG_HEADER and X was not available, then you would see
197 -DX_DISPLAY_MISSING being added to @DEFS@ as your output files were being
198 generated.
200 But you are right--the documentation is not clear about this.  I'll change
203 > In fact it looks to me as if right now, X_CFLAGS is used only for
204 > specifying directories where X include files are stored, via the `-I' option.
205 > Maybe it should really be called X_CPPFLAGS?
207 Well, perhaps.  If you feel strongly about this, feel free to submit a
208 change-request.  There is a hyperlink to the bug tracking database from
209 http://sourceware.cygnus.com/autoconf/.  With the way it reads in the
210 manual right now, it's designed to allow the user to set additional flags
211 in the environment prior to running configure--and these don't need to be
212 limited to just -I flags.  Nevertheless, I can see a few clean ways to
213 improve this.
215 ** AC_SYS_INTERPRETER
216 Defines $interpval.  This is not a standard name.  Do we want to keep
217 this?  Clarify our policy on those names.
219 ** Allow --recursive to config.status
220 So that --recheck does not pass --no-recursive to configure.
222 * autoconf.texi
223 Move the specific macro documentation blocks into the source files,
224 and use a doc-block extraction/merge technique to get documentation
225 into texi-file.  This should help avoid bit-rot in the doc, and make
226 the doc easier to update when people add/change macros.  The name
227 "autodoc" is probably already taken so we probably need another one.
229 ------------------------------------------------------------------------------
231 * m4
233 ** I18n
234 The error messages for indir and dumpdef are uselessly different.  Fix
235 this for translators.
237 ** Tracing `builtin'
238 F**k!  --trace FOO does not catch indir([FOO], $@)!
240 ** Tracing builtins
241 GNU M4 1.4's tracing of builtins is buggy.  When run on this input:
243 | divert(-1)
244 | changequote([, ])
245 | define([m4_eval], defn([eval]))
246 | eval(1)
247 | m4_eval(2)
248 | undefine([eval])
249 | m4_eval(3)
251 it behaves this way:
253 | % m4 input.m4 -da -t eval
254 | m4trace: -1- eval(1)
255 | m4trace: -1- m4_eval(2)
256 | m4trace: -1- m4_eval(3)
257 | %
259 Conversely:
261 | % m4 input.m4 -da -t m4_eval
262 | %
264 ------------------------------------------------------------------------------
266 * Autoconf 3
268 ** Cache name spaces.
269 Cf the discussion with Kaveh.  One would like to
270 AC_CHECK_FUNCS(bar)
271 # Do something that changes the environment
272 AC_CACHE_PUSH(foo)
273 AC_CHECK_FUNCS(bar)
274 AC_CACHE_POP
275 in order not to erase the results of a check with another.
277 ** Cache var names
278 should depend upon the current language.
280 ** Use m4 lists?
281 I think one sad decision in Autoconf was to use white space separated
282 lists for some arguments.  For instance AC_CHECK_FUNCS(foo bar).  I
283 tend to think that, even if it is not as nice, we should use m4 lists,
284 i.e., AC_CHECK_FUNCS((foo, bar)) in this case.  This would ease
285 specializing loops, and more importantly, make them much more robust.
287 A typical example of things that can be performed if we use m4 lists
288 instead of white space separated lists is the case of things that have
289 a space in their names, eg, structures.
291 With the current scheme it would be extremely difficult to loop over
292 AC_CHECK_STRUCTS(struct foo struct bar), while it natural and well
293 defined for m4 lists: AC_CHECK_STRUCTS((struct foo, struct bar)).
295 I know that makes a huge difference in syntax, but a major release
296 should be ready to settle a new world.  We *can* provide helping tools
297 for the transition.  Considering the benefits, I really think it is
298 worth thinking. --akim
300 ** Forbid shell variables as main arguments
301 The fact that we have to support shell variables as main argument
302 forbids many interesting constructions (specialization are not always
303 possible, equally for AC_REQUIRE'ing macros *with their arguments*).
304 Any loop should be handled by m4 itself, and nothing should be hidden
305 to it.  As a consequence, shell variables on the main arguments become
306 useless (the main reason we support shell variables is to allow the
307 loop versions of single argument macros, eg, to go from AC_CHECK_FUNC
308 to AC_CHECK_FUNCS). --akim
310 ** Use the @SUBST@ technology also for headers instead of #undef.
311 This requires that acconfig.h becomes completely obsolete: autoheader
312 should generate all the templates.
314 ** Specializing loops.
315 For instance, make AC_CHECK_FUNC[S] automatically use any particular
316 macros for the listed functions.
317 This requires to obsolete the feature `break' in ACTION-IF, since all
318 the loops are to be handled by m4, not sh.
320 ** Faces of a test
321 Each macro can potentially come with several faces: of course the
322 configure snippet (AC_foo), a config.h snippet (AH_foo), a system.h
323 snippet (AS_foo), documentation (AD_foo) and, why not, the some C code
324 for instance to replace a function.
326 The motivation for the `faces' is to encapsulate.  It is abnormal that
327 once one has a configure macro, then she has to read somewhere to find
328 the piece of system.h to use etc.  The macros should come in a
329 self-contained way, or, said it another way, PnP.
331 A major issue is that of specialization.  AC_CHECK_HEADER (or another
332 name) for instance, will have as an effect, via system.h to include
333 the header.  But if the test for the header is specific, the generic
334 AS_CHECK_HEADER will still be used.  Conversely, some headers may not
335 require a specific AC_ tests, but a specialized AS_ macro.
337 ------------------------------------------------------------------------------
339 * Make AC_CHECK_LIB check whether the function is already available
340   before checking for the library.  This might involve adding another
341   kind of cache variable to indicate whether a given function needs a
342   given library.  The current ac_cv_func_ variables are intended to
343   indicate whether the function is in the default libraries, but
344   actually also take into account whatever value LIBS had when they
345   were checked for.
347   Isn't this the issue of AC_SEARCH_LIB? --akim
348   How come the list of libraries to browse not an additional parameter
349   of AC_CHECK_FUNC, exactly like for the headers? --akim
351 ------------------------------------------------------------------------------
353 * Add AC_PROG_CC_POSIX to replace the current ad-hoc macros for AIX,
354   Minix, ISC, etc.
356 ------------------------------------------------------------------------------
358 * Select the right CONFIG_SHELL automatically (for Ultrix, Lynx especially.)
360 ------------------------------------------------------------------------------
362 * Doc: Centralize information on POSIX, MS-DOS, cross-compiling, and
363   other important topics.
365 ------------------------------------------------------------------------------
367 * Mike Haertel's suggestions:
369 ** Provide header files containing decls for alloca, strings, etc.
371 ** Cross compiling:
373 *** Error messages include instructions for overriding defaults using
374 config.site.
376 *** Distribute a config.site corresponding to a hypothetical bare POSIX system with c89.
378 ** Site defaults:
380 *** Convention for consistency checking of env vars and options in config.site so config.site can print obnoxious messages if it doesn't like options or env vars that users use.
382 ------------------------------------------------------------------------------
384 * Look at user contributed macros:
385         IEEE double precision math
386         more
388 ------------------------------------------------------------------------------
390 * Provide a way to create a config.h *and* set the DEFS variable from within
391 the same configure script.
393 ------------------------------------------------------------------------------
395 For AC_TYPE_SIGNAL signal handlers, provide a way for code to know
396 whether to do "return 0" or "return" (int vs void) to avoid compiler
397 warnings.  (Roland McGrath)
399 ------------------------------------------------------------------------------
401 In config.status comment, put the host/target/build types, if used.
403 ------------------------------------------------------------------------------
405 It would be nice if I could (in the Makefile.in files) set the
406 relative name of config.h. You have config.h ../config.h
407 ../../config.h's all over the place, in the findutils-4.1 directory.
408 From: "Randall S. Winchester" <rsw@eng.umd.edu>
410 ------------------------------------------------------------------------------
412         ls -lt configure configure.in | sort
413 doesn't work right if configure.in is from a symlink farm, where the
414 symlink has either a timestamp of its own, or under BSD 4.4, it has
415 the timestamp of the current directory, neither of which
416 helps. Changing it to
417         ls -Llt configure configure.in | sort
418 works for me, though I don't know how portable that is
419 _Mark_ <eichin@cygnus.com>
421 ------------------------------------------------------------------------------
423 Here is the thing I would like the most;
424 AC_PKG_WITH(PACKAGE, HELP_STRING, PACKAGE-ROOT, PACKAGE-LIBS, PACKAGE-DEFS,
425         PACKAGE-CCPFLAGS)
426 like
428 AC_PKG_WITH(kerberos,,/usr/local/athena,-lkrb -ldes,[KERBEROS KRB4
429 CRYPT],include)
430 AC_PKG_WITH(hesiod,
431 [if hesiod is not in kerberos-root add --with-hesiod-root=somewhere]
432 ,,-lhesiod,HESIOD,,)
433 AC_PKG_WITH(glue,,,-lglue,GLUE,,)
434 AC_PKG_WITH(bind,,/usr/local/bind, [lib/resolv.a lib/lib44bsd.a], ,include)
435 After the appropriate checks, the existence of the files, and libs and such
436 LIBS=$LIBS $PKG-LIBS
437 DEFS=$DEFS $PKG-DEFS
438 CPPFLAGS=$PKG-CPPFLAGS $CPPFLAGS
439 $PKG-ROOT=$PKG-ROOT
440 The cppflags should reverse the order so that you can have;
441 -I/usr/local/bind/include -I/usr/local/athena/include
443 -L/usr/local/athena/lib -lkrb -ldes /usr/local/bind/lib/libresolv.a
444 as order matters.
446 also an AC_PKG_CHK_HEADER
447 and an AC_PKG_CHK_FUNCTION
448 so one can give alternate names to check for stuff ($PKG-ROOT/lib for
449 example)
450 From: Randall Winchester
452 ------------------------------------------------------------------------------
454 AC_C_CROSS assumes that configure was called like 'CC=target-gcc;
455 ./configure'. I want to write a package that has target dependent
456 libraries and host dependent tools. So I don't like to lose the
457 distinction between CC and [G]CC_FOR_TARGET.  AC_C_CROSS should check
458 for equality of target and host.
460 It would be great if
462 GCC_FOR_TARGET
463 AR_FOR_TARGET
464 RANLIB_FOR_TARGET
466 would be set automatically if host != target.
467 AC_LANG_CROSS_C would be nice too, to check header files
468 etc. with GCC_FOR_TARGET instead of CC
470 Here is one simple test
472 if test "x$host" != "x$target"; then
473 AC_CHECK_PROGS(AR_FOR_TARGET,
474                [$target-ar, $prefix/$target/bin/ar], $target-ar)
475 AC_CHECK_PROGS(RANLIB_FOR_TARGET, $target-ranlib, $target-ranlib)
476                [$target-ranlib, $prefix/$target/bin/ranlib], $target-ranlib)
477 AC_CHECK_PROGS(GCC_FOR_TARGET, $target-gcc, $target-gcc)
478                [$target-gcc, $prefix/$target/bin/gcc], $target-gcc)
481 From: nennker@cs.tu-berlin.DE (Axel Nennker)
483 (also look in the autoconf mailing list archives for the proposed
484 CHECK_TARGET_TOOL macro from Natanael Nerode, a gcc configury guru).
486 ------------------------------------------------------------------------------
488 The problem occurs with the following libc functions in SunOS 5.4:
490         fnmatch glob globfree regcomp regexec regerror regfree wordexp wordfree
492 It also occurs with a bunch more libposix4 functions that most people
493 probably aren't worried about yet, e.g. shm_open.
495 All these functions fail with errno set to ENOSYS (89)
496 ``Operation not applicable''.
498 Perhaps Autoconf should have a specific macro for fnmatch, another for
499 glob+globfree, another for regcomp+regexec+regerror+regfree, and
500 another for wordexp+wordfree.  This wouldn't solve the problem in
501 general, but it should work for Solaris 2.4.  Or Autoconf could limit
502 itself to fnmatch and regcomp, the only two functions that I know have
503 been a problem so far.
505 From Paul Eggert.
507 ------------------------------------------------------------------------------
509 Make easy macros for checking for X functions and libraries, such as Motif.
511 ------------------------------------------------------------------------------
513 There are basically three ways to lock files
514         lockf, fnctl, flock
515 I'd be interested in adding a macro to pick the "right one" if you're
516 interested.
518 From:    Rich Salz <rsalz@osf.org>
520 ------------------------------------------------------------------------------
522 Timezone calculations checks.
524 ------------------------------------------------------------------------------
526 Support different default file system layouts, e.g. SVR4, Linux.
527 Of course, this can be done locally with config.site.
529 ------------------------------------------------------------------------------
531 I wonder if it is possible to get the name of X11's app-defaults
532 directory by autoconf. Moreover, I'd like to have a general way of
533 accessing imake variables by autoconf, something like
535 AC_DEFINE(WINE_APP_DEFAULTS, AC_IMAKE_VAR(XAPPLOADDIR))
537 Slaven Rezic <eserte@cabulja.herceg.de>
539 ------------------------------------------------------------------------------
541 Cache consistency checking: ignore cache if environment
542 (CC or PATH) differs.
543 From Mike Haertel
545 So we need a general mechanism for storing variables' values in the cache,
546 and checking if they are the same after reading the cache.  Then we can add
547 to the list of variables as we come across the need.  So far we want
548 LD_LIBRARY_PATH and the internal variables for some of (all?) the args.
549 From: roland@gnu.ai.mit.edu (Roland McGrath)
551 Hmm.  That list might include LD_LIBRARY_PATH, LD_RUN_PATH (for solaris),
552 and PATH.  I can't think of any others so far.
553 From: friedman@splode.com (Noah Friedman)
555 ------------------------------------------------------------------------------
557 Every user running X11 usually has a directory like *X11* in his PATH
558 variable. By replacing bin by include, you can find good places to
559 look for the include files or libraries.
561 From: rcb5@win.tue.nl (Richard Verhoeven)
563 ------------------------------------------------------------------------------
565 In most cases, when autoscan suggests something, using the search or
566 index command into the Info reader for autoconf manual quickly
567 explains me what the test is about.  However, for header files and
568 functions, the search might fail, because the test is not of the
569 specific kind.  The Autoconf manual should reflect somewhere all
570 header files or functions (non-specific features, generally)
571 triggering autoscan to generate tests, and tell in a few words what is
572 the problem, and the suggested approach for a solution; that is, how
573 one should use the result of testing the feature.
575 From: pinard@iro.umontreal.ca
577 ------------------------------------------------------------------------------
579 It would be nice if the configure script would handle an option such as
580 --x-libraries="/usr/openwin/lib /usr/dt/lib".
582 Rick Boykin <rboykin@cscsun3.larc.nasa.gov>
584 Under Solaris 2.4, the regular X includes and libs and the Motif
585 includes and libs are in different places.  The Emacs configure script
586 actually allows dir1:dir2:dir3 --
588     if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
589       LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
590       LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
591     fi
592     if test "${x_includes}" != NONE && test -n "${x_includes}"; then
593       C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
594     fi
596 ------------------------------------------------------------------------------
598     What messages should be produced by default, if any?
600 Probably only the few most important ones, like which configuration
601 name was used, whether X or Xt are in use, etc. The specific
602 decisions, and progress messages, should be recorded on the terminal
603 only if --verbose is used.
605     --silent just suppresses the "checking for...result"
606     messages, not the "creating FOO" messages.
608 I think the default should be to suppress both.
609 From: Richard Stallman <rms@gnu.ai.mit.edu>
611 There is no distinction now between
612 important decisions (we have X) vs minor decisions (we have lstat).
613 However, there are probably only a few things you deem important enough to
614 announce and only those few things will need to be changed.
615 Perhaps config.status could be written with comments saying what was
616 decided.
617 From: Roland McGrath <roland@gnu.ai.mit.edu>
619 ------------------------------------------------------------------------------
621 Another thing I wish for is a macro which figures out which libraries are
622 needed for BSD-style sockets.  AC_PATH_X already detects this
623 correctly...so it's just a matter of separating out the socket-related code.
624 From: "Joel N. Weber II" <nemo@koa.iolani.honolulu.hi.us>
626 ------------------------------------------------------------------------------
628 in order to use the AC_CANONICAL_SYSTEM macro, I have to have
629 install-sh somewhere nearby --- why is this?  I have no real reason to
630 distribute install-sh, other than that its absence breaks this code.
632 Shouldn't the above loop be looking for config.sub and config.guess?
633 From: jimb@totoro.bio.indiana.edu (Jim Blandy)
635 adding AC_CANONICAL_HOST to my configure.in script caused
636 all sorts of odd/unexplained errors.  Obviously, I had to go
637 get copies of config.guess, config.sub and install-sh from the
638 autoconf distribution, but the error messages and autoconf docs
639 didn't explain that very well.
640 From: bostic@bsdi.com (Keith Bostic)
642 ------------------------------------------------------------------------------
644 Perhaps also have AC_TRY_COMPILER try to link an invalid program, and
645 die if the compiler seemed to succeed--in which case it's not usable
646 with autoconf scripts.
648 ------------------------------------------------------------------------------
650 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2007 Free
651 Software Foundation, Inc.
653 This program is free software: you can redistribute it and/or modify
654 it under the terms of the GNU General Public License as published by
655 the Free Software Foundation, either version 3 of the License, or
656 (at your option) any later version.
658 This program is distributed in the hope that it will be useful,
659 but WITHOUT ANY WARRANTY; without even the implied warranty of
660 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
661 GNU General Public License for more details.
663 You should have received a copy of the GNU General Public License
664 along with this program.  If not, see <http://www.gnu.org/licenses/>.