2003-03-16 04:22:41 +01:00
|
|
|
# This file is generated from configure.in by Autoconf. DO NOT EDIT!
|
|
|
|
|
|
|
|
if test "x$libc_cv_gcc___thread" != xyes; then
|
2009-09-15 23:14:42 +02:00
|
|
|
{ { $as_echo "$as_me:$LINENO: error: compiler support for __thread is required" >&5
|
|
|
|
$as_echo "$as_me: error: compiler support for __thread is required" >&2;}
|
2003-03-16 04:22:41 +01:00
|
|
|
{ (exit 1); exit 1; }; }
|
|
|
|
fi
|
2003-04-12 02:58:26 +02:00
|
|
|
|
2003-10-15 21:33:56 +02:00
|
|
|
if test "x${libc_cv_visibility_attribute}" != xyes ||
|
|
|
|
test "x${libc_cv_broken_visibility_attribute}" != xno; then
|
2009-09-15 23:14:42 +02:00
|
|
|
{ { $as_echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
|
|
|
|
$as_echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
|
2003-10-15 21:33:56 +02:00
|
|
|
{ (exit 1); exit 1; }; }
|
|
|
|
fi
|
|
|
|
|
2003-07-15 09:52:52 +02:00
|
|
|
if test "x$libc_cv_asm_cfi_directives" != xyes; then
|
2003-07-15 06:34:40 +02:00
|
|
|
case "$base_machine" in
|
|
|
|
i386 | x86_64 | powerpc | s390)
|
2009-09-15 23:14:42 +02:00
|
|
|
{ { $as_echo "$as_me:$LINENO: error: CFI directive support in assembler is required" >&5
|
|
|
|
$as_echo "$as_me: error: CFI directive support in assembler is required" >&2;}
|
2003-07-15 06:34:40 +02:00
|
|
|
{ (exit 1); exit 1; }; } ;;
|
|
|
|
*) ;;
|
|
|
|
esac
|
2003-07-03 23:08:05 +02:00
|
|
|
fi
|
|
|
|
|
2003-04-12 02:58:26 +02:00
|
|
|
|
2009-09-15 23:14:42 +02:00
|
|
|
{ $as_echo "$as_me:$LINENO: checking for forced unwind support" >&5
|
|
|
|
$as_echo_n "checking for forced unwind support... " >&6; }
|
2003-04-12 02:58:26 +02:00
|
|
|
if test "${libc_cv_forced_unwind+set}" = set; then
|
2009-09-15 23:14:42 +02:00
|
|
|
$as_echo_n "(cached) " >&6
|
2003-04-12 02:58:26 +02:00
|
|
|
else
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2003-07-05 08:25:25 +02:00
|
|
|
/* confdefs.h. */
|
|
|
|
_ACEOF
|
|
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
/* end confdefs.h. */
|
2003-04-12 02:58:26 +02:00
|
|
|
#include <unwind.h>
|
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
|
|
|
|
|
|
|
struct _Unwind_Exception exc;
|
|
|
|
struct _Unwind_Context *context;
|
|
|
|
_Unwind_GetCFA (context)
|
|
|
|
;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
2007-10-17 00:37:35 +02:00
|
|
|
if { (ac_try="$ac_link"
|
|
|
|
case "(($ac_try" in
|
|
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
|
*) ac_try_echo=$ac_try;;
|
|
|
|
esac
|
2009-09-15 23:14:42 +02:00
|
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
|
$as_echo "$ac_try_echo") >&5
|
2007-10-17 00:37:35 +02:00
|
|
|
(eval "$ac_link") 2>conftest.er1
|
2003-04-12 02:58:26 +02:00
|
|
|
ac_status=$?
|
2003-11-18 08:04:13 +01:00
|
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
|
rm -f conftest.er1
|
|
|
|
cat conftest.err >&5
|
2009-09-15 23:14:42 +02:00
|
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2007-10-17 00:37:35 +02:00
|
|
|
(exit $ac_status); } && {
|
|
|
|
test -z "$ac_c_werror_flag" ||
|
|
|
|
test ! -s conftest.err
|
2009-09-15 23:14:42 +02:00
|
|
|
} && test -s conftest$ac_exeext && {
|
|
|
|
test "$cross_compiling" = yes ||
|
|
|
|
$as_test_x conftest$ac_exeext
|
|
|
|
}; then
|
2003-04-12 02:58:26 +02:00
|
|
|
libc_cv_forced_unwind=yes
|
|
|
|
else
|
2009-09-15 23:14:42 +02:00
|
|
|
$as_echo "$as_me: failed program was:" >&5
|
2003-07-05 08:25:25 +02:00
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
2007-10-17 00:37:35 +02:00
|
|
|
libc_cv_forced_unwind=no
|
2003-04-12 02:58:26 +02:00
|
|
|
fi
|
2007-10-17 00:37:35 +02:00
|
|
|
|
2009-09-15 23:14:42 +02:00
|
|
|
rm -rf conftest.dSYM
|
2007-10-17 00:37:35 +02:00
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
2003-11-18 08:04:13 +01:00
|
|
|
conftest$ac_exeext conftest.$ac_ext
|
2003-04-12 02:58:26 +02:00
|
|
|
fi
|
2009-09-15 23:14:42 +02:00
|
|
|
{ $as_echo "$as_me:$LINENO: result: $libc_cv_forced_unwind" >&5
|
|
|
|
$as_echo "$libc_cv_forced_unwind" >&6; }
|
2003-04-12 02:58:26 +02:00
|
|
|
if test $libc_cv_forced_unwind = yes; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
|
|
#define HAVE_FORCED_UNWIND 1
|
|
|
|
_ACEOF
|
|
|
|
|
2003-06-30 01:01:49 +02:00
|
|
|
old_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS -Werror -fexceptions"
|
2009-09-15 23:14:42 +02:00
|
|
|
{ $as_echo "$as_me:$LINENO: checking for C cleanup handling" >&5
|
|
|
|
$as_echo_n "checking for C cleanup handling... " >&6; }
|
2003-06-30 01:01:49 +02:00
|
|
|
if test "${libc_cv_c_cleanup+set}" = set; then
|
2009-09-15 23:14:42 +02:00
|
|
|
$as_echo_n "(cached) " >&6
|
2003-06-30 01:01:49 +02:00
|
|
|
else
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2003-07-05 08:25:25 +02:00
|
|
|
/* confdefs.h. */
|
|
|
|
_ACEOF
|
|
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
/* end confdefs.h. */
|
2003-06-30 01:01:49 +02:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
void cl (void *a) { }
|
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
|
|
|
|
|
|
|
int a __attribute__ ((cleanup (cl)));
|
|
|
|
puts ("test")
|
|
|
|
;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
2007-10-17 00:37:35 +02:00
|
|
|
if { (ac_try="$ac_link"
|
|
|
|
case "(($ac_try" in
|
|
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
|
*) ac_try_echo=$ac_try;;
|
|
|
|
esac
|
2009-09-15 23:14:42 +02:00
|
|
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
|
|
$as_echo "$ac_try_echo") >&5
|
2007-10-17 00:37:35 +02:00
|
|
|
(eval "$ac_link") 2>conftest.er1
|
2003-06-30 01:01:49 +02:00
|
|
|
ac_status=$?
|
2003-11-18 08:04:13 +01:00
|
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
|
rm -f conftest.er1
|
|
|
|
cat conftest.err >&5
|
2009-09-15 23:14:42 +02:00
|
|
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2007-10-17 00:37:35 +02:00
|
|
|
(exit $ac_status); } && {
|
|
|
|
test -z "$ac_c_werror_flag" ||
|
|
|
|
test ! -s conftest.err
|
2009-09-15 23:14:42 +02:00
|
|
|
} && test -s conftest$ac_exeext && {
|
|
|
|
test "$cross_compiling" = yes ||
|
|
|
|
$as_test_x conftest$ac_exeext
|
|
|
|
}; then
|
2003-06-30 01:01:49 +02:00
|
|
|
libc_cv_c_cleanup=yes
|
|
|
|
else
|
2009-09-15 23:14:42 +02:00
|
|
|
$as_echo "$as_me: failed program was:" >&5
|
2003-07-05 08:25:25 +02:00
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
2007-10-17 00:37:35 +02:00
|
|
|
libc_cv_c_cleanup=no
|
2003-06-30 01:01:49 +02:00
|
|
|
fi
|
2007-10-17 00:37:35 +02:00
|
|
|
|
2009-09-15 23:14:42 +02:00
|
|
|
rm -rf conftest.dSYM
|
2007-10-17 00:37:35 +02:00
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
2003-11-18 08:04:13 +01:00
|
|
|
conftest$ac_exeext conftest.$ac_ext
|
2003-06-30 01:01:49 +02:00
|
|
|
fi
|
2009-09-15 23:14:42 +02:00
|
|
|
{ $as_echo "$as_me:$LINENO: result: $libc_cv_c_cleanup" >&5
|
|
|
|
$as_echo "$libc_cv_c_cleanup" >&6; }
|
2003-06-30 01:01:49 +02:00
|
|
|
CFLAGS="$old_CFLAGS"
|
|
|
|
if test $libc_cv_c_cleanup = no; then
|
2009-09-15 23:14:42 +02:00
|
|
|
{ { $as_echo "$as_me:$LINENO: error: the compiler must support C cleanup handling" >&5
|
|
|
|
$as_echo "$as_me: error: the compiler must support C cleanup handling" >&2;}
|
2003-06-30 01:01:49 +02:00
|
|
|
{ (exit 1); exit 1; }; }
|
|
|
|
fi
|
2003-11-18 08:04:13 +01:00
|
|
|
else
|
2009-09-15 23:14:42 +02:00
|
|
|
{ { $as_echo "$as_me:$LINENO: error: forced unwind support is required" >&5
|
|
|
|
$as_echo "$as_me: error: forced unwind support is required" >&2;}
|
2003-11-18 08:04:13 +01:00
|
|
|
{ (exit 1); exit 1; }; }
|
2003-04-12 02:58:26 +02:00
|
|
|
fi
|