📄 todo
字号:
AS_CHECK_HEADER will still be used. Conversely, some headers may notrequire a specific AC_ tests, but a specialized AS_ macro.------------------------------------------------------------------------------* Make AC_CHECK_LIB check whether the function is already available before checking for the library. This might involve adding another kind of cache variable to indicate whether a given function needs a given library. The current ac_cv_func_ variables are intended to indicate whether the function is in the default libraries, but actually also take into account whatever value LIBS had when they were checked for. Isn't this the issue of AC_SEARCH_LIB? --akim How come the list of libraries to browse not an additional parameter of AC_CHECK_FUNC, exactly like for the headers? --akim------------------------------------------------------------------------------* Add AC_PROG_CC_POSIX to replace the current ad-hoc macros for AIX, Minix, ISC, etc.------------------------------------------------------------------------------* Select the right CONFIG_SHELL automatically (for Ultrix, Lynx especially.)------------------------------------------------------------------------------* Doc: Centralize information on POSIX, MS-DOS, cross-compiling, and other important topics.------------------------------------------------------------------------------* Mike Haertel's suggestions:** Provide header files containing decls for alloca, strings, etc.** Cross compiling:*** Error messages include instructions for overriding defaults usingconfig.site.*** Distribute a config.site corresponding to a hypothetical bare POSIX system with c89.** Site defaults:*** 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.------------------------------------------------------------------------------* Look at user contributed macros: IEEE double precision math more------------------------------------------------------------------------------* Provide a way to create a config.h *and* set the DEFS variable from withinthe same configure script.------------------------------------------------------------------------------For AC_TYPE_SIGNAL signal handlers, provide a way for code to knowwhether to do "return 0" or "return" (int vs void) to avoid compilerwarnings. (Roland McGrath)------------------------------------------------------------------------------In config.status comment, put the host/target/build types, if used.------------------------------------------------------------------------------It would be nice if I could (in the Makefile.in files) set therelative name of config.h. You have config.h ../config.h../../config.h's all over the place, in the findutils-4.1 directory.From: "Randall S. Winchester" <rsw@eng.umd.edu>------------------------------------------------------------------------------ ls -lt configure configure.in | sortdoesn't work right if configure.in is from a symlink farm, where thesymlink has either a timestamp of its own, or under BSD 4.4, it hasthe timestamp of the current directory, neither of whichhelps. Changing it to ls -Llt configure configure.in | sortworks for me, though I don't know how portable that is_Mark_ <eichin@cygnus.com>------------------------------------------------------------------------------Here is the thing I would like the most;AC_PKG_WITH(PACKAGE, HELP_STRING, PACKAGE-ROOT, PACKAGE-LIBS, PACKAGE-DEFS, PACKAGE-CCPFLAGS)likeAC_PKG_WITH(kerberos,,/usr/local/athena,-lkrb -ldes,[KERBEROS KRB4CRYPT],include)AC_PKG_WITH(hesiod,[if hesiod is not in kerberos-root add --with-hesiod-root=somewhere],,-lhesiod,HESIOD,,)AC_PKG_WITH(glue,,,-lglue,GLUE,,)AC_PKG_WITH(bind,,/usr/local/bind, [lib/resolv.a lib/lib44bsd.a], ,include)After the appropriate checks, the existence of the files, and libs and suchLIBS=$LIBS $PKG-LIBSDEFS=$DEFS $PKG-DEFSCPPFLAGS=$PKG-CPPFLAGS $CPPFLAGS$PKG-ROOT=$PKG-ROOTThe cppflags should reverse the order so that you can have;-I/usr/local/bind/include -I/usr/local/athena/includeand-L/usr/local/athena/lib -lkrb -ldes /usr/local/bind/lib/libresolv.aas order matters.also an AC_PKG_CHK_HEADERand an AC_PKG_CHK_FUNCTIONso one can give alternate names to check for stuff ($PKG-ROOT/lib forexample)From: Randall Winchester------------------------------------------------------------------------------AC_C_CROSS assumes that configure was called like 'CC=target-gcc;./configure'. I want to write a package that has target dependentlibraries and host dependent tools. So I don't like to lose thedistinction between CC and [G]CC_FOR_TARGET. AC_C_CROSS should checkfor equality of target and host.It would be great ifGCC_FOR_TARGETAR_FOR_TARGETRANLIB_FOR_TARGETwould be set automatically if host != target.AC_LANG_CROSS_C would be nice too, to check header filesetc. with GCC_FOR_TARGET instead of CCHere is one simple testif test "x$host" != "x$target"; thenAC_CHECK_PROGS(AR_FOR_TARGET, [$target-ar, $prefix/$target/bin/ar], $target-ar)AC_CHECK_PROGS(RANLIB_FOR_TARGET, $target-ranlib, $target-ranlib) [$target-ranlib, $prefix/$target/bin/ranlib], $target-ranlib)AC_CHECK_PROGS(GCC_FOR_TARGET, $target-gcc, $target-gcc) [$target-gcc, $prefix/$target/bin/gcc], $target-gcc)fiFrom: nennker@cs.tu-berlin.DE (Axel Nennker)(also look in the autoconf mailing list archives for the proposedCHECK_TARGET_TOOL macro from Natanael Nerode, a gcc configury guru).------------------------------------------------------------------------------The problem occurs with the following libc functions in SunOS 5.4: fnmatch glob globfree regcomp regexec regerror regfree wordexp wordfreeIt also occurs with a bunch more libposix4 functions that most peopleprobably aren't worried about yet, e.g. shm_open.All these functions fail with errno set to ENOSYS (89)``Operation not applicable''.Perhaps Autoconf should have a specific macro for fnmatch, another forglob+globfree, another for regcomp+regexec+regerror+regfree, andanother for wordexp+wordfree. This wouldn't solve the problem ingeneral, but it should work for Solaris 2.4. Or Autoconf could limititself to fnmatch and regcomp, the only two functions that I know havebeen a problem so far.From Paul Eggert.------------------------------------------------------------------------------Make easy macros for checking for X functions and libraries, such as Motif.------------------------------------------------------------------------------There are basically three ways to lock files lockf, fnctl, flockI'd be interested in adding a macro to pick the "right one" if you'reinterested.From: Rich Salz <rsalz@osf.org>------------------------------------------------------------------------------Timezone calculations checks.------------------------------------------------------------------------------Support different default file system layouts, e.g. SVR4, Linux.Of course, this can be done locally with config.site.------------------------------------------------------------------------------I wonder if it is possible to get the name of X11's app-defaultsdirectory by autoconf. Moreover, I'd like to have a general way ofaccessing imake variables by autoconf, something likeAC_DEFINE(WINE_APP_DEFAULTS, AC_IMAKE_VAR(XAPPLOADDIR))Slaven Rezic <eserte@cabulja.herceg.de>------------------------------------------------------------------------------Cache consistency checking: ignore cache if environment(CC or PATH) differs.From Mike HaertelSo we need a general mechanism for storing variables' values in the cache,and checking if they are the same after reading the cache. Then we can addto the list of variables as we come across the need. So far we wantLD_LIBRARY_PATH and the internal variables for some of (all?) the args.From: roland@gnu.ai.mit.edu (Roland McGrath)Hmm. That list might include LD_LIBRARY_PATH, LD_RUN_PATH (for solaris),and PATH. I can't think of any others so far.From: friedman@splode.com (Noah Friedman)------------------------------------------------------------------------------Every user running X11 usually has a directory like *X11* in his PATHvariable. By replacing bin by include, you can find good places tolook for the include files or libraries.From: rcb5@win.tue.nl (Richard Verhoeven)------------------------------------------------------------------------------In most cases, when autoscan suggests something, using the search orindex command into the Info reader for autoconf manual quicklyexplains me what the test is about. However, for header files andfunctions, the search might fail, because the test is not of thespecific kind. The Autoconf manual should reflect somewhere allheader files or functions (non-specific features, generally)triggering autoscan to generate tests, and tell in a few words what isthe problem, and the suggested approach for a solution; that is, howone should use the result of testing the feature.From: pinard@iro.umontreal.ca------------------------------------------------------------------------------It would be nice if the configure script would handle an option such as--x-libraries="/usr/openwin/lib /usr/dt/lib".Rick Boykin <rboykin@cscsun3.larc.nasa.gov>Under Solaris 2.4, the regular X includes and libs and the Motifincludes and libs are in different places. The Emacs configure scriptactually allows dir1:dir2:dir3 -- if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` fi if test "${x_includes}" != NONE && test -n "${x_includes}"; then C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` fi------------------------------------------------------------------------------ What messages should be produced by default, if any?Probably only the few most important ones, like which configurationname was used, whether X or Xt are in use, etc. The specificdecisions, and progress messages, should be recorded on the terminalonly if --verbose is used. --silent just suppresses the "checking for...result" messages, not the "creating FOO" messages.I think the default should be to suppress both.From: Richard Stallman <rms@gnu.ai.mit.edu>There is no distinction now betweenimportant decisions (we have X) vs minor decisions (we have lstat).However, there are probably only a few things you deem important enough toannounce and only those few things will need to be changed.Perhaps config.status could be written with comments saying what wasdecided.From: Roland McGrath <roland@gnu.ai.mit.edu>------------------------------------------------------------------------------Another thing I wish for is a macro which figures out which libraries areneeded for BSD-style sockets. AC_PATH_X already detects thiscorrectly...so it's just a matter of separating out the socket-related code.From: "Joel N. Weber II" <nemo@koa.iolani.honolulu.hi.us>------------------------------------------------------------------------------in order to use the AC_CANONICAL_SYSTEM macro, I have to haveinstall-sh somewhere nearby --- why is this? I have no real reason todistribute install-sh, other than that its absence breaks this code.Shouldn't the above loop be looking for config.sub and config.guess?From: jimb@totoro.bio.indiana.edu (Jim Blandy)adding AC_CANONICAL_HOST to my configure.in script causedall sorts of odd/unexplained errors. Obviously, I had to goget copies of config.guess, config.sub and install-sh from theautoconf distribution, but the error messages and autoconf docsdidn't explain that very well.From: bostic@bsdi.com (Keith Bostic)------------------------------------------------------------------------------Perhaps also have AC_TRY_COMPILER try to link an invalid program, anddie if the compiler seemed to succeed--in which case it's not usablewith autoconf scripts.------------------------------------------------------------------------------Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free SoftwareFoundation, Inc.This file is part of GNU Autoconf.GNU Autoconf is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Autoconf is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with autoconf; see the file COPYING. If not, write tothe Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,Boston, MA 02110-1301, USA.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -