+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.
-# 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,
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
}
;;
*)