1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
3 if test "x$libc_cv_gcc___thread" != xyes; then
4 as_fn_error $? "compiler support for __thread is required" "$LINENO" 5
7 if test "x${libc_cv_visibility_attribute}" != xyes ||
8 test "x${libc_cv_broken_visibility_attribute}" != xno; then
9 as_fn_error $? "working compiler support for visibility attribute is required" "$LINENO" 5
13 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forced unwind support" >&5
14 $as_echo_n "checking for forced unwind support... " >&6; }
15 if ${libc_cv_forced_unwind+:} false; then :
16 $as_echo_n "(cached) " >&6
18 old_CPPFLAGS="$CPPFLAGS"
19 # Without inhibit_libc #define'd, GCC's unwind.h (at least for ia64)
20 # will try to include <stdlib.h>, which doesn't exist yet if we're
21 # building libc in a bare environment.
22 CPPFLAGS="$CPPFLAGS -Dinhibit_libc=1"
23 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30 struct _Unwind_Exception exc;
31 struct _Unwind_Context *context;
32 _Unwind_GetCFA (context)
37 if ac_fn_c_try_compile "$LINENO"; then :
38 libc_cv_forced_unwind=yes
40 libc_cv_forced_unwind=no
42 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43 CPPFLAGS="$old_CPPFLAGS"
45 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_forced_unwind" >&5
46 $as_echo "$libc_cv_forced_unwind" >&6; }
47 if test $libc_cv_forced_unwind = yes; then
48 $as_echo "#define HAVE_FORCED_UNWIND 1" >>confdefs.h
51 CFLAGS="$CFLAGS -Werror -fexceptions"
52 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C cleanup handling" >&5
53 $as_echo_n "checking for C cleanup handling... " >&6; }
54 if ${libc_cv_c_cleanup+:} false; then :
55 $as_echo_n "(cached) " >&6
57 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60 extern void some_function (void);
66 int a __attribute__ ((cleanup (cl)));
72 if ac_fn_c_try_compile "$LINENO"; then :
77 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_c_cleanup" >&5
80 $as_echo "$libc_cv_c_cleanup" >&6; }
82 if test $libc_cv_c_cleanup = no; then
83 as_fn_error $? "the compiler must support C cleanup handling" "$LINENO" 5
86 as_fn_error $? "forced unwind support is required" "$LINENO" 5