mirror of
git://git.sv.gnu.org/autoconf
synced 2025-03-31 15:00:26 +08:00
* autoconf.m4 (define): Reestablish only after having read the
`ac' files. Adjust all the Autoconf code to use `m4_define', not `define'.
This commit is contained in:
parent
3c3853ced4
commit
ded24ff599
@ -1,3 +1,9 @@
|
||||
2000-11-03 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* autoconf.m4 (define): Reestablish only after having read the
|
||||
`ac' files.
|
||||
Adjust all the Autoconf code to use `m4_define', not `define'.
|
||||
|
||||
2000-11-03 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* acgeneral.m4 (AU_ALIAS): Don't forget to pass the arguments to
|
||||
@ -11,7 +17,7 @@
|
||||
2000-11-03 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* autoconf.m4: Instead of reactivating the macros before reading
|
||||
Autoconf's file, do it afterwards, so that Autoconf promotes the
|
||||
Autoconf's files, do it afterwards, so that Autoconf promotes the
|
||||
right use, but users still can use the old names.
|
||||
Of course this revealed numerous non updated uses of old macros in
|
||||
Autoconf's files. Adjust them.
|
||||
|
@ -131,7 +131,7 @@ AU_ALIAS([AC_HAVE_FUNCS], [AC_CHECK_FUNCS])
|
||||
# Set up the LIBOBJ replacement of `alloca'. Well, not exactly
|
||||
# AC_LIBOBJ since we actually set the output variable `ALLOCA'.
|
||||
# Nevertheless, for Automake, AC_LIBOBJ_DECL it.
|
||||
define([_AC_LIBOBJ_ALLOCA],
|
||||
m4_define([_AC_LIBOBJ_ALLOCA],
|
||||
[# The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
||||
# that cause trouble. Some versions do not even contain alloca or
|
||||
# contain a buggy version. If you still want to use their alloca,
|
||||
@ -420,7 +420,7 @@ LIBS=$ac_save_LIBS
|
||||
# _AC_LIBOBJ_GETLOADAVG
|
||||
# ---------------------
|
||||
# Set up the AC_LIBOBJ replacement of `getloadavg'.
|
||||
define([_AC_LIBOBJ_GETLOADAVG],
|
||||
m4_define([_AC_LIBOBJ_GETLOADAVG],
|
||||
[AC_LIBOBJ(getloadavg)
|
||||
AC_DEFINE(C_GETLOADAVG, 1, [Define if using `getloadavg.c'.])
|
||||
# Figure out what our getloadavg.c needs.
|
||||
@ -1183,7 +1183,7 @@ fi
|
||||
# If it does, then define HAVE_STAT_EMPTY_STRING_BUG (or
|
||||
# HAVE_LSTAT_EMPTY_STRING_BUG) and arrange to compile the wrapper
|
||||
# function.
|
||||
define([_AC_FUNC_STAT],
|
||||
m4_define([_AC_FUNC_STAT],
|
||||
[AC_REQUIRE([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])dnl
|
||||
AC_CACHE_CHECK([whether $1 accepts an empty string],
|
||||
[ac_cv_func_$1_empty_string_bug],
|
||||
@ -1217,7 +1217,7 @@ AC_DEFUN([AC_FUNC_LSTAT], [_AC_FUNC_STAT(lstat)])
|
||||
|
||||
# _AC_LIBOBJ_STRTOD
|
||||
# -----------------
|
||||
define([_AC_LIBOBJ_STRTOD],
|
||||
m4_define([_AC_LIBOBJ_STRTOD],
|
||||
[AC_LIBOBJ(strtod)
|
||||
AC_CHECK_FUNC(pow)
|
||||
if test $ac_cv_func_pow = no; then
|
||||
|
304
acgeneral.m4
304
acgeneral.m4
File diff suppressed because it is too large
Load Diff
74
aclang.m4
74
aclang.m4
@ -94,7 +94,7 @@
|
||||
# ------------------------------------------------------------
|
||||
# Expand into IF-LANG1 if the current language is LANG1 etc. else
|
||||
# into default.
|
||||
define([AC_LANG_CASE],
|
||||
m4_define([AC_LANG_CASE],
|
||||
[m4_case(_AC_LANG, $@)])
|
||||
|
||||
|
||||
@ -102,7 +102,7 @@ define([AC_LANG_CASE],
|
||||
# ------------------------------------
|
||||
# Call the specialization of MACRO for LANG with ARGS. Complain if
|
||||
# unavailable.
|
||||
define([_AC_LANG_DISPATCH],
|
||||
m4_define([_AC_LANG_DISPATCH],
|
||||
[ifdef([$1($2)],
|
||||
[m4_indir([$1($2)], m4_shiftn(2, $@))],
|
||||
[AC_FATAL([$1: unknown language: $2])])])
|
||||
@ -117,14 +117,14 @@ define([_AC_LANG_DISPATCH],
|
||||
# If you add quotes here, they will be part of the name too, yielding
|
||||
# `AC_LANG([C])' for instance, which does not exist.
|
||||
AC_DEFUN([AC_LANG],
|
||||
[define([_AC_LANG], [$1])dnl
|
||||
[m4_define([_AC_LANG], [$1])dnl
|
||||
_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])
|
||||
|
||||
|
||||
# AC_LANG_PUSH(LANG)
|
||||
# ------------------
|
||||
# Save the current language, and use LANG.
|
||||
define([AC_LANG_PUSH],
|
||||
m4_define([AC_LANG_PUSH],
|
||||
[m4_pushdef([_AC_LANG])dnl
|
||||
AC_LANG([$1])])
|
||||
|
||||
@ -132,7 +132,7 @@ AC_LANG([$1])])
|
||||
# AC_LANG_POP
|
||||
# -----------
|
||||
# Restore the previous language.
|
||||
define([AC_LANG_POP],
|
||||
m4_define([AC_LANG_POP],
|
||||
[m4_popdef([_AC_LANG])dnl
|
||||
ifelse(_AC_LANG, [_AC_LANG],
|
||||
[AC_FATAL([too many $0])])dnl
|
||||
@ -159,7 +159,7 @@ AU_DEFUN([AC_LANG_RESTORE], [AC_LANG_POP($@)])
|
||||
# ---------------
|
||||
# Return a short signature of _AC_LANG which can be used in shell
|
||||
# variable names, or in M4 macro names.
|
||||
define([_AC_LANG_ABBREV],
|
||||
m4_define([_AC_LANG_ABBREV],
|
||||
[_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])
|
||||
|
||||
|
||||
@ -171,7 +171,7 @@ define([_AC_LANG_ABBREV],
|
||||
# AC_LANG(C)
|
||||
# ----------
|
||||
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||
define([AC_LANG(C)],
|
||||
m4_define([AC_LANG(C)],
|
||||
[ac_ext=c
|
||||
ac_cpp='$CPP $CPPFLAGS'
|
||||
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
|
||||
@ -187,7 +187,7 @@ AU_DEFUN([AC_LANG_C], [AC_LANG(C)])
|
||||
|
||||
# _AC_LANG_ABBREV(C)
|
||||
# ------------------
|
||||
define([_AC_LANG_ABBREV(C)], [c])
|
||||
m4_define([_AC_LANG_ABBREV(C)], [c])
|
||||
|
||||
|
||||
# ---------------------- #
|
||||
@ -198,7 +198,7 @@ define([_AC_LANG_ABBREV(C)], [c])
|
||||
# AC_LANG(C++)
|
||||
# ------------
|
||||
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||
define([AC_LANG(C++)],
|
||||
m4_define([AC_LANG(C++)],
|
||||
[ac_ext=cc
|
||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
|
||||
@ -214,7 +214,7 @@ AU_DEFUN([AC_LANG_CPLUSPLUS], [AC_LANG(C++)])
|
||||
|
||||
# _AC_LANG_ABBREV(C++)
|
||||
# --------------------
|
||||
define([_AC_LANG_ABBREV(C++)], [cxx])
|
||||
m4_define([_AC_LANG_ABBREV(C++)], [cxx])
|
||||
|
||||
|
||||
# ----------------------------- #
|
||||
@ -224,7 +224,7 @@ define([_AC_LANG_ABBREV(C++)], [cxx])
|
||||
|
||||
# AC_LANG(Fortran 77)
|
||||
# -------------------
|
||||
define([AC_LANG(Fortran 77)],
|
||||
m4_define([AC_LANG(Fortran 77)],
|
||||
[ac_ext=f
|
||||
ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext >&AC_FD_LOG'
|
||||
ac_link='${F77-f77} -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
|
||||
@ -239,7 +239,7 @@ AU_DEFUN([AC_LANG_FORTRAN77], [AC_LANG(Fortran 77)])
|
||||
|
||||
# _AC_LANG_ABBREV(Fortran 77)
|
||||
# ---------------------------
|
||||
define([_AC_LANG_ABBREV(Fortran 77)], [f77])
|
||||
m4_define([_AC_LANG_ABBREV(Fortran 77)], [f77])
|
||||
|
||||
|
||||
|
||||
@ -256,7 +256,7 @@ define([_AC_LANG_ABBREV(Fortran 77)], [f77])
|
||||
# AC_LANG_CONFTEST(BODY)
|
||||
# ----------------------
|
||||
# Save the BODY in `conftest.$ac_ext'. Add a trailing new line.
|
||||
define([AC_LANG_CONFTEST],
|
||||
m4_define([AC_LANG_CONFTEST],
|
||||
[cat >conftest.$ac_ext <<_ACEOF
|
||||
$1
|
||||
_ACEOF])
|
||||
@ -319,7 +319,7 @@ AC_DEFUN([AC_LANG_INT_SAVE],
|
||||
# -----------------------
|
||||
# This sometimes fails to find confdefs.h, for some reason.
|
||||
# #line __oline__ "$[0]"
|
||||
define([AC_LANG_SOURCE(C)],
|
||||
m4_define([AC_LANG_SOURCE(C)],
|
||||
[#line __oline__ "configure"
|
||||
#include "confdefs.h"
|
||||
$1])
|
||||
@ -327,7 +327,7 @@ $1])
|
||||
|
||||
# AC_LANG_PROGRAM(C)([PROLOGUE], [BODY])
|
||||
# --------------------------------------
|
||||
define([AC_LANG_PROGRAM(C)],
|
||||
m4_define([AC_LANG_PROGRAM(C)],
|
||||
[$1
|
||||
int
|
||||
main ()
|
||||
@ -343,7 +343,7 @@ $2
|
||||
# AC_LANG_CALL(C)(PROLOGUE, FUNCTION)
|
||||
# -----------------------------------
|
||||
# Avoid conflicting decl of main.
|
||||
define([AC_LANG_CALL(C)],
|
||||
m4_define([AC_LANG_CALL(C)],
|
||||
[AC_LANG_PROGRAM([$1
|
||||
ifelse([$2], [main], ,
|
||||
[/* Override any gcc2 internal prototype to avoid an error. */
|
||||
@ -360,7 +360,7 @@ char $2 ();])], [$2 ();])])
|
||||
# Don't include <ctype.h> because on OSF/1 3.0 it includes
|
||||
# <sys/types.h> which includes <sys/select.h> which contains a
|
||||
# prototype for select. Similarly for bzero.
|
||||
define([AC_LANG_FUNC_LINK_TRY(C)],
|
||||
m4_define([AC_LANG_FUNC_LINK_TRY(C)],
|
||||
[AC_LANG_PROGRAM(
|
||||
[/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $1 (); below. */
|
||||
@ -387,7 +387,7 @@ f = $1;
|
||||
|
||||
# AC_LANG_BOOL_COMPILE_TRY(C)(PROLOGUE, EXPRESSION)
|
||||
# -------------------------------------------------
|
||||
define([AC_LANG_BOOL_COMPILE_TRY(C)],
|
||||
m4_define([AC_LANG_BOOL_COMPILE_TRY(C)],
|
||||
[AC_LANG_PROGRAM([$1], [int _array_ @<:@1 - 2 * !($2)@:>@])])
|
||||
|
||||
|
||||
@ -395,7 +395,7 @@ define([AC_LANG_BOOL_COMPILE_TRY(C)],
|
||||
# -----------------------------------------
|
||||
# We need `stdio.h' to open a `FILE', so the prologue defaults to the
|
||||
# inclusion of `stdio.h'.
|
||||
define([AC_LANG_INT_SAVE(C)],
|
||||
m4_define([AC_LANG_INT_SAVE(C)],
|
||||
[AC_LANG_PROGRAM([m4_default([$1], [@%:@include "stdio.h"])],
|
||||
[FILE *f = fopen ("conftestval", "w");
|
||||
if (!f)
|
||||
@ -409,7 +409,7 @@ fprintf (f, "%d\n", ($2));])])
|
||||
|
||||
# AC_LANG_SOURCE(C++)(BODY)
|
||||
# -------------------------
|
||||
define([AC_LANG_SOURCE(C++)],
|
||||
m4_define([AC_LANG_SOURCE(C++)],
|
||||
[#line __oline__ "configure"
|
||||
#include "confdefs.h"
|
||||
#ifdef __cplusplus
|
||||
@ -421,31 +421,31 @@ $1])
|
||||
# AC_LANG_PROGRAM(C++)([PROLOGUE], [BODY])
|
||||
# ----------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_PROGRAM(C++)], m4_defn([AC_LANG_PROGRAM(C)]))
|
||||
m4_define([AC_LANG_PROGRAM(C++)], m4_defn([AC_LANG_PROGRAM(C)]))
|
||||
|
||||
|
||||
# AC_LANG_CALL(C++)(PROLOGUE, FUNCTION)
|
||||
# -------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_CALL(C++)], m4_defn([AC_LANG_CALL(C)]))
|
||||
m4_define([AC_LANG_CALL(C++)], m4_defn([AC_LANG_CALL(C)]))
|
||||
|
||||
|
||||
# AC_LANG_FUNC_LINK_TRY(C++)(FUNCTION)
|
||||
# ------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_FUNC_LINK_TRY(C++)], m4_defn([AC_LANG_FUNC_LINK_TRY(C)]))
|
||||
m4_define([AC_LANG_FUNC_LINK_TRY(C++)], m4_defn([AC_LANG_FUNC_LINK_TRY(C)]))
|
||||
|
||||
|
||||
# AC_LANG_BOOL_COMPILE_TRY(C++)(PROLOGUE, EXPRESSION)
|
||||
# ---------------------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_BOOL_COMPILE_TRY(C++)], m4_defn([AC_LANG_BOOL_COMPILE_TRY(C)]))
|
||||
m4_define([AC_LANG_BOOL_COMPILE_TRY(C++)], m4_defn([AC_LANG_BOOL_COMPILE_TRY(C)]))
|
||||
|
||||
|
||||
# AC_LANG_INT_SAVE(C++)(PROLOGUE, EXPRESSION)
|
||||
# -------------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_INT_SAVE(C++)], m4_defn([AC_LANG_INT_SAVE(C)]))
|
||||
m4_define([AC_LANG_INT_SAVE(C++)], m4_defn([AC_LANG_INT_SAVE(C)]))
|
||||
|
||||
|
||||
|
||||
@ -458,14 +458,14 @@ define([AC_LANG_INT_SAVE(C++)], m4_defn([AC_LANG_INT_SAVE(C)]))
|
||||
# FIXME: Apparently, according to former AC_TRY_COMPILER, the CPP
|
||||
# directives must not be included. But AC_TRY_RUN_NATIVE was not
|
||||
# avoiding them, so?
|
||||
define([AC_LANG_SOURCE(Fortran 77)],
|
||||
m4_define([AC_LANG_SOURCE(Fortran 77)],
|
||||
[$1])
|
||||
|
||||
|
||||
# AC_LANG_PROGRAM(Fortran 77)([PROLOGUE], [BODY])
|
||||
# -----------------------------------------------
|
||||
# Yes, we discard the PROLOGUE.
|
||||
define([AC_LANG_PROGRAM(Fortran 77)],
|
||||
m4_define([AC_LANG_PROGRAM(Fortran 77)],
|
||||
[ program main
|
||||
$2
|
||||
end])
|
||||
@ -474,7 +474,7 @@ $2
|
||||
# AC_LANG_CALL(Fortran 77)(PROLOGUE, FUNCTION)
|
||||
# --------------------------------------------
|
||||
# FIXME: This is a guess, help!
|
||||
define([AC_LANG_CALL(Fortran 77)],
|
||||
m4_define([AC_LANG_CALL(Fortran 77)],
|
||||
[AC_LANG_PROGRAM([$1],
|
||||
[ call $2])])
|
||||
|
||||
@ -494,7 +494,7 @@ define([AC_LANG_CALL(Fortran 77)],
|
||||
# Find a compiler for the current LANG. Note that because we might
|
||||
# AC_REQUIRE `AC_LANG_COMPILER(C)' for instance, the latter must be
|
||||
# AC_DEFUN'd, not just define'd.
|
||||
define([AC_LANG_COMPILER],
|
||||
m4_define([AC_LANG_COMPILER],
|
||||
[_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])
|
||||
|
||||
|
||||
@ -518,7 +518,7 @@ AC_DEFUN([AC_REQUIRE_CPP],
|
||||
|
||||
# _AC_LANG_COMPILER_WORKS
|
||||
# -----------------------
|
||||
define([_AC_LANG_COMPILER_WORKS],
|
||||
m4_define([_AC_LANG_COMPILER_WORKS],
|
||||
[AC_MSG_CHECKING([whether the _AC_LANG compiler works])
|
||||
_AC_LINK_IFELSE([AC_LANG_PROGRAM()],
|
||||
[# FIXME: these cross compiler hacks should be removed for autoconf 3.0
|
||||
@ -546,7 +546,7 @@ AC_MSG_RESULT($cross_compiling)
|
||||
# _AC_LANG_COMPILER_GNU
|
||||
# ---------------------
|
||||
# Check whether the compiler for the current language is GNU.
|
||||
define([_AC_LANG_COMPILER_GNU],
|
||||
m4_define([_AC_LANG_COMPILER_GNU],
|
||||
[AC_CACHE_CHECK([whether we are using the GNU _AC_LANG compiler],
|
||||
[ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu],
|
||||
[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifndef __GNUC__
|
||||
@ -582,11 +582,11 @@ AC_DEFUN_ONCE([AC_NO_EXECUTABLES],
|
||||
AC_BEFORE([$0], [_AC_LANG_COMPILER_WORKS])
|
||||
AC_BEFORE([$0], [_AC_EXEEXT])
|
||||
|
||||
define([_AC_LANG_COMPILER_WORKS], [cross_compiling=maybe])
|
||||
m4_define([_AC_LANG_COMPILER_WORKS], [cross_compiling=maybe])
|
||||
|
||||
define([_AC_EXEEXT], [EXEEXT=])
|
||||
m4_define([_AC_EXEEXT], [EXEEXT=])
|
||||
|
||||
define([AC_LINK_IFELSE],
|
||||
m4_define([AC_LINK_IFELSE],
|
||||
[AC_FATAL([All the tests involving linking were disabled by $0])])
|
||||
|
||||
m4_divert_pop()dnl
|
||||
@ -725,7 +725,7 @@ AC_LANG_POP
|
||||
# Check whether -g works, even if CFLAGS is set, in case the package
|
||||
# plays around with CFLAGS (such as to build both debugging and normal
|
||||
# versions of a library), tasteless as that idea is.
|
||||
define([_AC_PROG_CC_G],
|
||||
m4_define([_AC_PROG_CC_G],
|
||||
[ac_test_CFLAGS=${CFLAGS+set}
|
||||
ac_save_CFLAGS=$CFLAGS
|
||||
CFLAGS="-g"
|
||||
@ -914,7 +914,7 @@ AC_LANG_POP
|
||||
# Check whether -g works, even if CXXFLAGS is set, in case the package
|
||||
# plays around with CXXFLAGS (such as to build both debugging and
|
||||
# normal versions of a library), tasteless as that idea is.
|
||||
define([_AC_PROG_CXX_G],
|
||||
m4_define([_AC_PROG_CXX_G],
|
||||
[ac_test_CXXFLAGS=${CXXFLAGS+set}
|
||||
ac_save_CXXFLAGS=$CXXFLAGS
|
||||
CXXFLAGS="-g"
|
||||
@ -999,7 +999,7 @@ AC_LANG_POP
|
||||
# Check whether -g works, even if FFLAGS is set, in case the package
|
||||
# plays around with FFLAGS (such as to build both debugging and normal
|
||||
# versions of a library), tasteless as that idea is.
|
||||
define([_AC_PROG_F77_G],
|
||||
m4_define([_AC_PROG_F77_G],
|
||||
[ac_test_FFLAGS=${FFLAGS+set}
|
||||
ac_save_FFLAGS=$FFLAGS
|
||||
FFLAGS=
|
||||
|
@ -64,7 +64,7 @@
|
||||
# has little interest.
|
||||
# Idea borrowed from dist 3.0. Use `*c*,', not `*c,' because if `\c'
|
||||
# failed there is also a new-line to match.
|
||||
define([_AC_PROG_ECHO],
|
||||
m4_define([_AC_PROG_ECHO],
|
||||
[case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
||||
*c*,-n*) ECHO_N= ECHO_C='
|
||||
' ECHO_T=' ' ;;
|
||||
@ -144,7 +144,7 @@ fi])
|
||||
# _AC_DECL_YYTEXT
|
||||
# ---------------
|
||||
# Check if lex declares yytext as a char * by default, not a char[].
|
||||
define([_AC_DECL_YYTEXT],
|
||||
m4_define([_AC_DECL_YYTEXT],
|
||||
[AC_REQUIRE_CPP()dnl
|
||||
AC_CACHE_CHECK(lex output file root, ac_cv_prog_lex_root,
|
||||
[# The minimal lex program is just a single line: %%. But some broken lexes
|
||||
@ -337,7 +337,7 @@ fi
|
||||
# -----------------------------------------------------------------
|
||||
# Like AC_CHECK_HEADER, except also make sure that HEADER-FILE
|
||||
# defines the type `DIR'. dirent.h on NextStep 3.2 doesn't.
|
||||
define([_AC_CHECK_HEADER_DIRENT],
|
||||
m4_define([_AC_CHECK_HEADER_DIRENT],
|
||||
[AC_VAR_PUSHDEF([ac_Header], [ac_cv_header_dirent_$1])dnl
|
||||
AC_CACHE_CHECK([for $1 that defines DIR], ac_Header,
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>
|
||||
@ -354,7 +354,7 @@ AC_VAR_POPDEF([ac_Header])dnl
|
||||
|
||||
# AH_CHECK_HEADERS_DIRENT(HEADERS...)
|
||||
# -----------------------------------
|
||||
define([AH_CHECK_HEADERS_DIRENT],
|
||||
m4_define([AH_CHECK_HEADERS_DIRENT],
|
||||
[AC_FOREACH([AC_Header], [$1],
|
||||
[AH_TEMPLATE(AC_TR_CPP(HAVE_[]AC_Header),
|
||||
[Define if you have the <]AC_Header[> header file, and
|
||||
@ -548,7 +548,7 @@ fi
|
||||
|
||||
# _AC_HEADER_TIOCGWINSZ_IN_TERMIOS_H
|
||||
# ----------------------------------
|
||||
define([_AC_HEADER_TIOCGWINSZ_IN_TERMIOS_H],
|
||||
m4_define([_AC_HEADER_TIOCGWINSZ_IN_TERMIOS_H],
|
||||
[AC_CACHE_CHECK([whether termios.h defines TIOCGWINSZ],
|
||||
ac_cv_sys_tiocgwinsz_in_termios_h,
|
||||
[AC_EGREP_CPP([yes],
|
||||
@ -565,7 +565,7 @@ define([_AC_HEADER_TIOCGWINSZ_IN_TERMIOS_H],
|
||||
|
||||
# _AC_HEADER_TIOCGWINSZ_IN_SYS_IOCTL
|
||||
# ----------------------------------
|
||||
define([_AC_HEADER_TIOCGWINSZ_IN_SYS_IOCTL],
|
||||
m4_define([_AC_HEADER_TIOCGWINSZ_IN_SYS_IOCTL],
|
||||
[AC_CACHE_CHECK([whether sys/ioctl.h defines TIOCGWINSZ],
|
||||
ac_cv_sys_tiocgwinsz_in_sys_ioctl_h,
|
||||
[AC_EGREP_CPP([yes],
|
||||
@ -971,7 +971,7 @@ with arguments. Remove this warning when you adjust your code.])])
|
||||
|
||||
# _AC_SYS_LARGEFILE_SOURCE(PROLOGUE, BODY)
|
||||
# ----------------------------------------
|
||||
define([_AC_SYS_LARGEFILE_SOURCE],
|
||||
m4_define([_AC_SYS_LARGEFILE_SOURCE],
|
||||
[AC_LANG_PROGRAM(
|
||||
[$1
|
||||
@%:@include <sys/types.h>
|
||||
@ -984,7 +984,7 @@ int a[[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]];],
|
||||
# DESCRIPTION,
|
||||
# [INCLUDES], [FUNCTION-BODY])
|
||||
# ----------------------------------------------------------
|
||||
define([_AC_SYS_LARGEFILE_MACRO_VALUE],
|
||||
m4_define([_AC_SYS_LARGEFILE_MACRO_VALUE],
|
||||
[AC_CACHE_CHECK([for $1 value needed for large files], [$3],
|
||||
[while :; do
|
||||
$3=no
|
||||
@ -1247,7 +1247,7 @@ fi
|
||||
# ----------------
|
||||
# Internal subroutine of AC_PATH_X.
|
||||
# Set ac_x_includes and/or ac_x_libraries.
|
||||
define([_AC_PATH_X_XMKMF],
|
||||
m4_define([_AC_PATH_X_XMKMF],
|
||||
[rm -fr conftestdir
|
||||
if mkdir conftestdir; then
|
||||
cd conftestdir
|
||||
@ -1288,7 +1288,7 @@ fi
|
||||
# -----------------
|
||||
# Internal subroutine of AC_PATH_X.
|
||||
# Set ac_x_includes and/or ac_x_libraries.
|
||||
define([_AC_PATH_X_DIRECT],
|
||||
m4_define([_AC_PATH_X_DIRECT],
|
||||
[# Standard set of common directories for X headers.
|
||||
# Check X11 before X11Rn because it is often a symlink to the current release.
|
||||
ac_x_header_dirs='
|
||||
@ -1498,7 +1498,7 @@ AC_SUBST(X_EXTRA_LIBS)dnl
|
||||
# ----------
|
||||
# Check for Cygwin. This is a way to set the right value for
|
||||
# EXEEXT.
|
||||
define([_AC_CYGWIN],
|
||||
m4_define([_AC_CYGWIN],
|
||||
[AC_CACHE_CHECK(for Cygwin environment, ac_cv_cygwin,
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
|
||||
[#ifndef __CYGWIN__
|
||||
@ -1515,7 +1515,7 @@ test "$ac_cv_cygwin" = yes && CYGWIN=yes[]dnl
|
||||
# ----------
|
||||
# Check for EMX on OS/2. This is another way to set the right value
|
||||
# for EXEEXT.
|
||||
define([_AC_EMXOS2],
|
||||
m4_define([_AC_EMXOS2],
|
||||
[AC_CACHE_CHECK(for EMX OS/2 environment, ac_cv_emxos2,
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [return __EMX__;])],
|
||||
[ac_cv_emxos2=yes],
|
||||
@ -1528,7 +1528,7 @@ test "$ac_cv_emxos2" = yes && EMXOS2=yes[]dnl
|
||||
# -----------
|
||||
# Check for mingw32. This is another way to set the right value for
|
||||
# EXEEXT.
|
||||
define([_AC_MINGW32],
|
||||
m4_define([_AC_MINGW32],
|
||||
[AC_CACHE_CHECK(for mingw32 environment, ac_cv_mingw32,
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [return __MINGW32__;])],
|
||||
[ac_cv_mingw32=yes],
|
||||
@ -1558,7 +1558,7 @@ AC_DEFUN([AC_OBJEXT], [])
|
||||
# add .exe for Cygwin or mingw32. Otherwise, it compiles a test
|
||||
# executable. If this is called, the executable extensions will be
|
||||
# automatically used by link commands run by the configure script.
|
||||
define([_AC_EXEEXT],
|
||||
m4_define([_AC_EXEEXT],
|
||||
[AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
|
||||
[case "$CYGWIN $MINGW32 $EMXOS2" in
|
||||
*yes*) ac_cv_exeext=.exe ;;
|
||||
@ -1588,7 +1588,7 @@ AC_SUBST(EXEEXT)dnl
|
||||
# Check the object extension used by the compiler: typically .o or
|
||||
# .obj. If this is called, some other behaviour will change,
|
||||
# determined by ac_objext.
|
||||
define([_AC_OBJEXT],
|
||||
m4_define([_AC_OBJEXT],
|
||||
[AC_CACHE_CHECK([for object suffix], ac_cv_objext,
|
||||
[AC_LANG_CONFTEST([AC_LANG_PROGRAM()])
|
||||
if AC_TRY_EVAL(ac_compile); then
|
||||
|
@ -2,4 +2,4 @@
|
||||
# Version of Autoconf.
|
||||
# Copyright 1999, 2000 Free Software Foundation, Inc.
|
||||
|
||||
define([AC_ACVERSION], [@VERSION@])
|
||||
m4_define([AC_ACVERSION], [@VERSION@])
|
||||
|
@ -26,8 +26,6 @@ include(m4sugar.m4)# -*- Autoconf -*-
|
||||
|
||||
m4_include([m4sh.m4])
|
||||
|
||||
m4_copy_unm4([m4_define])
|
||||
|
||||
m4_include([acversion.m4])
|
||||
m4_include([acgeneral.m4])
|
||||
m4_include([aclang.m4])
|
||||
@ -36,12 +34,14 @@ m4_include([acspecific.m4])
|
||||
m4_include([acoldnames.m4])
|
||||
|
||||
# We discourage the use of the non prefixed macro names: M4sugar maps
|
||||
# them all into `m4_'. Autoconf has been converted to these names
|
||||
# too. But users may still depend upon these, so reestablish them.
|
||||
# all the builtins into `m4_'. Autoconf has been converted to these
|
||||
# names too. But users may still depend upon these, so reestablish
|
||||
# them.
|
||||
|
||||
m4_copy_unm4([m4_builtin])
|
||||
m4_copy_unm4([m4_changequote])
|
||||
m4_copy_unm4([m4_decr])
|
||||
m4_copy_unm4([m4_define])
|
||||
m4_copy_unm4([m4_defn])
|
||||
m4_copy_unm4([m4_incr])
|
||||
m4_copy_unm4([m4_index])
|
||||
|
@ -26,8 +26,6 @@ include(m4sugar.m4)# -*- Autoconf -*-
|
||||
|
||||
m4_include([m4sh.m4])
|
||||
|
||||
m4_copy_unm4([m4_define])
|
||||
|
||||
m4_include([acversion.m4])
|
||||
m4_include([acgeneral.m4])
|
||||
m4_include([aclang.m4])
|
||||
@ -36,12 +34,14 @@ m4_include([acspecific.m4])
|
||||
m4_include([acoldnames.m4])
|
||||
|
||||
# We discourage the use of the non prefixed macro names: M4sugar maps
|
||||
# them all into `m4_'. Autoconf has been converted to these names
|
||||
# too. But users may still depend upon these, so reestablish them.
|
||||
# all the builtins into `m4_'. Autoconf has been converted to these
|
||||
# names too. But users may still depend upon these, so reestablish
|
||||
# them.
|
||||
|
||||
m4_copy_unm4([m4_builtin])
|
||||
m4_copy_unm4([m4_changequote])
|
||||
m4_copy_unm4([m4_decr])
|
||||
m4_copy_unm4([m4_define])
|
||||
m4_copy_unm4([m4_defn])
|
||||
m4_copy_unm4([m4_incr])
|
||||
m4_copy_unm4([m4_index])
|
||||
|
@ -94,7 +94,7 @@
|
||||
# ------------------------------------------------------------
|
||||
# Expand into IF-LANG1 if the current language is LANG1 etc. else
|
||||
# into default.
|
||||
define([AC_LANG_CASE],
|
||||
m4_define([AC_LANG_CASE],
|
||||
[m4_case(_AC_LANG, $@)])
|
||||
|
||||
|
||||
@ -102,7 +102,7 @@ define([AC_LANG_CASE],
|
||||
# ------------------------------------
|
||||
# Call the specialization of MACRO for LANG with ARGS. Complain if
|
||||
# unavailable.
|
||||
define([_AC_LANG_DISPATCH],
|
||||
m4_define([_AC_LANG_DISPATCH],
|
||||
[ifdef([$1($2)],
|
||||
[m4_indir([$1($2)], m4_shiftn(2, $@))],
|
||||
[AC_FATAL([$1: unknown language: $2])])])
|
||||
@ -117,14 +117,14 @@ define([_AC_LANG_DISPATCH],
|
||||
# If you add quotes here, they will be part of the name too, yielding
|
||||
# `AC_LANG([C])' for instance, which does not exist.
|
||||
AC_DEFUN([AC_LANG],
|
||||
[define([_AC_LANG], [$1])dnl
|
||||
[m4_define([_AC_LANG], [$1])dnl
|
||||
_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])
|
||||
|
||||
|
||||
# AC_LANG_PUSH(LANG)
|
||||
# ------------------
|
||||
# Save the current language, and use LANG.
|
||||
define([AC_LANG_PUSH],
|
||||
m4_define([AC_LANG_PUSH],
|
||||
[m4_pushdef([_AC_LANG])dnl
|
||||
AC_LANG([$1])])
|
||||
|
||||
@ -132,7 +132,7 @@ AC_LANG([$1])])
|
||||
# AC_LANG_POP
|
||||
# -----------
|
||||
# Restore the previous language.
|
||||
define([AC_LANG_POP],
|
||||
m4_define([AC_LANG_POP],
|
||||
[m4_popdef([_AC_LANG])dnl
|
||||
ifelse(_AC_LANG, [_AC_LANG],
|
||||
[AC_FATAL([too many $0])])dnl
|
||||
@ -159,7 +159,7 @@ AU_DEFUN([AC_LANG_RESTORE], [AC_LANG_POP($@)])
|
||||
# ---------------
|
||||
# Return a short signature of _AC_LANG which can be used in shell
|
||||
# variable names, or in M4 macro names.
|
||||
define([_AC_LANG_ABBREV],
|
||||
m4_define([_AC_LANG_ABBREV],
|
||||
[_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])
|
||||
|
||||
|
||||
@ -171,7 +171,7 @@ define([_AC_LANG_ABBREV],
|
||||
# AC_LANG(C)
|
||||
# ----------
|
||||
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||
define([AC_LANG(C)],
|
||||
m4_define([AC_LANG(C)],
|
||||
[ac_ext=c
|
||||
ac_cpp='$CPP $CPPFLAGS'
|
||||
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
|
||||
@ -187,7 +187,7 @@ AU_DEFUN([AC_LANG_C], [AC_LANG(C)])
|
||||
|
||||
# _AC_LANG_ABBREV(C)
|
||||
# ------------------
|
||||
define([_AC_LANG_ABBREV(C)], [c])
|
||||
m4_define([_AC_LANG_ABBREV(C)], [c])
|
||||
|
||||
|
||||
# ---------------------- #
|
||||
@ -198,7 +198,7 @@ define([_AC_LANG_ABBREV(C)], [c])
|
||||
# AC_LANG(C++)
|
||||
# ------------
|
||||
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||
define([AC_LANG(C++)],
|
||||
m4_define([AC_LANG(C++)],
|
||||
[ac_ext=cc
|
||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
|
||||
@ -214,7 +214,7 @@ AU_DEFUN([AC_LANG_CPLUSPLUS], [AC_LANG(C++)])
|
||||
|
||||
# _AC_LANG_ABBREV(C++)
|
||||
# --------------------
|
||||
define([_AC_LANG_ABBREV(C++)], [cxx])
|
||||
m4_define([_AC_LANG_ABBREV(C++)], [cxx])
|
||||
|
||||
|
||||
# ----------------------------- #
|
||||
@ -224,7 +224,7 @@ define([_AC_LANG_ABBREV(C++)], [cxx])
|
||||
|
||||
# AC_LANG(Fortran 77)
|
||||
# -------------------
|
||||
define([AC_LANG(Fortran 77)],
|
||||
m4_define([AC_LANG(Fortran 77)],
|
||||
[ac_ext=f
|
||||
ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext >&AC_FD_LOG'
|
||||
ac_link='${F77-f77} -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
|
||||
@ -239,7 +239,7 @@ AU_DEFUN([AC_LANG_FORTRAN77], [AC_LANG(Fortran 77)])
|
||||
|
||||
# _AC_LANG_ABBREV(Fortran 77)
|
||||
# ---------------------------
|
||||
define([_AC_LANG_ABBREV(Fortran 77)], [f77])
|
||||
m4_define([_AC_LANG_ABBREV(Fortran 77)], [f77])
|
||||
|
||||
|
||||
|
||||
@ -256,7 +256,7 @@ define([_AC_LANG_ABBREV(Fortran 77)], [f77])
|
||||
# AC_LANG_CONFTEST(BODY)
|
||||
# ----------------------
|
||||
# Save the BODY in `conftest.$ac_ext'. Add a trailing new line.
|
||||
define([AC_LANG_CONFTEST],
|
||||
m4_define([AC_LANG_CONFTEST],
|
||||
[cat >conftest.$ac_ext <<_ACEOF
|
||||
$1
|
||||
_ACEOF])
|
||||
@ -319,7 +319,7 @@ AC_DEFUN([AC_LANG_INT_SAVE],
|
||||
# -----------------------
|
||||
# This sometimes fails to find confdefs.h, for some reason.
|
||||
# #line __oline__ "$[0]"
|
||||
define([AC_LANG_SOURCE(C)],
|
||||
m4_define([AC_LANG_SOURCE(C)],
|
||||
[#line __oline__ "configure"
|
||||
#include "confdefs.h"
|
||||
$1])
|
||||
@ -327,7 +327,7 @@ $1])
|
||||
|
||||
# AC_LANG_PROGRAM(C)([PROLOGUE], [BODY])
|
||||
# --------------------------------------
|
||||
define([AC_LANG_PROGRAM(C)],
|
||||
m4_define([AC_LANG_PROGRAM(C)],
|
||||
[$1
|
||||
int
|
||||
main ()
|
||||
@ -343,7 +343,7 @@ $2
|
||||
# AC_LANG_CALL(C)(PROLOGUE, FUNCTION)
|
||||
# -----------------------------------
|
||||
# Avoid conflicting decl of main.
|
||||
define([AC_LANG_CALL(C)],
|
||||
m4_define([AC_LANG_CALL(C)],
|
||||
[AC_LANG_PROGRAM([$1
|
||||
ifelse([$2], [main], ,
|
||||
[/* Override any gcc2 internal prototype to avoid an error. */
|
||||
@ -360,7 +360,7 @@ char $2 ();])], [$2 ();])])
|
||||
# Don't include <ctype.h> because on OSF/1 3.0 it includes
|
||||
# <sys/types.h> which includes <sys/select.h> which contains a
|
||||
# prototype for select. Similarly for bzero.
|
||||
define([AC_LANG_FUNC_LINK_TRY(C)],
|
||||
m4_define([AC_LANG_FUNC_LINK_TRY(C)],
|
||||
[AC_LANG_PROGRAM(
|
||||
[/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $1 (); below. */
|
||||
@ -387,7 +387,7 @@ f = $1;
|
||||
|
||||
# AC_LANG_BOOL_COMPILE_TRY(C)(PROLOGUE, EXPRESSION)
|
||||
# -------------------------------------------------
|
||||
define([AC_LANG_BOOL_COMPILE_TRY(C)],
|
||||
m4_define([AC_LANG_BOOL_COMPILE_TRY(C)],
|
||||
[AC_LANG_PROGRAM([$1], [int _array_ @<:@1 - 2 * !($2)@:>@])])
|
||||
|
||||
|
||||
@ -395,7 +395,7 @@ define([AC_LANG_BOOL_COMPILE_TRY(C)],
|
||||
# -----------------------------------------
|
||||
# We need `stdio.h' to open a `FILE', so the prologue defaults to the
|
||||
# inclusion of `stdio.h'.
|
||||
define([AC_LANG_INT_SAVE(C)],
|
||||
m4_define([AC_LANG_INT_SAVE(C)],
|
||||
[AC_LANG_PROGRAM([m4_default([$1], [@%:@include "stdio.h"])],
|
||||
[FILE *f = fopen ("conftestval", "w");
|
||||
if (!f)
|
||||
@ -409,7 +409,7 @@ fprintf (f, "%d\n", ($2));])])
|
||||
|
||||
# AC_LANG_SOURCE(C++)(BODY)
|
||||
# -------------------------
|
||||
define([AC_LANG_SOURCE(C++)],
|
||||
m4_define([AC_LANG_SOURCE(C++)],
|
||||
[#line __oline__ "configure"
|
||||
#include "confdefs.h"
|
||||
#ifdef __cplusplus
|
||||
@ -421,31 +421,31 @@ $1])
|
||||
# AC_LANG_PROGRAM(C++)([PROLOGUE], [BODY])
|
||||
# ----------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_PROGRAM(C++)], m4_defn([AC_LANG_PROGRAM(C)]))
|
||||
m4_define([AC_LANG_PROGRAM(C++)], m4_defn([AC_LANG_PROGRAM(C)]))
|
||||
|
||||
|
||||
# AC_LANG_CALL(C++)(PROLOGUE, FUNCTION)
|
||||
# -------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_CALL(C++)], m4_defn([AC_LANG_CALL(C)]))
|
||||
m4_define([AC_LANG_CALL(C++)], m4_defn([AC_LANG_CALL(C)]))
|
||||
|
||||
|
||||
# AC_LANG_FUNC_LINK_TRY(C++)(FUNCTION)
|
||||
# ------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_FUNC_LINK_TRY(C++)], m4_defn([AC_LANG_FUNC_LINK_TRY(C)]))
|
||||
m4_define([AC_LANG_FUNC_LINK_TRY(C++)], m4_defn([AC_LANG_FUNC_LINK_TRY(C)]))
|
||||
|
||||
|
||||
# AC_LANG_BOOL_COMPILE_TRY(C++)(PROLOGUE, EXPRESSION)
|
||||
# ---------------------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_BOOL_COMPILE_TRY(C++)], m4_defn([AC_LANG_BOOL_COMPILE_TRY(C)]))
|
||||
m4_define([AC_LANG_BOOL_COMPILE_TRY(C++)], m4_defn([AC_LANG_BOOL_COMPILE_TRY(C)]))
|
||||
|
||||
|
||||
# AC_LANG_INT_SAVE(C++)(PROLOGUE, EXPRESSION)
|
||||
# -------------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_INT_SAVE(C++)], m4_defn([AC_LANG_INT_SAVE(C)]))
|
||||
m4_define([AC_LANG_INT_SAVE(C++)], m4_defn([AC_LANG_INT_SAVE(C)]))
|
||||
|
||||
|
||||
|
||||
@ -458,14 +458,14 @@ define([AC_LANG_INT_SAVE(C++)], m4_defn([AC_LANG_INT_SAVE(C)]))
|
||||
# FIXME: Apparently, according to former AC_TRY_COMPILER, the CPP
|
||||
# directives must not be included. But AC_TRY_RUN_NATIVE was not
|
||||
# avoiding them, so?
|
||||
define([AC_LANG_SOURCE(Fortran 77)],
|
||||
m4_define([AC_LANG_SOURCE(Fortran 77)],
|
||||
[$1])
|
||||
|
||||
|
||||
# AC_LANG_PROGRAM(Fortran 77)([PROLOGUE], [BODY])
|
||||
# -----------------------------------------------
|
||||
# Yes, we discard the PROLOGUE.
|
||||
define([AC_LANG_PROGRAM(Fortran 77)],
|
||||
m4_define([AC_LANG_PROGRAM(Fortran 77)],
|
||||
[ program main
|
||||
$2
|
||||
end])
|
||||
@ -474,7 +474,7 @@ $2
|
||||
# AC_LANG_CALL(Fortran 77)(PROLOGUE, FUNCTION)
|
||||
# --------------------------------------------
|
||||
# FIXME: This is a guess, help!
|
||||
define([AC_LANG_CALL(Fortran 77)],
|
||||
m4_define([AC_LANG_CALL(Fortran 77)],
|
||||
[AC_LANG_PROGRAM([$1],
|
||||
[ call $2])])
|
||||
|
||||
@ -494,7 +494,7 @@ define([AC_LANG_CALL(Fortran 77)],
|
||||
# Find a compiler for the current LANG. Note that because we might
|
||||
# AC_REQUIRE `AC_LANG_COMPILER(C)' for instance, the latter must be
|
||||
# AC_DEFUN'd, not just define'd.
|
||||
define([AC_LANG_COMPILER],
|
||||
m4_define([AC_LANG_COMPILER],
|
||||
[_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])
|
||||
|
||||
|
||||
@ -518,7 +518,7 @@ AC_DEFUN([AC_REQUIRE_CPP],
|
||||
|
||||
# _AC_LANG_COMPILER_WORKS
|
||||
# -----------------------
|
||||
define([_AC_LANG_COMPILER_WORKS],
|
||||
m4_define([_AC_LANG_COMPILER_WORKS],
|
||||
[AC_MSG_CHECKING([whether the _AC_LANG compiler works])
|
||||
_AC_LINK_IFELSE([AC_LANG_PROGRAM()],
|
||||
[# FIXME: these cross compiler hacks should be removed for autoconf 3.0
|
||||
@ -546,7 +546,7 @@ AC_MSG_RESULT($cross_compiling)
|
||||
# _AC_LANG_COMPILER_GNU
|
||||
# ---------------------
|
||||
# Check whether the compiler for the current language is GNU.
|
||||
define([_AC_LANG_COMPILER_GNU],
|
||||
m4_define([_AC_LANG_COMPILER_GNU],
|
||||
[AC_CACHE_CHECK([whether we are using the GNU _AC_LANG compiler],
|
||||
[ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu],
|
||||
[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifndef __GNUC__
|
||||
@ -582,11 +582,11 @@ AC_DEFUN_ONCE([AC_NO_EXECUTABLES],
|
||||
AC_BEFORE([$0], [_AC_LANG_COMPILER_WORKS])
|
||||
AC_BEFORE([$0], [_AC_EXEEXT])
|
||||
|
||||
define([_AC_LANG_COMPILER_WORKS], [cross_compiling=maybe])
|
||||
m4_define([_AC_LANG_COMPILER_WORKS], [cross_compiling=maybe])
|
||||
|
||||
define([_AC_EXEEXT], [EXEEXT=])
|
||||
m4_define([_AC_EXEEXT], [EXEEXT=])
|
||||
|
||||
define([AC_LINK_IFELSE],
|
||||
m4_define([AC_LINK_IFELSE],
|
||||
[AC_FATAL([All the tests involving linking were disabled by $0])])
|
||||
|
||||
m4_divert_pop()dnl
|
||||
@ -725,7 +725,7 @@ AC_LANG_POP
|
||||
# Check whether -g works, even if CFLAGS is set, in case the package
|
||||
# plays around with CFLAGS (such as to build both debugging and normal
|
||||
# versions of a library), tasteless as that idea is.
|
||||
define([_AC_PROG_CC_G],
|
||||
m4_define([_AC_PROG_CC_G],
|
||||
[ac_test_CFLAGS=${CFLAGS+set}
|
||||
ac_save_CFLAGS=$CFLAGS
|
||||
CFLAGS="-g"
|
||||
@ -914,7 +914,7 @@ AC_LANG_POP
|
||||
# Check whether -g works, even if CXXFLAGS is set, in case the package
|
||||
# plays around with CXXFLAGS (such as to build both debugging and
|
||||
# normal versions of a library), tasteless as that idea is.
|
||||
define([_AC_PROG_CXX_G],
|
||||
m4_define([_AC_PROG_CXX_G],
|
||||
[ac_test_CXXFLAGS=${CXXFLAGS+set}
|
||||
ac_save_CXXFLAGS=$CXXFLAGS
|
||||
CXXFLAGS="-g"
|
||||
@ -999,7 +999,7 @@ AC_LANG_POP
|
||||
# Check whether -g works, even if FFLAGS is set, in case the package
|
||||
# plays around with FFLAGS (such as to build both debugging and normal
|
||||
# versions of a library), tasteless as that idea is.
|
||||
define([_AC_PROG_F77_G],
|
||||
m4_define([_AC_PROG_F77_G],
|
||||
[ac_test_FFLAGS=${FFLAGS+set}
|
||||
ac_save_FFLAGS=$FFLAGS
|
||||
FFLAGS=
|
||||
|
@ -94,7 +94,7 @@
|
||||
# ------------------------------------------------------------
|
||||
# Expand into IF-LANG1 if the current language is LANG1 etc. else
|
||||
# into default.
|
||||
define([AC_LANG_CASE],
|
||||
m4_define([AC_LANG_CASE],
|
||||
[m4_case(_AC_LANG, $@)])
|
||||
|
||||
|
||||
@ -102,7 +102,7 @@ define([AC_LANG_CASE],
|
||||
# ------------------------------------
|
||||
# Call the specialization of MACRO for LANG with ARGS. Complain if
|
||||
# unavailable.
|
||||
define([_AC_LANG_DISPATCH],
|
||||
m4_define([_AC_LANG_DISPATCH],
|
||||
[ifdef([$1($2)],
|
||||
[m4_indir([$1($2)], m4_shiftn(2, $@))],
|
||||
[AC_FATAL([$1: unknown language: $2])])])
|
||||
@ -117,14 +117,14 @@ define([_AC_LANG_DISPATCH],
|
||||
# If you add quotes here, they will be part of the name too, yielding
|
||||
# `AC_LANG([C])' for instance, which does not exist.
|
||||
AC_DEFUN([AC_LANG],
|
||||
[define([_AC_LANG], [$1])dnl
|
||||
[m4_define([_AC_LANG], [$1])dnl
|
||||
_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])
|
||||
|
||||
|
||||
# AC_LANG_PUSH(LANG)
|
||||
# ------------------
|
||||
# Save the current language, and use LANG.
|
||||
define([AC_LANG_PUSH],
|
||||
m4_define([AC_LANG_PUSH],
|
||||
[m4_pushdef([_AC_LANG])dnl
|
||||
AC_LANG([$1])])
|
||||
|
||||
@ -132,7 +132,7 @@ AC_LANG([$1])])
|
||||
# AC_LANG_POP
|
||||
# -----------
|
||||
# Restore the previous language.
|
||||
define([AC_LANG_POP],
|
||||
m4_define([AC_LANG_POP],
|
||||
[m4_popdef([_AC_LANG])dnl
|
||||
ifelse(_AC_LANG, [_AC_LANG],
|
||||
[AC_FATAL([too many $0])])dnl
|
||||
@ -159,7 +159,7 @@ AU_DEFUN([AC_LANG_RESTORE], [AC_LANG_POP($@)])
|
||||
# ---------------
|
||||
# Return a short signature of _AC_LANG which can be used in shell
|
||||
# variable names, or in M4 macro names.
|
||||
define([_AC_LANG_ABBREV],
|
||||
m4_define([_AC_LANG_ABBREV],
|
||||
[_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])
|
||||
|
||||
|
||||
@ -171,7 +171,7 @@ define([_AC_LANG_ABBREV],
|
||||
# AC_LANG(C)
|
||||
# ----------
|
||||
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||
define([AC_LANG(C)],
|
||||
m4_define([AC_LANG(C)],
|
||||
[ac_ext=c
|
||||
ac_cpp='$CPP $CPPFLAGS'
|
||||
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
|
||||
@ -187,7 +187,7 @@ AU_DEFUN([AC_LANG_C], [AC_LANG(C)])
|
||||
|
||||
# _AC_LANG_ABBREV(C)
|
||||
# ------------------
|
||||
define([_AC_LANG_ABBREV(C)], [c])
|
||||
m4_define([_AC_LANG_ABBREV(C)], [c])
|
||||
|
||||
|
||||
# ---------------------- #
|
||||
@ -198,7 +198,7 @@ define([_AC_LANG_ABBREV(C)], [c])
|
||||
# AC_LANG(C++)
|
||||
# ------------
|
||||
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||
define([AC_LANG(C++)],
|
||||
m4_define([AC_LANG(C++)],
|
||||
[ac_ext=cc
|
||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
|
||||
@ -214,7 +214,7 @@ AU_DEFUN([AC_LANG_CPLUSPLUS], [AC_LANG(C++)])
|
||||
|
||||
# _AC_LANG_ABBREV(C++)
|
||||
# --------------------
|
||||
define([_AC_LANG_ABBREV(C++)], [cxx])
|
||||
m4_define([_AC_LANG_ABBREV(C++)], [cxx])
|
||||
|
||||
|
||||
# ----------------------------- #
|
||||
@ -224,7 +224,7 @@ define([_AC_LANG_ABBREV(C++)], [cxx])
|
||||
|
||||
# AC_LANG(Fortran 77)
|
||||
# -------------------
|
||||
define([AC_LANG(Fortran 77)],
|
||||
m4_define([AC_LANG(Fortran 77)],
|
||||
[ac_ext=f
|
||||
ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext >&AC_FD_LOG'
|
||||
ac_link='${F77-f77} -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
|
||||
@ -239,7 +239,7 @@ AU_DEFUN([AC_LANG_FORTRAN77], [AC_LANG(Fortran 77)])
|
||||
|
||||
# _AC_LANG_ABBREV(Fortran 77)
|
||||
# ---------------------------
|
||||
define([_AC_LANG_ABBREV(Fortran 77)], [f77])
|
||||
m4_define([_AC_LANG_ABBREV(Fortran 77)], [f77])
|
||||
|
||||
|
||||
|
||||
@ -256,7 +256,7 @@ define([_AC_LANG_ABBREV(Fortran 77)], [f77])
|
||||
# AC_LANG_CONFTEST(BODY)
|
||||
# ----------------------
|
||||
# Save the BODY in `conftest.$ac_ext'. Add a trailing new line.
|
||||
define([AC_LANG_CONFTEST],
|
||||
m4_define([AC_LANG_CONFTEST],
|
||||
[cat >conftest.$ac_ext <<_ACEOF
|
||||
$1
|
||||
_ACEOF])
|
||||
@ -319,7 +319,7 @@ AC_DEFUN([AC_LANG_INT_SAVE],
|
||||
# -----------------------
|
||||
# This sometimes fails to find confdefs.h, for some reason.
|
||||
# #line __oline__ "$[0]"
|
||||
define([AC_LANG_SOURCE(C)],
|
||||
m4_define([AC_LANG_SOURCE(C)],
|
||||
[#line __oline__ "configure"
|
||||
#include "confdefs.h"
|
||||
$1])
|
||||
@ -327,7 +327,7 @@ $1])
|
||||
|
||||
# AC_LANG_PROGRAM(C)([PROLOGUE], [BODY])
|
||||
# --------------------------------------
|
||||
define([AC_LANG_PROGRAM(C)],
|
||||
m4_define([AC_LANG_PROGRAM(C)],
|
||||
[$1
|
||||
int
|
||||
main ()
|
||||
@ -343,7 +343,7 @@ $2
|
||||
# AC_LANG_CALL(C)(PROLOGUE, FUNCTION)
|
||||
# -----------------------------------
|
||||
# Avoid conflicting decl of main.
|
||||
define([AC_LANG_CALL(C)],
|
||||
m4_define([AC_LANG_CALL(C)],
|
||||
[AC_LANG_PROGRAM([$1
|
||||
ifelse([$2], [main], ,
|
||||
[/* Override any gcc2 internal prototype to avoid an error. */
|
||||
@ -360,7 +360,7 @@ char $2 ();])], [$2 ();])])
|
||||
# Don't include <ctype.h> because on OSF/1 3.0 it includes
|
||||
# <sys/types.h> which includes <sys/select.h> which contains a
|
||||
# prototype for select. Similarly for bzero.
|
||||
define([AC_LANG_FUNC_LINK_TRY(C)],
|
||||
m4_define([AC_LANG_FUNC_LINK_TRY(C)],
|
||||
[AC_LANG_PROGRAM(
|
||||
[/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $1 (); below. */
|
||||
@ -387,7 +387,7 @@ f = $1;
|
||||
|
||||
# AC_LANG_BOOL_COMPILE_TRY(C)(PROLOGUE, EXPRESSION)
|
||||
# -------------------------------------------------
|
||||
define([AC_LANG_BOOL_COMPILE_TRY(C)],
|
||||
m4_define([AC_LANG_BOOL_COMPILE_TRY(C)],
|
||||
[AC_LANG_PROGRAM([$1], [int _array_ @<:@1 - 2 * !($2)@:>@])])
|
||||
|
||||
|
||||
@ -395,7 +395,7 @@ define([AC_LANG_BOOL_COMPILE_TRY(C)],
|
||||
# -----------------------------------------
|
||||
# We need `stdio.h' to open a `FILE', so the prologue defaults to the
|
||||
# inclusion of `stdio.h'.
|
||||
define([AC_LANG_INT_SAVE(C)],
|
||||
m4_define([AC_LANG_INT_SAVE(C)],
|
||||
[AC_LANG_PROGRAM([m4_default([$1], [@%:@include "stdio.h"])],
|
||||
[FILE *f = fopen ("conftestval", "w");
|
||||
if (!f)
|
||||
@ -409,7 +409,7 @@ fprintf (f, "%d\n", ($2));])])
|
||||
|
||||
# AC_LANG_SOURCE(C++)(BODY)
|
||||
# -------------------------
|
||||
define([AC_LANG_SOURCE(C++)],
|
||||
m4_define([AC_LANG_SOURCE(C++)],
|
||||
[#line __oline__ "configure"
|
||||
#include "confdefs.h"
|
||||
#ifdef __cplusplus
|
||||
@ -421,31 +421,31 @@ $1])
|
||||
# AC_LANG_PROGRAM(C++)([PROLOGUE], [BODY])
|
||||
# ----------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_PROGRAM(C++)], m4_defn([AC_LANG_PROGRAM(C)]))
|
||||
m4_define([AC_LANG_PROGRAM(C++)], m4_defn([AC_LANG_PROGRAM(C)]))
|
||||
|
||||
|
||||
# AC_LANG_CALL(C++)(PROLOGUE, FUNCTION)
|
||||
# -------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_CALL(C++)], m4_defn([AC_LANG_CALL(C)]))
|
||||
m4_define([AC_LANG_CALL(C++)], m4_defn([AC_LANG_CALL(C)]))
|
||||
|
||||
|
||||
# AC_LANG_FUNC_LINK_TRY(C++)(FUNCTION)
|
||||
# ------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_FUNC_LINK_TRY(C++)], m4_defn([AC_LANG_FUNC_LINK_TRY(C)]))
|
||||
m4_define([AC_LANG_FUNC_LINK_TRY(C++)], m4_defn([AC_LANG_FUNC_LINK_TRY(C)]))
|
||||
|
||||
|
||||
# AC_LANG_BOOL_COMPILE_TRY(C++)(PROLOGUE, EXPRESSION)
|
||||
# ---------------------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_BOOL_COMPILE_TRY(C++)], m4_defn([AC_LANG_BOOL_COMPILE_TRY(C)]))
|
||||
m4_define([AC_LANG_BOOL_COMPILE_TRY(C++)], m4_defn([AC_LANG_BOOL_COMPILE_TRY(C)]))
|
||||
|
||||
|
||||
# AC_LANG_INT_SAVE(C++)(PROLOGUE, EXPRESSION)
|
||||
# -------------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_INT_SAVE(C++)], m4_defn([AC_LANG_INT_SAVE(C)]))
|
||||
m4_define([AC_LANG_INT_SAVE(C++)], m4_defn([AC_LANG_INT_SAVE(C)]))
|
||||
|
||||
|
||||
|
||||
@ -458,14 +458,14 @@ define([AC_LANG_INT_SAVE(C++)], m4_defn([AC_LANG_INT_SAVE(C)]))
|
||||
# FIXME: Apparently, according to former AC_TRY_COMPILER, the CPP
|
||||
# directives must not be included. But AC_TRY_RUN_NATIVE was not
|
||||
# avoiding them, so?
|
||||
define([AC_LANG_SOURCE(Fortran 77)],
|
||||
m4_define([AC_LANG_SOURCE(Fortran 77)],
|
||||
[$1])
|
||||
|
||||
|
||||
# AC_LANG_PROGRAM(Fortran 77)([PROLOGUE], [BODY])
|
||||
# -----------------------------------------------
|
||||
# Yes, we discard the PROLOGUE.
|
||||
define([AC_LANG_PROGRAM(Fortran 77)],
|
||||
m4_define([AC_LANG_PROGRAM(Fortran 77)],
|
||||
[ program main
|
||||
$2
|
||||
end])
|
||||
@ -474,7 +474,7 @@ $2
|
||||
# AC_LANG_CALL(Fortran 77)(PROLOGUE, FUNCTION)
|
||||
# --------------------------------------------
|
||||
# FIXME: This is a guess, help!
|
||||
define([AC_LANG_CALL(Fortran 77)],
|
||||
m4_define([AC_LANG_CALL(Fortran 77)],
|
||||
[AC_LANG_PROGRAM([$1],
|
||||
[ call $2])])
|
||||
|
||||
@ -494,7 +494,7 @@ define([AC_LANG_CALL(Fortran 77)],
|
||||
# Find a compiler for the current LANG. Note that because we might
|
||||
# AC_REQUIRE `AC_LANG_COMPILER(C)' for instance, the latter must be
|
||||
# AC_DEFUN'd, not just define'd.
|
||||
define([AC_LANG_COMPILER],
|
||||
m4_define([AC_LANG_COMPILER],
|
||||
[_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])
|
||||
|
||||
|
||||
@ -518,7 +518,7 @@ AC_DEFUN([AC_REQUIRE_CPP],
|
||||
|
||||
# _AC_LANG_COMPILER_WORKS
|
||||
# -----------------------
|
||||
define([_AC_LANG_COMPILER_WORKS],
|
||||
m4_define([_AC_LANG_COMPILER_WORKS],
|
||||
[AC_MSG_CHECKING([whether the _AC_LANG compiler works])
|
||||
_AC_LINK_IFELSE([AC_LANG_PROGRAM()],
|
||||
[# FIXME: these cross compiler hacks should be removed for autoconf 3.0
|
||||
@ -546,7 +546,7 @@ AC_MSG_RESULT($cross_compiling)
|
||||
# _AC_LANG_COMPILER_GNU
|
||||
# ---------------------
|
||||
# Check whether the compiler for the current language is GNU.
|
||||
define([_AC_LANG_COMPILER_GNU],
|
||||
m4_define([_AC_LANG_COMPILER_GNU],
|
||||
[AC_CACHE_CHECK([whether we are using the GNU _AC_LANG compiler],
|
||||
[ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu],
|
||||
[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifndef __GNUC__
|
||||
@ -582,11 +582,11 @@ AC_DEFUN_ONCE([AC_NO_EXECUTABLES],
|
||||
AC_BEFORE([$0], [_AC_LANG_COMPILER_WORKS])
|
||||
AC_BEFORE([$0], [_AC_EXEEXT])
|
||||
|
||||
define([_AC_LANG_COMPILER_WORKS], [cross_compiling=maybe])
|
||||
m4_define([_AC_LANG_COMPILER_WORKS], [cross_compiling=maybe])
|
||||
|
||||
define([_AC_EXEEXT], [EXEEXT=])
|
||||
m4_define([_AC_EXEEXT], [EXEEXT=])
|
||||
|
||||
define([AC_LINK_IFELSE],
|
||||
m4_define([AC_LINK_IFELSE],
|
||||
[AC_FATAL([All the tests involving linking were disabled by $0])])
|
||||
|
||||
m4_divert_pop()dnl
|
||||
@ -725,7 +725,7 @@ AC_LANG_POP
|
||||
# Check whether -g works, even if CFLAGS is set, in case the package
|
||||
# plays around with CFLAGS (such as to build both debugging and normal
|
||||
# versions of a library), tasteless as that idea is.
|
||||
define([_AC_PROG_CC_G],
|
||||
m4_define([_AC_PROG_CC_G],
|
||||
[ac_test_CFLAGS=${CFLAGS+set}
|
||||
ac_save_CFLAGS=$CFLAGS
|
||||
CFLAGS="-g"
|
||||
@ -914,7 +914,7 @@ AC_LANG_POP
|
||||
# Check whether -g works, even if CXXFLAGS is set, in case the package
|
||||
# plays around with CXXFLAGS (such as to build both debugging and
|
||||
# normal versions of a library), tasteless as that idea is.
|
||||
define([_AC_PROG_CXX_G],
|
||||
m4_define([_AC_PROG_CXX_G],
|
||||
[ac_test_CXXFLAGS=${CXXFLAGS+set}
|
||||
ac_save_CXXFLAGS=$CXXFLAGS
|
||||
CXXFLAGS="-g"
|
||||
@ -999,7 +999,7 @@ AC_LANG_POP
|
||||
# Check whether -g works, even if FFLAGS is set, in case the package
|
||||
# plays around with FFLAGS (such as to build both debugging and normal
|
||||
# versions of a library), tasteless as that idea is.
|
||||
define([_AC_PROG_F77_G],
|
||||
m4_define([_AC_PROG_F77_G],
|
||||
[ac_test_FFLAGS=${FFLAGS+set}
|
||||
ac_save_FFLAGS=$FFLAGS
|
||||
FFLAGS=
|
||||
|
@ -131,7 +131,7 @@ AU_ALIAS([AC_HAVE_FUNCS], [AC_CHECK_FUNCS])
|
||||
# Set up the LIBOBJ replacement of `alloca'. Well, not exactly
|
||||
# AC_LIBOBJ since we actually set the output variable `ALLOCA'.
|
||||
# Nevertheless, for Automake, AC_LIBOBJ_DECL it.
|
||||
define([_AC_LIBOBJ_ALLOCA],
|
||||
m4_define([_AC_LIBOBJ_ALLOCA],
|
||||
[# The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
||||
# that cause trouble. Some versions do not even contain alloca or
|
||||
# contain a buggy version. If you still want to use their alloca,
|
||||
@ -420,7 +420,7 @@ LIBS=$ac_save_LIBS
|
||||
# _AC_LIBOBJ_GETLOADAVG
|
||||
# ---------------------
|
||||
# Set up the AC_LIBOBJ replacement of `getloadavg'.
|
||||
define([_AC_LIBOBJ_GETLOADAVG],
|
||||
m4_define([_AC_LIBOBJ_GETLOADAVG],
|
||||
[AC_LIBOBJ(getloadavg)
|
||||
AC_DEFINE(C_GETLOADAVG, 1, [Define if using `getloadavg.c'.])
|
||||
# Figure out what our getloadavg.c needs.
|
||||
@ -1183,7 +1183,7 @@ fi
|
||||
# If it does, then define HAVE_STAT_EMPTY_STRING_BUG (or
|
||||
# HAVE_LSTAT_EMPTY_STRING_BUG) and arrange to compile the wrapper
|
||||
# function.
|
||||
define([_AC_FUNC_STAT],
|
||||
m4_define([_AC_FUNC_STAT],
|
||||
[AC_REQUIRE([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])dnl
|
||||
AC_CACHE_CHECK([whether $1 accepts an empty string],
|
||||
[ac_cv_func_$1_empty_string_bug],
|
||||
@ -1217,7 +1217,7 @@ AC_DEFUN([AC_FUNC_LSTAT], [_AC_FUNC_STAT(lstat)])
|
||||
|
||||
# _AC_LIBOBJ_STRTOD
|
||||
# -----------------
|
||||
define([_AC_LIBOBJ_STRTOD],
|
||||
m4_define([_AC_LIBOBJ_STRTOD],
|
||||
[AC_LIBOBJ(strtod)
|
||||
AC_CHECK_FUNC(pow)
|
||||
if test $ac_cv_func_pow = no; then
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -94,7 +94,7 @@
|
||||
# ------------------------------------------------------------
|
||||
# Expand into IF-LANG1 if the current language is LANG1 etc. else
|
||||
# into default.
|
||||
define([AC_LANG_CASE],
|
||||
m4_define([AC_LANG_CASE],
|
||||
[m4_case(_AC_LANG, $@)])
|
||||
|
||||
|
||||
@ -102,7 +102,7 @@ define([AC_LANG_CASE],
|
||||
# ------------------------------------
|
||||
# Call the specialization of MACRO for LANG with ARGS. Complain if
|
||||
# unavailable.
|
||||
define([_AC_LANG_DISPATCH],
|
||||
m4_define([_AC_LANG_DISPATCH],
|
||||
[ifdef([$1($2)],
|
||||
[m4_indir([$1($2)], m4_shiftn(2, $@))],
|
||||
[AC_FATAL([$1: unknown language: $2])])])
|
||||
@ -117,14 +117,14 @@ define([_AC_LANG_DISPATCH],
|
||||
# If you add quotes here, they will be part of the name too, yielding
|
||||
# `AC_LANG([C])' for instance, which does not exist.
|
||||
AC_DEFUN([AC_LANG],
|
||||
[define([_AC_LANG], [$1])dnl
|
||||
[m4_define([_AC_LANG], [$1])dnl
|
||||
_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])
|
||||
|
||||
|
||||
# AC_LANG_PUSH(LANG)
|
||||
# ------------------
|
||||
# Save the current language, and use LANG.
|
||||
define([AC_LANG_PUSH],
|
||||
m4_define([AC_LANG_PUSH],
|
||||
[m4_pushdef([_AC_LANG])dnl
|
||||
AC_LANG([$1])])
|
||||
|
||||
@ -132,7 +132,7 @@ AC_LANG([$1])])
|
||||
# AC_LANG_POP
|
||||
# -----------
|
||||
# Restore the previous language.
|
||||
define([AC_LANG_POP],
|
||||
m4_define([AC_LANG_POP],
|
||||
[m4_popdef([_AC_LANG])dnl
|
||||
ifelse(_AC_LANG, [_AC_LANG],
|
||||
[AC_FATAL([too many $0])])dnl
|
||||
@ -159,7 +159,7 @@ AU_DEFUN([AC_LANG_RESTORE], [AC_LANG_POP($@)])
|
||||
# ---------------
|
||||
# Return a short signature of _AC_LANG which can be used in shell
|
||||
# variable names, or in M4 macro names.
|
||||
define([_AC_LANG_ABBREV],
|
||||
m4_define([_AC_LANG_ABBREV],
|
||||
[_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])
|
||||
|
||||
|
||||
@ -171,7 +171,7 @@ define([_AC_LANG_ABBREV],
|
||||
# AC_LANG(C)
|
||||
# ----------
|
||||
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||
define([AC_LANG(C)],
|
||||
m4_define([AC_LANG(C)],
|
||||
[ac_ext=c
|
||||
ac_cpp='$CPP $CPPFLAGS'
|
||||
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
|
||||
@ -187,7 +187,7 @@ AU_DEFUN([AC_LANG_C], [AC_LANG(C)])
|
||||
|
||||
# _AC_LANG_ABBREV(C)
|
||||
# ------------------
|
||||
define([_AC_LANG_ABBREV(C)], [c])
|
||||
m4_define([_AC_LANG_ABBREV(C)], [c])
|
||||
|
||||
|
||||
# ---------------------- #
|
||||
@ -198,7 +198,7 @@ define([_AC_LANG_ABBREV(C)], [c])
|
||||
# AC_LANG(C++)
|
||||
# ------------
|
||||
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||
define([AC_LANG(C++)],
|
||||
m4_define([AC_LANG(C++)],
|
||||
[ac_ext=cc
|
||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
|
||||
@ -214,7 +214,7 @@ AU_DEFUN([AC_LANG_CPLUSPLUS], [AC_LANG(C++)])
|
||||
|
||||
# _AC_LANG_ABBREV(C++)
|
||||
# --------------------
|
||||
define([_AC_LANG_ABBREV(C++)], [cxx])
|
||||
m4_define([_AC_LANG_ABBREV(C++)], [cxx])
|
||||
|
||||
|
||||
# ----------------------------- #
|
||||
@ -224,7 +224,7 @@ define([_AC_LANG_ABBREV(C++)], [cxx])
|
||||
|
||||
# AC_LANG(Fortran 77)
|
||||
# -------------------
|
||||
define([AC_LANG(Fortran 77)],
|
||||
m4_define([AC_LANG(Fortran 77)],
|
||||
[ac_ext=f
|
||||
ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext >&AC_FD_LOG'
|
||||
ac_link='${F77-f77} -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
|
||||
@ -239,7 +239,7 @@ AU_DEFUN([AC_LANG_FORTRAN77], [AC_LANG(Fortran 77)])
|
||||
|
||||
# _AC_LANG_ABBREV(Fortran 77)
|
||||
# ---------------------------
|
||||
define([_AC_LANG_ABBREV(Fortran 77)], [f77])
|
||||
m4_define([_AC_LANG_ABBREV(Fortran 77)], [f77])
|
||||
|
||||
|
||||
|
||||
@ -256,7 +256,7 @@ define([_AC_LANG_ABBREV(Fortran 77)], [f77])
|
||||
# AC_LANG_CONFTEST(BODY)
|
||||
# ----------------------
|
||||
# Save the BODY in `conftest.$ac_ext'. Add a trailing new line.
|
||||
define([AC_LANG_CONFTEST],
|
||||
m4_define([AC_LANG_CONFTEST],
|
||||
[cat >conftest.$ac_ext <<_ACEOF
|
||||
$1
|
||||
_ACEOF])
|
||||
@ -319,7 +319,7 @@ AC_DEFUN([AC_LANG_INT_SAVE],
|
||||
# -----------------------
|
||||
# This sometimes fails to find confdefs.h, for some reason.
|
||||
# #line __oline__ "$[0]"
|
||||
define([AC_LANG_SOURCE(C)],
|
||||
m4_define([AC_LANG_SOURCE(C)],
|
||||
[#line __oline__ "configure"
|
||||
#include "confdefs.h"
|
||||
$1])
|
||||
@ -327,7 +327,7 @@ $1])
|
||||
|
||||
# AC_LANG_PROGRAM(C)([PROLOGUE], [BODY])
|
||||
# --------------------------------------
|
||||
define([AC_LANG_PROGRAM(C)],
|
||||
m4_define([AC_LANG_PROGRAM(C)],
|
||||
[$1
|
||||
int
|
||||
main ()
|
||||
@ -343,7 +343,7 @@ $2
|
||||
# AC_LANG_CALL(C)(PROLOGUE, FUNCTION)
|
||||
# -----------------------------------
|
||||
# Avoid conflicting decl of main.
|
||||
define([AC_LANG_CALL(C)],
|
||||
m4_define([AC_LANG_CALL(C)],
|
||||
[AC_LANG_PROGRAM([$1
|
||||
ifelse([$2], [main], ,
|
||||
[/* Override any gcc2 internal prototype to avoid an error. */
|
||||
@ -360,7 +360,7 @@ char $2 ();])], [$2 ();])])
|
||||
# Don't include <ctype.h> because on OSF/1 3.0 it includes
|
||||
# <sys/types.h> which includes <sys/select.h> which contains a
|
||||
# prototype for select. Similarly for bzero.
|
||||
define([AC_LANG_FUNC_LINK_TRY(C)],
|
||||
m4_define([AC_LANG_FUNC_LINK_TRY(C)],
|
||||
[AC_LANG_PROGRAM(
|
||||
[/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $1 (); below. */
|
||||
@ -387,7 +387,7 @@ f = $1;
|
||||
|
||||
# AC_LANG_BOOL_COMPILE_TRY(C)(PROLOGUE, EXPRESSION)
|
||||
# -------------------------------------------------
|
||||
define([AC_LANG_BOOL_COMPILE_TRY(C)],
|
||||
m4_define([AC_LANG_BOOL_COMPILE_TRY(C)],
|
||||
[AC_LANG_PROGRAM([$1], [int _array_ @<:@1 - 2 * !($2)@:>@])])
|
||||
|
||||
|
||||
@ -395,7 +395,7 @@ define([AC_LANG_BOOL_COMPILE_TRY(C)],
|
||||
# -----------------------------------------
|
||||
# We need `stdio.h' to open a `FILE', so the prologue defaults to the
|
||||
# inclusion of `stdio.h'.
|
||||
define([AC_LANG_INT_SAVE(C)],
|
||||
m4_define([AC_LANG_INT_SAVE(C)],
|
||||
[AC_LANG_PROGRAM([m4_default([$1], [@%:@include "stdio.h"])],
|
||||
[FILE *f = fopen ("conftestval", "w");
|
||||
if (!f)
|
||||
@ -409,7 +409,7 @@ fprintf (f, "%d\n", ($2));])])
|
||||
|
||||
# AC_LANG_SOURCE(C++)(BODY)
|
||||
# -------------------------
|
||||
define([AC_LANG_SOURCE(C++)],
|
||||
m4_define([AC_LANG_SOURCE(C++)],
|
||||
[#line __oline__ "configure"
|
||||
#include "confdefs.h"
|
||||
#ifdef __cplusplus
|
||||
@ -421,31 +421,31 @@ $1])
|
||||
# AC_LANG_PROGRAM(C++)([PROLOGUE], [BODY])
|
||||
# ----------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_PROGRAM(C++)], m4_defn([AC_LANG_PROGRAM(C)]))
|
||||
m4_define([AC_LANG_PROGRAM(C++)], m4_defn([AC_LANG_PROGRAM(C)]))
|
||||
|
||||
|
||||
# AC_LANG_CALL(C++)(PROLOGUE, FUNCTION)
|
||||
# -------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_CALL(C++)], m4_defn([AC_LANG_CALL(C)]))
|
||||
m4_define([AC_LANG_CALL(C++)], m4_defn([AC_LANG_CALL(C)]))
|
||||
|
||||
|
||||
# AC_LANG_FUNC_LINK_TRY(C++)(FUNCTION)
|
||||
# ------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_FUNC_LINK_TRY(C++)], m4_defn([AC_LANG_FUNC_LINK_TRY(C)]))
|
||||
m4_define([AC_LANG_FUNC_LINK_TRY(C++)], m4_defn([AC_LANG_FUNC_LINK_TRY(C)]))
|
||||
|
||||
|
||||
# AC_LANG_BOOL_COMPILE_TRY(C++)(PROLOGUE, EXPRESSION)
|
||||
# ---------------------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_BOOL_COMPILE_TRY(C++)], m4_defn([AC_LANG_BOOL_COMPILE_TRY(C)]))
|
||||
m4_define([AC_LANG_BOOL_COMPILE_TRY(C++)], m4_defn([AC_LANG_BOOL_COMPILE_TRY(C)]))
|
||||
|
||||
|
||||
# AC_LANG_INT_SAVE(C++)(PROLOGUE, EXPRESSION)
|
||||
# -------------------------------------------
|
||||
# Same as C.
|
||||
define([AC_LANG_INT_SAVE(C++)], m4_defn([AC_LANG_INT_SAVE(C)]))
|
||||
m4_define([AC_LANG_INT_SAVE(C++)], m4_defn([AC_LANG_INT_SAVE(C)]))
|
||||
|
||||
|
||||
|
||||
@ -458,14 +458,14 @@ define([AC_LANG_INT_SAVE(C++)], m4_defn([AC_LANG_INT_SAVE(C)]))
|
||||
# FIXME: Apparently, according to former AC_TRY_COMPILER, the CPP
|
||||
# directives must not be included. But AC_TRY_RUN_NATIVE was not
|
||||
# avoiding them, so?
|
||||
define([AC_LANG_SOURCE(Fortran 77)],
|
||||
m4_define([AC_LANG_SOURCE(Fortran 77)],
|
||||
[$1])
|
||||
|
||||
|
||||
# AC_LANG_PROGRAM(Fortran 77)([PROLOGUE], [BODY])
|
||||
# -----------------------------------------------
|
||||
# Yes, we discard the PROLOGUE.
|
||||
define([AC_LANG_PROGRAM(Fortran 77)],
|
||||
m4_define([AC_LANG_PROGRAM(Fortran 77)],
|
||||
[ program main
|
||||
$2
|
||||
end])
|
||||
@ -474,7 +474,7 @@ $2
|
||||
# AC_LANG_CALL(Fortran 77)(PROLOGUE, FUNCTION)
|
||||
# --------------------------------------------
|
||||
# FIXME: This is a guess, help!
|
||||
define([AC_LANG_CALL(Fortran 77)],
|
||||
m4_define([AC_LANG_CALL(Fortran 77)],
|
||||
[AC_LANG_PROGRAM([$1],
|
||||
[ call $2])])
|
||||
|
||||
@ -494,7 +494,7 @@ define([AC_LANG_CALL(Fortran 77)],
|
||||
# Find a compiler for the current LANG. Note that because we might
|
||||
# AC_REQUIRE `AC_LANG_COMPILER(C)' for instance, the latter must be
|
||||
# AC_DEFUN'd, not just define'd.
|
||||
define([AC_LANG_COMPILER],
|
||||
m4_define([AC_LANG_COMPILER],
|
||||
[_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])
|
||||
|
||||
|
||||
@ -518,7 +518,7 @@ AC_DEFUN([AC_REQUIRE_CPP],
|
||||
|
||||
# _AC_LANG_COMPILER_WORKS
|
||||
# -----------------------
|
||||
define([_AC_LANG_COMPILER_WORKS],
|
||||
m4_define([_AC_LANG_COMPILER_WORKS],
|
||||
[AC_MSG_CHECKING([whether the _AC_LANG compiler works])
|
||||
_AC_LINK_IFELSE([AC_LANG_PROGRAM()],
|
||||
[# FIXME: these cross compiler hacks should be removed for autoconf 3.0
|
||||
@ -546,7 +546,7 @@ AC_MSG_RESULT($cross_compiling)
|
||||
# _AC_LANG_COMPILER_GNU
|
||||
# ---------------------
|
||||
# Check whether the compiler for the current language is GNU.
|
||||
define([_AC_LANG_COMPILER_GNU],
|
||||
m4_define([_AC_LANG_COMPILER_GNU],
|
||||
[AC_CACHE_CHECK([whether we are using the GNU _AC_LANG compiler],
|
||||
[ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu],
|
||||
[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifndef __GNUC__
|
||||
@ -582,11 +582,11 @@ AC_DEFUN_ONCE([AC_NO_EXECUTABLES],
|
||||
AC_BEFORE([$0], [_AC_LANG_COMPILER_WORKS])
|
||||
AC_BEFORE([$0], [_AC_EXEEXT])
|
||||
|
||||
define([_AC_LANG_COMPILER_WORKS], [cross_compiling=maybe])
|
||||
m4_define([_AC_LANG_COMPILER_WORKS], [cross_compiling=maybe])
|
||||
|
||||
define([_AC_EXEEXT], [EXEEXT=])
|
||||
m4_define([_AC_EXEEXT], [EXEEXT=])
|
||||
|
||||
define([AC_LINK_IFELSE],
|
||||
m4_define([AC_LINK_IFELSE],
|
||||
[AC_FATAL([All the tests involving linking were disabled by $0])])
|
||||
|
||||
m4_divert_pop()dnl
|
||||
@ -725,7 +725,7 @@ AC_LANG_POP
|
||||
# Check whether -g works, even if CFLAGS is set, in case the package
|
||||
# plays around with CFLAGS (such as to build both debugging and normal
|
||||
# versions of a library), tasteless as that idea is.
|
||||
define([_AC_PROG_CC_G],
|
||||
m4_define([_AC_PROG_CC_G],
|
||||
[ac_test_CFLAGS=${CFLAGS+set}
|
||||
ac_save_CFLAGS=$CFLAGS
|
||||
CFLAGS="-g"
|
||||
@ -914,7 +914,7 @@ AC_LANG_POP
|
||||
# Check whether -g works, even if CXXFLAGS is set, in case the package
|
||||
# plays around with CXXFLAGS (such as to build both debugging and
|
||||
# normal versions of a library), tasteless as that idea is.
|
||||
define([_AC_PROG_CXX_G],
|
||||
m4_define([_AC_PROG_CXX_G],
|
||||
[ac_test_CXXFLAGS=${CXXFLAGS+set}
|
||||
ac_save_CXXFLAGS=$CXXFLAGS
|
||||
CXXFLAGS="-g"
|
||||
@ -999,7 +999,7 @@ AC_LANG_POP
|
||||
# Check whether -g works, even if FFLAGS is set, in case the package
|
||||
# plays around with FFLAGS (such as to build both debugging and normal
|
||||
# versions of a library), tasteless as that idea is.
|
||||
define([_AC_PROG_F77_G],
|
||||
m4_define([_AC_PROG_F77_G],
|
||||
[ac_test_FFLAGS=${FFLAGS+set}
|
||||
ac_save_FFLAGS=$FFLAGS
|
||||
FFLAGS=
|
||||
|
@ -64,7 +64,7 @@
|
||||
# has little interest.
|
||||
# Idea borrowed from dist 3.0. Use `*c*,', not `*c,' because if `\c'
|
||||
# failed there is also a new-line to match.
|
||||
define([_AC_PROG_ECHO],
|
||||
m4_define([_AC_PROG_ECHO],
|
||||
[case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
||||
*c*,-n*) ECHO_N= ECHO_C='
|
||||
' ECHO_T=' ' ;;
|
||||
@ -144,7 +144,7 @@ fi])
|
||||
# _AC_DECL_YYTEXT
|
||||
# ---------------
|
||||
# Check if lex declares yytext as a char * by default, not a char[].
|
||||
define([_AC_DECL_YYTEXT],
|
||||
m4_define([_AC_DECL_YYTEXT],
|
||||
[AC_REQUIRE_CPP()dnl
|
||||
AC_CACHE_CHECK(lex output file root, ac_cv_prog_lex_root,
|
||||
[# The minimal lex program is just a single line: %%. But some broken lexes
|
||||
@ -337,7 +337,7 @@ fi
|
||||
# -----------------------------------------------------------------
|
||||
# Like AC_CHECK_HEADER, except also make sure that HEADER-FILE
|
||||
# defines the type `DIR'. dirent.h on NextStep 3.2 doesn't.
|
||||
define([_AC_CHECK_HEADER_DIRENT],
|
||||
m4_define([_AC_CHECK_HEADER_DIRENT],
|
||||
[AC_VAR_PUSHDEF([ac_Header], [ac_cv_header_dirent_$1])dnl
|
||||
AC_CACHE_CHECK([for $1 that defines DIR], ac_Header,
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>
|
||||
@ -354,7 +354,7 @@ AC_VAR_POPDEF([ac_Header])dnl
|
||||
|
||||
# AH_CHECK_HEADERS_DIRENT(HEADERS...)
|
||||
# -----------------------------------
|
||||
define([AH_CHECK_HEADERS_DIRENT],
|
||||
m4_define([AH_CHECK_HEADERS_DIRENT],
|
||||
[AC_FOREACH([AC_Header], [$1],
|
||||
[AH_TEMPLATE(AC_TR_CPP(HAVE_[]AC_Header),
|
||||
[Define if you have the <]AC_Header[> header file, and
|
||||
@ -548,7 +548,7 @@ fi
|
||||
|
||||
# _AC_HEADER_TIOCGWINSZ_IN_TERMIOS_H
|
||||
# ----------------------------------
|
||||
define([_AC_HEADER_TIOCGWINSZ_IN_TERMIOS_H],
|
||||
m4_define([_AC_HEADER_TIOCGWINSZ_IN_TERMIOS_H],
|
||||
[AC_CACHE_CHECK([whether termios.h defines TIOCGWINSZ],
|
||||
ac_cv_sys_tiocgwinsz_in_termios_h,
|
||||
[AC_EGREP_CPP([yes],
|
||||
@ -565,7 +565,7 @@ define([_AC_HEADER_TIOCGWINSZ_IN_TERMIOS_H],
|
||||
|
||||
# _AC_HEADER_TIOCGWINSZ_IN_SYS_IOCTL
|
||||
# ----------------------------------
|
||||
define([_AC_HEADER_TIOCGWINSZ_IN_SYS_IOCTL],
|
||||
m4_define([_AC_HEADER_TIOCGWINSZ_IN_SYS_IOCTL],
|
||||
[AC_CACHE_CHECK([whether sys/ioctl.h defines TIOCGWINSZ],
|
||||
ac_cv_sys_tiocgwinsz_in_sys_ioctl_h,
|
||||
[AC_EGREP_CPP([yes],
|
||||
@ -971,7 +971,7 @@ with arguments. Remove this warning when you adjust your code.])])
|
||||
|
||||
# _AC_SYS_LARGEFILE_SOURCE(PROLOGUE, BODY)
|
||||
# ----------------------------------------
|
||||
define([_AC_SYS_LARGEFILE_SOURCE],
|
||||
m4_define([_AC_SYS_LARGEFILE_SOURCE],
|
||||
[AC_LANG_PROGRAM(
|
||||
[$1
|
||||
@%:@include <sys/types.h>
|
||||
@ -984,7 +984,7 @@ int a[[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]];],
|
||||
# DESCRIPTION,
|
||||
# [INCLUDES], [FUNCTION-BODY])
|
||||
# ----------------------------------------------------------
|
||||
define([_AC_SYS_LARGEFILE_MACRO_VALUE],
|
||||
m4_define([_AC_SYS_LARGEFILE_MACRO_VALUE],
|
||||
[AC_CACHE_CHECK([for $1 value needed for large files], [$3],
|
||||
[while :; do
|
||||
$3=no
|
||||
@ -1247,7 +1247,7 @@ fi
|
||||
# ----------------
|
||||
# Internal subroutine of AC_PATH_X.
|
||||
# Set ac_x_includes and/or ac_x_libraries.
|
||||
define([_AC_PATH_X_XMKMF],
|
||||
m4_define([_AC_PATH_X_XMKMF],
|
||||
[rm -fr conftestdir
|
||||
if mkdir conftestdir; then
|
||||
cd conftestdir
|
||||
@ -1288,7 +1288,7 @@ fi
|
||||
# -----------------
|
||||
# Internal subroutine of AC_PATH_X.
|
||||
# Set ac_x_includes and/or ac_x_libraries.
|
||||
define([_AC_PATH_X_DIRECT],
|
||||
m4_define([_AC_PATH_X_DIRECT],
|
||||
[# Standard set of common directories for X headers.
|
||||
# Check X11 before X11Rn because it is often a symlink to the current release.
|
||||
ac_x_header_dirs='
|
||||
@ -1498,7 +1498,7 @@ AC_SUBST(X_EXTRA_LIBS)dnl
|
||||
# ----------
|
||||
# Check for Cygwin. This is a way to set the right value for
|
||||
# EXEEXT.
|
||||
define([_AC_CYGWIN],
|
||||
m4_define([_AC_CYGWIN],
|
||||
[AC_CACHE_CHECK(for Cygwin environment, ac_cv_cygwin,
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
|
||||
[#ifndef __CYGWIN__
|
||||
@ -1515,7 +1515,7 @@ test "$ac_cv_cygwin" = yes && CYGWIN=yes[]dnl
|
||||
# ----------
|
||||
# Check for EMX on OS/2. This is another way to set the right value
|
||||
# for EXEEXT.
|
||||
define([_AC_EMXOS2],
|
||||
m4_define([_AC_EMXOS2],
|
||||
[AC_CACHE_CHECK(for EMX OS/2 environment, ac_cv_emxos2,
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [return __EMX__;])],
|
||||
[ac_cv_emxos2=yes],
|
||||
@ -1528,7 +1528,7 @@ test "$ac_cv_emxos2" = yes && EMXOS2=yes[]dnl
|
||||
# -----------
|
||||
# Check for mingw32. This is another way to set the right value for
|
||||
# EXEEXT.
|
||||
define([_AC_MINGW32],
|
||||
m4_define([_AC_MINGW32],
|
||||
[AC_CACHE_CHECK(for mingw32 environment, ac_cv_mingw32,
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [return __MINGW32__;])],
|
||||
[ac_cv_mingw32=yes],
|
||||
@ -1558,7 +1558,7 @@ AC_DEFUN([AC_OBJEXT], [])
|
||||
# add .exe for Cygwin or mingw32. Otherwise, it compiles a test
|
||||
# executable. If this is called, the executable extensions will be
|
||||
# automatically used by link commands run by the configure script.
|
||||
define([_AC_EXEEXT],
|
||||
m4_define([_AC_EXEEXT],
|
||||
[AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
|
||||
[case "$CYGWIN $MINGW32 $EMXOS2" in
|
||||
*yes*) ac_cv_exeext=.exe ;;
|
||||
@ -1588,7 +1588,7 @@ AC_SUBST(EXEEXT)dnl
|
||||
# Check the object extension used by the compiler: typically .o or
|
||||
# .obj. If this is called, some other behaviour will change,
|
||||
# determined by ac_objext.
|
||||
define([_AC_OBJEXT],
|
||||
m4_define([_AC_OBJEXT],
|
||||
[AC_CACHE_CHECK([for object suffix], ac_cv_objext,
|
||||
[AC_LANG_CONFTEST([AC_LANG_PROGRAM()])
|
||||
if AC_TRY_EVAL(ac_compile); then
|
||||
|
Loading…
x
Reference in New Issue
Block a user