]> Savannah Git Hosting - gnulib.git/commitdiff
havelib: Fix for Solaris 11 OpenIndiana and Solaris 11 OmniOS.
authorBruno Haible <bruno@clisp.org>
Tue, 29 Dec 2020 03:00:53 +0000 (04:00 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 29 Dec 2020 03:00:53 +0000 (04:00 +0100)
* m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): In
acl_is_expected_elfclass, use 'expr', not 'test'.

ChangeLog
m4/lib-prefix.m4

index 53be43408bf765b1da6f082dcb8830cf48b510dd..d03007b3ebc587959b6859c3affd03a337aae34e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-12-28  Bruno Haible  <bruno@clisp.org>
+
+       havelib: Fix for Solaris 11 OpenIndiana and Solaris 11 OmniOS.
+       * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): In
+       acl_is_expected_elfclass, use 'expr', not 'test'.
+
 2020-12-28  Bruno Haible  <bruno@clisp.org>
 
        ptsname_r: Fix a compiler warning on Solaris.
index 28bb3d366af1c110d4d4359c4602aa7540835264..2bcdfdfeccc95fc703e2b484a35c08c9d17e3bd9 100644 (file)
@@ -1,4 +1,4 @@
-# lib-prefix.m4 serial 18
+# lib-prefix.m4 serial 19
 dnl Copyright (C) 2001-2005, 2008-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -198,20 +198,23 @@ AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
         echo
       }
     fi
+    # Use 'expr', not 'test', to compare the values of func_elfclass, because on
+    # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002,
+    # not 1 or 2.
 changequote(,)dnl
     case $HOST_CPU_C_ABI_32BIT in
       yes)
         # 32-bit ABI.
         acl_is_expected_elfclass ()
         {
-          test "`func_elfclass | sed -e 's/[   ]//g'`" = 1
+          expr "`func_elfclass | sed -e 's/[   ]//g'`" = 1 > /dev/null
         }
         ;;
       no)
         # 64-bit ABI.
         acl_is_expected_elfclass ()
         {
-          test "`func_elfclass | sed -e 's/[   ]//g'`" = 2
+          expr "`func_elfclass | sed -e 's/[   ]//g'`" = 2 > /dev/null
         }
         ;;
       *)