From 26fcd8289057805f506a24c6ae7277c653463208 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 16 Feb 2021 21:25:18 -0800 Subject: [PATCH] * configure.ac: Replace obsolete AC_CHECK_HEADER usage. (Bug#46578) --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9a294bc796f..11a06a39bee 100644 --- a/configure.ac +++ b/configure.ac @@ -1767,7 +1767,8 @@ fi dnl On Solaris 8 there's a compilation warning for term.h because dnl it doesn't define 'bool'. -AC_CHECK_HEADERS(term.h, , , -) +AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[#include ]],[[]])], + AC_DEFINE(HAVE_TERM_H, 1, [Define to 1 if you have the header file.])) AC_HEADER_SYS_WAIT AC_CHECK_HEADERS_ONCE(sys/socket.h) -- 2.39.2