2013-10-30 03:20:52 +00:00
|
|
|
# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
|
2003-03-16 03:22:41 +00:00
|
|
|
|
|
|
|
if test "x$libc_cv_gcc___thread" != xyes; then
|
2011-02-15 19:52:29 +00:00
|
|
|
as_fn_error $? "compiler support for __thread is required" "$LINENO" 5
|
2003-03-16 03:22:41 +00:00
|
|
|
fi
|
2003-04-12 00:58:26 +00:00
|
|
|
|
2003-10-15 19:33:56 +00:00
|
|
|
if test "x${libc_cv_visibility_attribute}" != xyes ||
|
|
|
|
test "x${libc_cv_broken_visibility_attribute}" != xno; then
|
2011-02-15 19:52:29 +00:00
|
|
|
as_fn_error $? "working compiler support for visibility attribute is required" "$LINENO" 5
|
2003-10-15 19:33:56 +00:00
|
|
|
fi
|
|
|
|
|
2003-07-15 07:52:52 +00:00
|
|
|
if test "x$libc_cv_asm_cfi_directives" != xyes; then
|
2003-07-15 04:34:40 +00:00
|
|
|
case "$base_machine" in
|
|
|
|
i386 | x86_64 | powerpc | s390)
|
2011-02-15 19:52:29 +00:00
|
|
|
as_fn_error $? "CFI directive support in assembler is required" "$LINENO" 5 ;;
|
2003-07-15 04:34:40 +00:00
|
|
|
*) ;;
|
|
|
|
esac
|
2003-07-03 21:08:05 +00:00
|
|
|
fi
|
|
|
|
|
2003-04-12 00:58:26 +00:00
|
|
|
|
2011-02-15 19:52:29 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for forced unwind support" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking for forced unwind support... " >&6; }
|
2011-07-07 01:29:02 +00:00
|
|
|
if ${libc_cv_forced_unwind+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
2003-04-12 00:58:26 +00:00
|
|
|
else
|
2011-02-15 19:52:29 +00:00
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2003-07-05 06:25:25 +00:00
|
|
|
/* end confdefs.h. */
|
2003-04-12 00:58:26 +00:00
|
|
|
#include <unwind.h>
|
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
|
|
|
|
|
|
|
struct _Unwind_Exception exc;
|
|
|
|
struct _Unwind_Context *context;
|
|
|
|
_Unwind_GetCFA (context)
|
|
|
|
;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
2012-03-07 19:34:22 +00:00
|
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
2003-04-12 00:58:26 +00:00
|
|
|
libc_cv_forced_unwind=yes
|
|
|
|
else
|
2011-02-15 19:52:29 +00:00
|
|
|
libc_cv_forced_unwind=no
|
2003-04-12 00:58:26 +00:00
|
|
|
fi
|
2012-03-07 19:34:22 +00:00
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
2003-04-12 00:58:26 +00:00
|
|
|
fi
|
2011-02-15 19:52:29 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_forced_unwind" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$libc_cv_forced_unwind" >&6; }
|
2003-04-12 00:58:26 +00:00
|
|
|
if test $libc_cv_forced_unwind = yes; then
|
2011-02-15 19:52:29 +00:00
|
|
|
$as_echo "#define HAVE_FORCED_UNWIND 1" >>confdefs.h
|
2003-04-12 00:58:26 +00:00
|
|
|
|
2003-06-29 23:01:49 +00:00
|
|
|
old_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS -Werror -fexceptions"
|
2011-02-15 19:52:29 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C cleanup handling" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking for C cleanup handling... " >&6; }
|
2011-07-07 01:29:02 +00:00
|
|
|
if ${libc_cv_c_cleanup+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
2003-06-29 23:01:49 +00:00
|
|
|
else
|
2011-02-15 19:52:29 +00:00
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2003-07-05 06:25:25 +00:00
|
|
|
/* end confdefs.h. */
|
2003-06-29 23:01:49 +00:00
|
|
|
|
2012-03-07 19:34:22 +00:00
|
|
|
extern void some_function (void);
|
2003-06-29 23:01:49 +00:00
|
|
|
void cl (void *a) { }
|
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
|
|
|
|
|
|
|
int a __attribute__ ((cleanup (cl)));
|
2012-03-07 19:34:22 +00:00
|
|
|
some_function ()
|
2003-06-29 23:01:49 +00:00
|
|
|
;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
2012-03-07 19:34:22 +00:00
|
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
2003-06-29 23:01:49 +00:00
|
|
|
libc_cv_c_cleanup=yes
|
|
|
|
else
|
2011-02-15 19:52:29 +00:00
|
|
|
libc_cv_c_cleanup=no
|
2003-06-29 23:01:49 +00:00
|
|
|
fi
|
2012-03-07 19:34:22 +00:00
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
2003-06-29 23:01:49 +00:00
|
|
|
fi
|
2011-02-15 19:52:29 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_c_cleanup" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$libc_cv_c_cleanup" >&6; }
|
2003-06-29 23:01:49 +00:00
|
|
|
CFLAGS="$old_CFLAGS"
|
|
|
|
if test $libc_cv_c_cleanup = no; then
|
2011-02-15 19:52:29 +00:00
|
|
|
as_fn_error $? "the compiler must support C cleanup handling" "$LINENO" 5
|
2003-06-29 23:01:49 +00:00
|
|
|
fi
|
2003-11-18 07:04:13 +00:00
|
|
|
else
|
2011-02-15 19:52:29 +00:00
|
|
|
as_fn_error $? "forced unwind support is required" "$LINENO" 5
|
2003-04-12 00:58:26 +00:00
|
|
|
fi
|