summaryrefslogtreecommitdiff
path: root/m4/lib-prefix.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-01-15 23:08:47 +0100
committerBruno Haible <bruno@clisp.org>2022-01-15 23:08:47 +0100
commit89589d8375ad827dc84ea2aeb027497ea35ff7fc (patch)
tree2d9e33cf92e1f5cdfab94f2ce757388b3447b02f /m4/lib-prefix.m4
parent9853d34f27b5b0eed29d28cfba326ddd9b35ea6e (diff)
downloadgnulib-89589d8375ad827dc84ea2aeb027497ea35ff7fc.tar.gz
havelib: Recognize ELF platform despite nvc 22.1.
* m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Recognize Linux as an ELF platform, even with a compiler that does not define __ELF__.
Diffstat (limited to 'm4/lib-prefix.m4')
-rw-r--r--m4/lib-prefix.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/lib-prefix.m4 b/m4/lib-prefix.m4
index 75071e9a96..999f712f5a 100644
--- a/m4/lib-prefix.m4
+++ b/m4/lib-prefix.m4
@@ -1,4 +1,4 @@
-# lib-prefix.m4 serial 19
+# lib-prefix.m4 serial 20
dnl Copyright (C) 2001-2005, 2008-2022 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -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],
- [#ifdef __ELF__
+ [#if defined __ELF__ || (defined __linux__ && defined __EDG__)
Extensible Linking Format
#endif
],