2.9
[glibc/nacl-glibc.git] / sysdeps / ieee754 / ldbl-opt / configure
blobdc813653182cad8770c34a8b97f9bca2c3433e40
1 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/ieee754/ldbl-opt/.
5 echo "$as_me:$LINENO: checking whether $CC $CFLAGS supports -mlong-double-128" >&5
6 echo $ECHO_N "checking whether $CC $CFLAGS supports -mlong-double-128... $ECHO_C" >&6
7 if test "${libc_cv_mlong_double_128+set}" = set; then
8   echo $ECHO_N "(cached) $ECHO_C" >&6
9 else
10   save_CFLAGS="$CFLAGS"
11 CFLAGS="$CFLAGS -mlong-double-128"
12 cat >conftest.$ac_ext <<_ACEOF
13 /* confdefs.h.  */
14 _ACEOF
15 cat confdefs.h >>conftest.$ac_ext
16 cat >>conftest.$ac_ext <<_ACEOF
17 /* end confdefs.h.  */
19 int
20 main ()
23 #ifndef __LONG_DOUBLE_128__
24 # error "compiler did not predefine __LONG_DOUBLE_128__ as expected"
25 #endif
26 long double foobar (long double x) { return x; }
27   ;
28   return 0;
30 _ACEOF
31 rm -f conftest.$ac_objext
32 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33   (eval $ac_compile) 2>conftest.er1
34   ac_status=$?
35   grep -v '^ *+' conftest.er1 >conftest.err
36   rm -f conftest.er1
37   cat conftest.err >&5
38   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39   (exit $ac_status); } &&
40          { ac_try='test -z "$ac_c_werror_flag"
41                          || test ! -s conftest.err'
42   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43   (eval $ac_try) 2>&5
44   ac_status=$?
45   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46   (exit $ac_status); }; } &&
47          { ac_try='test -s conftest.$ac_objext'
48   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49   (eval $ac_try) 2>&5
50   ac_status=$?
51   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52   (exit $ac_status); }; }; then
53   libc_cv_mlong_double_128=yes
54 else
55   echo "$as_me: failed program was:" >&5
56 sed 's/^/| /' conftest.$ac_ext >&5
58 libc_cv_mlong_double_128=no
60 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61 CFLAGS="$save_CFLAGS"
63 echo "$as_me:$LINENO: result: $libc_cv_mlong_double_128" >&5
64 echo "${ECHO_T}$libc_cv_mlong_double_128" >&6
65 if test "$libc_cv_mlong_double_128" = no; then
66   { { echo "$as_me:$LINENO: error: this configuration requires -mlong-double-128 support" >&5
67 echo "$as_me: error: this configuration requires -mlong-double-128 support" >&2;}
68    { (exit 1); exit 1; }; }