[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
error, getprogname: Stricter dependency conditions
From: |
Bruno Haible |
Subject: |
error, getprogname: Stricter dependency conditions |
Date: |
Mon, 02 Sep 2024 10:43:08 +0200 |
A few dependency conditions can be improved a little bit:
2024-09-02 Bruno Haible <bruno@clisp.org>
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/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])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- error, getprogname: Stricter dependency conditions,
Bruno Haible <=