]> Savannah Git Hosting - gnulib.git/commitdiff
endian: Fix link error on CentOS 5.
authorBruno Haible <bruno@clisp.org>
Sat, 28 Dec 2024 17:39:24 +0000 (18:39 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 28 Dec 2024 17:42:47 +0000 (18:42 +0100)
* m4/endian_h.m4 (gl_ENDIAN_H): Use AC_LINK_IFELSE, not
AC_COMPILE_IFELSE.

ChangeLog
m4/endian_h.m4

index 3eeb389b810a4c859dfc2c23a8369febc9197c5c..b99da8b96a4ce8501a4abc270d7ef78c4488ea22 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-12-28  Bruno Haible  <bruno@clisp.org>
+
+       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  <meyering@meta.com>
 
        git-version-gen: fix preceding change
index 712c435fe8255245201a8798e8d352ecbdb8afcd..4dcaf1c790afb92421b265b52a96fbb038c2affe 100644 (file)
@@ -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 <endian.h>
@@ -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 <sys/endian.h>