Bump version to 0.9. Abort if YAZ is not found
[yazpp-moved-to-github.git] / configure.in
1 AC_INIT(configure.in)
2 AM_INIT_AUTOMAKE("yaz++",0.9)
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.29)
12 if test -z "$YAZLIB"; then
13         AC_MSG_ERROR([YAZ development libraries missing])
14 fi
15 YAZ_DOC
16
17 AC_ARG_ENABLE(zoom,[  --disable-zoom          disable ZOOM (for old C++ compilers)],[enable_zoom=$enableval],[enable_zoom=yes])
18 AM_CONDITIONAL(ZOOM, test $enable_zoom = "yes")
19
20 AC_SUBST(YAZPP_SRC_ROOT)
21 AC_SUBST(YAZPP_BUILD_ROOT)
22 YAZPP_SRC_ROOT=`cd ${srcdir}; pwd`
23 YAZPP_BUILD_ROOT=`pwd`
24
25 AC_OUTPUT([
26         Makefile
27         src/Makefile
28         include/Makefile
29         include/yaz++/Makefile
30         zlint/Makefile
31         yaz++-config
32         zoom/Makefile
33         doc/Makefile
34         doc/yaz++.xml
35         doc/yazprint.dsl doc/yazphp.dsl doc/yazhtml.dsl
36         doc/tkl.xsl
37 ],[sed s%yaz_echo_source=yes%yaz_echo_source=no%g < yaz++-config >src/yaz++-config && chmod +x yaz++-config src/yaz++-config])