[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 9fabd5e: Make it possible to override configu

From: Vadim Zeitlin
Subject: [lmi-commits] [lmi] master 9fabd5e: Make it possible to override configure xmlwrapp-config check
Date: Tue, 13 Feb 2018 16:32:13 -0500 (EST)

branch: master
commit 9fabd5ed9e3120ca4b825c7ebb7ca822aae80f67
Author: Vadim Zeitlin <address@hidden>
Commit: Vadim Zeitlin <address@hidden>

    Make it possible to override configure xmlwrapp-config check
    Allow defining lmi_xmlwrapp_config=/full/path/to/some/script on
    configure command line to use the specified script instead of the first
    xmlwrapp-config found in the PATH.
    This is especially useful when cross-compiling as the directory
    containing the xmlwrapp-config for the target version of xmlwrapp
    library is typically not in the PATH of the host system and the wrong
    host xmlwrapp-config is found instead.
 configure.ac | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 90e9e49..1ba5c67 100644
--- a/configure.ac
+++ b/configure.ac
@@ -380,22 +380,22 @@ 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 "x$lmi_xmlwrapp_config" != "xyes"; then
+        if test "$lmi_xmlwrapp_config" = "no"; then
             AC_MSG_ERROR([Unable to find xmlwrapp configuration program 
xmlwrapp-config in the path.])
         dnl make sure xmlwrapp was compiled with XSLT support:
-        if xmlwrapp-config --libs | grep -v -q xslt; then
+        if $lmi_xmlwrapp_config --libs | grep -v -q xslt; then
             AC_MSG_ERROR([xmlwrapp with XSLT support is required.])
     if test -z "$XMLWRAPP_CFLAGS"; then
-        XMLWRAPP_CFLAGS=`xmlwrapp-config --cxxflags`
+        XMLWRAPP_CFLAGS=`$lmi_xmlwrapp_config --cxxflags`
     if test -z "$XMLWRAPP_LIBS"; then
-        XMLWRAPP_LIBS=`xmlwrapp-config --libs`
+        XMLWRAPP_LIBS=`$lmi_xmlwrapp_config --libs`

reply via email to

[Prev in Thread] Current Thread [Next in Thread]