]> Savannah Git Hosting - gnulib.git/commitdiff
havelib: Remove redundant code.
authorBruno Haible <bruno@clisp.org>
Sun, 17 Nov 2019 22:56:47 +0000 (23:56 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 17 Nov 2019 22:56:47 +0000 (23:56 +0100)
* m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.

ChangeLog
m4/lib-prefix.m4

index 053fce4da8d22794d68e8869629d65eb754c5f4f..549152c2b8ab0777eafc2d27a8839c8259da3b1d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-11-17  Bruno Haible  <bruno@clisp.org>
+
+       havelib: Remove redundant code.
+       * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
+       test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
+
 2019-11-17  Bruno Haible  <bruno@clisp.org>
 
        havelib: Fix a bug in dependency processing.
index 8adb17bb9167df0d9efa87e3da6e5bec47033389..dbe4e85f184cc57466a72fe5dd0c1e7fa655d0dd 100644 (file)
@@ -1,4 +1,4 @@
-# lib-prefix.m4 serial 14
+# lib-prefix.m4 serial 15
 dnl Copyright (C) 2001-2005, 2008-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -169,22 +169,6 @@ AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
   AC_REQUIRE([AC_CANONICAL_HOST])
   AC_REQUIRE([gl_HOST_CPU_C_ABI_32BIT])
 
-  case "$host_os" in
-    solaris*)
-      AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit],
-        [AC_COMPILE_IFELSE(
-           [AC_LANG_SOURCE(
-              [[#ifdef _LP64
-                 int ok;
-                #else
-                 error fail
-                #endif
-              ]])],
-           [gl_cv_solaris_64bit=yes],
-           [gl_cv_solaris_64bit=no])
-        ]);;
-  esac
-
   dnl Allow the user to override the result by setting acl_cv_libdirstems.
   AC_CACHE_CHECK([for the common suffixes of directories in the library search path],
     [acl_cv_libdirstems],
@@ -197,7 +181,7 @@ AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
          dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
          dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
          dnl symlink is missing, so we set acl_libdirstem2 too.
-         if test $gl_cv_solaris_64bit = yes; then
+         if test $HOST_CPU_C_ABI_32BIT = no; then
            acl_libdirstem=lib/64
            case "$host_cpu" in
              sparc*)        acl_libdirstem2=lib/sparcv9 ;;