From 949989513e631b61196f11fd8d647d4dc77d7f40 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 27 Nov 2024 07:33:34 +0100 Subject: [PATCH] fpurge: Improve configure test. Reported by Eli Schwartz . * m4/fpurge.m4 (gl_FUNC_FPURGE): If fpurge is not declared, don't test whether it works. Remove now-redundant cross-compilation guess. --- ChangeLog | 2 +- m4/fpurge.m4 | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 51c477244f..9662b37341 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,7 +3,7 @@ fpurge: Improve configure test. Reported by Eli Schwartz . * m4/fpurge.m4 (gl_FUNC_FPURGE): If fpurge is not declared, don't test - whether it works. + whether it works. Remove now-redundant cross-compilation guess. 2024-11-25 Simon Josefsson diff --git a/m4/fpurge.m4 b/m4/fpurge.m4 index a8911a07bd..1e31a18a9d 100644 --- a/m4/fpurge.m4 +++ b/m4/fpurge.m4 @@ -1,5 +1,5 @@ # fpurge.m4 -# serial 15 +# serial 16 dnl Copyright (C) 2007, 2009-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, @@ -9,7 +9,6 @@ dnl This file is offered as-is, without any warranty. AC_DEFUN([gl_FUNC_FPURGE], [ AC_REQUIRE([gl_STDIO_H_DEFAULTS]) - AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CHECK_HEADERS_ONCE([stdio_ext.h]) AC_CHECK_FUNCS_ONCE([fpurge]) gl_CHECK_FUNCS_ANDROID([__fpurge], [[#include ]]) @@ -55,12 +54,8 @@ AC_DEFUN([gl_FUNC_FPURGE], ]])], [gl_cv_func_fpurge_works=yes], [gl_cv_func_fpurge_works=no], - [case "$host_os" in - # Guess yes on musl systems. - *-musl* | midipix*) gl_cv_func_fpurge_works="guessing yes" ;; - # Otherwise obey --enable-cross-guesses. - *) gl_cv_func_fpurge_works="$gl_cross_guess_normal" ;; - esac + [# Obey --enable-cross-guesses. + gl_cv_func_fpurge_works="$gl_cross_guess_normal" ]) else gl_cv_func_fpurge_works=no -- 2.39.5