1 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/unix/sysv/linux/powerpc/.
5 { $as_echo "$as_me:$LINENO: checking whether $CC $CFLAGS -mlong-double-128 uses IBM extended format" >&5
6 $as_echo_n "checking whether $CC $CFLAGS -mlong-double-128 uses IBM extended format... " >&6; }
7 if test "${libc_cv_mlong_double_128ibm+set}" = set; then
8 $as_echo_n "(cached) " >&6
11 CFLAGS="$CFLAGS -mlong-double-128"
12 cat >conftest.$ac_ext <<_ACEOF
15 cat confdefs.h >>conftest.$ac_ext
16 cat >>conftest.$ac_ext <<_ACEOF
23 #if LDBL_MANT_DIG != 106
24 # error "compiler doesn't implement IBM extended format of long double"
26 long double foobar (long double x) { return x; }
31 rm -f conftest.$ac_objext
32 if { (ac_try="$ac_compile"
34 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35 *) ac_try_echo=$ac_try;;
37 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38 $as_echo "$ac_try_echo") >&5
39 (eval "$ac_compile") 2>conftest.er1
41 grep -v '^ *+' conftest.er1 >conftest.err
44 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45 (exit $ac_status); } && {
46 test -z "$ac_c_werror_flag" ||
47 test ! -s conftest.err
48 } && test -s conftest.$ac_objext; then
49 libc_cv_mlong_double_128ibm=yes
51 $as_echo "$as_me: failed program was:" >&5
52 sed 's/^/| /' conftest.$ac_ext >&5
54 libc_cv_mlong_double_128ibm=no
57 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60 { $as_echo "$as_me:$LINENO: result: $libc_cv_mlong_double_128ibm" >&5
61 $as_echo "$libc_cv_mlong_double_128ibm" >&6; }
63 if test "$libc_cv_mlong_double_128ibm" = no; then
64 { $as_echo "$as_me:$LINENO: checking whether $CC $CFLAGS supports -mabi=ibmlongdouble" >&5
65 $as_echo_n "checking whether $CC $CFLAGS supports -mabi=ibmlongdouble... " >&6; }
66 if test "${libc_cv_mabi_ibmlongdouble+set}" = set; then
67 $as_echo_n "(cached) " >&6
70 CFLAGS="$CFLAGS -mlong-double-128 -mabi=ibmlongdouble"
71 cat >conftest.$ac_ext <<_ACEOF
74 cat confdefs.h >>conftest.$ac_ext
75 cat >>conftest.$ac_ext <<_ACEOF
82 #if LDBL_MANT_DIG != 106
83 # error "compiler doesn't implement IBM extended format of long double"
85 long double foobar (long double x) { return x; }
90 rm -f conftest.$ac_objext
91 if { (ac_try="$ac_compile"
93 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94 *) ac_try_echo=$ac_try;;
96 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97 $as_echo "$ac_try_echo") >&5
98 (eval "$ac_compile") 2>conftest.er1
100 grep -v '^ *+' conftest.er1 >conftest.err
103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
104 (exit $ac_status); } && {
105 test -z "$ac_c_werror_flag" ||
106 test ! -s conftest.err
107 } && test -s conftest.$ac_objext; then
108 libc_cv_mabi_ibmlongdouble=yes
110 $as_echo "$as_me: failed program was:" >&5
111 sed 's/^/| /' conftest.$ac_ext >&5
113 libc_cv_mabi_ibmlongdouble=no
116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
117 CFLAGS="$save_CFLAGS"
119 { $as_echo "$as_me:$LINENO: result: $libc_cv_mabi_ibmlongdouble" >&5
120 $as_echo "$libc_cv_mabi_ibmlongdouble" >&6; }
122 if test "$libc_cv_mabi_ibmlongdouble" = yes; then
123 CFLAGS="$CFLAGS -mabi=ibmlongdouble"
125 { { $as_echo "$as_me:$LINENO: error: this configuration requires -mlong-double-128 IBM extended format support" >&5
126 $as_echo "$as_me: error: this configuration requires -mlong-double-128 IBM extended format support" >&2;}
127 { (exit 1); exit 1; }; }