You are viewing a plain text version of this content. The canonical link for it is here.
Posted to savan-dev@ws.apache.org by da...@apache.org on 2009/03/06 02:14:19 UTC

svn commit: r750730 - /webservices/savan/trunk/c/configure.ac

Author: damitha
Date: Fri Mar  6 01:14:18 2009
New Revision: 750730

URL: http://svn.apache.org/viewvc?rev=750730&view=rev
Log: (empty)

Modified:
    webservices/savan/trunk/c/configure.ac

Modified: webservices/savan/trunk/c/configure.ac
URL: http://svn.apache.org/viewvc/webservices/savan/trunk/c/configure.ac?rev=750730&r1=750729&r2=750730&view=diff
==============================================================================
--- webservices/savan/trunk/c/configure.ac (original)
+++ webservices/savan/trunk/c/configure.ac Fri Mar  6 01:14:18 2009
@@ -151,6 +151,34 @@
   AC_MSG_RESULT(no)
 )
 
+AC_MSG_CHECKING(To Use XPath based filter . This is an optional module to build Savan C)
+AC_ARG_WITH(xpath,
+[  --with-xpath[=PATH]     Find the libxml2 header files in 'PATH'.
+    'PATH' should point to libxml2 include files location.
+    If you omit the '=PATH' part completely, the configure script will assume
+    libxml2 is installed in default paths.],
+[ case "$withval" in
+  no)
+    AC_MSG_RESULT(no)
+    SAVAN_FILTER=""
+    ;;
+  *)
+    AC_MSG_RESULT(yes)
+    SAVAN_FILTER="xpath"
+    dnl Find libxml2 include dir in the path
+    if test -d $withval; then
+        xpathinc="-I$withval"
+    dnl else find the libxml2 include dir in /usr/local/include
+    elif test -d '/usr/local/include'; then
+        xpathinc="-I/usr/local/include"
+    else
+        AC_MSG_ERROR(could not find libxml2. stop)
+    fi
+    ;;
+  esac ],
+  AC_MSG_RESULT(no)
+)
+
 
 AC_MSG_CHECKING(To Use Xml Schema.)
 AXIOMINC="-I$abs_top_builddir/../axis2c/axiom/include"
@@ -159,17 +187,21 @@
 CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
 
 REGISTRYINC=$registryinc
+XPATHINC=$xpathinc
 
 AC_SUBST(REGISTRYINC)
+AC_SUBST(XPATHINC)
 AC_SUBST(AXIS2INC)
 AC_SUBST(AXIOMINC)
 AC_SUBST(UTILINC)
 AC_SUBST(NEETHIINC)
 AC_SUBST(XMLSCHEMAINC)
 AC_SUBST(SAVAN_STORAGE)
+AC_SUBST(SAVAN_FILTER)
 AC_SUBST(SVC_DIR)
 
 export SAVAN_STORAGE
+export SAVAN_FILTER
 export SVC_DIR
 
 AC_CONFIG_FILES([Makefile \
@@ -185,6 +217,9 @@
     src/storage/registry/Makefile\
     src/storage/registry/test/Makefile\
     src/storage/service/Makefile\
+    src/filters/Makefile\
+    src/filters/common/Makefile\
+    src/filters/xpath/Makefile\
     src/subs_mgr/Makefile\
     src/data/Makefile\
     src/util/Makefile