aboutsummaryrefslogtreecommitdiffstats
path: root/macros/xerces.m4
diff options
context:
space:
mode:
authorKevin Gibbs <kgibbs@src.gnome.org>2001-07-21 05:39:10 +0800
committerKevin Gibbs <kgibbs@src.gnome.org>2001-07-21 05:39:10 +0800
commit5637adc2c07617b7f5ea206d24cfa073787a4e0d (patch)
treeafacbc5d8192c3f0dadffe1601977defcfc12bd5 /macros/xerces.m4
parentebed1c3e177855c79663ba7208cd620cd76c21f0 (diff)
downloadgsoc2013-evolution-5637adc2c07617b7f5ea206d24cfa073787a4e0d.tar
gsoc2013-evolution-5637adc2c07617b7f5ea206d24cfa073787a4e0d.tar.gz
gsoc2013-evolution-5637adc2c07617b7f5ea206d24cfa073787a4e0d.tar.bz2
gsoc2013-evolution-5637adc2c07617b7f5ea206d24cfa073787a4e0d.tar.lz
gsoc2013-evolution-5637adc2c07617b7f5ea206d24cfa073787a4e0d.tar.xz
gsoc2013-evolution-5637adc2c07617b7f5ea206d24cfa073787a4e0d.tar.zst
gsoc2013-evolution-5637adc2c07617b7f5ea206d24cfa073787a4e0d.zip
Make dist, dist check, and rpm are now supported and working. If you want to distribute a copy of SashMo to someone, you should type "make dist" and send them the tarball.
svn path=/trunk/; revision=11279
Diffstat (limited to 'macros/xerces.m4')
-rw-r--r--macros/xerces.m457
1 files changed, 57 insertions, 0 deletions
diff --git a/macros/xerces.m4 b/macros/xerces.m4
new file mode 100644
index 0000000000..bea87e2669
--- /dev/null
+++ b/macros/xerces.m4
@@ -0,0 +1,57 @@
+dnl - Determine where and which version of xerces is installed on the system
+dnl - Author: Andrew Chatham
+
+AC_DEFUN([AC_CHECK_XERCES],[
+ has_xerces=false
+
+ CFLAGS=${CFLAGS--O}
+
+ AC_ARG_WITH(xerces,
+ [ --with-xerces=dir Specify the Xerces directory],[
+ if test x$withval != x; then
+ XERCES_INCLUDE_DIR="$withval/include"
+ XERCES_LIB_DIR=$withval/lib
+ fi
+ ])
+
+ AC_MSG_CHECKING(for xerces)
+ if test x$XERCES_INCLUDE_DIR = x; then
+ if test x$XERCESCROOT = x; then
+ if test "x$prefix" != "xNONE"; then
+ XERCESCROOT="$prefix"
+ fi
+ fi
+ XERCES_INCLUDE_DIR=$XERCESCROOT/include
+ fi
+
+ if test x$XERCES_LIB_DIR = x; then
+ XERCES_LIB_DIR=$XERCESCROOT/lib
+ fi
+
+ XERCES_VER=`ls $XERCES_LIB_DIR/libxerces*.so |
+ perl $srcdir/macros/xerces-version.pl`
+
+ if test "x$XERCES_VER" = "x0_0"; then
+ AC_MSG_ERROR("You must have Xerces installed and set XERCESCROOT or use --with-xerces")
+ else
+ AC_MSG_RESULT(found)
+ fi
+
+ XERCES_LIBNAME=xerces-c
+ XERCES_LIBRARY_NAMES=-l${XERCES_LIBNAME}${XERCES_VER}
+ XERCES_LIBRARY_SEARCH_PATHS=-L${XERCES_LIB_DIR}
+ XERCES_INCLUDE=-I${XERCES_INCLUDE_DIR}
+
+ AC_SUBST(XERCES_LIBRARY_NAMES)
+ AC_SUBST(XERCES_LIBNAME)
+ AC_SUBST(XERCES_INCLUDE)
+ AC_SUBST(XERCES_INCLUDE_DIR)
+ AC_SUBST(XERCES_VER)
+ AC_SUBST(XERCES_LIBRARY_SEARCH_PATHS)
+
+ if test -f "${XERCES_INCLUDE_DIR}/util/XMLUniDefs.hpp"; then
+ AC_DEFINE(HAVE_XMLUNIDEFS)
+ fi
+])
+
+