]> Savannah Git Hosting - gnulib.git/commitdiff
havelib: Recognize ELF platform despite SunPRO C on Linux.
authorBruno Haible <bruno@clisp.org>
Thu, 28 Mar 2024 16:50:55 +0000 (17:50 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 8 Apr 2024 10:55:36 +0000 (12:55 +0200)
* m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Recognize Linux as an ELF
platform, even with the SunPRO C compiler that does not define __ELF__.

ChangeLog
m4/lib-prefix.m4

index 5793de956c314746346e495481d78e45967ea0ac..690d0c8e1ed43af31737449f876faf6784e690f6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-03-28  Bruno Haible  <bruno@clisp.org>
+
+       havelib: Recognize ELF platform despite SunPRO C on Linux.
+       * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Recognize Linux as an ELF
+       platform, even with the SunPRO C compiler that does not define __ELF__.
+
 2024-03-26  Bruno Haible  <bruno@clisp.org>
 
        gettime-res: Fix test failure on Solaris 11.4/SPARC.
index aefe7f7124df24754adb4bc370b4b7cfa880ebb3..28a2206b959b5966c59c92b11db32660a8879dad 100644 (file)
@@ -1,5 +1,5 @@
-# lib-prefix.m4 serial 20
-dnl Copyright (C) 2001-2005, 2008-2023 Free Software Foundation, Inc.
+# lib-prefix.m4 serial 20.1
+dnl Copyright (C) 2001-2005, 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -174,7 +174,7 @@ AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
 
   AC_CACHE_CHECK([for ELF binary format], [gl_cv_elf],
     [AC_EGREP_CPP([Extensible Linking Format],
-       [#if defined __ELF__ || (defined __linux__ && defined __EDG__)
+       [#if defined __ELF__ || (defined __linux__ && (defined __EDG__ || defined __SUNPRO_C))
         Extensible Linking Format
         #endif
        ],