diff options
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r-- | sysdeps/powerpc/powerpc32/fpu/configure | 14 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/configure | 14 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/le/configure | 55 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure | 12 |
4 files changed, 55 insertions, 40 deletions
diff --git a/sysdeps/powerpc/powerpc32/fpu/configure b/sysdeps/powerpc/powerpc32/fpu/configure index da6fbb1..4d285c7 100644 --- a/sysdeps/powerpc/powerpc32/fpu/configure +++ b/sysdeps/powerpc/powerpc32/fpu/configure @@ -7,8 +7,8 @@ printf %s "checking for fcfid use... " >&6; } if test ${libc_cv_ppc_fcfid+y} then : printf %s "(cached) " >&6 -else $as_nop - echo 'double foo (int x) { return (double) x; }' > conftest.c +else case e in #( + e) echo 'double foo (int x) { return (double) x; }' > conftest.c libc_cv_ppc_fcfid=no if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 @@ -20,7 +20,8 @@ if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5' libc_cv_ppc_fcfid=yes fi fi -rm -rf conftest* +rm -rf conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc_fcfid" >&5 printf "%s\n" "$libc_cv_ppc_fcfid" >&6; } @@ -35,8 +36,8 @@ printf %s "checking for fctidz use... " >&6; } if test ${libc_cv_ppc_fctidz+y} then : printf %s "(cached) " >&6 -else $as_nop - echo 'long long int foo (double x) { return (long long int) x; }' > conftest.c +else case e in #( + e) echo 'long long int foo (double x) { return (long long int) x; }' > conftest.c libc_cv_ppc_fctidz=no if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 @@ -48,7 +49,8 @@ if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5' libc_cv_ppc_fctidz=yes fi fi -rm -rf conftest* +rm -rf conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc_fctidz" >&5 printf "%s\n" "$libc_cv_ppc_fctidz" >&6; } diff --git a/sysdeps/powerpc/powerpc64/configure b/sysdeps/powerpc/powerpc64/configure index 9df2cea..3e3a835 100644 --- a/sysdeps/powerpc/powerpc64/configure +++ b/sysdeps/powerpc/powerpc64/configure @@ -9,8 +9,8 @@ printf %s "checking for support for overlapping .opd entries... " >&6; } if test ${libc_cv_overlapping_opd+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_overlapping_opd=no +else case e in #( + e) libc_cv_overlapping_opd=no echo 'void foo (void) {}' > conftest.c if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $libc_cv_cc_submachine -S conftest.c -o conftest.s 1>&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 @@ -27,7 +27,8 @@ if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $libc_cv_cc_submachine -S conftest.c -o fi fi rm -f conftest.c conftest.s - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_overlapping_opd" >&5 printf "%s\n" "$libc_cv_overlapping_opd" >&6; } @@ -45,8 +46,8 @@ printf %s "checking if the compiler supports @notoc... " >&6; } if test ${libc_cv_ppc64_notoc+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF int bar (void); int foo (void) { return bar () + 1; } EOF @@ -66,7 +67,8 @@ EOF then libc_cv_ppc64_notoc=yes fi - rm -rf conftest.* + rm -rf conftest.* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_notoc" >&5 printf "%s\n" "$libc_cv_ppc64_notoc" >&6; } diff --git a/sysdeps/powerpc/powerpc64/le/configure b/sysdeps/powerpc/powerpc64/le/configure index 3ec457b..7092f61 100644 --- a/sysdeps/powerpc/powerpc64/le/configure +++ b/sysdeps/powerpc/powerpc64/le/configure @@ -9,8 +9,8 @@ printf %s "checking if the target machine is at least POWER8... " >&6; } if test ${libc_cv_target_power8_ok+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -22,10 +22,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_target_power8_ok=yes -else $as_nop - libc_cv_target_power8_ok=no +else case e in #( + e) libc_cv_target_power8_ok=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_target_power8_ok" >&5 printf "%s\n" "$libc_cv_target_power8_ok" >&6; } @@ -42,8 +44,8 @@ printf %s "checking if the compiler supports -mno-gnu-attribute... " >&6; } if test ${libc_cv_no_gnu_attr_ok+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -52,10 +54,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_no_gnu_attr_ok=yes -else $as_nop - libc_cv_no_gnu_attr_ok=no +else case e in #( + e) libc_cv_no_gnu_attr_ok=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_no_gnu_attr_ok" >&5 printf "%s\n" "$libc_cv_no_gnu_attr_ok" >&6; } @@ -70,8 +74,8 @@ printf %s "checking if $CC compiles signbit with 128-bit floating point type... if test ${libc_cv_compiler_powerpc64le_ice+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mabi=ieeelongdouble -Wno-psabi" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -86,11 +90,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_compiler_powerpc64le_ice=yes -else $as_nop - libc_cv_compiler_powerpc64le_ice=no +else case e in #( + e) libc_cv_compiler_powerpc64le_ice=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -CFLAGS="$save_CFLAGS" +CFLAGS="$save_CFLAGS" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_ice" >&5 printf "%s\n" "$libc_cv_compiler_powerpc64le_ice" >&6; } @@ -104,8 +110,8 @@ printf %s "checking if $CC compiles with -mabi=ieeelongdouble and -mlong-double- if test ${libc_cv_compiler_powerpc64le_ldbl128_mabi+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mabi=ieeelongdouble -mlong-double-128" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -116,11 +122,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_compiler_powerpc64le_ldbl128_mabi=yes -else $as_nop - libc_cv_compiler_powerpc64le_ldbl128_mabi=no +else case e in #( + e) libc_cv_compiler_powerpc64le_ldbl128_mabi=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -CFLAGS="$save_CFLAGS" +CFLAGS="$save_CFLAGS" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_ldbl128_mabi" >&5 printf "%s\n" "$libc_cv_compiler_powerpc64le_ldbl128_mabi" >&6; } @@ -138,8 +146,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OBJCOPY+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJCOPY"; then +else case e in #( + e) if test -n "$OBJCOPY"; then ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -161,7 +169,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OBJCOPY=$ac_cv_prog_OBJCOPY if test -n "$OBJCOPY"; then diff --git a/sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure b/sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure index 130e3be..61f0c71 100644 --- a/sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure +++ b/sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure @@ -8,8 +8,8 @@ printf %s "checking if the compiler supports -mcpu=power10... " >&6; } if test ${libc_cv_mcpu_power10+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -18,10 +18,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_mcpu_power10=yes -else $as_nop - libc_cv_mcpu_power10=no +else case e in #( + e) libc_cv_mcpu_power10=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mcpu_power10" >&5 printf "%s\n" "$libc_cv_mcpu_power10" >&6; } |