From: Bruno Haible Date: Mon, 2 Sep 2024 08:42:53 +0000 (+0200) Subject: error, getprogname: Stricter dependency conditions. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=da2e865aa6b8b08387e1f27c508ef7286fcf6ac0;p=gnulib.git 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. --- 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])