diff options
| author | Andrew Dunstan | 2007-04-15 12:48:24 +0000 |
|---|---|---|
| committer | Andrew Dunstan | 2007-04-15 12:48:24 +0000 |
| commit | f97d4a267a8d8b680960dfc32bd7111eb7ed8dca (patch) | |
| tree | 3411c9417f484e70601ce9942c7c264951eb5e07 /configure.in | |
| parent | 6041b92238897b06fe7bbe229a6e99f80121fa4a (diff) | |
Add --with-libxslt configure option
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/configure.in b/configure.in index b8c8e590f4..43cf008ed8 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $PostgreSQL: pgsql/configure.in,v 1.510 2007/04/13 18:50:01 adunstan Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.511 2007/04/15 12:48:23 adunstan Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -580,6 +580,15 @@ fi AC_SUBST(with_libxml) # +# XSLT +# +PGAC_ARG_BOOL(with, libxslt, no, [ --with-libxslt build with XSLT support], + [AC_DEFINE([USE_LIBXSLT], 1, [Define to 1 to build with XSLT support. (--with-libxslt)])]) + + +AC_SUBST(with_libxslt) + +# # Zlib # PGAC_ARG_BOOL(with, zlib, yes, @@ -768,6 +777,10 @@ if test "$with_libxml" = yes ; then AC_CHECK_LIB(xml2, xmlSaveToBuffer, [], [AC_MSG_ERROR([library 'xml2' (version >= 2.6.23) is required for XML support])]) fi +if test "$with_libxslt" = yes ; then + AC_CHECK_LIB(xslt, xsltLibxmlVersion, [], [AC_MSG_ERROR([library 'xslt' is required for XSLT support])]) +fi + ## ## Header files @@ -847,6 +860,10 @@ if test "$with_libxml" = yes ; then AC_CHECK_HEADER(libxml/parser.h, [], [AC_MSG_ERROR([header file <libxml/parser.h> is required for XML support])]) fi +if test "$with_libxslt" = yes ; then + AC_CHECK_HEADER(libxslt/xslt.h, [], [AC_MSG_ERROR([header file <libxslt/xslt.h> is required for XSLT support])]) +fi + if test "$with_ldap" = yes ; then if test "$PORTNAME" != "win32"; then AC_CHECK_HEADERS(ldap.h, [], |
