2 AM_INIT_AUTOMAKE("yaz++",0.8)
11 YAZ_INIT(threads,2.0.12)
15 AC_ARG_WITH(dtd, [ --with-dtd[=DIR] use docbookx.dtd in DIR],
17 if test -f "$withval/docbookx.dtd"; then
21 AC_MSG_CHECKING(for docbookx.dtd)
22 for d in /usr/share/sgml/docbook/dtd/xml/4.1.2 \
23 /usr/share/sgml/docbook/xml-dtd-4.1.2* \
24 /usr/share/sgml/docbook/xml-dtd-4.1 \
25 /usr/share/sgml/docbook/dtd/xml/4.0 \
26 /usr/lib/sgml/dtd/docbook-xml
28 if test -f $d/docbookx.dtd; then
34 if test -z "$DTD_DIR"; then
35 AC_MSG_RESULT(Not found)
39 AC_ARG_WITH(dsssl,[ --with-dsssl[=DIR] use DSSSL in DIR/{html,print}/docbook.dsl],
41 if test -f "$withval/html/docbook.dsl"; then
45 AC_MSG_CHECKING(for docbook.dsl)
46 for d in /usr/share/sgml/docbook/stylesheet/dsssl/modular \
47 /usr/share/sgml/docbook/dsssl-stylesheets-1.* \
48 /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh
50 if test -f $d/html/docbook.dsl; then
56 if test -z "$DSSSL_DIR"; then
57 AC_MSG_RESULT(Not found)
62 AC_ARG_ENABLE(zoom,[ --disable-zoom disable ZOOM (for old C++ compilers)],[enable_zoom=$enableval],[enable_zoom=yes])
63 AM_CONDITIONAL(ZOOM, test $enable_zoom = "yes")
65 AC_SUBST(YAZPP_SRC_ROOT)
66 AC_SUBST(YAZPP_BUILD_ROOT)
67 YAZPP_SRC_ROOT=`cd ${srcdir}; pwd`
68 YAZPP_BUILD_ROOT=`pwd`
74 include/yaz++/Makefile
80 doc/yazprint.dsl doc/yazphp.dsl doc/yazhtml.dsl
82 ],[sed s%yaz_echo_source=yes%yaz_echo_source=no%g < yaz++-config >src/yaz++-config && chmod +x yaz++-config src/yaz++-config])