diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2001-01-07 14:01:28 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2001-01-07 14:01:28 +0000 |
commit | 6f5e152012186758087a2eead15199e795f8e192 (patch) | |
tree | 36df1a9259ec43df426ee322bc5408d111e6eddd /configure.in | |
parent | 8a5bfd81e5b31731172e3cb21136f6ac517299c6 (diff) | |
download | libxslt-6f5e152012186758087a2eead15199e795f8e192.tar.gz libxslt-6f5e152012186758087a2eead15199e795f8e192.tar.bz2 libxslt-6f5e152012186758087a2eead15199e795f8e192.zip |
Initial revision
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/configure.in b/configure.in new file mode 100644 index 00000000..86e9dc69 --- /dev/null +++ b/configure.in @@ -0,0 +1,105 @@ +AC_INIT(libxslt/xslt.c) + +VERSION=0.0 +PACKAGE=libxslt + +AM_CONFIG_HEADER(config.h) +AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define) +AM_MAINTAINER_MODE + +dnl +dnl The following new parameters were added to offer +dnl the ability to specify the location of the libxml +dnl library during linking and compilation. +dnl Mathieu Lacage 30/03/2000 +dnl +LIBXML_PREFIX="" +AC_ARG_WITH(libxml-prefix, + [ --with-libxml-prefix=[PFX] Specify location of libxml], + LIBXML_PREFIX=$withval +) + +AC_ARG_WITH(libxml-include-prefix, + [ --with-libxml-include-prefix=[PFX] Specify location of libxml headers], + LIBXML_CFLAGS="-I$withval" +) + +AC_ARG_WITH(libxml-libs-prefix, + [ --with-libxml-libs-prefix=[PFX] Specify location of libxml libs], + LIBXML_LIBS="-L$withval -lxml -lz" +) + + +dnl +dnl Check the environment +dnl + +AC_ISC_POSIX +AC_PROG_CC +AC_STDC_HEADERS +AC_ARG_PROGRAM +AM_PROG_LIBTOOL + +dnl No internationalization (yet ?) +dnl +dnl ALL_LINGUAS="it ko fr de es no ga sv pt ja fi cs" +dnl AM_GNU_GETTEXT +dnl +dnl AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl) + +AC_SUBST(CFLAGS) +AC_SUBST(CPPFLAGS) +AC_SUBST(LDFLAGS) + +dnl +dnl find libxml +dnl +XML_CONFIG="xml-config" +AC_MSG_CHECKING(for libxml libraries >= 2.x) +if test "x$LIBXML_PREFIX" != "x" +then + if ${LIBXML_PREFIX}/bin/xml-config --libs print > /dev/null 2>&1 + then + XML_CONFIG=${LIBXML_PREFIX}/bin/xml-config + else + XML_CONFIG=xml-config + fi +fi + +dnl +dnl test version and init our variables +dnl +if test "x$XML_CONFIG" != "x" +then + vers=`$XML_CONFIG --version | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` + if test "$vers" -ge 2000000 + then + LIBXML_LIBS="`$XML_CONFIG --libs`" + LIBXML_CFLAGS="`$XML_CONFIG --cflags`" + AC_MSG_RESULT(found) + else + AC_MSG_ERROR(You need at least libxml 2.x for this version of libxml) + fi +else + AC_MSG_ERROR(Could not find libxml anywhere.) +fi + + +AC_SUBST(XML_CONFIG) +AC_SUBST(LIBXML_LIBS) +AC_SUBST(LIBXML_CFLAGS) + +XSLT_LIBDIR='-L${libdir}' +XSLT_INCLUDEDIR='-I${includedir}' +XSLT_LIBS="-lxslt $LIBXML_LIBS" + +AC_SUBST(XSLT_LIBDIR) +AC_SUBST(XSLT_INCLUDEDIR) +AC_SUBST(XSLT_LIBS) + +AC_OUTPUT([ +Makefile +libxslt/Makefile +tests/Makefile +xslt-config +]) |