Makefile.in NEWS README TODO \
acconfig.h acfunctions acgeneral.m4 acheaders acidentifiers \
acmakevars acoldnames.m4 acprograms acspecific.m4 autoconf.info* \
- autoconf.sh autoconf.texi install.texi \
+ autoconf.m4 autoconf.sh autoconf.texi install.texi \
autoheader.sh autoreconf.sh autoscan.pl autoupdate.sh \
shindent.sh ifnames.sh \
config.guess config.sub configure configure.in \
if test -f standards.info || test -f $(srcdir)/standards.info; \
then cd $(infodir); rm -f standards.info*; fi
-configure: configure.in acgeneral.m4 acspecific.m4 acoldnames.m4
+configure: configure.in autoconf.m4 acgeneral.m4 acspecific.m4 acoldnames.m4
cd $(srcdir); \
rm -f $@ $@.tmp; \
- $(M4) acgeneral.m4 acspecific.m4 acoldnames.m4 configure.in > $@.tmp && \
+ $(M4) autoconf.m4 configure.in > $@.tmp && \
mv $@.tmp $@ && \
chmod +x $@
Makefile: Makefile.in config.status
* Uses optional shell scripts $exec_prefix/lib/config.site and
$prefix/lib/config.site to perform site or system specific initializations.
* configure saves compiler output to ./config.log for debugging.
+* New file autoconf.m4 loads the rest of the Autoconf macros.
+* acsite.m4 is the new name for the system-wide aclocal.m4.
* Has the beginnings of a DejaGnu test suite.
** New macros:
* AC_VERBOSE pays attention to --quiet/--silent, not --verbose.
* AC_CHECK_FUNCS and AC_CHECK_HEADERS take optional shell commands to
execute on success.
+* AC_REMOTE_TAPE removed; it was too specific to tar and cpio.
** New utilities:
* autoscan to generate a preliminary configure.in for a package by
# Ones that have their own macros.
-major AC_MAJOR_HEADER
-minor AC_MAJOR_HEADER
-makedev AC_MAJOR_HEADER
-bcopy AC_STDC_HEADERS
-bcmp AC_STDC_HEADERS
-bzero AC_STDC_HEADERS
-ioctl AC_GCC_TRADITIONAL
-memchr AC_STDC_HEADERS
-memcpy AC_STDC_HEADERS
-memcmp AC_STDC_HEADERS
-memmove AC_STDC_HEADERS
-memset AC_STDC_HEADERS
-index AC_STDC_HEADERS
-rindex AC_STDC_HEADERS
-getgroups AC_GETGROUPS_T
-signal AC_RETSIGTYPE
-alloca AC_ALLOCA
-getloadavg AC_GETLOADAVG
-mmap AC_MMAP
-setvbuf AC_SETVBUF_REVERSED
-strcoll AC_STRCOLL
-utime AC_UTIME_NULL
-vfork AC_VFORK
-vprintf AC_VPRINTF
-vfprintf AC_VPRINTF
-vsprintf AC_VPRINTF
-wait3 AC_WAIT3
+major AC_HEADER_MAJOR
+minor AC_HEADER_MAJOR
+makedev AC_HEADER_MAJOR
+bcopy AC_HEADER_STDC
+bcmp AC_HEADER_STDC
+bzero AC_HEADER_STDC
+ioctl AC_PROG_GCC_TRADITIONAL
+memchr AC_HEADER_STDC
+memcpy AC_HEADER_STDC
+memcmp AC_HEADER_STDC
+memmove AC_HEADER_STDC
+memset AC_HEADER_STDC
+index AC_HEADER_STDC
+rindex AC_HEADER_STDC
+getgroups AC_TYPE_GETGROUPS
+signal AC_TYPE_SIGNAL
+alloca AC_FUNC_ALLOCA
+getloadavg AC_FUNC_GETLOADAVG
+mmap AC_FUNC_MMAP
+setvbuf AC_FUNC_SETVBUF_REVERSED
+strcoll AC_FUNC_STRCOLL
+utime AC_FUNC_UTIME_NULL
+vfork AC_FUNC_VFORK
+vprintf AC_FUNC_VPRINTF
+vfprintf AC_FUNC_VPRINTF
+vsprintf AC_FUNC_VPRINTF
+wait3 AC_FUNC_WAIT3
# Others.
-fnmatch AC_HAVE_FUNCS
-ftime AC_HAVE_FUNCS
-gethostname AC_HAVE_FUNCS
-gettimeofday AC_HAVE_FUNCS
-getusershell AC_HAVE_FUNCS
-getcwd AC_HAVE_FUNCS
-getwd AC_HAVE_FUNCS
-mkdir AC_HAVE_FUNCS
-mkfifo AC_HAVE_FUNCS
-mktime AC_HAVE_FUNCS
-putenv AC_HAVE_FUNCS
-re_comp AC_HAVE_FUNCS
-regcmp AC_HAVE_FUNCS
-regcomp AC_HAVE_FUNCS
-rmdir AC_HAVE_FUNCS
-select AC_HAVE_FUNCS
-socket AC_HAVE_FUNCS
-stime AC_HAVE_FUNCS
-strcspn AC_HAVE_FUNCS
-strdup AC_HAVE_FUNCS
-strerror AC_HAVE_FUNCS
-strftime AC_HAVE_FUNCS
-strspn AC_HAVE_FUNCS
-strstr AC_HAVE_FUNCS
-strtod AC_HAVE_FUNCS
-strtol AC_HAVE_FUNCS
-strtoul AC_HAVE_FUNCS
-uname AC_HAVE_FUNCS
+fnmatch AC_CHECK_FUNCS
+ftime AC_CHECK_FUNCS
+gethostname AC_CHECK_FUNCS
+gettimeofday AC_CHECK_FUNCS
+getusershell AC_CHECK_FUNCS
+getcwd AC_CHECK_FUNCS
+getwd AC_CHECK_FUNCS
+mkdir AC_CHECK_FUNCS
+mkfifo AC_CHECK_FUNCS
+mktime AC_CHECK_FUNCS
+putenv AC_CHECK_FUNCS
+re_comp AC_CHECK_FUNCS
+regcmp AC_CHECK_FUNCS
+regcomp AC_CHECK_FUNCS
+rmdir AC_CHECK_FUNCS
+select AC_CHECK_FUNCS
+socket AC_CHECK_FUNCS
+stime AC_CHECK_FUNCS
+strcspn AC_CHECK_FUNCS
+strdup AC_CHECK_FUNCS
+strerror AC_CHECK_FUNCS
+strftime AC_CHECK_FUNCS
+strspn AC_CHECK_FUNCS
+strstr AC_CHECK_FUNCS
+strtod AC_CHECK_FUNCS
+strtol AC_CHECK_FUNCS
+strtoul AC_CHECK_FUNCS
+uname AC_CHECK_FUNCS
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
])dnl
dnl
-AC_DEFUN(AC_INIT_PARSEARGS,
+AC_DEFUN(AC_INIT_PARSE_ARGS,
[AC_BEFORE([$0], [AC_ARG_ENABLE])dnl
AC_BEFORE([$0], [AC_ARG_WITH])dnl
# Save the original args to write them into config.status later.
srcdir=
target=NONE
verbose=
-x_includes=
-x_libraries=
+x_includes=NONE
+x_libraries=NONE
# Initialize some other variables.
subdirs=
AC_DEFUN(AC_INIT,
[AC_REQUIRE([AC_BINSH])dnl
AC_INIT_NOTICE
-AC_INIT_PARSEARGS
+AC_INIT_PARSE_ARGS
AC_INIT_PREPARE($1)])dnl
dnl
dnl AC_INIT_PREPARE(UNIQUE-FILE-IN-SOURCE-DIR)
# 1 file creation
# 2 errors and warnings
# 3 unused; some systems may open it to /dev/tty
-# 4 checking for... messages and results
-# 5 compiler messages
+define(AC_FD_MSG, 4)dnl
+[#] AC_FD_MSG checking for... messages and results
+define(AC_FD_CC, 5)dnl
+[#] AC_FD_CC compiler messages saved in config.log
if test "$silent" = yes; then
- exec 4>/dev/null
+ exec AC_FD_MSG>/dev/null
else
- exec 4>&1
+ exec AC_FD_MSG>&1
fi
-exec 5>./config.log
+exec AC_FD_CC>./config.log
echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-" 1>&5
+" 1>&AC_FD_CC
# Save the original args if we used an alternate arg parser.
ac_configure_temp="${configure_args-[$]@}"
dnl
dnl Look for site or system specific initialization scripts.
AC_DEFUN(AC_SITE_LOAD,
-[ac_site_dirs=/usr/local
-if test "x$prefix" != xNONE; then
- ac_site_dirs=$prefix
-fi
-# System dependent files override system independent ones in case of conflict.
-if test "x$exec_prefix" != xNONE && test "x$exec_prefix" != "x$prefix"; then
- ac_site_dirs="$ac_site_dirs $exec_prefix"
+[# Prefer explicitly selected file to automatically selected ones.
+if test ! -r "$CONFIG_SITE"; then
+ if test "x$prefix" != xNONE; then
+ CONFIG_SITE=$prefix/lib/config.site
+ else
+ CONFIG_SITE=/usr/local/lib/config.site
+ fi
+ # System dependent files override system independent ones.
+ if test "x$exec_prefix" != xNONE && test "x$exec_prefix" != "x$prefix"; then
+ CONFIG_SITE="$CONFIG_SITE $exec_prefix/lib/config.site"
+ fi
fi
-for ac_site_dir in $ac_site_dirs; do
- ac_site_file=$ac_site_dir/lib/config.site
+for ac_site_file in $CONFIG_SITE; do
if test -r "$ac_site_file"; then
echo "loading site script $ac_site_file"
- . $ac_site_file
+ . "$ac_site_file"
fi
done
])dnl
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
+# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
CEOF
dnl shell variable, so we need the eval.
dnl if test "${$1+set}" = set; then
if eval "test \"`echo '${'$1'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ echo $ac_n "(cached) $ac_c" 1>&AC_FD_MSG
else
$2
fi
dnl AC_MSG_CHECKING(FEATURE-DESCRIPTION)
AC_DEFUN(AC_MSG_CHECKING,
[AC_REQUIRE([AC_PROG_ECHO_N])dnl
-echo $ac_n "checking $1""... $ac_c" 1>&4])dnl
+echo $ac_n "checking $1""... $ac_c" 1>&AC_FD_MSG])dnl
dnl
AC_DEFUN(AC_CHECKING,
-[echo "checking $1" 1>&4])dnl
+[echo "checking $1" 1>&AC_FD_MSG])dnl
dnl
dnl AC_MSG_RESULT(RESULT-DESCRIPTION)
AC_DEFUN(AC_MSG_RESULT,
[AC_REQUIRE([AC_PROG_ECHO_N])dnl
-echo "$ac_t""$1" 1>&4])dnl
+echo "$ac_t""$1" 1>&AC_FD_MSG])dnl
dnl
AC_DEFUN(AC_VERBOSE,
[AC_OBSOLETE([$0], [; instead use AC_MSG_RESULT])dnl
-echo " $1" 1>&4])dnl
+echo " $1" 1>&AC_FD_MSG])dnl
dnl
dnl AC_MSG_WARN(PROBLEM-DESCRIPTION)
AC_DEFUN(AC_MSG_WARN,
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='${CPP}'
-ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&5 2>&5'
+ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&AC_FD_CC 2>&AC_FD_CC'
])dnl
dnl
AC_DEFUN(AC_LANG_CPLUSPLUS,
ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='${CXXCPP}'
-ac_compile='${CXX-gcc} $CXXFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&5 2>&5'
+ac_compile='${CXX-gcc} $CXXFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&AC_FD_CC 2>&AC_FD_CC'
])dnl
dnl
dnl Push the current language on a stack.
dnl ### The big finish
dnl
dnl
+dnl Produce config.status, config.h, and links, and configure subdirs.
dnl AC_OUTPUT([FILE...] [, EXTRA-CMDS])
AC_DEFUN(AC_OUTPUT,
[AC_CACHE_SAVE
[trap 'rm -f $1; exit 1' 1 2 15])
ac_given_srcdir=$srcdir
+
EOF
cat >> ${CONFIG_STATUS} <<\EOF
-
-CONFIG_FILES=${CONFIG_FILES-"$1"}
+AC_OUTPUT_FILES($1)
+ifdef([AC_LIST_HEADERS], [AC_OUTPUT_HEADER(AC_LIST_HEADERS)])dnl
+ifdef([AC_LIST_LINKS], [AC_OUTPUT_LINKS(AC_LIST_LINKS, AC_LIST_FILES)])dnl
+$2
+exit 0
+EOF
+chmod +x ${CONFIG_STATUS}
+test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} ${CONFIG_STATUS}
+dnl config.status should never do recursion.
+ifdef([AC_LIST_SUBDIRS], [AC_OUTPUT_SUBDIRS(AC_LIST_SUBDIRS)])dnl
+])dnl
+dnl
+dnl This is a subroutine of AC_OUTPUT. It is called inside a quoted
+dnl here document whose contents are going into config.status.
+AC_DEFUN(AC_OUTPUT_FILES,
+[CONFIG_FILES=${CONFIG_FILES-"$1"}
for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
# Support "outfile[:infile]", defaulting infile="outfile.in".
case "$ac_file" in
*) ac_file_in="${ac_file}.in" ;;
esac
+ # Adjust relative srcdir, etc. for subdirectories.
+
# Remove last slash and all that follows it. Not all systems have dirname.
changequote(, )dnl
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
])dnl
echo creating "$ac_file"
rm -f "$ac_file"
- comment_str="Generated automatically from `echo $ac_file_in|sed 's|.*/||'` by configure."
+ comment_str="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
case "$ac_file" in
*.c | *.h | *.C | *.cc | *.cpp | *.hpp | *.m )
ac_comsub="1i\\
cat >> ${CONFIG_STATUS} <<\EOF
" $ac_given_srcdir/$ac_file_in > $ac_file
fi; done
-ifdef([AC_LIST_HEADERS], [AC_OUTPUT_HEADER(AC_LIST_HEADERS)])dnl
-ifdef([AC_LIST_LINKS], [AC_OUTPUT_LINKS(AC_LIST_LINKS, AC_LIST_FILES)])dnl
-$2
-exit 0
-EOF
-chmod +x ${CONFIG_STATUS}
-test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} ${CONFIG_STATUS}
-dnl config.status should never do recursion.
-ifdef([AC_LIST_SUBDIRS], [AC_OUTPUT_SUBDIRS(AC_LIST_SUBDIRS)])dnl
])dnl
dnl
dnl Create the header files listed in $1.
dnl here document whose contents are going into config.status.
AC_DEFUN(AC_OUTPUT_HEADER,
[changequote(<<, >>)dnl
-
# These sed commands are put into ac_sed_defs when defining a macro.
# They are broken into pieces to make the sed script easier to manage.
# They are passed to sed as "A NAME B NAME C VALUE D", where NAME
ac_sub_configure=
fi
- # Make the cache file name correct relative to the subdirectory.
+ # The recursion is here.
+ if test -n "${ac_sub_configure}"; then
+
+ # Make the cache file name correct relative to the subdirectory.
changequote(, )dnl
- # A "../" for each directory in /${ac_config_dir}.
- ac_dots=`echo /${ac_config_dir}|sed 's%/[^/]*%../%g'`
+ # A "../" for each directory in /${ac_config_dir}.
+ ac_dots=`echo /${ac_config_dir}|sed 's%/[^/]*%../%g'`
changequote([, ])dnl
- case "$cache_file" in
- /*) ac_sub_cache_file=$cache_file ;;
- *) # Relative path.
- ac_sub_cache_file="$ac_dots$cache_file" ;;
- esac
+ case "$cache_file" in
+ /*) ac_sub_cache_file=$cache_file ;;
+ *) # Relative path.
+ ac_sub_cache_file="$ac_dots$cache_file" ;;
+ esac
- # The recursion is here.
- if test -n "${ac_sub_configure}"; then
echo "[running ${CONFIG_SHELL-/bin/sh} ${ac_sub_configure} ${ac_sub_configure_args} --cache-file=$ac_sub_cache_file] --srcdir=${ac_sub_srcdir}"
if ${CONFIG_SHELL-/bin/sh} ${ac_sub_configure} ${ac_sub_configure_args} --cache-file=$ac_sub_cache_file --srcdir=${ac_sub_srcdir}
then :
# Ones that have their own macros.
-dirent.h AC_DIR_HEADER
-sys/ndir.h AC_DIR_HEADER
-sys/dir.h AC_DIR_HEADER
-ndir.h AC_DIR_HEADER
-sys/mkdev.h AC_MAJOR_HEADER
-string.h AC_STDC_HEADERS
-strings.h AC_STDC_HEADERS
-stdlib.h AC_STDC_HEADERS
-stddef.h AC_STDC_HEADERS
-stdarg.h AC_STDC_HEADERS
-float.h AC_STDC_HEADERS
-sys/mtio.h AC_REMOTE_TAPE
-X11/Xlib.h AC_FIND_X
+dirent.h AC_HEADER_DIRENT
+sys/ndir.h AC_HEADER_DIRENT
+sys/dir.h AC_HEADER_DIRENT
+ndir.h AC_HEADER_DIRENT
+sys/mkdev.h AC_HEADER_MAJOR
+string.h AC_HEADER_STDC
+strings.h AC_HEADER_STDC
+stdlib.h AC_HEADER_STDC
+stddef.h AC_HEADER_STDC
+stdarg.h AC_HEADER_STDC
+float.h AC_HEADER_STDC
+X11/Xlib.h AC_PATH_X
# Others.
-fcntl.h AC_HAVE_HEADERS
-limits.h AC_HAVE_HEADERS
-paths.h AC_HAVE_HEADERS
-sgtty.h AC_HAVE_HEADERS
-sys/file.h AC_HAVE_HEADERS
-sys/ioctl.h AC_HAVE_HEADERS
-sys/time.h AC_HAVE_HEADERS
-sys/window.h AC_HAVE_HEADERS
-syslog.h AC_HAVE_HEADERS
-termio.h AC_HAVE_HEADERS
-unistd.h AC_HAVE_HEADERS
+fcntl.h AC_CHECK_HEADERS
+limits.h AC_CHECK_HEADERS
+paths.h AC_CHECK_HEADERS
+sgtty.h AC_CHECK_HEADERS
+sys/file.h AC_CHECK_HEADERS
+sys/ioctl.h AC_CHECK_HEADERS
+sys/time.h AC_CHECK_HEADERS
+sys/window.h AC_CHECK_HEADERS
+syslog.h AC_CHECK_HEADERS
+termio.h AC_CHECK_HEADERS
+unistd.h AC_CHECK_HEADERS
-sys_siglist AC_SYS_SIGLIST_DECLARED
-mode_t AC_MODE_T
-off_t AC_OFF_T
-pid_t AC_PID_T
-size_t AC_SIZE_T
-uid_t AC_UID_T
-gid_t AC_UID_T
-S_ISDIR AC_STAT_MACROS_BROKEN
-S_ISREG AC_STAT_MACROS_BROKEN
-S_ISCHR AC_STAT_MACROS_BROKEN
-S_ISBLK AC_STAT_MACROS_BROKEN
-S_ISFIFO AC_STAT_MACROS_BROKEN
-S_ISLNK AC_STAT_MACROS_BROKEN
-S_ISSOCK AC_STAT_MACROS_BROKEN
-st_blksize AC_ST_BLKSIZE
-st_blocks AC_ST_BLOCKS
-st_rdev AC_ST_RDEV
-timeval AC_TIME_WITH_SYS_TIME
+sys_siglist AC_DECL_SYS_SIGLIST
+mode_t AC_TYPE_MODE_T
+off_t AC_TYPE_OFF_T
+pid_t AC_TYPE_PID_T
+size_t AC_TYPE_SIZE_T
+uid_t AC_TYPE_UID_T
+gid_t AC_TYPE_UID_T
+S_ISDIR AC_HEADER_STAT
+S_ISREG AC_HEADER_STAT
+S_ISCHR AC_HEADER_STAT
+S_ISBLK AC_HEADER_STAT
+S_ISFIFO AC_HEADER_STAT
+S_ISLNK AC_HEADER_STAT
+S_ISSOCK AC_HEADER_STAT
+st_blksize AC_STRUCT_ST_BLKSIZE
+st_blocks AC_STRUCT_ST_BLOCKS
+st_rdev AC_STRUCT_ST_RDEV
+timeval AC_HEADER_TIME
tm AC_STRUCT_TM
-tm_zone AC_TIMEZONE
-const AC_CONST
-inline AC_INLINE
+tm_zone AC_STRUCT_TIMEZONE
+const AC_C_CONST
+inline AC_C_INLINE
-LN AC_LN_S
+LN AC_PROG_LN_S
AWK AC_PROG_AWK
CC AC_PROG_CC
CPP AC_PROG_CPP
RANLIB AC_PROG_RANLIB
YACC AC_PROG_YACC
BISON AC_PROG_YACC
-MAKE AC_SET_MAKE
+MAKE AC_PROG_MAKE_SET
-ln AC_LN_S
+ln AC_PROG_LN_S
awk AC_PROG_AWK
nawk AC_PROG_AWK
gawk AC_PROG_AWK
yacc AC_PROG_YACC
byacc AC_PROG_YACC
bison AC_PROG_YACC
-make AC_SET_MAKE
+make AC_PROG_MAKE_SET
yes
#endif
EOF
-if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
+if ${CC-cc} -E conftest.c 2>&AC_FD_CC | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
yes
#endif
EOF
-if ${CXX-gcc} -E conftest.C 2>&5 | egrep yes >/dev/null 2>&1; then
+if ${CXX-gcc} -E conftest.C 2>&AC_FD_CC | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gxx=yes
else
ac_cv_prog_gxx=no
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
-if ${CC-cc} -c conftest.c -o conftest.o 1>&5 2>&5 &&
- test -f conftest.o && ${CC-cc} -c conftest.c -o conftest.o 1>&5 2>&5
+if ${CC-cc} -c conftest.c -o conftest.o 1>&AC_FD_CC 2>&AC_FD_CC &&
+ test -f conftest.o && ${CC-cc} -c conftest.c -o conftest.o 1>&AC_FD_CC 2>&AC_FD_CC
then
if test "x$CC" != xcc; then
# Test first that cc exists at all.
- if cc -c conftest.c 1>&5 2>&5
+ if cc -c conftest.c 1>&AC_FD_CC 2>&AC_FD_CC
then
- if cc -c conftest.c -o conftest2.o 1>&5 2>&5 &&
- test -f conftest2.o && cc -c conftest.c -o conftest2.o 1>&5 2>&5
+ if cc -c conftest.c -o conftest2.o 1>&AC_FD_CC 2>&AC_FD_CC &&
+ test -f conftest2.o && cc -c conftest.c -o conftest2.o 1>&AC_FD_CC 2>&AC_FD_CC
then
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
fi
])dnl
dnl
AC_DEFUN(AC_HEADER_STAT,
-[AC_MSG_CHECKING(for broken stat file mode macros)
+[AC_MSG_CHECKING(whether stat file-mode macros are broken)
AC_CACHE_VAL(ac_cv_header_stat_broken,
[AC_EGREP_CPP([You lose], [#include <sys/types.h>
#include <sys/stat.h>
], ac_cv_os_cray=yes, ac_cv_os_cray=no)])dnl
AC_MSG_RESULT($ac_cv_os_cray)
if test $ac_cv_os_cray = yes; then
-AC_CHECK_FUNC([_getb67], AC_DEFINE(CRAY_STACKSEG_END, _getb67),
-AC_CHECK_FUNC([GETB67], AC_DEFINE(CRAY_STACKSEG_END, GETB67),
-AC_CHECK_FUNC([getb67], AC_DEFINE(CRAY_STACKSEG_END, getb67))))
+AC_CHECK_FUNC(_getb67, AC_DEFINE(CRAY_STACKSEG_END, _getb67),
+AC_CHECK_FUNC(GETB67, AC_DEFINE(CRAY_STACKSEG_END, GETB67),
+AC_CHECK_FUNC(getb67, AC_DEFINE(CRAY_STACKSEG_END, getb67))))
fi
AC_MSG_CHECKING(stack direction for C alloca)
])dnl
fi
])dnl
-AC_DEFUN(AC_SYS_REMOTE_TAPE,
-[AC_CHECK_HEADER(sys/mtio.h, AC_DEFINE(HAVE_SYS_MTIO_H))
-
-if test "$ac_cv_header_sys_mtio_h" = yes; then
-AC_MSG_CHECKING(for remote tape header files)
-AC_CACHE_VAL(ac_cv_header_rmt,
-[AC_TRY_CPP([#include <sgtty.h>
-#include <sys/socket.h>], ac_cv_header_rmt=yes, ac_cv_header_rmt=no)])dnl
- AC_MSG_RESULT($ac_cv_header_rmt)
- if test $ac_cv_header_rmt = yes; then
- PROGS="$PROGS rmt"
- fi
-fi
-AC_SUBST(PROGS)dnl
-])dnl
dnl
AC_DEFUN(AC_SYS_LONG_FILE_NAMES,
[AC_MSG_CHECKING(for long file names)
fi
fi
-MACROFILES="${AC_MACRODIR}/acgeneral.m4 ${AC_MACRODIR}/acspecific.m4 \
-${AC_MACRODIR}/acoldnames.m4"
-test -r ${AC_MACRODIR}/aclocal.m4 &&
- MACROFILES="${MACROFILES} ${AC_MACRODIR}/aclocal.m4"
-test -r aclocal.m4 && MACROFILES="${MACROFILES} aclocal.m4"
-MACROFILES="${print_version} ${MACROFILES} ${infile}"
-
-$M4 $MACROFILES > $tmpout || { rm -f $tmpin $tmpout; exit 2; }
+$M4 -I$AC_MACRODIR $print_version autoconf.m4 $infile > $tmpout || { rm -f $tmpin $tmpout; exit 2; }
if test -n "$print_version"; then
cat $tmpout
fi
fi
-MACROFILES="${AC_MACRODIR}/acgeneral.m4 ${AC_MACRODIR}/acspecific.m4 \
-${AC_MACRODIR}/acoldnames.m4"
-test -r ${AC_MACRODIR}/aclocal.m4 &&
- MACROFILES="${MACROFILES} ${AC_MACRODIR}/aclocal.m4"
-test -r aclocal.m4 && MACROFILES="${MACROFILES} aclocal.m4"
-MACROFILES="${print_version} ${MACROFILES} ${infile}"
-
-$M4 $MACROFILES > $tmpout || { rm -f $tmpin $tmpout; exit 2; }
+$M4 -I$AC_MACRODIR $print_version autoconf.m4 $infile > $tmpout || { rm -f $tmpin $tmpout; exit 2; }
if test -n "$print_version"; then
cat $tmpout
parts of Autoconf itself, rearranged somewhat, and Autoconf is
distributed under the terms of the GPL. As applied to Autoconf, the GPL
just means that you need to distribute @file{configure.in}, and
-@file{aclocal.m4}, @file{acconfig.h}, and @file{@var{config}.h.top} and
-@file{@var{config}.h.bot} if you use them, along with @file{configure}.
+@file{acsite.m4}, @file{aclocal.m4}, @file{acconfig.h}, and
+@file{@var{config}.h.top} and @file{@var{config}.h.bot} if you use them,
+along with @file{configure}.
Programs that use Autoconf scripts to configure themselves do not
automatically come under the GPL. Distributing an Autoconf
Here is a diagram showing how the files that can be used in
configuration are produced. Programs that are executed are suffixed by
@samp{*}. Optional files are enclosed in square brackets (@samp{[]}).
-@code{autoconf} and @code{autoheader} also read the installed files
-@file{acgeneral.m4} and @file{acspecific.m4}, and also an installed
-@file{aclocal.m4} if it exists.
+@code{autoconf} and @code{autoheader} also read the installed Autoconf
+macro files (by reading @file{autoconf.m4}).
@noindent
Files used in preparing a software package for distribution:
configure.in --. .------> autoconf* -----> configure
+---+
-[aclocal.m4] --' `---.
+[aclocal.m4] --+ `---.
+[acsite.m4] ---' |
+--> [autoheader*] -> [config.h.in]
[acconfig.h] ----. |
+-----'
instead of @file{configure.in} and writes the configuration script on
the standard output.
-The Autoconf macros are defined in two or more files. Two of the files
-are distributed with Autoconf: @code{autoconf} first reads
-@file{acgeneral.m4} (@pxref{General Purpose Macros}), then
-@file{acspecific.m4} (@pxref{Specific Tests}). After reading them,
-@code{autoconf} looks for an optional file called @file{aclocal.m4},
-first in the directory that contains other installed Autoconf macro
-files, and then in the current directory. If both files exist, it uses
-both of them. Those files can contain your site's own locally written
-Autoconf macro definitions (@pxref{Writing Macros}, for more
-information). If a macro is defined in more than one of the files that
-@code{autoconf} reads, the last definition it reads overrides the
-earlier ones.
+The Autoconf macros are defined in several files. Some of the files are
+distributed with Autoconf; @code{autoconf} reads them first. Then it
+looks for the optional file @file{acsite.m4} in the directory that
+contains the distributed Autoconf macro files, and for the optional file
+@file{aclocal.m4} in the current directory. Those files can contain
+your site's own locally written Autoconf macro definitions
+(@pxref{Writing Macros}, for more information). If a macro is defined
+in more than one of the files that @code{autoconf} reads, the last
+definition it reads overrides the earlier ones.
You can override the directory where @code{autoconf} looks for the
installed macro files by setting the @code{AC_MACRODIR} environment
documentation if you update them to use the new macro names.
If given no arguments, @code{autoupdate} updates @file{configure.in},
-backing up the original version in the file @file{configure.in~}. If
-you give @code{autoupdate} an argument, it reads that file instead of
-@file{configure.in} and writes the updated file to the standard output.
+backing up the original version with the suffix @file{~} (or the value
+of the environment variable @code{SIMPLE_BACKUP_SUFFIX}, if that is
+set). If you give @code{autoupdate} an argument, it reads that file
+instead of @file{configure.in} and writes the updated file to the
+standard output.
@noindent
@code{autoupdate} accepts the following options:
indentation.
@code{shindent} indents each script named on the command line, backing
-up the original version using the original file name with @samp{~} appended.
+up the original version with the suffix @file{~} (or the value of the
+environment variable @code{SIMPLE_BACKUP_SUFFIX}, if that is set).
@code{shindent} places some restrictions on its input, due to the way it
uses @code{bash} to do the indentation:
@code{HAVE_LONG_FILE_NAMES}.
@end defmac
-@defmac AC_SYS_REMOTE_TAPE
-@maindex SYS_REMOTE_TAPE
-@vindex HAVE_SYS_MTIO_H
-If BSD tape drive ioctls are available, define @code{HAVE_SYS_MTIO_H},
-and if sockets are available add @code{rmt} to @code{make} variable
-@code{PROGS}.
-@end defmac
-
@defmac AC_SYS_RESTARTABLE_SYSCALLS
@maindex SYS_RESTARTABLE_SYSCALLS
@vindex HAVE_RESTARTABLE_SYSCALLS
same convention (@pxref{Cache Variables}, for more information on them).
The first word of the name after @samp{AC_} usually tells the category
-of feature being tested. Here are the categories for specific test
-macros, the kind of macro that you are more likely to write. You are
-not required to use these names, but consistency helps readability.
+of feature being tested. Here are the categories used in Autoconf for
+specific test macros, the kind of macro that you are more likely to
+write. They are also used for cache variables, in all-lowercase. Use
+them where applicable; where they're not, invent your own categories.
@table @code
@item C
Declarations of C variables in header files.
@item FUNC
Functions in libraries.
+@item GROUP
+Unix group owners of files.
@item HEADER
Header files.
+@item LIB
+C libraries.
@item OS
Quirks of particular operating systems.
@item PATH
-The full path names to files.
+The full path names to files, including programs.
@item PROG
-The names of programs.
+The base names of programs.
@item STRUCT
Definitions of C structures in header files.
@item SYS
Operating system features.
@item TYPE
C builtin or declared types.
+@item VAR
+C variables in libraries.
@end table
After the category comes the name of the particular feature being
behavior of the @code{utime} function when called with a @code{NULL}
pointer.
+A macro that is an internal subroutine of another macro should have a
+name that starts with the name of that other macro, followed by one or
+more words saying what the internal macro does. For example,
+@code{AC_PATH_X} has internal macros @code{AC_PATH_X_XMKMF} and
+@code{AC_PATH_X_DIRECT}.
+
@node Quoting, Dependencies Between Macros, Macro Naming, Writing Macros
@section Quoting
@item @var{value-type}
A convention for classifying cache values, to produce a rational naming
-system. The values used in Autoconf are for the following classes of
-features; use them where applicable, otherwise invent your own categories:
-
-@table @code
-@item c
-C language
-
-@item func
-C functions
-
-@item group
-Unix groups
-
-@item header
-C header files
-
-@item lib
-C libraries
-
-@item path
-the absolute path names of programs
-
-@item prog
-the base names of programs
-
-@item struct
-C structures
-
-@item sys
-operating system features
-
-@item type
-C types
-
-@item var
-C variables in libraries
-
-@item x
-X Window System
-@end table
+system. The values used in Autoconf are listed in @ref{Macro Naming}.
@item @var{specific-value}
Which member of the class of cache values this test applies to.
values for some configuration values, both on all of your systems and
separately for each architecture.
-@code{configure} reads the shell script
+If the environment variable @code{CONFIG_SITE} is set and contains the
+name of a readable file, @code{configure} reads that file as a shell
+script. Otherwise, it reads the shell script
@file{@var{exec_prefix}/lib/config.site} if it exists, then
@file{@var{prefix}/lib/config.site} if it exists. Thus, settings in
system dependent files override those in system independent ones in case
@code{CC}, if you need to give them unusual values: anything you would
normally do, repetitively, on the command line. If you use non-default
values for @var{prefix} or @var{exec_prefix} (wherever you locate the
-site file), you can't set them in the site file, since you have to
-specify them on the command line in order for @code{configure} to find
-the site file!
+site file), you can set them in the site file if you specify it with the
+@code{CONFIG_SITE} environment variable.
It is possible to set some cache values in the site file.
If you are cross-compiling, it is impossible to check features that
@vindex NOTICE
@vindex INIT_NOTICE
@code{AC_INIT_NOTICE}
-@item AC_PARSEARGS
-@vindex PARSEARGS
-@vindex INIT_PARSEARGS
-@code{AC_INIT_PARSEARGS}
@item AC_PREPARE
@vindex PREPARE
@vindex INIT_PREPARE
@code{AC_C_CONST}
@item AC_REMOTE_TAPE
@vindex REMOTE_TAPE
-@vindex SYS_REMOTE_TAPE
-@code{AC_SYS_REMOTE_TAPE}
+removed
@item AC_LONG_FILE_NAMES
@vindex LONG_FILE_NAMES
@vindex SYS_LONG_FILE_NAMES
AC_OS_ISC
AC_TYPE_SIGNAL
AC_HEADER_MAJOR
-AC_SYS_REMOTE_TAPE
-test -n "$have_mtio" && PROGS="$PROGS mt"
+
+AC_CHECKING(for remote tape and socket header files)
+AC_HEADER_CHECK(sys/mtio.h,
+[AC_DEFINE(HAVE_SYS_MTIO_H)
+PROGS="$PROGS mt"
+AC_TEST_CPP([#include <sgtty.h>
+#include <sys/socket.h>], PROGS="$PROGS rmt")])
+
AC_PROG_RSH
AC_C_CONST
AC_TYPE_UID_T
TEMPLATES="${AC_MACRODIR}/acconfig.h"
test -r acconfig.h && TEMPLATES="${TEMPLATES} acconfig.h"
-MACROFILES="${AC_MACRODIR}/acgeneral.m4 ${AC_MACRODIR}/acspecific.m4 \
-${AC_MACRODIR}/acoldnames.m4"
-test -r ${AC_MACRODIR}/aclocal.m4 \
- && MACROFILES="${MACROFILES} ${AC_MACRODIR}/aclocal.m4"
-test -r aclocal.m4 && MACROFILES="${MACROFILES} aclocal.m4"
-MACROFILES="${print_version} ${MACROFILES}"
case $# in
0) if test -n "$print_version"
define(/libname/, dnl
patsubst(patsubst($1, /lib\([^\.]*\)\.a/, /\1/), /-l/, //))dnl
changequote([,])dnl
- ifelse([$2], , [
+ ifelse([$3], , [
@@@libs="$libs libname"@@@
], [
# If it was found, we do:
-$2
-# If it was not found, we do:
$3
+# If it was not found, we do:
+$4
])
])dnl
dnl
# We extract assignments of SYMS, TYPES, FUNCS, HEADERS, and LIBS from the
# modified autoconf processing of the input file. The sed hair is
# necessary to win for multi-line macro invocations.
-eval "`echo \"$frob\" \
- | $M4 $MACROFILES - $infile \
- | sed -n -e '
+eval "`echo \"$frob\" |
+ $M4 -I$AC_MACRODIR $print_version autoconf.m4 - $infile |
+ sed -n -e '
: again
/^@@@.*@@@$/s/^@@@\(.*\)@@@$/\1/p
/^@@@/{
TEMPLATES="${AC_MACRODIR}/acconfig.h"
test -r acconfig.h && TEMPLATES="${TEMPLATES} acconfig.h"
-MACROFILES="${AC_MACRODIR}/acgeneral.m4 ${AC_MACRODIR}/acspecific.m4 \
-${AC_MACRODIR}/acoldnames.m4"
-test -r ${AC_MACRODIR}/aclocal.m4 \
- && MACROFILES="${MACROFILES} ${AC_MACRODIR}/aclocal.m4"
-test -r aclocal.m4 && MACROFILES="${MACROFILES} aclocal.m4"
-MACROFILES="${print_version} ${MACROFILES}"
case $# in
0) if test -n "$print_version"
define(/libname/, dnl
patsubst(patsubst($1, /lib\([^\.]*\)\.a/, /\1/), /-l/, //))dnl
changequote([,])dnl
- ifelse([$2], , [
+ ifelse([$3], , [
@@@libs="$libs libname"@@@
], [
# If it was found, we do:
-$2
-# If it was not found, we do:
$3
+# If it was not found, we do:
+$4
])
])dnl
dnl
# We extract assignments of SYMS, TYPES, FUNCS, HEADERS, and LIBS from the
# modified autoconf processing of the input file. The sed hair is
# necessary to win for multi-line macro invocations.
-eval "`echo \"$frob\" \
- | $M4 $MACROFILES - $infile \
- | sed -n -e '
+eval "`echo \"$frob\" |
+ $M4 -I$AC_MACRODIR $print_version autoconf.m4 - $infile |
+ sed -n -e '
: again
/^@@@.*@@@$/s/^@@@\(.*\)@@@$/\1/p
/^@@@/{
print CONF "dnl Checks for header files.\n";
foreach $word (sort keys %headers) {
- if ($headers_macros{$word} eq 'AC_HAVE_HEADERS') {
+ if ($headers_macros{$word} eq 'AC_CHECK_HEADERS') {
push(@have_headers, $word);
} else {
&print_unique($headers_macros{$word});
}
}
- print CONF "AC_HAVE_HEADERS(" . join(' ', sort(@have_headers)) . ")\n"
+ print CONF "AC_CHECK_HEADERS(" . join(' ', sort(@have_headers)) . ")\n"
if defined(@have_headers);
}
print CONF "dnl Checks for functions.\n";
foreach $word (sort keys %functions) {
- if ($functions_macros{$word} eq 'AC_HAVE_FUNCS') {
+ if ($functions_macros{$word} eq 'AC_CHECK_FUNCS') {
push(@have_funcs, $word);
} else {
&print_unique($functions_macros{$word});
}
}
- print CONF "AC_HAVE_FUNCS(" . join(' ', sort(@have_funcs)) . ")\n"
+ print CONF "AC_CHECK_FUNCS(" . join(' ', sort(@have_funcs)) . ")\n"
if defined(@have_funcs);
}
print CONF "dnl Checks for header files.\n";
foreach $word (sort keys %headers) {
- if ($headers_macros{$word} eq 'AC_HAVE_HEADERS') {
+ if ($headers_macros{$word} eq 'AC_CHECK_HEADERS') {
push(@have_headers, $word);
} else {
&print_unique($headers_macros{$word});
}
}
- print CONF "AC_HAVE_HEADERS(" . join(' ', sort(@have_headers)) . ")\n"
+ print CONF "AC_CHECK_HEADERS(" . join(' ', sort(@have_headers)) . ")\n"
if defined(@have_headers);
}
print CONF "dnl Checks for functions.\n";
foreach $word (sort keys %functions) {
- if ($functions_macros{$word} eq 'AC_HAVE_FUNCS') {
+ if ($functions_macros{$word} eq 'AC_CHECK_FUNCS') {
push(@have_funcs, $word);
} else {
&print_unique($functions_macros{$word});
}
}
- print CONF "AC_HAVE_FUNCS(" . join(' ', sort(@have_funcs)) . ")\n"
+ print CONF "AC_CHECK_FUNCS(" . join(' ', sort(@have_funcs)) . ")\n"
if defined(@have_funcs);
}
fi
fi
-MACROFILES="${AC_MACRODIR}/acgeneral.m4 ${AC_MACRODIR}/acspecific.m4 \
-${AC_MACRODIR}/acoldnames.m4"
-test -r ${AC_MACRODIR}/aclocal.m4 &&
- MACROFILES="${MACROFILES} ${AC_MACRODIR}/aclocal.m4"
-test -r aclocal.m4 && MACROFILES="${MACROFILES} aclocal.m4"
-MACROFILES="${print_version} ${MACROFILES} ${infile}"
-
-$M4 $MACROFILES > $tmpout || { rm -f $tmpin $tmpout; exit 2; }
+$M4 -I$AC_MACRODIR $print_version autoconf.m4 $infile > $tmpout || { rm -f $tmpin $tmpout; exit 2; }
if test -n "$print_version"; then
cat $tmpout
TEMPLATES="${AC_MACRODIR}/acconfig.h"
test -r acconfig.h && TEMPLATES="${TEMPLATES} acconfig.h"
-MACROFILES="${AC_MACRODIR}/acgeneral.m4 ${AC_MACRODIR}/acspecific.m4 \
-${AC_MACRODIR}/acoldnames.m4"
-test -r ${AC_MACRODIR}/aclocal.m4 \
- && MACROFILES="${MACROFILES} ${AC_MACRODIR}/aclocal.m4"
-test -r aclocal.m4 && MACROFILES="${MACROFILES} aclocal.m4"
-MACROFILES="${print_version} ${MACROFILES}"
case $# in
0) if test -n "$print_version"
define(/libname/, dnl
patsubst(patsubst($1, /lib\([^\.]*\)\.a/, /\1/), /-l/, //))dnl
changequote([,])dnl
- ifelse([$2], , [
+ ifelse([$3], , [
@@@libs="$libs libname"@@@
], [
# If it was found, we do:
-$2
-# If it was not found, we do:
$3
+# If it was not found, we do:
+$4
])
])dnl
dnl
# We extract assignments of SYMS, TYPES, FUNCS, HEADERS, and LIBS from the
# modified autoconf processing of the input file. The sed hair is
# necessary to win for multi-line macro invocations.
-eval "`echo \"$frob\" \
- | $M4 $MACROFILES - $infile \
- | sed -n -e '
+eval "`echo \"$frob\" |
+ $M4 -I$AC_MACRODIR $print_version autoconf.m4 - $infile |
+ sed -n -e '
: again
/^@@@.*@@@$/s/^@@@\(.*\)@@@$/\1/p
/^@@@/{
print CONF "dnl Checks for header files.\n";
foreach $word (sort keys %headers) {
- if ($headers_macros{$word} eq 'AC_HAVE_HEADERS') {
+ if ($headers_macros{$word} eq 'AC_CHECK_HEADERS') {
push(@have_headers, $word);
} else {
&print_unique($headers_macros{$word});
}
}
- print CONF "AC_HAVE_HEADERS(" . join(' ', sort(@have_headers)) . ")\n"
+ print CONF "AC_CHECK_HEADERS(" . join(' ', sort(@have_headers)) . ")\n"
if defined(@have_headers);
}
print CONF "dnl Checks for functions.\n";
foreach $word (sort keys %functions) {
- if ($functions_macros{$word} eq 'AC_HAVE_FUNCS') {
+ if ($functions_macros{$word} eq 'AC_CHECK_FUNCS') {
push(@have_funcs, $word);
} else {
&print_unique($functions_macros{$word});
}
}
- print CONF "AC_HAVE_FUNCS(" . join(' ', sort(@have_funcs)) . ")\n"
+ print CONF "AC_CHECK_FUNCS(" . join(' ', sort(@have_funcs)) . ")\n"
if defined(@have_funcs);
}
Makefile.in NEWS README TODO \
acconfig.h acfunctions acgeneral.m4 acheaders acidentifiers \
acmakevars acoldnames.m4 acprograms acspecific.m4 autoconf.info* \
- autoconf.sh autoconf.texi install.texi \
+ autoconf.m4 autoconf.sh autoconf.texi install.texi \
autoheader.sh autoreconf.sh autoscan.pl autoupdate.sh \
shindent.sh ifnames.sh \
config.guess config.sub configure configure.in \
if test -f standards.info || test -f $(srcdir)/standards.info; \
then cd $(infodir); rm -f standards.info*; fi
-configure: configure.in acgeneral.m4 acspecific.m4 acoldnames.m4
+configure: configure.in autoconf.m4 acgeneral.m4 acspecific.m4 acoldnames.m4
cd $(srcdir); \
rm -f $@ $@.tmp; \
- $(M4) acgeneral.m4 acspecific.m4 acoldnames.m4 configure.in > $@.tmp && \
+ $(M4) autoconf.m4 configure.in > $@.tmp && \
mv $@.tmp $@ && \
chmod +x $@
Makefile: Makefile.in config.status
parts of Autoconf itself, rearranged somewhat, and Autoconf is
distributed under the terms of the GPL. As applied to Autoconf, the GPL
just means that you need to distribute @file{configure.in}, and
-@file{aclocal.m4}, @file{acconfig.h}, and @file{@var{config}.h.top} and
-@file{@var{config}.h.bot} if you use them, along with @file{configure}.
+@file{acsite.m4}, @file{aclocal.m4}, @file{acconfig.h}, and
+@file{@var{config}.h.top} and @file{@var{config}.h.bot} if you use them,
+along with @file{configure}.
Programs that use Autoconf scripts to configure themselves do not
automatically come under the GPL. Distributing an Autoconf
Here is a diagram showing how the files that can be used in
configuration are produced. Programs that are executed are suffixed by
@samp{*}. Optional files are enclosed in square brackets (@samp{[]}).
-@code{autoconf} and @code{autoheader} also read the installed files
-@file{acgeneral.m4} and @file{acspecific.m4}, and also an installed
-@file{aclocal.m4} if it exists.
+@code{autoconf} and @code{autoheader} also read the installed Autoconf
+macro files (by reading @file{autoconf.m4}).
@noindent
Files used in preparing a software package for distribution:
configure.in --. .------> autoconf* -----> configure
+---+
-[aclocal.m4] --' `---.
+[aclocal.m4] --+ `---.
+[acsite.m4] ---' |
+--> [autoheader*] -> [config.h.in]
[acconfig.h] ----. |
+-----'
instead of @file{configure.in} and writes the configuration script on
the standard output.
-The Autoconf macros are defined in two or more files. Two of the files
-are distributed with Autoconf: @code{autoconf} first reads
-@file{acgeneral.m4} (@pxref{General Purpose Macros}), then
-@file{acspecific.m4} (@pxref{Specific Tests}). After reading them,
-@code{autoconf} looks for an optional file called @file{aclocal.m4},
-first in the directory that contains other installed Autoconf macro
-files, and then in the current directory. If both files exist, it uses
-both of them. Those files can contain your site's own locally written
-Autoconf macro definitions (@pxref{Writing Macros}, for more
-information). If a macro is defined in more than one of the files that
-@code{autoconf} reads, the last definition it reads overrides the
-earlier ones.
+The Autoconf macros are defined in several files. Some of the files are
+distributed with Autoconf; @code{autoconf} reads them first. Then it
+looks for the optional file @file{acsite.m4} in the directory that
+contains the distributed Autoconf macro files, and for the optional file
+@file{aclocal.m4} in the current directory. Those files can contain
+your site's own locally written Autoconf macro definitions
+(@pxref{Writing Macros}, for more information). If a macro is defined
+in more than one of the files that @code{autoconf} reads, the last
+definition it reads overrides the earlier ones.
You can override the directory where @code{autoconf} looks for the
installed macro files by setting the @code{AC_MACRODIR} environment
documentation if you update them to use the new macro names.
If given no arguments, @code{autoupdate} updates @file{configure.in},
-backing up the original version in the file @file{configure.in~}. If
-you give @code{autoupdate} an argument, it reads that file instead of
-@file{configure.in} and writes the updated file to the standard output.
+backing up the original version with the suffix @file{~} (or the value
+of the environment variable @code{SIMPLE_BACKUP_SUFFIX}, if that is
+set). If you give @code{autoupdate} an argument, it reads that file
+instead of @file{configure.in} and writes the updated file to the
+standard output.
@noindent
@code{autoupdate} accepts the following options:
indentation.
@code{shindent} indents each script named on the command line, backing
-up the original version using the original file name with @samp{~} appended.
+up the original version with the suffix @file{~} (or the value of the
+environment variable @code{SIMPLE_BACKUP_SUFFIX}, if that is set).
@code{shindent} places some restrictions on its input, due to the way it
uses @code{bash} to do the indentation:
@code{HAVE_LONG_FILE_NAMES}.
@end defmac
-@defmac AC_SYS_REMOTE_TAPE
-@maindex SYS_REMOTE_TAPE
-@vindex HAVE_SYS_MTIO_H
-If BSD tape drive ioctls are available, define @code{HAVE_SYS_MTIO_H},
-and if sockets are available add @code{rmt} to @code{make} variable
-@code{PROGS}.
-@end defmac
-
@defmac AC_SYS_RESTARTABLE_SYSCALLS
@maindex SYS_RESTARTABLE_SYSCALLS
@vindex HAVE_RESTARTABLE_SYSCALLS
same convention (@pxref{Cache Variables}, for more information on them).
The first word of the name after @samp{AC_} usually tells the category
-of feature being tested. Here are the categories for specific test
-macros, the kind of macro that you are more likely to write. You are
-not required to use these names, but consistency helps readability.
+of feature being tested. Here are the categories used in Autoconf for
+specific test macros, the kind of macro that you are more likely to
+write. They are also used for cache variables, in all-lowercase. Use
+them where applicable; where they're not, invent your own categories.
@table @code
@item C
Declarations of C variables in header files.
@item FUNC
Functions in libraries.
+@item GROUP
+Unix group owners of files.
@item HEADER
Header files.
+@item LIB
+C libraries.
@item OS
Quirks of particular operating systems.
@item PATH
-The full path names to files.
+The full path names to files, including programs.
@item PROG
-The names of programs.
+The base names of programs.
@item STRUCT
Definitions of C structures in header files.
@item SYS
Operating system features.
@item TYPE
C builtin or declared types.
+@item VAR
+C variables in libraries.
@end table
After the category comes the name of the particular feature being
behavior of the @code{utime} function when called with a @code{NULL}
pointer.
+A macro that is an internal subroutine of another macro should have a
+name that starts with the name of that other macro, followed by one or
+more words saying what the internal macro does. For example,
+@code{AC_PATH_X} has internal macros @code{AC_PATH_X_XMKMF} and
+@code{AC_PATH_X_DIRECT}.
+
@node Quoting, Dependencies Between Macros, Macro Naming, Writing Macros
@section Quoting
@item @var{value-type}
A convention for classifying cache values, to produce a rational naming
-system. The values used in Autoconf are for the following classes of
-features; use them where applicable, otherwise invent your own categories:
-
-@table @code
-@item c
-C language
-
-@item func
-C functions
-
-@item group
-Unix groups
-
-@item header
-C header files
-
-@item lib
-C libraries
-
-@item path
-the absolute path names of programs
-
-@item prog
-the base names of programs
-
-@item struct
-C structures
-
-@item sys
-operating system features
-
-@item type
-C types
-
-@item var
-C variables in libraries
-
-@item x
-X Window System
-@end table
+system. The values used in Autoconf are listed in @ref{Macro Naming}.
@item @var{specific-value}
Which member of the class of cache values this test applies to.
values for some configuration values, both on all of your systems and
separately for each architecture.
-@code{configure} reads the shell script
+If the environment variable @code{CONFIG_SITE} is set and contains the
+name of a readable file, @code{configure} reads that file as a shell
+script. Otherwise, it reads the shell script
@file{@var{exec_prefix}/lib/config.site} if it exists, then
@file{@var{prefix}/lib/config.site} if it exists. Thus, settings in
system dependent files override those in system independent ones in case
@code{CC}, if you need to give them unusual values: anything you would
normally do, repetitively, on the command line. If you use non-default
values for @var{prefix} or @var{exec_prefix} (wherever you locate the
-site file), you can't set them in the site file, since you have to
-specify them on the command line in order for @code{configure} to find
-the site file!
+site file), you can set them in the site file if you specify it with the
+@code{CONFIG_SITE} environment variable.
It is possible to set some cache values in the site file.
If you are cross-compiling, it is impossible to check features that
@vindex NOTICE
@vindex INIT_NOTICE
@code{AC_INIT_NOTICE}
-@item AC_PARSEARGS
-@vindex PARSEARGS
-@vindex INIT_PARSEARGS
-@code{AC_INIT_PARSEARGS}
@item AC_PREPARE
@vindex PREPARE
@vindex INIT_PREPARE
@code{AC_C_CONST}
@item AC_REMOTE_TAPE
@vindex REMOTE_TAPE
-@vindex SYS_REMOTE_TAPE
-@code{AC_SYS_REMOTE_TAPE}
+removed
@item AC_LONG_FILE_NAMES
@vindex LONG_FILE_NAMES
@vindex SYS_LONG_FILE_NAMES
AC_OS_ISC
AC_TYPE_SIGNAL
AC_HEADER_MAJOR
-AC_SYS_REMOTE_TAPE
-test -n "$have_mtio" && PROGS="$PROGS mt"
+
+AC_CHECKING(for remote tape and socket header files)
+AC_HEADER_CHECK(sys/mtio.h,
+[AC_DEFINE(HAVE_SYS_MTIO_H)
+PROGS="$PROGS mt"
+AC_TEST_CPP([#include <sgtty.h>
+#include <sys/socket.h>], PROGS="$PROGS rmt")])
+
AC_PROG_RSH
AC_C_CONST
AC_TYPE_UID_T
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
])dnl
dnl
-AC_DEFUN(AC_INIT_PARSEARGS,
+AC_DEFUN(AC_INIT_PARSE_ARGS,
[AC_BEFORE([$0], [AC_ARG_ENABLE])dnl
AC_BEFORE([$0], [AC_ARG_WITH])dnl
# Save the original args to write them into config.status later.
srcdir=
target=NONE
verbose=
-x_includes=
-x_libraries=
+x_includes=NONE
+x_libraries=NONE
# Initialize some other variables.
subdirs=
AC_DEFUN(AC_INIT,
[AC_REQUIRE([AC_BINSH])dnl
AC_INIT_NOTICE
-AC_INIT_PARSEARGS
+AC_INIT_PARSE_ARGS
AC_INIT_PREPARE($1)])dnl
dnl
dnl AC_INIT_PREPARE(UNIQUE-FILE-IN-SOURCE-DIR)
# 1 file creation
# 2 errors and warnings
# 3 unused; some systems may open it to /dev/tty
-# 4 checking for... messages and results
-# 5 compiler messages
+define(AC_FD_MSG, 4)dnl
+[#] AC_FD_MSG checking for... messages and results
+define(AC_FD_CC, 5)dnl
+[#] AC_FD_CC compiler messages saved in config.log
if test "$silent" = yes; then
- exec 4>/dev/null
+ exec AC_FD_MSG>/dev/null
else
- exec 4>&1
+ exec AC_FD_MSG>&1
fi
-exec 5>./config.log
+exec AC_FD_CC>./config.log
echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-" 1>&5
+" 1>&AC_FD_CC
# Save the original args if we used an alternate arg parser.
ac_configure_temp="${configure_args-[$]@}"
dnl
dnl Look for site or system specific initialization scripts.
AC_DEFUN(AC_SITE_LOAD,
-[ac_site_dirs=/usr/local
-if test "x$prefix" != xNONE; then
- ac_site_dirs=$prefix
-fi
-# System dependent files override system independent ones in case of conflict.
-if test "x$exec_prefix" != xNONE && test "x$exec_prefix" != "x$prefix"; then
- ac_site_dirs="$ac_site_dirs $exec_prefix"
+[# Prefer explicitly selected file to automatically selected ones.
+if test ! -r "$CONFIG_SITE"; then
+ if test "x$prefix" != xNONE; then
+ CONFIG_SITE=$prefix/lib/config.site
+ else
+ CONFIG_SITE=/usr/local/lib/config.site
+ fi
+ # System dependent files override system independent ones.
+ if test "x$exec_prefix" != xNONE && test "x$exec_prefix" != "x$prefix"; then
+ CONFIG_SITE="$CONFIG_SITE $exec_prefix/lib/config.site"
+ fi
fi
-for ac_site_dir in $ac_site_dirs; do
- ac_site_file=$ac_site_dir/lib/config.site
+for ac_site_file in $CONFIG_SITE; do
if test -r "$ac_site_file"; then
echo "loading site script $ac_site_file"
- . $ac_site_file
+ . "$ac_site_file"
fi
done
])dnl
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
+# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
CEOF
dnl shell variable, so we need the eval.
dnl if test "${$1+set}" = set; then
if eval "test \"`echo '${'$1'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ echo $ac_n "(cached) $ac_c" 1>&AC_FD_MSG
else
$2
fi
dnl AC_MSG_CHECKING(FEATURE-DESCRIPTION)
AC_DEFUN(AC_MSG_CHECKING,
[AC_REQUIRE([AC_PROG_ECHO_N])dnl
-echo $ac_n "checking $1""... $ac_c" 1>&4])dnl
+echo $ac_n "checking $1""... $ac_c" 1>&AC_FD_MSG])dnl
dnl
AC_DEFUN(AC_CHECKING,
-[echo "checking $1" 1>&4])dnl
+[echo "checking $1" 1>&AC_FD_MSG])dnl
dnl
dnl AC_MSG_RESULT(RESULT-DESCRIPTION)
AC_DEFUN(AC_MSG_RESULT,
[AC_REQUIRE([AC_PROG_ECHO_N])dnl
-echo "$ac_t""$1" 1>&4])dnl
+echo "$ac_t""$1" 1>&AC_FD_MSG])dnl
dnl
AC_DEFUN(AC_VERBOSE,
[AC_OBSOLETE([$0], [; instead use AC_MSG_RESULT])dnl
-echo " $1" 1>&4])dnl
+echo " $1" 1>&AC_FD_MSG])dnl
dnl
dnl AC_MSG_WARN(PROBLEM-DESCRIPTION)
AC_DEFUN(AC_MSG_WARN,
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='${CPP}'
-ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&5 2>&5'
+ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&AC_FD_CC 2>&AC_FD_CC'
])dnl
dnl
AC_DEFUN(AC_LANG_CPLUSPLUS,
ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='${CXXCPP}'
-ac_compile='${CXX-gcc} $CXXFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&5 2>&5'
+ac_compile='${CXX-gcc} $CXXFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&AC_FD_CC 2>&AC_FD_CC'
])dnl
dnl
dnl Push the current language on a stack.
dnl ### The big finish
dnl
dnl
+dnl Produce config.status, config.h, and links, and configure subdirs.
dnl AC_OUTPUT([FILE...] [, EXTRA-CMDS])
AC_DEFUN(AC_OUTPUT,
[AC_CACHE_SAVE
[trap 'rm -f $1; exit 1' 1 2 15])
ac_given_srcdir=$srcdir
+
EOF
cat >> ${CONFIG_STATUS} <<\EOF
-
-CONFIG_FILES=${CONFIG_FILES-"$1"}
+AC_OUTPUT_FILES($1)
+ifdef([AC_LIST_HEADERS], [AC_OUTPUT_HEADER(AC_LIST_HEADERS)])dnl
+ifdef([AC_LIST_LINKS], [AC_OUTPUT_LINKS(AC_LIST_LINKS, AC_LIST_FILES)])dnl
+$2
+exit 0
+EOF
+chmod +x ${CONFIG_STATUS}
+test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} ${CONFIG_STATUS}
+dnl config.status should never do recursion.
+ifdef([AC_LIST_SUBDIRS], [AC_OUTPUT_SUBDIRS(AC_LIST_SUBDIRS)])dnl
+])dnl
+dnl
+dnl This is a subroutine of AC_OUTPUT. It is called inside a quoted
+dnl here document whose contents are going into config.status.
+AC_DEFUN(AC_OUTPUT_FILES,
+[CONFIG_FILES=${CONFIG_FILES-"$1"}
for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
# Support "outfile[:infile]", defaulting infile="outfile.in".
case "$ac_file" in
*) ac_file_in="${ac_file}.in" ;;
esac
+ # Adjust relative srcdir, etc. for subdirectories.
+
# Remove last slash and all that follows it. Not all systems have dirname.
changequote(, )dnl
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
])dnl
echo creating "$ac_file"
rm -f "$ac_file"
- comment_str="Generated automatically from `echo $ac_file_in|sed 's|.*/||'` by configure."
+ comment_str="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
case "$ac_file" in
*.c | *.h | *.C | *.cc | *.cpp | *.hpp | *.m )
ac_comsub="1i\\
cat >> ${CONFIG_STATUS} <<\EOF
" $ac_given_srcdir/$ac_file_in > $ac_file
fi; done
-ifdef([AC_LIST_HEADERS], [AC_OUTPUT_HEADER(AC_LIST_HEADERS)])dnl
-ifdef([AC_LIST_LINKS], [AC_OUTPUT_LINKS(AC_LIST_LINKS, AC_LIST_FILES)])dnl
-$2
-exit 0
-EOF
-chmod +x ${CONFIG_STATUS}
-test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} ${CONFIG_STATUS}
-dnl config.status should never do recursion.
-ifdef([AC_LIST_SUBDIRS], [AC_OUTPUT_SUBDIRS(AC_LIST_SUBDIRS)])dnl
])dnl
dnl
dnl Create the header files listed in $1.
dnl here document whose contents are going into config.status.
AC_DEFUN(AC_OUTPUT_HEADER,
[changequote(<<, >>)dnl
-
# These sed commands are put into ac_sed_defs when defining a macro.
# They are broken into pieces to make the sed script easier to manage.
# They are passed to sed as "A NAME B NAME C VALUE D", where NAME
ac_sub_configure=
fi
- # Make the cache file name correct relative to the subdirectory.
+ # The recursion is here.
+ if test -n "${ac_sub_configure}"; then
+
+ # Make the cache file name correct relative to the subdirectory.
changequote(, )dnl
- # A "../" for each directory in /${ac_config_dir}.
- ac_dots=`echo /${ac_config_dir}|sed 's%/[^/]*%../%g'`
+ # A "../" for each directory in /${ac_config_dir}.
+ ac_dots=`echo /${ac_config_dir}|sed 's%/[^/]*%../%g'`
changequote([, ])dnl
- case "$cache_file" in
- /*) ac_sub_cache_file=$cache_file ;;
- *) # Relative path.
- ac_sub_cache_file="$ac_dots$cache_file" ;;
- esac
+ case "$cache_file" in
+ /*) ac_sub_cache_file=$cache_file ;;
+ *) # Relative path.
+ ac_sub_cache_file="$ac_dots$cache_file" ;;
+ esac
- # The recursion is here.
- if test -n "${ac_sub_configure}"; then
echo "[running ${CONFIG_SHELL-/bin/sh} ${ac_sub_configure} ${ac_sub_configure_args} --cache-file=$ac_sub_cache_file] --srcdir=${ac_sub_srcdir}"
if ${CONFIG_SHELL-/bin/sh} ${ac_sub_configure} ${ac_sub_configure_args} --cache-file=$ac_sub_cache_file --srcdir=${ac_sub_srcdir}
then :
yes
#endif
EOF
-if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
+if ${CC-cc} -E conftest.c 2>&AC_FD_CC | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
yes
#endif
EOF
-if ${CXX-gcc} -E conftest.C 2>&5 | egrep yes >/dev/null 2>&1; then
+if ${CXX-gcc} -E conftest.C 2>&AC_FD_CC | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gxx=yes
else
ac_cv_prog_gxx=no
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
-if ${CC-cc} -c conftest.c -o conftest.o 1>&5 2>&5 &&
- test -f conftest.o && ${CC-cc} -c conftest.c -o conftest.o 1>&5 2>&5
+if ${CC-cc} -c conftest.c -o conftest.o 1>&AC_FD_CC 2>&AC_FD_CC &&
+ test -f conftest.o && ${CC-cc} -c conftest.c -o conftest.o 1>&AC_FD_CC 2>&AC_FD_CC
then
if test "x$CC" != xcc; then
# Test first that cc exists at all.
- if cc -c conftest.c 1>&5 2>&5
+ if cc -c conftest.c 1>&AC_FD_CC 2>&AC_FD_CC
then
- if cc -c conftest.c -o conftest2.o 1>&5 2>&5 &&
- test -f conftest2.o && cc -c conftest.c -o conftest2.o 1>&5 2>&5
+ if cc -c conftest.c -o conftest2.o 1>&AC_FD_CC 2>&AC_FD_CC &&
+ test -f conftest2.o && cc -c conftest.c -o conftest2.o 1>&AC_FD_CC 2>&AC_FD_CC
then
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
fi
])dnl
dnl
AC_DEFUN(AC_HEADER_STAT,
-[AC_MSG_CHECKING(for broken stat file mode macros)
+[AC_MSG_CHECKING(whether stat file-mode macros are broken)
AC_CACHE_VAL(ac_cv_header_stat_broken,
[AC_EGREP_CPP([You lose], [#include <sys/types.h>
#include <sys/stat.h>
], ac_cv_os_cray=yes, ac_cv_os_cray=no)])dnl
AC_MSG_RESULT($ac_cv_os_cray)
if test $ac_cv_os_cray = yes; then
-AC_CHECK_FUNC([_getb67], AC_DEFINE(CRAY_STACKSEG_END, _getb67),
-AC_CHECK_FUNC([GETB67], AC_DEFINE(CRAY_STACKSEG_END, GETB67),
-AC_CHECK_FUNC([getb67], AC_DEFINE(CRAY_STACKSEG_END, getb67))))
+AC_CHECK_FUNC(_getb67, AC_DEFINE(CRAY_STACKSEG_END, _getb67),
+AC_CHECK_FUNC(GETB67, AC_DEFINE(CRAY_STACKSEG_END, GETB67),
+AC_CHECK_FUNC(getb67, AC_DEFINE(CRAY_STACKSEG_END, getb67))))
fi
AC_MSG_CHECKING(stack direction for C alloca)
])dnl
fi
])dnl
-AC_DEFUN(AC_SYS_REMOTE_TAPE,
-[AC_CHECK_HEADER(sys/mtio.h, AC_DEFINE(HAVE_SYS_MTIO_H))
-
-if test "$ac_cv_header_sys_mtio_h" = yes; then
-AC_MSG_CHECKING(for remote tape header files)
-AC_CACHE_VAL(ac_cv_header_rmt,
-[AC_TRY_CPP([#include <sgtty.h>
-#include <sys/socket.h>], ac_cv_header_rmt=yes, ac_cv_header_rmt=no)])dnl
- AC_MSG_RESULT($ac_cv_header_rmt)
- if test $ac_cv_header_rmt = yes; then
- PROGS="$PROGS rmt"
- fi
-fi
-AC_SUBST(PROGS)dnl
-])dnl
dnl
AC_DEFUN(AC_SYS_LONG_FILE_NAMES,
[AC_MSG_CHECKING(for long file names)
# Ones that have their own macros.
-major AC_MAJOR_HEADER
-minor AC_MAJOR_HEADER
-makedev AC_MAJOR_HEADER
-bcopy AC_STDC_HEADERS
-bcmp AC_STDC_HEADERS
-bzero AC_STDC_HEADERS
-ioctl AC_GCC_TRADITIONAL
-memchr AC_STDC_HEADERS
-memcpy AC_STDC_HEADERS
-memcmp AC_STDC_HEADERS
-memmove AC_STDC_HEADERS
-memset AC_STDC_HEADERS
-index AC_STDC_HEADERS
-rindex AC_STDC_HEADERS
-getgroups AC_GETGROUPS_T
-signal AC_RETSIGTYPE
-alloca AC_ALLOCA
-getloadavg AC_GETLOADAVG
-mmap AC_MMAP
-setvbuf AC_SETVBUF_REVERSED
-strcoll AC_STRCOLL
-utime AC_UTIME_NULL
-vfork AC_VFORK
-vprintf AC_VPRINTF
-vfprintf AC_VPRINTF
-vsprintf AC_VPRINTF
-wait3 AC_WAIT3
+major AC_HEADER_MAJOR
+minor AC_HEADER_MAJOR
+makedev AC_HEADER_MAJOR
+bcopy AC_HEADER_STDC
+bcmp AC_HEADER_STDC
+bzero AC_HEADER_STDC
+ioctl AC_PROG_GCC_TRADITIONAL
+memchr AC_HEADER_STDC
+memcpy AC_HEADER_STDC
+memcmp AC_HEADER_STDC
+memmove AC_HEADER_STDC
+memset AC_HEADER_STDC
+index AC_HEADER_STDC
+rindex AC_HEADER_STDC
+getgroups AC_TYPE_GETGROUPS
+signal AC_TYPE_SIGNAL
+alloca AC_FUNC_ALLOCA
+getloadavg AC_FUNC_GETLOADAVG
+mmap AC_FUNC_MMAP
+setvbuf AC_FUNC_SETVBUF_REVERSED
+strcoll AC_FUNC_STRCOLL
+utime AC_FUNC_UTIME_NULL
+vfork AC_FUNC_VFORK
+vprintf AC_FUNC_VPRINTF
+vfprintf AC_FUNC_VPRINTF
+vsprintf AC_FUNC_VPRINTF
+wait3 AC_FUNC_WAIT3
# Others.
-fnmatch AC_HAVE_FUNCS
-ftime AC_HAVE_FUNCS
-gethostname AC_HAVE_FUNCS
-gettimeofday AC_HAVE_FUNCS
-getusershell AC_HAVE_FUNCS
-getcwd AC_HAVE_FUNCS
-getwd AC_HAVE_FUNCS
-mkdir AC_HAVE_FUNCS
-mkfifo AC_HAVE_FUNCS
-mktime AC_HAVE_FUNCS
-putenv AC_HAVE_FUNCS
-re_comp AC_HAVE_FUNCS
-regcmp AC_HAVE_FUNCS
-regcomp AC_HAVE_FUNCS
-rmdir AC_HAVE_FUNCS
-select AC_HAVE_FUNCS
-socket AC_HAVE_FUNCS
-stime AC_HAVE_FUNCS
-strcspn AC_HAVE_FUNCS
-strdup AC_HAVE_FUNCS
-strerror AC_HAVE_FUNCS
-strftime AC_HAVE_FUNCS
-strspn AC_HAVE_FUNCS
-strstr AC_HAVE_FUNCS
-strtod AC_HAVE_FUNCS
-strtol AC_HAVE_FUNCS
-strtoul AC_HAVE_FUNCS
-uname AC_HAVE_FUNCS
+fnmatch AC_CHECK_FUNCS
+ftime AC_CHECK_FUNCS
+gethostname AC_CHECK_FUNCS
+gettimeofday AC_CHECK_FUNCS
+getusershell AC_CHECK_FUNCS
+getcwd AC_CHECK_FUNCS
+getwd AC_CHECK_FUNCS
+mkdir AC_CHECK_FUNCS
+mkfifo AC_CHECK_FUNCS
+mktime AC_CHECK_FUNCS
+putenv AC_CHECK_FUNCS
+re_comp AC_CHECK_FUNCS
+regcmp AC_CHECK_FUNCS
+regcomp AC_CHECK_FUNCS
+rmdir AC_CHECK_FUNCS
+select AC_CHECK_FUNCS
+socket AC_CHECK_FUNCS
+stime AC_CHECK_FUNCS
+strcspn AC_CHECK_FUNCS
+strdup AC_CHECK_FUNCS
+strerror AC_CHECK_FUNCS
+strftime AC_CHECK_FUNCS
+strspn AC_CHECK_FUNCS
+strstr AC_CHECK_FUNCS
+strtod AC_CHECK_FUNCS
+strtol AC_CHECK_FUNCS
+strtoul AC_CHECK_FUNCS
+uname AC_CHECK_FUNCS
# Ones that have their own macros.
-dirent.h AC_DIR_HEADER
-sys/ndir.h AC_DIR_HEADER
-sys/dir.h AC_DIR_HEADER
-ndir.h AC_DIR_HEADER
-sys/mkdev.h AC_MAJOR_HEADER
-string.h AC_STDC_HEADERS
-strings.h AC_STDC_HEADERS
-stdlib.h AC_STDC_HEADERS
-stddef.h AC_STDC_HEADERS
-stdarg.h AC_STDC_HEADERS
-float.h AC_STDC_HEADERS
-sys/mtio.h AC_REMOTE_TAPE
-X11/Xlib.h AC_FIND_X
+dirent.h AC_HEADER_DIRENT
+sys/ndir.h AC_HEADER_DIRENT
+sys/dir.h AC_HEADER_DIRENT
+ndir.h AC_HEADER_DIRENT
+sys/mkdev.h AC_HEADER_MAJOR
+string.h AC_HEADER_STDC
+strings.h AC_HEADER_STDC
+stdlib.h AC_HEADER_STDC
+stddef.h AC_HEADER_STDC
+stdarg.h AC_HEADER_STDC
+float.h AC_HEADER_STDC
+X11/Xlib.h AC_PATH_X
# Others.
-fcntl.h AC_HAVE_HEADERS
-limits.h AC_HAVE_HEADERS
-paths.h AC_HAVE_HEADERS
-sgtty.h AC_HAVE_HEADERS
-sys/file.h AC_HAVE_HEADERS
-sys/ioctl.h AC_HAVE_HEADERS
-sys/time.h AC_HAVE_HEADERS
-sys/window.h AC_HAVE_HEADERS
-syslog.h AC_HAVE_HEADERS
-termio.h AC_HAVE_HEADERS
-unistd.h AC_HAVE_HEADERS
+fcntl.h AC_CHECK_HEADERS
+limits.h AC_CHECK_HEADERS
+paths.h AC_CHECK_HEADERS
+sgtty.h AC_CHECK_HEADERS
+sys/file.h AC_CHECK_HEADERS
+sys/ioctl.h AC_CHECK_HEADERS
+sys/time.h AC_CHECK_HEADERS
+sys/window.h AC_CHECK_HEADERS
+syslog.h AC_CHECK_HEADERS
+termio.h AC_CHECK_HEADERS
+unistd.h AC_CHECK_HEADERS
-sys_siglist AC_SYS_SIGLIST_DECLARED
-mode_t AC_MODE_T
-off_t AC_OFF_T
-pid_t AC_PID_T
-size_t AC_SIZE_T
-uid_t AC_UID_T
-gid_t AC_UID_T
-S_ISDIR AC_STAT_MACROS_BROKEN
-S_ISREG AC_STAT_MACROS_BROKEN
-S_ISCHR AC_STAT_MACROS_BROKEN
-S_ISBLK AC_STAT_MACROS_BROKEN
-S_ISFIFO AC_STAT_MACROS_BROKEN
-S_ISLNK AC_STAT_MACROS_BROKEN
-S_ISSOCK AC_STAT_MACROS_BROKEN
-st_blksize AC_ST_BLKSIZE
-st_blocks AC_ST_BLOCKS
-st_rdev AC_ST_RDEV
-timeval AC_TIME_WITH_SYS_TIME
+sys_siglist AC_DECL_SYS_SIGLIST
+mode_t AC_TYPE_MODE_T
+off_t AC_TYPE_OFF_T
+pid_t AC_TYPE_PID_T
+size_t AC_TYPE_SIZE_T
+uid_t AC_TYPE_UID_T
+gid_t AC_TYPE_UID_T
+S_ISDIR AC_HEADER_STAT
+S_ISREG AC_HEADER_STAT
+S_ISCHR AC_HEADER_STAT
+S_ISBLK AC_HEADER_STAT
+S_ISFIFO AC_HEADER_STAT
+S_ISLNK AC_HEADER_STAT
+S_ISSOCK AC_HEADER_STAT
+st_blksize AC_STRUCT_ST_BLKSIZE
+st_blocks AC_STRUCT_ST_BLOCKS
+st_rdev AC_STRUCT_ST_RDEV
+timeval AC_HEADER_TIME
tm AC_STRUCT_TM
-tm_zone AC_TIMEZONE
-const AC_CONST
-inline AC_INLINE
+tm_zone AC_STRUCT_TIMEZONE
+const AC_C_CONST
+inline AC_C_INLINE
-LN AC_LN_S
+LN AC_PROG_LN_S
AWK AC_PROG_AWK
CC AC_PROG_CC
CPP AC_PROG_CPP
RANLIB AC_PROG_RANLIB
YACC AC_PROG_YACC
BISON AC_PROG_YACC
-MAKE AC_SET_MAKE
+MAKE AC_PROG_MAKE_SET
-ln AC_LN_S
+ln AC_PROG_LN_S
awk AC_PROG_AWK
nawk AC_PROG_AWK
gawk AC_PROG_AWK
yacc AC_PROG_YACC
byacc AC_PROG_YACC
bison AC_PROG_YACC
-make AC_SET_MAKE
+make AC_PROG_MAKE_SET