diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2024-06-11 23:34:54 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2024-06-17 21:15:28 +0200 |
commit | 98ffc1bfeb04fb04b7f18f1cbfccf1e43d6a867f (patch) | |
tree | 9b78b87ea3803c252e6af7173b9633bcd3b08ba2 /sysdeps/powerpc/powerpc64 | |
parent | 7ec903e028271d029818378fd60ddaf6b76b89ac (diff) | |
download | glibc-98ffc1bfeb04fb04b7f18f1cbfccf1e43d6a867f.zip glibc-98ffc1bfeb04fb04b7f18f1cbfccf1e43d6a867f.tar.gz glibc-98ffc1bfeb04fb04b7f18f1cbfccf1e43d6a867f.tar.bz2 |
Convert to autoconf 2.72 (vanilla release, no distribution patches)
As discussed at the patch review meeting
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Reviewed-by: Simon Chopin <simon.chopin@canonical.com>
Diffstat (limited to 'sysdeps/powerpc/powerpc64')
-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 |
3 files changed, 47 insertions, 34 deletions
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; } |