Add option to require stylesheet support

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18945 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2004-03-29 04:05:44 +00:00
parent daf13243f4
commit 3c85fee35b
3 changed files with 50 additions and 7 deletions

View file

@ -7,6 +7,9 @@
Update to latest gsdoc document version.
* Documentation/Makefile.postamble:
Build Tools documentation.
contigure.ac:
Add --enable-xslt option to require stylesheet support (in case we want
to start uisng it to generate documentation)
2004-03-29 Adrian Robert <arobert@cogsci.ucsd.edu>

30
configure vendored
View file

@ -853,6 +853,7 @@ Optional Features:
--disable-do Compile even if DO-dependencies are not met
--disable-xml Compile even if XML-dependencies are not met
--disable-xmltest Do not try to compile and run a test XML program
--disable-xslt Compile even if XSLT-dependency is not met
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@ -12988,6 +12989,14 @@ fi
#--------------------------------------------------------------------
# Check for (optional) libxslt
#--------------------------------------------------------------------
# Check whether --enable-xslt or --disable-xslt was given.
if test "${enable_xslt+set}" = set; then
enableval="$enable_xslt"
else
enable_xslt=no
fi;
echo "$as_me:$LINENO: checking for xsltApplyStylesheet in -lxslt" >&5
echo $ECHO_N "checking for xsltApplyStylesheet in -lxslt... $ECHO_C" >&6
if test "${ac_cv_lib_xslt_xsltApplyStylesheet+set}" = set; then
@ -13185,15 +13194,30 @@ else
fi
if test "$xslthdr_ok" = "yes"; then
HAVE_LIBXSLT=1
if test "$xslthdr_ok" = "no"; then
xslt_ok=no
fi
fi
if test "$xslt_ok" = "yes"; then
HAVE_LIBXSLT=1
cat >>confdefs.h <<\_ACEOF
#define HAVE_LIBXSLT 1
_ACEOF
LIBS="$LIBS -lxslt"
LIBS="$LIBS -lxslt"
else
if test $enable_xslt = yes; then
echo
echo "You most likely do not want to build base without XSLT support."
echo "If you really want to build -base without XSLT support, add --disable-xslt"
echo "to the configure arguments."
{ { echo "$as_me:$LINENO: error: Missing support for XSLT functionality." >&5
echo "$as_me: error: Missing support for XSLT functionality." >&2;}
{ (exit 1); exit 1; }; }
fi
{ echo "$as_me:$LINENO: WARNING: Missing support for XSLT funtionality." >&5
echo "$as_me: WARNING: Missing support for XSLT funtionality." >&2;}
fi

View file

@ -1012,15 +1012,31 @@ AC_SUBST(HAVE_LIBXML)
#--------------------------------------------------------------------
# Check for (optional) libxslt
#--------------------------------------------------------------------
AC_ARG_ENABLE(xslt,
[ --disable-xslt Compile even if XSLT-dependency is not met],,
enable_xslt=no)
AC_CHECK_LIB(xslt, xsltApplyStylesheet, xslt_ok=yes, xslt_ok=no)
if test "$xslt_ok" = "yes"; then
AC_CHECK_HEADER(libxslt/xslt.h, xslthdr_ok=yes, xslthdr_ok=no)
if test "$xslthdr_ok" = "yes"; then
HAVE_LIBXSLT=1
AC_DEFINE(HAVE_LIBXSLT,1,[Define if libxslt available])
LIBS="$LIBS -lxslt"
if test "$xslthdr_ok" = "no"; then
xslt_ok=no
fi
fi
if test "$xslt_ok" = "yes"; then
HAVE_LIBXSLT=1
AC_DEFINE(HAVE_LIBXSLT,1,[Define if libxslt available])
LIBS="$LIBS -lxslt"
else
if test $enable_xslt = yes; then
echo
echo "You most likely do not want to build base without XSLT support."
echo "If you really want to build -base without XSLT support, add --disable-xslt"
echo "to the configure arguments."
AC_MSG_ERROR([Missing support for XSLT functionality.])
fi
AC_MSG_WARN([Missing support for XSLT funtionality.])
fi
AC_SUBST(HAVE_LIBXSLT)
#--------------------------------------------------------------------