2013-10-30 03:20:52 +00:00
|
|
|
# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
|
2006-01-28 00:15:15 +00:00
|
|
|
# Local configure fragment for sysdeps/unix/sysv/linux/powerpc/.
|
|
|
|
|
|
|
|
|
2012-03-16 15:07:57 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC $CFLAGS -mlong-double-128 uses IBM extended format" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking whether $CC $CFLAGS -mlong-double-128 uses IBM extended format... " >&6; }
|
2012-03-16 15:07:57 +00:00
|
|
|
if ${libc_cv_mlong_double_128ibm+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
2006-01-28 00:15:15 +00:00
|
|
|
else
|
|
|
|
save_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS -mlong-double-128"
|
2012-03-16 15:07:57 +00:00
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2006-01-28 00:15:15 +00:00
|
|
|
/* end confdefs.h. */
|
|
|
|
#include <float.h>
|
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
|
|
|
|
|
|
|
#if LDBL_MANT_DIG != 106
|
|
|
|
# error "compiler doesn't implement IBM extended format of long double"
|
|
|
|
#endif
|
|
|
|
long double foobar (long double x) { return x; }
|
|
|
|
;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
2012-03-16 15:07:57 +00:00
|
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
2006-01-28 00:15:15 +00:00
|
|
|
libc_cv_mlong_double_128ibm=yes
|
|
|
|
else
|
2012-03-16 15:07:57 +00:00
|
|
|
libc_cv_mlong_double_128ibm=no
|
2006-01-28 00:15:15 +00:00
|
|
|
fi
|
2009-09-15 21:14:42 +00:00
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
2006-01-28 00:15:15 +00:00
|
|
|
CFLAGS="$save_CFLAGS"
|
|
|
|
fi
|
2012-03-16 15:07:57 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mlong_double_128ibm" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$libc_cv_mlong_double_128ibm" >&6; }
|
2006-01-28 00:15:15 +00:00
|
|
|
|
|
|
|
if test "$libc_cv_mlong_double_128ibm" = no; then
|
2012-03-16 15:07:57 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC $CFLAGS supports -mabi=ibmlongdouble" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking whether $CC $CFLAGS supports -mabi=ibmlongdouble... " >&6; }
|
2012-03-16 15:07:57 +00:00
|
|
|
if ${libc_cv_mabi_ibmlongdouble+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
2006-01-28 00:15:15 +00:00
|
|
|
else
|
|
|
|
save_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS -mlong-double-128 -mabi=ibmlongdouble"
|
2012-03-16 15:07:57 +00:00
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2006-01-28 00:15:15 +00:00
|
|
|
/* end confdefs.h. */
|
|
|
|
#include <float.h>
|
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
|
|
|
|
|
|
|
#if LDBL_MANT_DIG != 106
|
|
|
|
# error "compiler doesn't implement IBM extended format of long double"
|
|
|
|
#endif
|
|
|
|
long double foobar (long double x) { return x; }
|
|
|
|
;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
2012-03-16 15:07:57 +00:00
|
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
2006-01-28 00:15:15 +00:00
|
|
|
libc_cv_mabi_ibmlongdouble=yes
|
|
|
|
else
|
2012-03-16 15:07:57 +00:00
|
|
|
libc_cv_mabi_ibmlongdouble=no
|
2006-01-28 00:15:15 +00:00
|
|
|
fi
|
2009-09-15 21:14:42 +00:00
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
2006-01-28 00:15:15 +00:00
|
|
|
CFLAGS="$save_CFLAGS"
|
|
|
|
fi
|
2012-03-16 15:07:57 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mabi_ibmlongdouble" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$libc_cv_mabi_ibmlongdouble" >&6; }
|
2006-01-28 00:15:15 +00:00
|
|
|
|
|
|
|
if test "$libc_cv_mabi_ibmlongdouble" = yes; then
|
|
|
|
CFLAGS="$CFLAGS -mabi=ibmlongdouble"
|
|
|
|
else
|
2012-03-16 15:07:57 +00:00
|
|
|
as_fn_error $? "this configuration requires -mlong-double-128 IBM extended format support" "$LINENO" 5
|
2006-01-28 00:15:15 +00:00
|
|
|
fi
|
|
|
|
fi
|
2014-06-24 20:53:03 +00:00
|
|
|
|
2021-08-24 16:26:44 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-tls-get-addr-optimize" >&5
|
|
|
|
$as_echo_n "checking for linker that supports --no-tls-get-addr-optimize... " >&6; }
|
|
|
|
libc_linker_feature=no
|
|
|
|
if test x"$gnu_ld" = x"yes"; then
|
2021-10-25 20:17:44 +00:00
|
|
|
cat > conftest.c <<EOF
|
2021-08-24 16:26:44 +00:00
|
|
|
int _start (void) { return 42; }
|
|
|
|
EOF
|
2021-10-25 20:17:44 +00:00
|
|
|
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
|
|
|
|
-Wl,--no-tls-get-addr-optimize -nostdlib -nostartfiles
|
|
|
|
-fPIC -shared -o conftest.so conftest.c
|
|
|
|
1>&5'
|
2021-08-24 16:26:44 +00:00
|
|
|
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
|
|
|
(eval $ac_try) 2>&5
|
|
|
|
ac_status=$?
|
|
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
|
test $ac_status = 0; }; }
|
2021-10-25 20:17:44 +00:00
|
|
|
then
|
2022-02-03 05:10:03 +00:00
|
|
|
if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-tls-get-addr-optimize -nostdlib \
|
|
|
|
-nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
|
|
|
|
| grep "warning: --no-tls-get-addr-optimize ignored" > /dev/null 2>&1; then
|
|
|
|
true
|
|
|
|
else
|
|
|
|
libc_linker_feature=yes
|
|
|
|
fi
|
2021-08-24 16:26:44 +00:00
|
|
|
fi
|
2021-10-25 20:17:44 +00:00
|
|
|
rm -f conftest*
|
2021-08-24 16:26:44 +00:00
|
|
|
fi
|
|
|
|
if test $libc_linker_feature = yes; then
|
|
|
|
libc_cv_tls_get_addr_optimize=yes
|
|
|
|
else
|
|
|
|
libc_cv_tls_get_addr_optimize=no
|
|
|
|
fi
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
|
|
|
|
$as_echo "$libc_linker_feature" >&6; }
|
|
|
|
config_vars="$config_vars
|
|
|
|
have-tls-get-addr-optimize = $libc_cv_tls_get_addr_optimize"
|
|
|
|
|
2014-06-24 20:53:03 +00:00
|
|
|
ldd_rewrite_script=sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed
|