2 AM_INIT_AUTOMAKE("yaz++", 0.3)
16 AC_ARG_WITH(dtd, [ --with-dtd[=DIR] Use docbookx.dtd in DIR],
18 if test -f "$withval/docbookx.dtd"; then
22 AC_MSG_CHECKING(for docbookx.dtd)
23 for d in /usr/share/sgml/docbook/dtd/xml/4.1.2 \
24 /usr/share/sgml/docbook/xml-dtd-4.1.2* \
25 /usr/share/sgml/docbook/xml-dtd-4.1 \
26 /usr/share/sgml/docbook/dtd/xml/4.0 \
27 /usr/lib/sgml/dtd/docbook-xml
29 if test -f $d/docbookx.dtd; then
35 if test -z "$DTD_DIR"; then
36 AC_MSG_RESULT(Not found)
40 AC_ARG_WITH(dsssl,[ --with-dsssl[=DIR] Use DSSSL in DIR/{html,print}/docbook.dsl],
42 if test -f "$withval/html/docbook.dsl"; then
46 AC_MSG_CHECKING(for docbook.dsl)
47 for d in /usr/share/sgml/docbook/stylesheet/dsssl/modular \
48 /usr/share/sgml/docbook/dsssl-stylesheets-1.* \
49 /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh
51 if test -f $d/html/docbook.dsl; then
57 if test -z "$DSSSL_DIR"; then
58 AC_MSG_RESULT(Not found)
64 AC_SUBST(YAZPP_SRC_ROOT)
65 AC_SUBST(YAZPP_BUILD_ROOT)
66 YAZPP_SRC_ROOT=`cd ${srcdir}; pwd`
67 YAZPP_BUILD_ROOT=`pwd`
69 if test -f ${srcdir}/src/yaz++-config.in; then
70 rm ${srcdir}/src/yaz++-config.in
72 sed s%yaz_echo_source=yes%yaz_echo_source=no%g < ${srcdir}/yaz++-config.in >${srcdir}/src/yaz++-config.in
77 include/yaz++/Makefile
83 doc/yazprint.dsl doc/yazphp.dsl doc/yazhtml.dsl
84 ],[chmod +x yaz++-config src/yaz++-config])