[xmlsec] fixed configure issue with emapty --with-libxml/libxsl and config scripts in /bin directory



commit be72c468dfd3165105ed5cdc949493332c4d3064
Author: Aleksey Sanin <aleksey aleksey com>
Date:   Mon Jul 19 08:43:37 2010 -0700

    fixed configure issue with emapty --with-libxml/libxsl and config scripts in /bin directory

 configure.in |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/configure.in b/configure.in
index 502a374..78d3afd 100644
--- a/configure.in
+++ b/configure.in
@@ -217,8 +217,13 @@ elif test "z$with_libxml" = "z" -a "z$PKGCONFIG_FOUND" = "zyes" ; then
 fi
 if test "z$LIBXML_FOUND" = "zno" ; then
     if test "z$with_libxml" != "zyes" ; then
-	AC_PATH_PROG([LIBXML_CONFIG], [$LIBXML_CONFIG], [],
+        if test "z$with_libxml" != "z" ; then
+	    AC_PATH_PROG([LIBXML_CONFIG], [$LIBXML_CONFIG], [],
 		     [$with_libxml/bin:$PATH])
+	else
+	    AC_PATH_PROG([LIBXML_CONFIG], [$LIBXML_CONFIG], [],
+		     [$PATH])
+	fi
     fi
     AC_MSG_CHECKING([libxml2 $LIBXML_CONFIG ])
     if ! LIBXML_VERSION=`$LIBXML_CONFIG --version 2>/dev/null`; then
@@ -282,8 +287,13 @@ fi
 
 if test "z$LIBXSLT_FOUND" = "zno" ; then
     if test "z$with_libxslt" != "zyes" ; then
-	AC_PATH_PROG([LIBXSLT_CONFIG], [$LIBXSLT_CONFIG], [],
+        if test "z$with_libxslt" != "z" ; then
+	    AC_PATH_PROG([LIBXSLT_CONFIG], [$LIBXSLT_CONFIG], [],
 		     [$with_libxslt/bin:$PATH])
+        else
+	    AC_PATH_PROG([LIBXSLT_CONFIG], [$LIBXSLT_CONFIG], [],
+		     [$PATH])
+        fi
     fi
     AC_MSG_CHECKING(for libxslt libraries >= $LIBXSLT_MIN_VERSION) 
     if ! LIBXSLT_VERSION=`$LIBXSLT_CONFIG --version 2>/dev/null`; then



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