1 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
3 if test "x$libc_cv_gcc___thread" != xyes; then
4 { { echo "$as_me:$LINENO: error: compiler support for __thread is required" >&5
5 echo "$as_me: error: compiler support for __thread is required" >&2;}
6 { (exit 1); exit 1; }; }
9 if test "x${libc_cv_visibility_attribute}" != xyes ||
10 test "x${libc_cv_broken_visibility_attribute}" != xno; then
11 { { echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
12 echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
13 { (exit 1); exit 1; }; }
16 if test "x$libc_cv_asm_cfi_directives" != xyes; then
17 case "$base_machine" in
18 i386 | x86_64 | powerpc | s390)
19 { { echo "$as_me:$LINENO: error: CFI directive support in assembler is required" >&5
20 echo "$as_me: error: CFI directive support in assembler is required" >&2;}
21 { (exit 1); exit 1; }; } ;;
27 { echo "$as_me:$LINENO: checking for forced unwind support" >&5
28 echo $ECHO_N "checking for forced unwind support... $ECHO_C" >&6; }
29 if test "${libc_cv_forced_unwind+set}" = set; then
30 echo $ECHO_N "(cached) $ECHO_C" >&6
32 cat >conftest.$ac_ext <<_ACEOF
35 cat confdefs.h >>conftest.$ac_ext
36 cat >>conftest.$ac_ext <<_ACEOF
43 struct _Unwind_Exception exc;
44 struct _Unwind_Context *context;
45 _Unwind_GetCFA (context)
50 rm -f conftest.$ac_objext conftest$ac_exeext
51 if { (ac_try="$ac_link"
53 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54 *) ac_try_echo=$ac_try;;
56 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57 (eval "$ac_link") 2>conftest.er1
59 grep -v '^ *+' conftest.er1 >conftest.err
62 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63 (exit $ac_status); } && {
64 test -z "$ac_c_werror_flag" ||
65 test ! -s conftest.err
66 } && test -s conftest$ac_exeext &&
67 $as_test_x conftest$ac_exeext; then
68 libc_cv_forced_unwind=yes
70 echo "$as_me: failed program was:" >&5
71 sed 's/^/| /' conftest.$ac_ext >&5
73 libc_cv_forced_unwind=no
76 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
77 conftest$ac_exeext conftest.$ac_ext
79 { echo "$as_me:$LINENO: result: $libc_cv_forced_unwind" >&5
80 echo "${ECHO_T}$libc_cv_forced_unwind" >&6; }
81 if test $libc_cv_forced_unwind = yes; then
82 cat >>confdefs.h <<\_ACEOF
83 #define HAVE_FORCED_UNWIND 1
87 CFLAGS="$CFLAGS -Werror -fexceptions"
88 { echo "$as_me:$LINENO: checking for C cleanup handling" >&5
89 echo $ECHO_N "checking for C cleanup handling... $ECHO_C" >&6; }
90 if test "${libc_cv_c_cleanup+set}" = set; then
91 echo $ECHO_N "(cached) $ECHO_C" >&6
93 cat >conftest.$ac_ext <<_ACEOF
96 cat confdefs.h >>conftest.$ac_ext
97 cat >>conftest.$ac_ext <<_ACEOF
101 void cl (void *a) { }
106 int a __attribute__ ((cleanup (cl)));
112 rm -f conftest.$ac_objext conftest$ac_exeext
113 if { (ac_try="$ac_link"
115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116 *) ac_try_echo=$ac_try;;
118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
119 (eval "$ac_link") 2>conftest.er1
121 grep -v '^ *+' conftest.er1 >conftest.err
124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
125 (exit $ac_status); } && {
126 test -z "$ac_c_werror_flag" ||
127 test ! -s conftest.err
128 } && test -s conftest$ac_exeext &&
129 $as_test_x conftest$ac_exeext; then
130 libc_cv_c_cleanup=yes
132 echo "$as_me: failed program was:" >&5
133 sed 's/^/| /' conftest.$ac_ext >&5
138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
139 conftest$ac_exeext conftest.$ac_ext
141 { echo "$as_me:$LINENO: result: $libc_cv_c_cleanup" >&5
142 echo "${ECHO_T}$libc_cv_c_cleanup" >&6; }
144 if test $libc_cv_c_cleanup = no; then
145 { { echo "$as_me:$LINENO: error: the compiler must support C cleanup handling" >&5
146 echo "$as_me: error: the compiler must support C cleanup handling" >&2;}
147 { (exit 1); exit 1; }; }
150 { { echo "$as_me:$LINENO: error: forced unwind support is required" >&5
151 echo "$as_me: error: forced unwind support is required" >&2;}
152 { (exit 1); exit 1; }; }