From da2e865aa6b8b08387e1f27c508ef7286fcf6ac0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 2 Sep 2024 10:42:53 +0200 Subject: [PATCH] error, getprogname: Stricter dependency conditions. * modules/error (Depends-on): Add dependency condition. * modules/getprogname (Depends-on): Make dependency condition stricter. (configure.ac): Require AC_CANONICAL_HOST. --- ChangeLog | 7 +++++++ modules/error | 2 +- modules/getprogname | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 48a2078a0e..c7b372d2aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2024-09-02 Bruno Haible + + error, getprogname: Stricter dependency conditions. + * modules/error (Depends-on): Add dependency condition. + * modules/getprogname (Depends-on): Make dependency condition stricter. + (configure.ac): Require AC_CANONICAL_HOST. + 2024-09-02 Bruno Haible utime, futimens tests: Avoid test failure on Haiku. diff --git a/modules/error b/modules/error index 4d896ce913..36bf18a233 100644 --- a/modules/error +++ b/modules/error @@ -9,7 +9,7 @@ Depends-on: error-h stddef stdio -getprogname +getprogname [test $COMPILE_ERROR_C = 1] strerror [test $COMPILE_ERROR_C = 1] unistd [test $COMPILE_ERROR_C = 1] msvc-nothrow [test $COMPILE_ERROR_C = 1] diff --git a/modules/getprogname b/modules/getprogname index 0631589ee6..ff0b91cbe0 100644 --- a/modules/getprogname +++ b/modules/getprogname @@ -10,9 +10,10 @@ Depends-on: stdlib basename-lgpl [test $HAVE_GETPROGNAME = 0] extensions [test $HAVE_GETPROGNAME = 0] -open [test $HAVE_GETPROGNAME = 0] +open [test $HAVE_GETPROGNAME = 0 && case "$host_os" in irix* | osf* | sco* | unixware*) true;; *) false;; esac] configure.ac: +AC_REQUIRE([AC_CANONICAL_HOST]) gl_FUNC_GETPROGNAME gl_CONDITIONAL([GL_COND_OBJ_GETPROGNAME], [test $HAVE_GETPROGNAME = 0 || test $REPLACE_GETPROGNAME = 1]) -- 2.39.5