2 AM_INIT_AUTOMAKE("yaz++",0.7.7)
11 YAZ_INIT(threads,2.0.10)
18 AC_ARG_WITH(xslt, [ --with-xslt[=PREFIX] use libxslt in PREFIX],[xsltdir=$withval])
19 if test "$xsltdir" = "yes"; then
20 for d in /usr /usr/local; do
21 if test -x $d/bin/xslt-config; then
26 if test "$xsltdir" != "no"; then
27 AC_MSG_CHECKING(for libXSLT)
28 if test -x $xsltdir/bin/xslt-config; then
29 XSLT_LIBS=`$xsltdir/bin/xslt-config --libs`
30 LIBS="$XSLT_LIBS $LIBS"
31 XSLT_CFLAGS=`$xsltdir/bin/xslt-config --cflags`
32 XSLT_VER=`$xsltdir/bin/xslt-config --version`
33 AC_MSG_RESULT($XSLT_VER)
36 AC_MSG_RESULT(Not found)
43 AC_ARG_WITH(dtd, [ --with-dtd[=DIR] Use docbookx.dtd in DIR],
45 if test -f "$withval/docbookx.dtd"; then
49 AC_MSG_CHECKING(for docbookx.dtd)
50 for d in /usr/share/sgml/docbook/dtd/xml/4.1.2 \
51 /usr/share/sgml/docbook/xml-dtd-4.1.2* \
52 /usr/share/sgml/docbook/xml-dtd-4.1 \
53 /usr/share/sgml/docbook/dtd/xml/4.0 \
54 /usr/lib/sgml/dtd/docbook-xml
56 if test -f $d/docbookx.dtd; then
62 if test -z "$DTD_DIR"; then
63 AC_MSG_RESULT(Not found)
67 AC_ARG_WITH(dsssl,[ --with-dsssl[=DIR] Use DSSSL in DIR/{html,print}/docbook.dsl],
69 if test -f "$withval/html/docbook.dsl"; then
73 AC_MSG_CHECKING(for docbook.dsl)
74 for d in /usr/share/sgml/docbook/stylesheet/dsssl/modular \
75 /usr/share/sgml/docbook/dsssl-stylesheets-1.* \
76 /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh
78 if test -f $d/html/docbook.dsl; then
84 if test -z "$DSSSL_DIR"; then
85 AC_MSG_RESULT(Not found)
90 AC_ARG_ENABLE(zoom,[ --disable-zoom disable ZOOM (for old C++ compilers)],[enable_zoom=$enableval],[enable_zoom=yes])
91 AM_CONDITIONAL(ZOOM, test $enable_zoom = "yes")
93 AC_SUBST(YAZPP_SRC_ROOT)
94 AC_SUBST(YAZPP_BUILD_ROOT)
95 YAZPP_SRC_ROOT=`cd ${srcdir}; pwd`
96 YAZPP_BUILD_ROOT=`pwd`
102 include/yaz++/Makefile
108 doc/yazprint.dsl doc/yazphp.dsl doc/yazhtml.dsl
111 ],[sed s%yaz_echo_source=yes%yaz_echo_source=no%g < yaz++-config >src/yaz++-config && chmod +x yaz++-config src/yaz++-config])