]> Savannah Git Hosting - gnulib.git/commitdiff
havelib: Fix for non-ELF platforms (regression 2019-11-17).
authorBruno Haible <bruno@clisp.org>
Mon, 30 Nov 2020 07:35:59 +0000 (08:35 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 30 Nov 2020 07:35:59 +0000 (08:35 +0100)
Reported by comex <comexk@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.

* m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
don't expect an ELF header.

ChangeLog
m4/lib-prefix.m4

index f350418137afe19f144debddaf289029b9e79dd2..0ad75a8008c26f0764e6ca0b1412c99332595a25 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-11-30  Bruno Haible  <bruno@clisp.org>
+
+       havelib: Fix for non-ELF platforms (regression 2019-11-17).
+       Reported by comex <comexk@gmail.com> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
+       * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
+       don't expect an ELF header.
+
 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
 
        bitset: use integer_length in table implementation
index c8a0b464c2804e7f10ed9abcaed5bb43f23b0e49..28bb3d366af1c110d4d4359c4602aa7540835264 100644 (file)
@@ -1,4 +1,4 @@
-# lib-prefix.m4 serial 17
+# lib-prefix.m4 serial 18
 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,
@@ -180,8 +180,8 @@ AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
        ],
        [gl_cv_elf=yes],
        [gl_cv_elf=no])
-     ])
-  if test $gl_cv_elf; then
+    ])
+  if test $gl_cv_elf = yes; then
     # Extract the ELF class of a file (5th byte) in decimal.
     # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
     if od -A x < /dev/null >/dev/null 2>/dev/null; then