From c311faa89dac4e90cc1ace61c083ff4d7402f3c7 Mon Sep 17 00:00:00 2001 From: spark Date: Tue, 15 Jan 2008 00:15:43 +0000 Subject: [PATCH] 2008-01-14 Seongbae Park * crossconfig.m4: Add missing header checks, C99 TR1 check, and sigsetjmp check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131537 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/crossconfig.m4 | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index dac5023..46eea7a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2008-01-14 Seongbae Park + + * crossconfig.m4: Add missing header checks, C99 TR1 check, + and sigsetjmp check. + 2008-01-14 Paolo Carlini * include/parallel/tree.h: Remove. diff --git a/libstdc++-v3/crossconfig.m4 b/libstdc++-v3/crossconfig.m4 index 27df060..6d0c226 100644 --- a/libstdc++-v3/crossconfig.m4 +++ b/libstdc++-v3/crossconfig.m4 @@ -196,7 +196,8 @@ case "${host}" in *-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]) + fp.h float.h endian.h inttypes.h locale.h float.h stdint.h \ + sys/ipc.h sys/sem.h gconf.h]) SECTION_FLAGS='-ffunction-sections -fdata-sections' AC_SUBST(SECTION_FLAGS) GLIBCXX_CHECK_COMPILER_FEATURES @@ -218,6 +219,18 @@ case "${host}" in # For xsputn_2(). AC_CHECK_HEADERS(sys/uio.h) GLIBCXX_CHECK_WRITEV + + # For C99 support to TR1. + GLIBCXX_CHECK_C99_TR1 + + # Check for sigsetjmp + AC_TRY_COMPILE( + [#include ], + [sigjmp_buf env; + while (! sigsetjmp (env, 1)) + siglongjmp (env, 1); + ], + [AC_DEFINE(HAVE_SIGSETJMP, 1, [Define if sigsetjmp is available.])]) ;; *-mingw32*) AC_CHECK_HEADERS([sys/types.h locale.h float.h]) -- 2.7.4