[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 8503ba3: Fix wrong use of AC_CHECK_PROG() in
From: |
Vadim Zeitlin |
Subject: |
[lmi-commits] [lmi] master 8503ba3: Fix wrong use of AC_CHECK_PROG() in configure |
Date: |
Sun, 27 Oct 2019 11:31:43 -0400 (EDT) |
branch: master
commit 8503ba394d589cd926cdfbc08bfafae552afa012
Author: Vadim Zeitlin <address@hidden>
Commit: Vadim Zeitlin <address@hidden>
Fix wrong use of AC_CHECK_PROG() in configure
The variable containing the path to xmlwrapp-config was erroneously set
to "yes", instead of the full path to the config script, preventing this
from working (so that XMLWRAPP_CFLAGS and XMLWRAPP_LIBS always had to be
specified explicitly for MSW cross-builds before).
Fix this by using less error-prone AC_CHECK_PROGS() macro version.
Also rename "no" fallback value to "not-found" for clarity.
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 4719348..4ab3093 100644
--- a/configure.ac
+++ b/configure.ac
@@ -405,8 +405,8 @@ if test "$USE_LINUX" = "1"; then
else
if test -z "$XMLWRAPP_CFLAGS" -o -z "$XMLWRAPP_LIBS"; then
dnl --- XMLWRAPP (required) -------------------
- AC_CHECK_PROG(lmi_xmlwrapp_config, xmlwrapp-config, yes, no)
- if test "$lmi_xmlwrapp_config" = "no"; then
+ AC_CHECK_PROGS(lmi_xmlwrapp_config, xmlwrapp-config, not-found)
+ if test "$lmi_xmlwrapp_config" = "not-found"; then
AC_MSG_ERROR([Unable to find xmlwrapp configuration program
xmlwrapp-config in the path.])
fi
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [lmi] master 8503ba3: Fix wrong use of AC_CHECK_PROG() in configure,
Vadim Zeitlin <=