From: Bruno Haible Date: Sat, 28 Dec 2024 17:39:24 +0000 (+0100) Subject: endian: Fix link error on CentOS 5. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1911f9d4bd49bb78e6d9093f501ee6bb9af56ce6;p=thirdparty%2Fgnulib.git endian: Fix link error on CentOS 5. * m4/endian_h.m4 (gl_ENDIAN_H): Use AC_LINK_IFELSE, not AC_COMPILE_IFELSE. --- diff --git a/ChangeLog b/ChangeLog index 3eeb389b81..b99da8b96a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-12-28 Bruno Haible + + endian: Fix link error on CentOS 5. + * m4/endian_h.m4 (gl_ENDIAN_H): Use AC_LINK_IFELSE, not + AC_COMPILE_IFELSE. + 2024-12-28 Jim Meyering git-version-gen: fix preceding change diff --git a/m4/endian_h.m4 b/m4/endian_h.m4 index 712c435fe8..4dcaf1c790 100644 --- a/m4/endian_h.m4 +++ b/m4/endian_h.m4 @@ -1,5 +1,5 @@ # endian_h.m4 -# serial 5 +# serial 6 dnl Copyright 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, @@ -34,7 +34,7 @@ AC_DEFUN_ONCE([gl_ENDIAN_H], AC_CACHE_CHECK([if endian.h defines functions and macros], [gl_cv_header_working_endian_h], [gl_cv_header_working_endian_h=no - AC_COMPILE_IFELSE( + AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include @@ -103,7 +103,7 @@ return !(value16_1 + value32_1 + value64_1 AC_CACHE_CHECK([if sys/endian.h defines functions and macros], [gl_cv_header_working_sys_endian_h], [gl_cv_header_working_sys_endian_h=no - AC_COMPILE_IFELSE( + AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include