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/riscv | |
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/riscv')
-rw-r--r-- | sysdeps/riscv/configure | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sysdeps/riscv/configure b/sysdeps/riscv/configure index c8f0170..3ae4ae3 100644 --- a/sysdeps/riscv/configure +++ b/sysdeps/riscv/configure @@ -7,8 +7,8 @@ printf %s "checking for R_RISCV_ALIGN linker relaxation support... " >&6; } if test ${libc_cv_riscv_r_align+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.S <<EOF +else case e in #( + e) cat > conftest.S <<EOF .align 3 foo: li a0,42 @@ -24,7 +24,8 @@ EOF then libc_cv_riscv_r_align=yes fi - rm -rf conftest.* + rm -rf conftest.* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_riscv_r_align" >&5 printf "%s\n" "$libc_cv_riscv_r_align" >&6; } @@ -36,8 +37,8 @@ printf %s "checking if the toolchain is sufficient to build static PIE on RISC-V if test ${libc_cv_static_pie_on_riscv+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat > conftest1.S <<\EOF .globl _start .type _start, @function @@ -71,7 +72,8 @@ EOF then libc_cv_static_pie_on_riscv=yes fi - rm -rf conftest* + rm -rf conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_on_riscv" >&5 printf "%s\n" "$libc_cv_static_pie_on_riscv" >&6; } @@ -80,3 +82,4 @@ if test "$libc_cv_static_pie_on_riscv" = yes; then printf "%s\n" "#define SUPPORT_STATIC_PIE 1" >>confdefs.h fi + |