]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
RISC-V: Fix `test' operand error with soft-float ABI being configured
authorMaciej W. Rozycki <macro@wdc.com>
Sat, 30 Mar 2019 01:11:31 +0000 (01:11 +0000)
committerMaciej W. Rozycki <macro@wdc.com>
Sat, 30 Mar 2019 01:11:31 +0000 (01:11 +0000)
Fix a:

.../sysdeps/unix/sysv/linux/riscv/configure: line 181: test: =: unary operator expected

message produced by the RISC-V configure fragment with the soft-float
ABI selected, caused by $libc_cv_riscv_float_abi evaluating to nil in
the invocation of `test $libc_cv_riscv_float_abi = no'.

* sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
$libc_cv_riscv_float_abi in `test' invocation.
* sysdeps/unix/sysv/linux/riscv/configure: Regenerate.

ChangeLog
sysdeps/unix/sysv/linux/riscv/configure
sysdeps/unix/sysv/linux/riscv/configure.ac

index 60f76450e5feaf823ad126662674a95c168a3f7e..bef50d40f60f8d8f57cba46aa4429ffaa7071a8d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-03-30  Maciej W. Rozycki  <macro@wdc.com>
+
+       * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
+       $libc_cv_riscv_float_abi in `test' invocation.
+       * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
+
 2019-03-29  Paul A. Clarke  <pc@us.ibm.com>
 
        * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
index 816e9145ebb2453cd74764f61303558e23db929c..3018ca8f1b85899ae97350f4f2d7ff7c7dd9b9e6 100755 (executable)
@@ -178,7 +178,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 fi
 rm -f conftest*
 
-if test $libc_cv_riscv_float_abi = no; then
+if test "$libc_cv_riscv_float_abi" = no; then
   as_fn_error $? "Unable to determine floating-point ABI" "$LINENO" 5
 fi
 
index 4fae013ec91451370a6d14b15b7e6d37fcd669af..d4819931ca3f770679a28b3f11632fabfec1bcd8 100644 (file)
@@ -20,7 +20,7 @@ AC_EGREP_CPP(yes, [#ifdef __riscv_float_abi_soft
                   yes
                   #endif
   ],libc_cv_riscv_float_abi=)
-if test $libc_cv_riscv_float_abi = no; then
+if test "$libc_cv_riscv_float_abi" = no; then
   AC_MSG_ERROR([Unable to determine floating-point ABI])
 fi