Commit f214923c by Benjamin Kosnik Committed by Benjamin Kosnik

acinclude.m4: Quote correctly.


2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>

	* acinclude.m4: Quote correctly.
	* aclocal.m4: Regenerate.
	* linkage.m4: Same.

From-SVN: r78715
parent 9bf793f9
2004-03-01 Benjamin Kosnik <bkoz@redhat.com> 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4: Quote correctly.
* aclocal.m4: Regenerate.
* linkage.m4: Same.
2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/test.html: Add multilib RUNTESTFLAGS example. * docs/html/test.html: Add multilib RUNTESTFLAGS example.
* docs/html/18_support/howto.html: Add bit about writing to * docs/html/18_support/howto.html: Add bit about writing to
......
...@@ -8,12 +8,12 @@ dnl conditional will depend on the final state of the variable. For a simple ...@@ -8,12 +8,12 @@ dnl conditional will depend on the final state of the variable. For a simple
dnl example of why this is needed, see GLIBCXX_ENABLE_HOSTED. dnl example of why this is needed, see GLIBCXX_ENABLE_HOSTED.
dnl dnl
m4_define([_m4_divert(glibcxx_diversion)], 8000)dnl m4_define([_m4_divert(glibcxx_diversion)], 8000)dnl
AC_DEFUN(GLIBCXX_CONDITIONAL, [dnl AC_DEFUN([GLIBCXX_CONDITIONAL], [dnl
m4_divert_text([glibcxx_diversion],dnl m4_divert_text([glibcxx_diversion],dnl
AM_CONDITIONAL([$1],[$2]) AM_CONDITIONAL([$1],[$2])
)dnl )dnl
])dnl ])dnl
AC_DEFUN(GLIBCXX_EVALUATE_CONDITIONALS, [m4_undivert([glibcxx_diversion])])dnl AC_DEFUN([GLIBCXX_EVALUATE_CONDITIONALS], [m4_undivert([glibcxx_diversion])])dnl
dnl dnl
...@@ -21,10 +21,10 @@ dnl Check to see what architecture and operating system we are compiling ...@@ -21,10 +21,10 @@ dnl Check to see what architecture and operating system we are compiling
dnl for. Also, if architecture- or OS-specific flags are required for dnl for. Also, if architecture- or OS-specific flags are required for
dnl compilation, pick them up here. dnl compilation, pick them up here.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_HOST, [ AC_DEFUN([GLIBCXX_CHECK_HOST], [
. $glibcxx_srcdir/configure.host . $glibcxx_srcdir/configure.host
AC_MSG_NOTICE(CPU config directory is $cpu_include_dir) AC_MSG_NOTICE([CPU config directory is $cpu_include_dir])
AC_MSG_NOTICE(OS config directory is $os_include_dir) AC_MSG_NOTICE([OS config directory is $os_include_dir])
]) ])
...@@ -34,7 +34,7 @@ dnl ...@@ -34,7 +34,7 @@ dnl
dnl Substs: dnl Substs:
dnl multi_basedir dnl multi_basedir
dnl dnl
AC_DEFUN(GLIBCXX_TOPREL_CONFIGURE, [ AC_DEFUN([GLIBCXX_TOPREL_CONFIGURE], [
# Sets up multi_basedir, which is srcdir/.. plus the usual # Sets up multi_basedir, which is srcdir/.. plus the usual
# "multi_source_toprel_bottom_adjust" lunacy as needed. # "multi_source_toprel_bottom_adjust" lunacy as needed.
AM_ENABLE_MULTILIB(, ..) AM_ENABLE_MULTILIB(, ..)
...@@ -78,7 +78,7 @@ dnl - the variables in GLIBCXX_CHECK_HOST / configure.host ...@@ -78,7 +78,7 @@ dnl - the variables in GLIBCXX_CHECK_HOST / configure.host
dnl - default settings for all AM_CONFITIONAL test variables dnl - default settings for all AM_CONFITIONAL test variables
dnl - lots of tools, like CC and CXX dnl - lots of tools, like CC and CXX
dnl dnl
AC_DEFUN(GLIBCXX_CONFIGURE, [ AC_DEFUN([GLIBCXX_CONFIGURE], [
# Keep these sync'd with the list in Makefile.am. The first provides an # Keep these sync'd with the list in Makefile.am. The first provides an
# expandable list at autoconf time; the second provides an expandable list # expandable list at autoconf time; the second provides an expandable list
# (i.e., shell variable) at configure time. # (i.e., shell variable) at configure time.
...@@ -193,7 +193,7 @@ dnl Leave it out by default and use maint-mode to use it. ...@@ -193,7 +193,7 @@ dnl Leave it out by default and use maint-mode to use it.
dnl SECTION_FLAGS='-ffunction-sections -fdata-sections' if dnl SECTION_FLAGS='-ffunction-sections -fdata-sections' if
dnl compiler supports it and the user has not requested debug mode. dnl compiler supports it and the user has not requested debug mode.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_COMPILER_FEATURES, [ AC_DEFUN([GLIBCXX_CHECK_COMPILER_FEATURES], [
# All these tests are for C++; save the language and the compiler flags. # All these tests are for C++; save the language and the compiler flags.
# The CXXFLAGS thing is suspicious, but based on similar bits previously # The CXXFLAGS thing is suspicious, but based on similar bits previously
# found in GLIBCXX_CONFIGURE. # found in GLIBCXX_CONFIGURE.
...@@ -246,7 +246,7 @@ dnl ...@@ -246,7 +246,7 @@ dnl
dnl The last will be a single integer, e.g., version 1.23.45.0.67.89 will dnl The last will be a single integer, e.g., version 1.23.45.0.67.89 will
dnl set glibcxx_gnu_ld_version to 12345. Zeros cause problems. dnl set glibcxx_gnu_ld_version to 12345. Zeros cause problems.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_LINKER_FEATURES, [ AC_DEFUN([GLIBCXX_CHECK_LINKER_FEATURES], [
# If we're not using GNU ld, then there's no point in even trying these # If we're not using GNU ld, then there's no point in even trying these
# tests. Check for that first. We should have already tested for gld # tests. Check for that first. We should have already tested for gld
# by now (in libtool), but require it now just to be safe... # by now (in libtool), but require it now just to be safe...
...@@ -337,7 +337,7 @@ dnl Defines: ...@@ -337,7 +337,7 @@ dnl Defines:
dnl HAVE_MBSTATE_T if mbstate_t is not in wchar.h dnl HAVE_MBSTATE_T if mbstate_t is not in wchar.h
dnl _GLIBCXX_USE_WCHAR_T if all the bits are found. dnl _GLIBCXX_USE_WCHAR_T if all the bits are found.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_WCHAR_T_SUPPORT, [ AC_DEFUN([GLIBCXX_CHECK_WCHAR_T_SUPPORT], [
# Test wchar.h for mbstate_t, which is needed for char_traits and # Test wchar.h for mbstate_t, which is needed for char_traits and
# others even if wchar_t support is not on. # others even if wchar_t support is not on.
AC_MSG_CHECKING([for mbstate_t]) AC_MSG_CHECKING([for mbstate_t])
...@@ -454,7 +454,7 @@ dnl Defines: ...@@ -454,7 +454,7 @@ dnl Defines:
dnl _GLIBCXX_MEM_LIMITS if we can set artificial limits on memory dnl _GLIBCXX_MEM_LIMITS if we can set artificial limits on memory
dnl various HAVE_MEMLIMIT_* for individual limit names dnl various HAVE_MEMLIMIT_* for individual limit names
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_SETRLIMIT_ancilliary, [ AC_DEFUN([GLIBCXX_CHECK_SETRLIMIT_ancilliary], [
AC_TRY_COMPILE( AC_TRY_COMPILE(
[#include <unistd.h> [#include <unistd.h>
#include <sys/time.h> #include <sys/time.h>
...@@ -466,7 +466,7 @@ AC_DEFUN(GLIBCXX_CHECK_SETRLIMIT_ancilliary, [ ...@@ -466,7 +466,7 @@ AC_DEFUN(GLIBCXX_CHECK_SETRLIMIT_ancilliary, [
[Only used in build directory testsuite_hooks.h.]) [Only used in build directory testsuite_hooks.h.])
]) ])
AC_DEFUN(GLIBCXX_CHECK_SETRLIMIT, [ AC_DEFUN([GLIBCXX_CHECK_SETRLIMIT], [
setrlimit_have_headers=yes setrlimit_have_headers=yes
AC_CHECK_HEADERS(unistd.h sys/time.h sys/resource.h, AC_CHECK_HEADERS(unistd.h sys/time.h sys/resource.h,
[], [],
...@@ -508,7 +508,7 @@ dnl ...@@ -508,7 +508,7 @@ dnl
dnl Check whether S_ISREG (Posix) or S_IFREG is available in <sys/stat.h>. dnl Check whether S_ISREG (Posix) or S_IFREG is available in <sys/stat.h>.
dnl Define HAVE_S_ISREG / HAVE_S_IFREG appropriately. dnl Define HAVE_S_ISREG / HAVE_S_IFREG appropriately.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_S_ISREG_OR_S_IFREG, [ AC_DEFUN([GLIBCXX_CHECK_S_ISREG_OR_S_IFREG], [
AC_CACHE_VAL(glibcxx_cv_S_ISREG, [ AC_CACHE_VAL(glibcxx_cv_S_ISREG, [
AC_TRY_LINK( AC_TRY_LINK(
[#include <sys/stat.h>], [#include <sys/stat.h>],
...@@ -538,7 +538,7 @@ AC_DEFUN(GLIBCXX_CHECK_S_ISREG_OR_S_IFREG, [ ...@@ -538,7 +538,7 @@ AC_DEFUN(GLIBCXX_CHECK_S_ISREG_OR_S_IFREG, [
dnl dnl
dnl Check whether poll is available in <poll.h>, and define HAVE_POLL. dnl Check whether poll is available in <poll.h>, and define HAVE_POLL.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_POLL, [ AC_DEFUN([GLIBCXX_CHECK_POLL], [
AC_CACHE_VAL(glibcxx_cv_POLL, [ AC_CACHE_VAL(glibcxx_cv_POLL, [
AC_TRY_LINK( AC_TRY_LINK(
[#include <poll.h>], [#include <poll.h>],
...@@ -557,7 +557,7 @@ AC_DEFUN(GLIBCXX_CHECK_POLL, [ ...@@ -557,7 +557,7 @@ AC_DEFUN(GLIBCXX_CHECK_POLL, [
dnl dnl
dnl Check whether writev is available in <sys/uio.h>, and define HAVE_WRITEV. dnl Check whether writev is available in <sys/uio.h>, and define HAVE_WRITEV.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_WRITEV, [ AC_DEFUN([GLIBCXX_CHECK_WRITEV], [
AC_CACHE_VAL(glibcxx_cv_WRITEV, [ AC_CACHE_VAL(glibcxx_cv_WRITEV, [
AC_TRY_LINK( AC_TRY_LINK(
[#include <sys/uio.h>], [#include <sys/uio.h>],
...@@ -575,7 +575,7 @@ AC_DEFUN(GLIBCXX_CHECK_WRITEV, [ ...@@ -575,7 +575,7 @@ AC_DEFUN(GLIBCXX_CHECK_WRITEV, [
dnl dnl
dnl Check whether int64_t is available in <stdint.h>, and define HAVE_INT64_T. dnl Check whether int64_t is available in <stdint.h>, and define HAVE_INT64_T.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_INT64_T, [ AC_DEFUN([GLIBCXX_CHECK_INT64_T], [
AC_CACHE_VAL(glibcxx_cv_INT64_T, [ AC_CACHE_VAL(glibcxx_cv_INT64_T, [
AC_TRY_COMPILE( AC_TRY_COMPILE(
[#include <stdint.h>], [#include <stdint.h>],
...@@ -592,7 +592,7 @@ AC_DEFUN(GLIBCXX_CHECK_INT64_T, [ ...@@ -592,7 +592,7 @@ AC_DEFUN(GLIBCXX_CHECK_INT64_T, [
dnl dnl
dnl Check whether LFS support is available. dnl Check whether LFS support is available.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_LFS, [ AC_DEFUN([GLIBCXX_CHECK_LFS], [
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_CPLUSPLUS AC_LANG_CPLUSPLUS
ac_save_CXXFLAGS="$CXXFLAGS" ac_save_CXXFLAGS="$CXXFLAGS"
...@@ -629,7 +629,7 @@ dnl enable_abi_check / GLIBCXX_TEST_ABI ...@@ -629,7 +629,7 @@ dnl enable_abi_check / GLIBCXX_TEST_ABI
dnl Substs: dnl Substs:
dnl baseline_dir dnl baseline_dir
dnl dnl
AC_DEFUN(GLIBCXX_CONFIGURE_TESTSUITE, [ AC_DEFUN([GLIBCXX_CONFIGURE_TESTSUITE], [
if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then
# Do checks for memory limit functions. # Do checks for memory limit functions.
GLIBCXX_CHECK_SETRLIMIT GLIBCXX_CHECK_SETRLIMIT
...@@ -669,7 +669,7 @@ dnl Substs: ...@@ -669,7 +669,7 @@ dnl Substs:
dnl GLIBCXX_INCLUDES dnl GLIBCXX_INCLUDES
dnl TOPLEVEL_INCLUDES dnl TOPLEVEL_INCLUDES
dnl dnl
AC_DEFUN(GLIBCXX_EXPORT_INCLUDES, [ AC_DEFUN([GLIBCXX_EXPORT_INCLUDES], [
# Used for every C++ compile we perform. # Used for every C++ compile we perform.
GLIBCXX_INCLUDES="\ GLIBCXX_INCLUDES="\
-I$glibcxx_builddir/include/$host_alias \ -I$glibcxx_builddir/include/$host_alias \
...@@ -700,7 +700,7 @@ dnl Substs: ...@@ -700,7 +700,7 @@ dnl Substs:
dnl OPTIMIZE_CXXFLAGS dnl OPTIMIZE_CXXFLAGS
dnl WARN_FLAGS dnl WARN_FLAGS
dnl dnl
AC_DEFUN(GLIBCXX_EXPORT_FLAGS, [ AC_DEFUN([GLIBCXX_EXPORT_FLAGS], [
# Optimization flags that are probably a good idea for thrill-seekers. Just # Optimization flags that are probably a good idea for thrill-seekers. Just
# uncomment the lines below and make, everything else is ready to go... # uncomment the lines below and make, everything else is ready to go...
# OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
...@@ -724,7 +724,7 @@ dnl ...@@ -724,7 +724,7 @@ dnl
dnl Assumes cross_compiling bits already done, and with_cross_host in dnl Assumes cross_compiling bits already done, and with_cross_host in
dnl particular. dnl particular.
dnl dnl
AC_DEFUN(GLIBCXX_EXPORT_INSTALL_INFO, [ AC_DEFUN([GLIBCXX_EXPORT_INSTALL_INFO], [
glibcxx_toolexecdir=no glibcxx_toolexecdir=no
glibcxx_toolexeclibdir=no glibcxx_toolexeclibdir=no
glibcxx_prefixdir=$prefix glibcxx_prefixdir=$prefix
...@@ -844,7 +844,7 @@ dnl + Usage: GLIBCXX_ENABLE_C99[(DEFAULT)] ...@@ -844,7 +844,7 @@ dnl + Usage: GLIBCXX_ENABLE_C99[(DEFAULT)]
dnl Where DEFAULT is either `yes' or `no'. dnl Where DEFAULT is either `yes' or `no'.
dnl + If 'C99' stuff is not available, ignores DEFAULT and sets `no'. dnl + If 'C99' stuff is not available, ignores DEFAULT and sets `no'.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_C99, [ AC_DEFUN([GLIBCXX_ENABLE_C99], [
GLIBCXX_ENABLE(c99,$1,,[turns on ISO/IEC 9899:1999 support]) GLIBCXX_ENABLE(c99,$1,,[turns on ISO/IEC 9899:1999 support])
AC_LANG_SAVE AC_LANG_SAVE
...@@ -971,7 +971,7 @@ dnl --disable-cheaders [does not do anything, really]. ...@@ -971,7 +971,7 @@ dnl --disable-cheaders [does not do anything, really].
dnl + Usage: GLIBCXX_ENABLE_CHEADERS[(DEFAULT)] dnl + Usage: GLIBCXX_ENABLE_CHEADERS[(DEFAULT)]
dnl Where DEFAULT is either `c' or `c_std'. dnl Where DEFAULT is either `c' or `c_std'.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_CHEADERS, [ AC_DEFUN([GLIBCXX_ENABLE_CHEADERS], [
GLIBCXX_ENABLE(cheaders,$1,[=KIND], GLIBCXX_ENABLE(cheaders,$1,[=KIND],
[construct "C" headers for g++], [permit c|c_std]) [construct "C" headers for g++], [permit c|c_std])
AC_MSG_NOTICE("C" header strategy set to $enable_cheaders) AC_MSG_NOTICE("C" header strategy set to $enable_cheaders)
...@@ -991,7 +991,7 @@ dnl a subdirectory of config/locale. ...@@ -991,7 +991,7 @@ dnl a subdirectory of config/locale.
dnl dnl
dnl Default is generic. dnl Default is generic.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_CLOCALE, [ AC_DEFUN([GLIBCXX_ENABLE_CLOCALE], [
AC_MSG_CHECKING([for C locale to use]) AC_MSG_CHECKING([for C locale to use])
GLIBCXX_ENABLE(clocale,auto,[@<:@=MODEL@:>@], GLIBCXX_ENABLE(clocale,auto,[@<:@=MODEL@:>@],
[use MODEL for target locale package], [use MODEL for target locale package],
...@@ -1178,7 +1178,7 @@ dnl --disable-concept-checks leaves them off. ...@@ -1178,7 +1178,7 @@ dnl --disable-concept-checks leaves them off.
dnl + Usage: GLIBCXX_ENABLE_CONCEPT_CHECKS[(DEFAULT)] dnl + Usage: GLIBCXX_ENABLE_CONCEPT_CHECKS[(DEFAULT)]
dnl Where DEFAULT is either `yes' or `no'. dnl Where DEFAULT is either `yes' or `no'.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_CONCEPT_CHECKS, [ AC_DEFUN([GLIBCXX_ENABLE_CONCEPT_CHECKS], [
GLIBCXX_ENABLE(concept-checks,$1,,[use Boost-derived template checks]) GLIBCXX_ENABLE(concept-checks,$1,,[use Boost-derived template checks])
if test $enable_concept_checks = yes; then if test $enable_concept_checks = yes; then
AC_DEFINE(_GLIBCXX_CONCEPT_CHECKS) AC_DEFINE(_GLIBCXX_CONCEPT_CHECKS)
...@@ -1191,7 +1191,7 @@ dnl Check for which I/O library to use: stdio, or something specific. ...@@ -1191,7 +1191,7 @@ dnl Check for which I/O library to use: stdio, or something specific.
dnl dnl
dnl Default is stdio. dnl Default is stdio.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_CSTDIO, [ AC_DEFUN([GLIBCXX_ENABLE_CSTDIO], [
AC_MSG_CHECKING([for underlying I/O to use]) AC_MSG_CHECKING([for underlying I/O to use])
GLIBCXX_ENABLE(cstdio,stdio,[=PACKAGE], GLIBCXX_ENABLE(cstdio,stdio,[=PACKAGE],
[use target-specific I/O package], [permit stdio]) [use target-specific I/O package], [permit stdio])
...@@ -1227,7 +1227,7 @@ dnl + Usage: GLIBCXX_ENABLE_CXX_FLAGS(default flags) ...@@ -1227,7 +1227,7 @@ dnl + Usage: GLIBCXX_ENABLE_CXX_FLAGS(default flags)
dnl If "default flags" is an empty string, the effect is the same dnl If "default flags" is an empty string, the effect is the same
dnl as --disable or --enable=no. dnl as --disable or --enable=no.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_CXX_FLAGS, [dnl AC_DEFUN([GLIBCXX_ENABLE_CXX_FLAGS], [dnl
AC_MSG_CHECKING([for extra compiler flags for building]) AC_MSG_CHECKING([for extra compiler flags for building])
GLIBCXX_ENABLE(cxx-flags,$1,[=FLAGS], GLIBCXX_ENABLE(cxx-flags,$1,[=FLAGS],
[pass compiler FLAGS when building library], [pass compiler FLAGS when building library],
...@@ -1265,7 +1265,7 @@ dnl --disable-c-mbchar doesn't. ...@@ -1265,7 +1265,7 @@ dnl --disable-c-mbchar doesn't.
dnl + Usage: GLIBCXX_ENABLE_C_MBCHAR[(DEFAULT)] dnl + Usage: GLIBCXX_ENABLE_C_MBCHAR[(DEFAULT)]
dnl Where DEFAULT is either `yes' or `no'. dnl Where DEFAULT is either `yes' or `no'.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_C_MBCHAR, [ AC_DEFUN([GLIBCXX_ENABLE_C_MBCHAR], [
GLIBCXX_ENABLE(c-mbchar,$1,,[enable multibyte (wide) characters]) GLIBCXX_ENABLE(c-mbchar,$1,,[enable multibyte (wide) characters])
# Option parsed, now other scripts can test enable_c_mbchar for yes/no. # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
]) ])
...@@ -1287,7 +1287,7 @@ dnl ...@@ -1287,7 +1287,7 @@ dnl
dnl + Usage: GLIBCXX_ENABLE_DEBUG[(DEFAULT)] dnl + Usage: GLIBCXX_ENABLE_DEBUG[(DEFAULT)]
dnl Where DEFAULT is either `yes' or `no'. dnl Where DEFAULT is either `yes' or `no'.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_DEBUG, [ AC_DEFUN([GLIBCXX_ENABLE_DEBUG], [
AC_MSG_CHECKING([for additional debug build]) AC_MSG_CHECKING([for additional debug build])
GLIBCXX_ENABLE(libstdcxx-debug,$1,,[build extra debug library]) GLIBCXX_ENABLE(libstdcxx-debug,$1,,[build extra debug library])
AC_MSG_RESULT($enable_libstdcxx_debug) AC_MSG_RESULT($enable_libstdcxx_debug)
...@@ -1307,7 +1307,7 @@ dnl + Usage: GLIBCXX_ENABLE_DEBUG_FLAGS(default flags) ...@@ -1307,7 +1307,7 @@ dnl + Usage: GLIBCXX_ENABLE_DEBUG_FLAGS(default flags)
dnl If "default flags" is an empty string, the effect is the same dnl If "default flags" is an empty string, the effect is the same
dnl as --disable or --enable=no. dnl as --disable or --enable=no.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_DEBUG_FLAGS, [ AC_DEFUN([GLIBCXX_ENABLE_DEBUG_FLAGS], [
GLIBCXX_ENABLE(libstdcxx-debug-flags,[$1],[=FLAGS], GLIBCXX_ENABLE(libstdcxx-debug-flags,[$1],[=FLAGS],
[pass compiler FLAGS when building debug library], [pass compiler FLAGS when building debug library],
[case "x$enable_libstdcxx_debug_flags" in [case "x$enable_libstdcxx_debug_flags" in
...@@ -1338,7 +1338,7 @@ dnl ...@@ -1338,7 +1338,7 @@ dnl
dnl Defines: dnl Defines:
dnl _GLIBCXX_HOSTED (always defined, either to 1 or 0) dnl _GLIBCXX_HOSTED (always defined, either to 1 or 0)
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_HOSTED, [ AC_DEFUN([GLIBCXX_ENABLE_HOSTED], [
AC_ARG_ENABLE([hosted-libstdcxx], AC_ARG_ENABLE([hosted-libstdcxx],
AC_HELP_STRING([--disable-hosted-libstdcxx], AC_HELP_STRING([--disable-hosted-libstdcxx],
[only build freestanding C++ runtime support]),, [only build freestanding C++ runtime support]),,
...@@ -1370,7 +1370,7 @@ dnl + Usage: GLIBCXX_ENABLE_LONG_LONG[(DEFAULT)] ...@@ -1370,7 +1370,7 @@ dnl + Usage: GLIBCXX_ENABLE_LONG_LONG[(DEFAULT)]
dnl Where DEFAULT is either `yes' or `no'. dnl Where DEFAULT is either `yes' or `no'.
dnl + If 'long long' stuff is not available, ignores DEFAULT and sets `no'. dnl + If 'long long' stuff is not available, ignores DEFAULT and sets `no'.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_LONG_LONG, [ AC_DEFUN([GLIBCXX_ENABLE_LONG_LONG], [
GLIBCXX_ENABLE(long-long,$1,,[enables I/O support for 'long long']) GLIBCXX_ENABLE(long-long,$1,,[enables I/O support for 'long long'])
AC_LANG_SAVE AC_LANG_SAVE
...@@ -1407,7 +1407,7 @@ dnl ...@@ -1407,7 +1407,7 @@ dnl
dnl Substs: dnl Substs:
dnl glibcxx_PCHFLAGS dnl glibcxx_PCHFLAGS
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_PCH, [ AC_DEFUN([GLIBCXX_ENABLE_PCH], [
AC_MSG_CHECKING([for enabled PCH]) AC_MSG_CHECKING([for enabled PCH])
GLIBCXX_ENABLE(libstdcxx-pch,$1,,[build pre-compiled libstdc++ headers]) GLIBCXX_ENABLE(libstdcxx-pch,$1,,[build pre-compiled libstdc++ headers])
AC_MSG_RESULT([$enable_libstdcxx_pch]) AC_MSG_RESULT([$enable_libstdcxx_pch])
...@@ -1459,7 +1459,7 @@ dnl ...@@ -1459,7 +1459,7 @@ dnl
dnl Defines: dnl Defines:
dnl _GLIBCXX_SJLJ_EXCEPTIONS if the compiler is configured for it dnl _GLIBCXX_SJLJ_EXCEPTIONS if the compiler is configured for it
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_SJLJ_EXCEPTIONS, [ AC_DEFUN([GLIBCXX_ENABLE_SJLJ_EXCEPTIONS], [
AC_MSG_CHECKING([for exception model to use]) AC_MSG_CHECKING([for exception model to use])
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_CPLUSPLUS AC_LANG_CPLUSPLUS
...@@ -1529,7 +1529,7 @@ dnl Where DEFAULT is either 'yes' or 'no'. Passing `yes' tries to ...@@ -1529,7 +1529,7 @@ dnl Where DEFAULT is either 'yes' or 'no'. Passing `yes' tries to
dnl choose a default style based on linker characteristics. Passing dnl choose a default style based on linker characteristics. Passing
dnl 'no' disables versioning. dnl 'no' disables versioning.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_SYMVERS, [ AC_DEFUN([GLIBCXX_ENABLE_SYMVERS], [
GLIBCXX_ENABLE(symvers,$1,[=STYLE], GLIBCXX_ENABLE(symvers,$1,[=STYLE],
[enables symbol versioning of the shared library], [enables symbol versioning of the shared library],
...@@ -1633,7 +1633,7 @@ dnl Defines: ...@@ -1633,7 +1633,7 @@ dnl Defines:
dnl HAVE_GTHR_DEFAULT dnl HAVE_GTHR_DEFAULT
dnl _GLIBCXX_SUPPORTS_WEAK dnl _GLIBCXX_SUPPORTS_WEAK
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_THREADS, [ AC_DEFUN([GLIBCXX_ENABLE_THREADS], [
AC_MSG_CHECKING([for thread model used by GCC]) AC_MSG_CHECKING([for thread model used by GCC])
target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'` target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
AC_MSG_RESULT([$target_thread_file]) AC_MSG_RESULT([$target_thread_file])
...@@ -1657,7 +1657,7 @@ AC_DEFUN(GLIBCXX_ENABLE_THREADS, [ ...@@ -1657,7 +1657,7 @@ AC_DEFUN(GLIBCXX_ENABLE_THREADS, [
# Please note that the actual code is *not* freely available. # Please note that the actual code is *not* freely available.
# serial 1 # serial 1
AC_DEFUN(AC_LC_MESSAGES, [ AC_DEFUN([AC_LC_MESSAGES], [
AC_CHECK_HEADER(locale.h, [ AC_CHECK_HEADER(locale.h, [
AC_CACHE_CHECK([for LC_MESSAGES], ac_cv_val_LC_MESSAGES, AC_CACHE_CHECK([for LC_MESSAGES], ac_cv_val_LC_MESSAGES,
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
......
...@@ -21,12 +21,12 @@ dnl conditional will depend on the final state of the variable. For a simple ...@@ -21,12 +21,12 @@ dnl conditional will depend on the final state of the variable. For a simple
dnl example of why this is needed, see GLIBCXX_ENABLE_HOSTED. dnl example of why this is needed, see GLIBCXX_ENABLE_HOSTED.
dnl dnl
m4_define([_m4_divert(glibcxx_diversion)], 8000)dnl m4_define([_m4_divert(glibcxx_diversion)], 8000)dnl
AC_DEFUN(GLIBCXX_CONDITIONAL, [dnl AC_DEFUN([GLIBCXX_CONDITIONAL], [dnl
m4_divert_text([glibcxx_diversion],dnl m4_divert_text([glibcxx_diversion],dnl
AM_CONDITIONAL([$1],[$2]) AM_CONDITIONAL([$1],[$2])
)dnl )dnl
])dnl ])dnl
AC_DEFUN(GLIBCXX_EVALUATE_CONDITIONALS, [m4_undivert([glibcxx_diversion])])dnl AC_DEFUN([GLIBCXX_EVALUATE_CONDITIONALS], [m4_undivert([glibcxx_diversion])])dnl
dnl dnl
...@@ -34,10 +34,10 @@ dnl Check to see what architecture and operating system we are compiling ...@@ -34,10 +34,10 @@ dnl Check to see what architecture and operating system we are compiling
dnl for. Also, if architecture- or OS-specific flags are required for dnl for. Also, if architecture- or OS-specific flags are required for
dnl compilation, pick them up here. dnl compilation, pick them up here.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_HOST, [ AC_DEFUN([GLIBCXX_CHECK_HOST], [
. $glibcxx_srcdir/configure.host . $glibcxx_srcdir/configure.host
AC_MSG_NOTICE(CPU config directory is $cpu_include_dir) AC_MSG_NOTICE([CPU config directory is $cpu_include_dir])
AC_MSG_NOTICE(OS config directory is $os_include_dir) AC_MSG_NOTICE([OS config directory is $os_include_dir])
]) ])
...@@ -47,7 +47,7 @@ dnl ...@@ -47,7 +47,7 @@ dnl
dnl Substs: dnl Substs:
dnl multi_basedir dnl multi_basedir
dnl dnl
AC_DEFUN(GLIBCXX_TOPREL_CONFIGURE, [ AC_DEFUN([GLIBCXX_TOPREL_CONFIGURE], [
# Sets up multi_basedir, which is srcdir/.. plus the usual # Sets up multi_basedir, which is srcdir/.. plus the usual
# "multi_source_toprel_bottom_adjust" lunacy as needed. # "multi_source_toprel_bottom_adjust" lunacy as needed.
AM_ENABLE_MULTILIB(, ..) AM_ENABLE_MULTILIB(, ..)
...@@ -91,7 +91,7 @@ dnl - the variables in GLIBCXX_CHECK_HOST / configure.host ...@@ -91,7 +91,7 @@ dnl - the variables in GLIBCXX_CHECK_HOST / configure.host
dnl - default settings for all AM_CONFITIONAL test variables dnl - default settings for all AM_CONFITIONAL test variables
dnl - lots of tools, like CC and CXX dnl - lots of tools, like CC and CXX
dnl dnl
AC_DEFUN(GLIBCXX_CONFIGURE, [ AC_DEFUN([GLIBCXX_CONFIGURE], [
# Keep these sync'd with the list in Makefile.am. The first provides an # Keep these sync'd with the list in Makefile.am. The first provides an
# expandable list at autoconf time; the second provides an expandable list # expandable list at autoconf time; the second provides an expandable list
# (i.e., shell variable) at configure time. # (i.e., shell variable) at configure time.
...@@ -206,7 +206,7 @@ dnl Leave it out by default and use maint-mode to use it. ...@@ -206,7 +206,7 @@ dnl Leave it out by default and use maint-mode to use it.
dnl SECTION_FLAGS='-ffunction-sections -fdata-sections' if dnl SECTION_FLAGS='-ffunction-sections -fdata-sections' if
dnl compiler supports it and the user has not requested debug mode. dnl compiler supports it and the user has not requested debug mode.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_COMPILER_FEATURES, [ AC_DEFUN([GLIBCXX_CHECK_COMPILER_FEATURES], [
# All these tests are for C++; save the language and the compiler flags. # All these tests are for C++; save the language and the compiler flags.
# The CXXFLAGS thing is suspicious, but based on similar bits previously # The CXXFLAGS thing is suspicious, but based on similar bits previously
# found in GLIBCXX_CONFIGURE. # found in GLIBCXX_CONFIGURE.
...@@ -259,7 +259,7 @@ dnl ...@@ -259,7 +259,7 @@ dnl
dnl The last will be a single integer, e.g., version 1.23.45.0.67.89 will dnl The last will be a single integer, e.g., version 1.23.45.0.67.89 will
dnl set glibcxx_gnu_ld_version to 12345. Zeros cause problems. dnl set glibcxx_gnu_ld_version to 12345. Zeros cause problems.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_LINKER_FEATURES, [ AC_DEFUN([GLIBCXX_CHECK_LINKER_FEATURES], [
# If we're not using GNU ld, then there's no point in even trying these # If we're not using GNU ld, then there's no point in even trying these
# tests. Check for that first. We should have already tested for gld # tests. Check for that first. We should have already tested for gld
# by now (in libtool), but require it now just to be safe... # by now (in libtool), but require it now just to be safe...
...@@ -350,7 +350,7 @@ dnl Defines: ...@@ -350,7 +350,7 @@ dnl Defines:
dnl HAVE_MBSTATE_T if mbstate_t is not in wchar.h dnl HAVE_MBSTATE_T if mbstate_t is not in wchar.h
dnl _GLIBCXX_USE_WCHAR_T if all the bits are found. dnl _GLIBCXX_USE_WCHAR_T if all the bits are found.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_WCHAR_T_SUPPORT, [ AC_DEFUN([GLIBCXX_CHECK_WCHAR_T_SUPPORT], [
# Test wchar.h for mbstate_t, which is needed for char_traits and # Test wchar.h for mbstate_t, which is needed for char_traits and
# others even if wchar_t support is not on. # others even if wchar_t support is not on.
AC_MSG_CHECKING([for mbstate_t]) AC_MSG_CHECKING([for mbstate_t])
...@@ -467,7 +467,7 @@ dnl Defines: ...@@ -467,7 +467,7 @@ dnl Defines:
dnl _GLIBCXX_MEM_LIMITS if we can set artificial limits on memory dnl _GLIBCXX_MEM_LIMITS if we can set artificial limits on memory
dnl various HAVE_MEMLIMIT_* for individual limit names dnl various HAVE_MEMLIMIT_* for individual limit names
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_SETRLIMIT_ancilliary, [ AC_DEFUN([GLIBCXX_CHECK_SETRLIMIT_ancilliary], [
AC_TRY_COMPILE( AC_TRY_COMPILE(
[#include <unistd.h> [#include <unistd.h>
#include <sys/time.h> #include <sys/time.h>
...@@ -479,7 +479,7 @@ AC_DEFUN(GLIBCXX_CHECK_SETRLIMIT_ancilliary, [ ...@@ -479,7 +479,7 @@ AC_DEFUN(GLIBCXX_CHECK_SETRLIMIT_ancilliary, [
[Only used in build directory testsuite_hooks.h.]) [Only used in build directory testsuite_hooks.h.])
]) ])
AC_DEFUN(GLIBCXX_CHECK_SETRLIMIT, [ AC_DEFUN([GLIBCXX_CHECK_SETRLIMIT], [
setrlimit_have_headers=yes setrlimit_have_headers=yes
AC_CHECK_HEADERS(unistd.h sys/time.h sys/resource.h, AC_CHECK_HEADERS(unistd.h sys/time.h sys/resource.h,
[], [],
...@@ -521,7 +521,7 @@ dnl ...@@ -521,7 +521,7 @@ dnl
dnl Check whether S_ISREG (Posix) or S_IFREG is available in <sys/stat.h>. dnl Check whether S_ISREG (Posix) or S_IFREG is available in <sys/stat.h>.
dnl Define HAVE_S_ISREG / HAVE_S_IFREG appropriately. dnl Define HAVE_S_ISREG / HAVE_S_IFREG appropriately.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_S_ISREG_OR_S_IFREG, [ AC_DEFUN([GLIBCXX_CHECK_S_ISREG_OR_S_IFREG], [
AC_CACHE_VAL(glibcxx_cv_S_ISREG, [ AC_CACHE_VAL(glibcxx_cv_S_ISREG, [
AC_TRY_LINK( AC_TRY_LINK(
[#include <sys/stat.h>], [#include <sys/stat.h>],
...@@ -551,7 +551,7 @@ AC_DEFUN(GLIBCXX_CHECK_S_ISREG_OR_S_IFREG, [ ...@@ -551,7 +551,7 @@ AC_DEFUN(GLIBCXX_CHECK_S_ISREG_OR_S_IFREG, [
dnl dnl
dnl Check whether poll is available in <poll.h>, and define HAVE_POLL. dnl Check whether poll is available in <poll.h>, and define HAVE_POLL.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_POLL, [ AC_DEFUN([GLIBCXX_CHECK_POLL], [
AC_CACHE_VAL(glibcxx_cv_POLL, [ AC_CACHE_VAL(glibcxx_cv_POLL, [
AC_TRY_LINK( AC_TRY_LINK(
[#include <poll.h>], [#include <poll.h>],
...@@ -570,7 +570,7 @@ AC_DEFUN(GLIBCXX_CHECK_POLL, [ ...@@ -570,7 +570,7 @@ AC_DEFUN(GLIBCXX_CHECK_POLL, [
dnl dnl
dnl Check whether writev is available in <sys/uio.h>, and define HAVE_WRITEV. dnl Check whether writev is available in <sys/uio.h>, and define HAVE_WRITEV.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_WRITEV, [ AC_DEFUN([GLIBCXX_CHECK_WRITEV], [
AC_CACHE_VAL(glibcxx_cv_WRITEV, [ AC_CACHE_VAL(glibcxx_cv_WRITEV, [
AC_TRY_LINK( AC_TRY_LINK(
[#include <sys/uio.h>], [#include <sys/uio.h>],
...@@ -588,7 +588,7 @@ AC_DEFUN(GLIBCXX_CHECK_WRITEV, [ ...@@ -588,7 +588,7 @@ AC_DEFUN(GLIBCXX_CHECK_WRITEV, [
dnl dnl
dnl Check whether int64_t is available in <stdint.h>, and define HAVE_INT64_T. dnl Check whether int64_t is available in <stdint.h>, and define HAVE_INT64_T.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_INT64_T, [ AC_DEFUN([GLIBCXX_CHECK_INT64_T], [
AC_CACHE_VAL(glibcxx_cv_INT64_T, [ AC_CACHE_VAL(glibcxx_cv_INT64_T, [
AC_TRY_COMPILE( AC_TRY_COMPILE(
[#include <stdint.h>], [#include <stdint.h>],
...@@ -605,7 +605,7 @@ AC_DEFUN(GLIBCXX_CHECK_INT64_T, [ ...@@ -605,7 +605,7 @@ AC_DEFUN(GLIBCXX_CHECK_INT64_T, [
dnl dnl
dnl Check whether LFS support is available. dnl Check whether LFS support is available.
dnl dnl
AC_DEFUN(GLIBCXX_CHECK_LFS, [ AC_DEFUN([GLIBCXX_CHECK_LFS], [
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_CPLUSPLUS AC_LANG_CPLUSPLUS
ac_save_CXXFLAGS="$CXXFLAGS" ac_save_CXXFLAGS="$CXXFLAGS"
...@@ -642,7 +642,7 @@ dnl enable_abi_check / GLIBCXX_TEST_ABI ...@@ -642,7 +642,7 @@ dnl enable_abi_check / GLIBCXX_TEST_ABI
dnl Substs: dnl Substs:
dnl baseline_dir dnl baseline_dir
dnl dnl
AC_DEFUN(GLIBCXX_CONFIGURE_TESTSUITE, [ AC_DEFUN([GLIBCXX_CONFIGURE_TESTSUITE], [
if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then
# Do checks for memory limit functions. # Do checks for memory limit functions.
GLIBCXX_CHECK_SETRLIMIT GLIBCXX_CHECK_SETRLIMIT
...@@ -682,7 +682,7 @@ dnl Substs: ...@@ -682,7 +682,7 @@ dnl Substs:
dnl GLIBCXX_INCLUDES dnl GLIBCXX_INCLUDES
dnl TOPLEVEL_INCLUDES dnl TOPLEVEL_INCLUDES
dnl dnl
AC_DEFUN(GLIBCXX_EXPORT_INCLUDES, [ AC_DEFUN([GLIBCXX_EXPORT_INCLUDES], [
# Used for every C++ compile we perform. # Used for every C++ compile we perform.
GLIBCXX_INCLUDES="\ GLIBCXX_INCLUDES="\
-I$glibcxx_builddir/include/$host_alias \ -I$glibcxx_builddir/include/$host_alias \
...@@ -713,7 +713,7 @@ dnl Substs: ...@@ -713,7 +713,7 @@ dnl Substs:
dnl OPTIMIZE_CXXFLAGS dnl OPTIMIZE_CXXFLAGS
dnl WARN_FLAGS dnl WARN_FLAGS
dnl dnl
AC_DEFUN(GLIBCXX_EXPORT_FLAGS, [ AC_DEFUN([GLIBCXX_EXPORT_FLAGS], [
# Optimization flags that are probably a good idea for thrill-seekers. Just # Optimization flags that are probably a good idea for thrill-seekers. Just
# uncomment the lines below and make, everything else is ready to go... # uncomment the lines below and make, everything else is ready to go...
# OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
...@@ -737,7 +737,7 @@ dnl ...@@ -737,7 +737,7 @@ dnl
dnl Assumes cross_compiling bits already done, and with_cross_host in dnl Assumes cross_compiling bits already done, and with_cross_host in
dnl particular. dnl particular.
dnl dnl
AC_DEFUN(GLIBCXX_EXPORT_INSTALL_INFO, [ AC_DEFUN([GLIBCXX_EXPORT_INSTALL_INFO], [
glibcxx_toolexecdir=no glibcxx_toolexecdir=no
glibcxx_toolexeclibdir=no glibcxx_toolexeclibdir=no
glibcxx_prefixdir=$prefix glibcxx_prefixdir=$prefix
...@@ -857,7 +857,7 @@ dnl + Usage: GLIBCXX_ENABLE_C99[(DEFAULT)] ...@@ -857,7 +857,7 @@ dnl + Usage: GLIBCXX_ENABLE_C99[(DEFAULT)]
dnl Where DEFAULT is either `yes' or `no'. dnl Where DEFAULT is either `yes' or `no'.
dnl + If 'C99' stuff is not available, ignores DEFAULT and sets `no'. dnl + If 'C99' stuff is not available, ignores DEFAULT and sets `no'.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_C99, [ AC_DEFUN([GLIBCXX_ENABLE_C99], [
GLIBCXX_ENABLE(c99,$1,,[turns on ISO/IEC 9899:1999 support]) GLIBCXX_ENABLE(c99,$1,,[turns on ISO/IEC 9899:1999 support])
AC_LANG_SAVE AC_LANG_SAVE
...@@ -984,7 +984,7 @@ dnl --disable-cheaders [does not do anything, really]. ...@@ -984,7 +984,7 @@ dnl --disable-cheaders [does not do anything, really].
dnl + Usage: GLIBCXX_ENABLE_CHEADERS[(DEFAULT)] dnl + Usage: GLIBCXX_ENABLE_CHEADERS[(DEFAULT)]
dnl Where DEFAULT is either `c' or `c_std'. dnl Where DEFAULT is either `c' or `c_std'.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_CHEADERS, [ AC_DEFUN([GLIBCXX_ENABLE_CHEADERS], [
GLIBCXX_ENABLE(cheaders,$1,[=KIND], GLIBCXX_ENABLE(cheaders,$1,[=KIND],
[construct "C" headers for g++], [permit c|c_std]) [construct "C" headers for g++], [permit c|c_std])
AC_MSG_NOTICE("C" header strategy set to $enable_cheaders) AC_MSG_NOTICE("C" header strategy set to $enable_cheaders)
...@@ -1004,7 +1004,7 @@ dnl a subdirectory of config/locale. ...@@ -1004,7 +1004,7 @@ dnl a subdirectory of config/locale.
dnl dnl
dnl Default is generic. dnl Default is generic.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_CLOCALE, [ AC_DEFUN([GLIBCXX_ENABLE_CLOCALE], [
AC_MSG_CHECKING([for C locale to use]) AC_MSG_CHECKING([for C locale to use])
GLIBCXX_ENABLE(clocale,auto,[@<:@=MODEL@:>@], GLIBCXX_ENABLE(clocale,auto,[@<:@=MODEL@:>@],
[use MODEL for target locale package], [use MODEL for target locale package],
...@@ -1191,7 +1191,7 @@ dnl --disable-concept-checks leaves them off. ...@@ -1191,7 +1191,7 @@ dnl --disable-concept-checks leaves them off.
dnl + Usage: GLIBCXX_ENABLE_CONCEPT_CHECKS[(DEFAULT)] dnl + Usage: GLIBCXX_ENABLE_CONCEPT_CHECKS[(DEFAULT)]
dnl Where DEFAULT is either `yes' or `no'. dnl Where DEFAULT is either `yes' or `no'.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_CONCEPT_CHECKS, [ AC_DEFUN([GLIBCXX_ENABLE_CONCEPT_CHECKS], [
GLIBCXX_ENABLE(concept-checks,$1,,[use Boost-derived template checks]) GLIBCXX_ENABLE(concept-checks,$1,,[use Boost-derived template checks])
if test $enable_concept_checks = yes; then if test $enable_concept_checks = yes; then
AC_DEFINE(_GLIBCXX_CONCEPT_CHECKS) AC_DEFINE(_GLIBCXX_CONCEPT_CHECKS)
...@@ -1204,7 +1204,7 @@ dnl Check for which I/O library to use: stdio, or something specific. ...@@ -1204,7 +1204,7 @@ dnl Check for which I/O library to use: stdio, or something specific.
dnl dnl
dnl Default is stdio. dnl Default is stdio.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_CSTDIO, [ AC_DEFUN([GLIBCXX_ENABLE_CSTDIO], [
AC_MSG_CHECKING([for underlying I/O to use]) AC_MSG_CHECKING([for underlying I/O to use])
GLIBCXX_ENABLE(cstdio,stdio,[=PACKAGE], GLIBCXX_ENABLE(cstdio,stdio,[=PACKAGE],
[use target-specific I/O package], [permit stdio]) [use target-specific I/O package], [permit stdio])
...@@ -1240,7 +1240,7 @@ dnl + Usage: GLIBCXX_ENABLE_CXX_FLAGS(default flags) ...@@ -1240,7 +1240,7 @@ dnl + Usage: GLIBCXX_ENABLE_CXX_FLAGS(default flags)
dnl If "default flags" is an empty string, the effect is the same dnl If "default flags" is an empty string, the effect is the same
dnl as --disable or --enable=no. dnl as --disable or --enable=no.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_CXX_FLAGS, [dnl AC_DEFUN([GLIBCXX_ENABLE_CXX_FLAGS], [dnl
AC_MSG_CHECKING([for extra compiler flags for building]) AC_MSG_CHECKING([for extra compiler flags for building])
GLIBCXX_ENABLE(cxx-flags,$1,[=FLAGS], GLIBCXX_ENABLE(cxx-flags,$1,[=FLAGS],
[pass compiler FLAGS when building library], [pass compiler FLAGS when building library],
...@@ -1278,7 +1278,7 @@ dnl --disable-c-mbchar doesn't. ...@@ -1278,7 +1278,7 @@ dnl --disable-c-mbchar doesn't.
dnl + Usage: GLIBCXX_ENABLE_C_MBCHAR[(DEFAULT)] dnl + Usage: GLIBCXX_ENABLE_C_MBCHAR[(DEFAULT)]
dnl Where DEFAULT is either `yes' or `no'. dnl Where DEFAULT is either `yes' or `no'.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_C_MBCHAR, [ AC_DEFUN([GLIBCXX_ENABLE_C_MBCHAR], [
GLIBCXX_ENABLE(c-mbchar,$1,,[enable multibyte (wide) characters]) GLIBCXX_ENABLE(c-mbchar,$1,,[enable multibyte (wide) characters])
# Option parsed, now other scripts can test enable_c_mbchar for yes/no. # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
]) ])
...@@ -1300,7 +1300,7 @@ dnl ...@@ -1300,7 +1300,7 @@ dnl
dnl + Usage: GLIBCXX_ENABLE_DEBUG[(DEFAULT)] dnl + Usage: GLIBCXX_ENABLE_DEBUG[(DEFAULT)]
dnl Where DEFAULT is either `yes' or `no'. dnl Where DEFAULT is either `yes' or `no'.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_DEBUG, [ AC_DEFUN([GLIBCXX_ENABLE_DEBUG], [
AC_MSG_CHECKING([for additional debug build]) AC_MSG_CHECKING([for additional debug build])
GLIBCXX_ENABLE(libstdcxx-debug,$1,,[build extra debug library]) GLIBCXX_ENABLE(libstdcxx-debug,$1,,[build extra debug library])
AC_MSG_RESULT($enable_libstdcxx_debug) AC_MSG_RESULT($enable_libstdcxx_debug)
...@@ -1320,7 +1320,7 @@ dnl + Usage: GLIBCXX_ENABLE_DEBUG_FLAGS(default flags) ...@@ -1320,7 +1320,7 @@ dnl + Usage: GLIBCXX_ENABLE_DEBUG_FLAGS(default flags)
dnl If "default flags" is an empty string, the effect is the same dnl If "default flags" is an empty string, the effect is the same
dnl as --disable or --enable=no. dnl as --disable or --enable=no.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_DEBUG_FLAGS, [ AC_DEFUN([GLIBCXX_ENABLE_DEBUG_FLAGS], [
GLIBCXX_ENABLE(libstdcxx-debug-flags,[$1],[=FLAGS], GLIBCXX_ENABLE(libstdcxx-debug-flags,[$1],[=FLAGS],
[pass compiler FLAGS when building debug library], [pass compiler FLAGS when building debug library],
[case "x$enable_libstdcxx_debug_flags" in [case "x$enable_libstdcxx_debug_flags" in
...@@ -1351,7 +1351,7 @@ dnl ...@@ -1351,7 +1351,7 @@ dnl
dnl Defines: dnl Defines:
dnl _GLIBCXX_HOSTED (always defined, either to 1 or 0) dnl _GLIBCXX_HOSTED (always defined, either to 1 or 0)
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_HOSTED, [ AC_DEFUN([GLIBCXX_ENABLE_HOSTED], [
AC_ARG_ENABLE([hosted-libstdcxx], AC_ARG_ENABLE([hosted-libstdcxx],
AC_HELP_STRING([--disable-hosted-libstdcxx], AC_HELP_STRING([--disable-hosted-libstdcxx],
[only build freestanding C++ runtime support]),, [only build freestanding C++ runtime support]),,
...@@ -1383,7 +1383,7 @@ dnl + Usage: GLIBCXX_ENABLE_LONG_LONG[(DEFAULT)] ...@@ -1383,7 +1383,7 @@ dnl + Usage: GLIBCXX_ENABLE_LONG_LONG[(DEFAULT)]
dnl Where DEFAULT is either `yes' or `no'. dnl Where DEFAULT is either `yes' or `no'.
dnl + If 'long long' stuff is not available, ignores DEFAULT and sets `no'. dnl + If 'long long' stuff is not available, ignores DEFAULT and sets `no'.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_LONG_LONG, [ AC_DEFUN([GLIBCXX_ENABLE_LONG_LONG], [
GLIBCXX_ENABLE(long-long,$1,,[enables I/O support for 'long long']) GLIBCXX_ENABLE(long-long,$1,,[enables I/O support for 'long long'])
AC_LANG_SAVE AC_LANG_SAVE
...@@ -1420,7 +1420,7 @@ dnl ...@@ -1420,7 +1420,7 @@ dnl
dnl Substs: dnl Substs:
dnl glibcxx_PCHFLAGS dnl glibcxx_PCHFLAGS
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_PCH, [ AC_DEFUN([GLIBCXX_ENABLE_PCH], [
AC_MSG_CHECKING([for enabled PCH]) AC_MSG_CHECKING([for enabled PCH])
GLIBCXX_ENABLE(libstdcxx-pch,$1,,[build pre-compiled libstdc++ headers]) GLIBCXX_ENABLE(libstdcxx-pch,$1,,[build pre-compiled libstdc++ headers])
AC_MSG_RESULT([$enable_libstdcxx_pch]) AC_MSG_RESULT([$enable_libstdcxx_pch])
...@@ -1472,7 +1472,7 @@ dnl ...@@ -1472,7 +1472,7 @@ dnl
dnl Defines: dnl Defines:
dnl _GLIBCXX_SJLJ_EXCEPTIONS if the compiler is configured for it dnl _GLIBCXX_SJLJ_EXCEPTIONS if the compiler is configured for it
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_SJLJ_EXCEPTIONS, [ AC_DEFUN([GLIBCXX_ENABLE_SJLJ_EXCEPTIONS], [
AC_MSG_CHECKING([for exception model to use]) AC_MSG_CHECKING([for exception model to use])
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_CPLUSPLUS AC_LANG_CPLUSPLUS
...@@ -1542,7 +1542,7 @@ dnl Where DEFAULT is either 'yes' or 'no'. Passing `yes' tries to ...@@ -1542,7 +1542,7 @@ dnl Where DEFAULT is either 'yes' or 'no'. Passing `yes' tries to
dnl choose a default style based on linker characteristics. Passing dnl choose a default style based on linker characteristics. Passing
dnl 'no' disables versioning. dnl 'no' disables versioning.
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_SYMVERS, [ AC_DEFUN([GLIBCXX_ENABLE_SYMVERS], [
GLIBCXX_ENABLE(symvers,$1,[=STYLE], GLIBCXX_ENABLE(symvers,$1,[=STYLE],
[enables symbol versioning of the shared library], [enables symbol versioning of the shared library],
...@@ -1646,7 +1646,7 @@ dnl Defines: ...@@ -1646,7 +1646,7 @@ dnl Defines:
dnl HAVE_GTHR_DEFAULT dnl HAVE_GTHR_DEFAULT
dnl _GLIBCXX_SUPPORTS_WEAK dnl _GLIBCXX_SUPPORTS_WEAK
dnl dnl
AC_DEFUN(GLIBCXX_ENABLE_THREADS, [ AC_DEFUN([GLIBCXX_ENABLE_THREADS], [
AC_MSG_CHECKING([for thread model used by GCC]) AC_MSG_CHECKING([for thread model used by GCC])
target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'` target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
AC_MSG_RESULT([$target_thread_file]) AC_MSG_RESULT([$target_thread_file])
...@@ -1670,7 +1670,7 @@ AC_DEFUN(GLIBCXX_ENABLE_THREADS, [ ...@@ -1670,7 +1670,7 @@ AC_DEFUN(GLIBCXX_ENABLE_THREADS, [
# Please note that the actual code is *not* freely available. # Please note that the actual code is *not* freely available.
# serial 1 # serial 1
AC_DEFUN(AC_LC_MESSAGES, [ AC_DEFUN([AC_LC_MESSAGES], [
AC_CHECK_HEADER(locale.h, [ AC_CHECK_HEADER(locale.h, [
AC_CACHE_CHECK([for LC_MESSAGES], ac_cv_val_LC_MESSAGES, AC_CACHE_CHECK([for LC_MESSAGES], ac_cv_val_LC_MESSAGES,
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
......
...@@ -8,7 +8,7 @@ dnl declared when using the c++ compiler ...@@ -8,7 +8,7 @@ dnl declared when using the c++ compiler
dnl ASSUMES argument is a math function with ONE parameter dnl ASSUMES argument is a math function with ONE parameter
dnl dnl
dnl GLIBCXX_CHECK_MATH_DECL_1 dnl GLIBCXX_CHECK_MATH_DECL_1
AC_DEFUN(GLIBCXX_CHECK_MATH_DECL_1, [ AC_DEFUN([GLIBCXX_CHECK_MATH_DECL_1], [
AC_MSG_CHECKING([for $1 declaration]) AC_MSG_CHECKING([for $1 declaration])
if test x${glibcxx_cv_func_$1_use+set} != xset; then if test x${glibcxx_cv_func_$1_use+set} != xset; then
AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ AC_CACHE_VAL(glibcxx_cv_func_$1_use, [
...@@ -40,7 +40,7 @@ dnl ...@@ -40,7 +40,7 @@ dnl
dnl ASSUMES argument is a math function with ONE parameter dnl ASSUMES argument is a math function with ONE parameter
dnl dnl
dnl GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_1 dnl GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_1
AC_DEFUN(GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_1, [ AC_DEFUN([GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_1], [
GLIBCXX_CHECK_MATH_DECL_1($1) GLIBCXX_CHECK_MATH_DECL_1($1)
if test x$glibcxx_cv_func_$1_use = x"yes"; then if test x$glibcxx_cv_func_$1_use = x"yes"; then
AC_CHECK_FUNCS($1) AC_CHECK_FUNCS($1)
...@@ -58,7 +58,7 @@ dnl Like GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_1, but does a bunch of ...@@ -58,7 +58,7 @@ dnl Like GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_1, but does a bunch of
dnl of functions at once. It's an all-or-nothing check -- either dnl of functions at once. It's an all-or-nothing check -- either
dnl HAVE_XYZ is defined for each of the functions, or for none of them. dnl HAVE_XYZ is defined for each of the functions, or for none of them.
dnl Doing it this way saves significant configure time. dnl Doing it this way saves significant configure time.
AC_DEFUN(GLIBCXX_CHECK_MATH_DECLS_AND_LINKAGES_1, [ AC_DEFUN([GLIBCXX_CHECK_MATH_DECLS_AND_LINKAGES_1], [
AC_MSG_CHECKING([for $1 functions]) AC_MSG_CHECKING([for $1 functions])
AC_CACHE_VAL(glibcxx_cv_func_$2_use, [ AC_CACHE_VAL(glibcxx_cv_func_$2_use, [
AC_LANG_SAVE AC_LANG_SAVE
...@@ -80,7 +80,7 @@ dnl declared when using the c++ compiler ...@@ -80,7 +80,7 @@ dnl declared when using the c++ compiler
dnl ASSUMES argument is a math function with TWO parameters dnl ASSUMES argument is a math function with TWO parameters
dnl dnl
dnl GLIBCXX_CHECK_MATH_DECL_2 dnl GLIBCXX_CHECK_MATH_DECL_2
AC_DEFUN(GLIBCXX_CHECK_MATH_DECL_2, [ AC_DEFUN([GLIBCXX_CHECK_MATH_DECL_2], [
AC_MSG_CHECKING([for $1 declaration]) AC_MSG_CHECKING([for $1 declaration])
if test x${glibcxx_cv_func_$1_use+set} != xset; then if test x${glibcxx_cv_func_$1_use+set} != xset; then
AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ AC_CACHE_VAL(glibcxx_cv_func_$1_use, [
...@@ -107,7 +107,7 @@ dnl ...@@ -107,7 +107,7 @@ dnl
dnl ASSUMES argument is a math function with TWO parameters dnl ASSUMES argument is a math function with TWO parameters
dnl dnl
dnl GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_2 dnl GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_2
AC_DEFUN(GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_2, [ AC_DEFUN([GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_2], [
GLIBCXX_CHECK_MATH_DECL_2($1) GLIBCXX_CHECK_MATH_DECL_2($1)
if test x$glibcxx_cv_func_$1_use = x"yes"; then if test x$glibcxx_cv_func_$1_use = x"yes"; then
AC_CHECK_FUNCS($1) AC_CHECK_FUNCS($1)
...@@ -126,7 +126,7 @@ dnl declared when using the c++ compiler ...@@ -126,7 +126,7 @@ dnl declared when using the c++ compiler
dnl ASSUMES argument is a math function with THREE parameters dnl ASSUMES argument is a math function with THREE parameters
dnl dnl
dnl GLIBCXX_CHECK_MATH_DECL_3 dnl GLIBCXX_CHECK_MATH_DECL_3
AC_DEFUN(GLIBCXX_CHECK_MATH_DECL_3, [ AC_DEFUN([GLIBCXX_CHECK_MATH_DECL_3], [
AC_MSG_CHECKING([for $1 declaration]) AC_MSG_CHECKING([for $1 declaration])
if test x${glibcxx_cv_func_$1_use+set} != xset; then if test x${glibcxx_cv_func_$1_use+set} != xset; then
AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ AC_CACHE_VAL(glibcxx_cv_func_$1_use, [
...@@ -153,7 +153,7 @@ dnl ...@@ -153,7 +153,7 @@ dnl
dnl ASSUMES argument is a math function with THREE parameters dnl ASSUMES argument is a math function with THREE parameters
dnl dnl
dnl GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_3 dnl GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_3
AC_DEFUN(GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_3, [ AC_DEFUN([GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_3], [
GLIBCXX_CHECK_MATH_DECL_3($1) GLIBCXX_CHECK_MATH_DECL_3($1)
if test x$glibcxx_cv_func_$1_use = x"yes"; then if test x$glibcxx_cv_func_$1_use = x"yes"; then
AC_CHECK_FUNCS($1) AC_CHECK_FUNCS($1)
...@@ -176,7 +176,7 @@ dnl ...@@ -176,7 +176,7 @@ dnl
dnl ASSUMES argument is a stdlib function without parameters dnl ASSUMES argument is a stdlib function without parameters
dnl dnl
dnl GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0 dnl GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0
AC_DEFUN(GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0, [ AC_DEFUN([GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0], [
AC_MSG_CHECKING([for $1 declaration]) AC_MSG_CHECKING([for $1 declaration])
if test x${glibcxx_cv_func_$1_use+set} != xset; then if test x${glibcxx_cv_func_$1_use+set} != xset; then
AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ AC_CACHE_VAL(glibcxx_cv_func_$1_use, [
...@@ -205,7 +205,7 @@ dnl ...@@ -205,7 +205,7 @@ dnl
dnl ASSUMES argument is a math function with TWO parameters dnl ASSUMES argument is a math function with TWO parameters
dnl dnl
dnl GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_2 dnl GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_2
AC_DEFUN(GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_2, [ AC_DEFUN([GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_2], [
AC_MSG_CHECKING([for $1 declaration]) AC_MSG_CHECKING([for $1 declaration])
if test x${glibcxx_cv_func_$1_use+set} != xset; then if test x${glibcxx_cv_func_$1_use+set} != xset; then
AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ AC_CACHE_VAL(glibcxx_cv_func_$1_use, [
...@@ -234,7 +234,7 @@ dnl ...@@ -234,7 +234,7 @@ dnl
dnl ASSUMES argument is a function with THREE parameters dnl ASSUMES argument is a function with THREE parameters
dnl dnl
dnl GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_3 dnl GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_3
AC_DEFUN(GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_3, [ AC_DEFUN([GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_3], [
AC_MSG_CHECKING([for $1 declaration]) AC_MSG_CHECKING([for $1 declaration])
if test x${glibcxx_cv_func_$1_use+set} != xset; then if test x${glibcxx_cv_func_$1_use+set} != xset; then
AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ AC_CACHE_VAL(glibcxx_cv_func_$1_use, [
...@@ -266,7 +266,7 @@ dnl ...@@ -266,7 +266,7 @@ dnl
dnl ASSUMES argument is a math function with ONE parameter dnl ASSUMES argument is a math function with ONE parameter
dnl dnl
dnl GLIBCXX_CHECK_BUILTIN_MATH_DECL_LINKAGE_1 dnl GLIBCXX_CHECK_BUILTIN_MATH_DECL_LINKAGE_1
AC_DEFUN(GLIBCXX_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1, [ AC_DEFUN([GLIBCXX_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1], [
AC_MSG_CHECKING([for $1 declaration]) AC_MSG_CHECKING([for $1 declaration])
if test x${glibcxx_cv_func_$1_use+set} != xset; then if test x${glibcxx_cv_func_$1_use+set} != xset; then
AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ AC_CACHE_VAL(glibcxx_cv_func_$1_use, [
...@@ -316,7 +316,7 @@ dnl check for __builtin_cos ...@@ -316,7 +316,7 @@ dnl check for __builtin_cos
dnl check for __builtin_cosl dnl check for __builtin_cosl
dnl dnl
dnl GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT dnl GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
AC_DEFUN(GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT, [ AC_DEFUN([GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT], [
dnl Test for builtin math functions. dnl Test for builtin math functions.
dnl These are made in gcc/c-common.c dnl These are made in gcc/c-common.c
GLIBCXX_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1(__builtin_abs) GLIBCXX_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1(__builtin_abs)
...@@ -373,7 +373,7 @@ dnl Define HAVE_STRTOLD if "strtold" is declared and links ...@@ -373,7 +373,7 @@ dnl Define HAVE_STRTOLD if "strtold" is declared and links
dnl Define HAVE_STRTOF if "strtof" is declared and links dnl Define HAVE_STRTOF if "strtof" is declared and links
dnl dnl
dnl GLIBCXX_CHECK_STDLIB_SUPPORT dnl GLIBCXX_CHECK_STDLIB_SUPPORT
AC_DEFUN(GLIBCXX_CHECK_STDLIB_SUPPORT, [ AC_DEFUN([GLIBCXX_CHECK_STDLIB_SUPPORT], [
ac_test_CXXFLAGS="${CXXFLAGS+set}" ac_test_CXXFLAGS="${CXXFLAGS+set}"
ac_save_CXXFLAGS="$CXXFLAGS" ac_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS='-fno-builtin -D_GNU_SOURCE' CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
...@@ -394,7 +394,7 @@ dnl ...@@ -394,7 +394,7 @@ dnl
dnl Define HAVE_CARGF etc if "cargf" is found. dnl Define HAVE_CARGF etc if "cargf" is found.
dnl dnl
dnl GLIBCXX_CHECK_MATH_SUPPORT dnl GLIBCXX_CHECK_MATH_SUPPORT
AC_DEFUN(GLIBCXX_CHECK_MATH_SUPPORT, [ AC_DEFUN([GLIBCXX_CHECK_MATH_SUPPORT], [
ac_test_CXXFLAGS="${CXXFLAGS+set}" ac_test_CXXFLAGS="${CXXFLAGS+set}"
ac_save_CXXFLAGS="$CXXFLAGS" ac_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS='-fno-builtin -D_GNU_SOURCE' CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
...@@ -505,7 +505,7 @@ dnl ...@@ -505,7 +505,7 @@ dnl
dnl Define USE_COMPLEX_LONG_DOUBLE etc if "copysignl" is found. dnl Define USE_COMPLEX_LONG_DOUBLE etc if "copysignl" is found.
dnl dnl
dnl GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT dnl GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
AC_DEFUN(GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT, [ AC_DEFUN([GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT], [
dnl Check for complex versions of math functions of platform. This will dnl Check for complex versions of math functions of platform. This will
dnl always pass if libm is available, and fail if it isn't. If it is dnl always pass if libm is available, and fail if it isn't. If it is
dnl available, we assume we'll need it later, so add it to LIBS. dnl available, we assume we'll need it later, so add it to LIBS.
...@@ -543,7 +543,7 @@ AC_DEFUN(GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT, [ ...@@ -543,7 +543,7 @@ AC_DEFUN(GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT, [
# serial 1 # serial 1
# #
dnl AC_REPLACE_MATHFUNCS(FUNCTION...) dnl AC_REPLACE_MATHFUNCS(FUNCTION...)
AC_DEFUN(AC_REPLACE_MATHFUNCS, AC_DEFUN([AC_REPLACE_MATHFUNCS],
[AC_CHECK_FUNCS([$1], , [LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"])]) [AC_CHECK_FUNCS([$1], , [LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"])])
dnl vim:et:ts=2 dnl vim:et:ts=2
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment