summaryrefslogtreecommitdiff
path: root/libstdc++-v3/crossconfig.m4
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2008-08-17 10:19:34 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2008-08-17 10:19:34 +0000
commit4f37153a3296d95442b98769afc8f34c596f6145 (patch)
tree2b755621212e4b743c6980e6a4b886daa98e2964 /libstdc++-v3/crossconfig.m4
parent07f3488782c96746ec876636f81996ace6c1691f (diff)
downloadgcc-4f37153a3296d95442b98769afc8f34c596f6145.tar.gz
2008-08-17 Paolo Carlini <paolo.carlini@oracle.com>
* acinclude.m4 ([GLIBCXX_CHECK_LFS], [GLIBCXX_CHECK_POLL], [GLIBCXX_CHECK_S_ISREG_OR_S_IFREG], [GLIBCXX_CHECK_WRITEV]): Use GCC_TRY_COMPILE_OR_LINK instead of AC_TRY_LINK, in C++, with -fno-exceptions as flags. * configure.ac: Run unconditionally GLIBCXX_CHECK_LFS, GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_S_ISREG_OR_S_IFREG, GLIBCXX_CHECK_WRITEV and commonized AC_CHECK_HEADERS. * crossconfig.m4: Adjust; remove AC_CHECK_HEADERS commonized in configure.ac. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139168 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/crossconfig.m4')
-rw-r--r--libstdc++-v3/crossconfig.m484
1 files changed, 1 insertions, 83 deletions
diff --git a/libstdc++-v3/crossconfig.m4 b/libstdc++-v3/crossconfig.m4
index a38a4c306a1..0ca1ef94eb5 100644
--- a/libstdc++-v3/crossconfig.m4
+++ b/libstdc++-v3/crossconfig.m4
@@ -11,10 +11,6 @@ case "${host}" in
mips*-sde-elf*)
# These definitions are for the SDE C library rather than newlib.
- AC_CHECK_HEADERS([float.h inttypes.h locale.h \
- stdint.h stdlib.h string.h unistd.h wchar.h \
- machine/endian.h sys/ioctl.h sys/resource.h \
- sys/stat.h sys/time.h sys/types.h sys/uio.h])
SECTION_FLAGS='-ffunction-sections -fdata-sections'
AC_SUBST(SECTION_FLAGS)
GLIBCXX_CHECK_COMPILER_FEATURES
@@ -23,8 +19,6 @@ case "${host}" in
GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
GLIBCXX_CHECK_STDLIB_SUPPORT
- GLIBCXX_CHECK_S_ISREG_OR_S_IFREG
- AC_DEFINE(HAVE_WRITEV)
AC_DEFINE(HAVE_LIBM)
AC_DEFINE(HAVE_COPYSIGN)
@@ -42,9 +36,6 @@ case "${host}" in
# Darwin versions vary, but the linker should work in a cross environment,
# so we just check for all the features here.
# Check for available headers.
- AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
- machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h \
- sys/types.h])
# Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
GLIBCXX_CHECK_MATH_SUPPORT
@@ -52,23 +43,10 @@ case "${host}" in
GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
GLIBCXX_CHECK_STDLIB_SUPPORT
- # For showmanyc_helper().
- AC_CHECK_HEADERS(sys/ioctl.h sys/filio.h)
- GLIBCXX_CHECK_POLL
- GLIBCXX_CHECK_S_ISREG_OR_S_IFREG
-
- # For xsputn_2().
- AC_CHECK_HEADERS(sys/uio.h)
- GLIBCXX_CHECK_WRITEV
-
AC_DEFINE(HAVE_LC_MESSAGES)
;;
*djgpp)
- AC_CHECK_HEADERS([float.h ieeefp.h inttypes.h locale.h \
- memory.h stdint.h stdlib.h strings.h string.h unistd.h \
- wchar.h wctype.h machine/endian.h sys/ioctl.h sys/param.h \
- sys/resource.h sys/stat.h sys/time.h sys/types.h sys/uio.h])
# GLIBCXX_CHECK_MATH_SUPPORT
AC_DEFINE(HAVE_LIBM)
AC_DEFINE(HAVE_ISINF)
@@ -96,17 +74,9 @@ case "${host}" in
# GLIBCXX_CHECK_STDLIB_SUPPORT
AC_DEFINE(HAVE_COPYSIGN)
AC_DEFINE(HAVE_COPYSIGNF)
- # GLIBCXX_CHECK_S_ISREG_OR_S_IFREG
- AC_DEFINE(HAVE_S_ISREG)
- AC_DEFINE(HAVE_S_IFREG)
- AC_DEFINE(HAVE_WRITEV)
;;
*-freebsd*)
- AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
- machine/endian.h machine/param.h sys/machine.h sys/types.h \
- fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
- sys/time.h unistd.h])
SECTION_FLAGS='-ffunction-sections -fdata-sections'
AC_SUBST(SECTION_FLAGS)
GLIBCXX_CHECK_LINKER_FEATURES
@@ -155,9 +125,6 @@ case "${host}" in
fi
;;
*-hpux*)
- AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
- machine/endian.h machine/param.h sys/machine.h sys/types.h \
- fp.h locale.h float.h inttypes.h])
SECTION_FLAGS='-ffunction-sections -fdata-sections'
AC_SUBST(SECTION_FLAGS)
GLIBCXX_CHECK_LINKER_FEATURES
@@ -178,10 +145,6 @@ case "${host}" in
esac
;;
*-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu)
- AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
- machine/endian.h machine/param.h sys/machine.h sys/types.h \
- fp.h float.h endian.h inttypes.h locale.h float.h stdint.h \
- sys/ipc.h sys/sem.h])
SECTION_FLAGS='-ffunction-sections -fdata-sections'
AC_SUBST(SECTION_FLAGS)
GLIBCXX_CHECK_COMPILER_FEATURES
@@ -191,18 +154,6 @@ case "${host}" in
GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
GLIBCXX_CHECK_STDLIB_SUPPORT
- # For LFS.
- GLIBCXX_CHECK_LFS
-
- # For showmanyc_helper().
- AC_CHECK_HEADERS(sys/ioctl.h sys/filio.h)
- GLIBCXX_CHECK_POLL
- GLIBCXX_CHECK_S_ISREG_OR_S_IFREG
-
- # For xsputn_2().
- AC_CHECK_HEADERS(sys/uio.h)
- GLIBCXX_CHECK_WRITEV
-
AC_DEFINE(_GLIBCXX_USE_RANDOM_TR1)
AC_LC_MESSAGES
@@ -211,16 +162,12 @@ case "${host}" in
AM_ICONV
;;
*-mingw32*)
- AC_CHECK_HEADERS([sys/types.h locale.h float.h])
AC_DEFINE(HAVE_STRTOF)
AC_DEFINE(HAVE_STRTOLD)
GLIBCXX_CHECK_LINKER_FEATURES
GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
;;
*-netbsd*)
- AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
- machine/endian.h machine/param.h sys/machine.h sys/types.h \
- fp.h locale.h float.h inttypes.h])
SECTION_FLAGS='-ffunction-sections -fdata-sections'
AC_SUBST(SECTION_FLAGS)
GLIBCXX_CHECK_LINKER_FEATURES
@@ -242,8 +189,6 @@ case "${host}" in
fi
;;
*-netware)
- AC_CHECK_HEADERS([nan.h ieeefp.h sys/isa_defs.h sys/machine.h \
- sys/types.h locale.h float.h inttypes.h])
SECTION_FLAGS='-ffunction-sections -fdata-sections'
AC_SUBST(SECTION_FLAGS)
GLIBCXX_CHECK_LINKER_FEATURES
@@ -251,15 +196,6 @@ case "${host}" in
AC_DEFINE(HAVE_HYPOT)
AC_DEFINE(HAVE_ISINF)
AC_DEFINE(HAVE_ISNAN)
-
- # For showmanyc_helper().
- AC_CHECK_HEADERS(sys/ioctl.h sys/filio.h)
- GLIBCXX_CHECK_POLL
- GLIBCXX_CHECK_S_ISREG_OR_S_IFREG
-
- # For xsputn_2().
- AC_CHECK_HEADERS(sys/uio.h)
- GLIBCXX_CHECK_WRITEV
;;
*-qnx6.1* | *-qnx6.2*)
SECTION_FLAGS='-ffunction-sections -fdata-sections'
@@ -284,29 +220,13 @@ case "${host}" in
*-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10)
GLIBCXX_CHECK_LINKER_FEATURES
AC_DEFINE(HAVE_MBSTATE_T)
- AC_DEFINE(HAVE_POLL)
- AC_DEFINE(HAVE_S_ISREG)
AC_DEFINE(HAVE_LC_MESSAGES)
AC_DEFINE(HAVE_FINITE)
AC_DEFINE(HAVE_FPCLASS)
# All of the dependencies for wide character support are here, so
# turn it on.
AC_DEFINE(_GLIBCXX_USE_WCHAR_T)
- # Are these tested for even when cross?
- AC_DEFINE(HAVE_FLOAT_H)
- AC_DEFINE(HAVE_IEEEFP_H)
- AC_DEFINE(HAVE_INTTYPES_H)
- AC_DEFINE(HAVE_LOCALE_H)
- AC_DEFINE(HAVE_NAN_H)
- AC_DEFINE(HAVE_SYS_FILIO_H)
- AC_DEFINE(HAVE_SYS_IOCTL_H)
- AC_DEFINE(HAVE_SYS_ISA_DEFS_H)
- AC_DEFINE(HAVE_SYS_RESOURCE_H)
- AC_DEFINE(HAVE_SYS_TIME_H)
- AC_DEFINE(HAVE_SYS_TYPES_H)
- AC_DEFINE(HAVE_UNISTD_H)
- AC_DEFINE(HAVE_WCHAR_H)
- AC_DEFINE(HAVE_WCTYPE_H)
+
AC_DEFINE(HAVE_LIBM)
;;
esac
@@ -338,8 +258,6 @@ case "${host}" in
AC_DEFINE(HAVE_HYPOT)
;;
*-tpf)
- AC_CHECK_HEADERS([nan.h endian.h machine/endian.h \
- sys/param.h sys/types.h locale.h float.h inttypes.h])
SECTION_FLAGS='-ffunction-sections -fdata-sections'
AC_SUBST(SECTION_FLAGS)
GLIBCXX_CHECK_LINKER_FEATURES