2.9
[glibc/nacl-glibc.git] / sysdeps / unix / sysv / linux / powerpc / configure
blob070bf5caebdd393357b17b5b2b6343c0f34a7029
1 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/unix/sysv/linux/powerpc/.
5 echo "$as_me:$LINENO: checking whether $CC $CFLAGS -mlong-double-128 uses IBM extended format" >&5
6 echo $ECHO_N "checking whether $CC $CFLAGS -mlong-double-128 uses IBM extended format... $ECHO_C" >&6
7 if test "${libc_cv_mlong_double_128ibm+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.  */
18 #include <float.h>
19 int
20 main ()
23 #if LDBL_MANT_DIG != 106
24 # error "compiler doesn't implement IBM extended format of long double"
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_128ibm=yes
54 else
55   echo "$as_me: failed program was:" >&5
56 sed 's/^/| /' conftest.$ac_ext >&5
58 libc_cv_mlong_double_128ibm=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_128ibm" >&5
64 echo "${ECHO_T}$libc_cv_mlong_double_128ibm" >&6
66 if test "$libc_cv_mlong_double_128ibm" = no; then
67   echo "$as_me:$LINENO: checking whether $CC $CFLAGS supports -mabi=ibmlongdouble" >&5
68 echo $ECHO_N "checking whether $CC $CFLAGS supports -mabi=ibmlongdouble... $ECHO_C" >&6
69 if test "${libc_cv_mabi_ibmlongdouble+set}" = set; then
70   echo $ECHO_N "(cached) $ECHO_C" >&6
71 else
72     save_CFLAGS="$CFLAGS"
73   CFLAGS="$CFLAGS -mlong-double-128 -mabi=ibmlongdouble"
74   cat >conftest.$ac_ext <<_ACEOF
75 /* confdefs.h.  */
76 _ACEOF
77 cat confdefs.h >>conftest.$ac_ext
78 cat >>conftest.$ac_ext <<_ACEOF
79 /* end confdefs.h.  */
80 #include <float.h>
81 int
82 main ()
85 #if LDBL_MANT_DIG != 106
86 # error "compiler doesn't implement IBM extended format of long double"
87 #endif
88 long double foobar (long double x) { return x; }
89   ;
90   return 0;
92 _ACEOF
93 rm -f conftest.$ac_objext
94 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
95   (eval $ac_compile) 2>conftest.er1
96   ac_status=$?
97   grep -v '^ *+' conftest.er1 >conftest.err
98   rm -f conftest.er1
99   cat conftest.err >&5
100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
101   (exit $ac_status); } &&
102          { ac_try='test -z "$ac_c_werror_flag"
103                          || test ! -s conftest.err'
104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
105   (eval $ac_try) 2>&5
106   ac_status=$?
107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
108   (exit $ac_status); }; } &&
109          { ac_try='test -s conftest.$ac_objext'
110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
111   (eval $ac_try) 2>&5
112   ac_status=$?
113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
114   (exit $ac_status); }; }; then
115   libc_cv_mabi_ibmlongdouble=yes
116 else
117   echo "$as_me: failed program was:" >&5
118 sed 's/^/| /' conftest.$ac_ext >&5
120 libc_cv_mabi_ibmlongdouble=no
122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
123   CFLAGS="$save_CFLAGS"
125 echo "$as_me:$LINENO: result: $libc_cv_mabi_ibmlongdouble" >&5
126 echo "${ECHO_T}$libc_cv_mabi_ibmlongdouble" >&6
128   if test "$libc_cv_mabi_ibmlongdouble" = yes; then
129     CFLAGS="$CFLAGS -mabi=ibmlongdouble"
130   else
131     { { echo "$as_me:$LINENO: error: this configuration requires -mlong-double-128 IBM extended format support" >&5
132 echo "$as_me: error: this configuration requires -mlong-double-128 IBM extended format support" >&2;}
133    { (exit 1); exit 1; }; }
134   fi