+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 Bruno Haible <bruno@clisp.org>
assert-h, verify: Make static_assert work in C++ mode on FreeBSD 11.
# 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,
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>
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>