diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-20 03:32:00 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-20 03:32:00 +0000 |
commit | 23632296b93d305daea4de816a66207ddf4f2b30 (patch) | |
tree | b00f4056824c498f2f314da633ee1c8b001af383 /libstdc++-v3/crossconfig.m4 | |
parent | 62cb80577165221fc77495a03b0f0ec90c982c16 (diff) | |
download | gcc-23632296b93d305daea4de816a66207ddf4f2b30.tar.gz |
* crossconfig.m4 (*-darwin*): Add a large and boring stanza for
crosses to Darwin targets.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70590 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/crossconfig.m4')
-rw-r--r-- | libstdc++-v3/crossconfig.m4 | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libstdc++-v3/crossconfig.m4 b/libstdc++-v3/crossconfig.m4 index 65976886a75..cec7a6257b8 100644 --- a/libstdc++-v3/crossconfig.m4 +++ b/libstdc++-v3/crossconfig.m4 @@ -4,6 +4,44 @@ dnl # Base decisions on target environment. case "${host}" in + *-darwin*) + # 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 gconv.h \ + sys/types.h]) + + GLIBCXX_CHECK_COMPILER_FEATURES + # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld + GLIBCXX_CHECK_MATH_SUPPORT + GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT + GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT + GLIBCXX_CHECK_WCHAR_T_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) + + AC_TRY_COMPILE( + [#include <setjmp.h>], + [sigjmp_buf env; + while (! sigsetjmp (env, 1)) + siglongjmp (env, 1); + ], + [AC_DEFINE(HAVE_SIGSETJMP, 1, [Define if sigsetjmp is available.])]) + + AC_DEFINE(HAVE_MMAP) + ;; + *-freebsd*) #os_include_dir="os/bsd/freebsd" AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \ |