Use YAZ_DOC macro to setup documentation.
[yazpp-moved-to-github.git] / configure.in
1 AC_INIT(configure.in)
2 AM_INIT_AUTOMAKE("yaz++",0.8)
3
4 AC_PROG_CC
5 AC_PROG_CPP
6 AC_PROG_CXX
7 AC_HEADER_STDC
8 AM_DISABLE_SHARED
9 AM_PROG_LIBTOOL
10
11 YAZ_INIT(threads,2.0.12)
12 YAZ_DOC
13
14 AC_ARG_ENABLE(zoom,[  --disable-zoom          disable ZOOM (for old C++ compilers)],[enable_zoom=$enableval],[enable_zoom=yes])
15 AM_CONDITIONAL(ZOOM, test $enable_zoom = "yes")
16
17 AC_SUBST(YAZPP_SRC_ROOT)
18 AC_SUBST(YAZPP_BUILD_ROOT)
19 YAZPP_SRC_ROOT=`cd ${srcdir}; pwd`
20 YAZPP_BUILD_ROOT=`pwd`
21
22 AC_OUTPUT([
23         Makefile
24         src/Makefile
25         include/Makefile
26         include/yaz++/Makefile
27         zlint/Makefile
28         yaz++-config
29         zoom/Makefile
30         doc/Makefile
31         doc/yaz++.xml
32         doc/yazprint.dsl doc/yazphp.dsl doc/yazhtml.dsl
33         doc/tkl.xsl
34 ],[sed s%yaz_echo_source=yes%yaz_echo_source=no%g < yaz++-config >src/yaz++-config && chmod +x yaz++-config src/yaz++-config])