Make ChangeLog in make dist rule
[yazpp-moved-to-github.git] / configure.ac
1 dnl YAZ++ Toolkit, Index Data 1994-2006
2 dnl See the file LICENSE for details.
3 dnl $Id: configure.ac,v 1.7 2006-06-02 10:57:55 adam Exp $
4 AC_PREREQ(2.59)
5 AC_INIT([yazpp],[1.0.0],[adam@indexdata.dk])
6 AC_CONFIG_SRCDIR(configure.ac)
7 AC_CONFIG_AUX_DIR([config])
8 AM_INIT_AUTOMAKE([1.8])
9
10 AC_PROG_CC
11 AC_PROG_CPP
12 AC_PROG_CXX
13 AC_HEADER_STDC
14 AM_DISABLE_SHARED
15 AM_PROG_LIBTOOL
16
17 YAZ_INIT(threads,2.1.18)
18 if test -z "$YAZLIB"; then
19         AC_MSG_ERROR([YAZ development libraries missing])
20 fi
21 YAZ_DOC
22 AC_CHECK_HEADERS(unistd.h sys/stat.h sys/time.h sys/types.h)
23
24 AC_ARG_ENABLE(zoom,[  --disable-zoom          disable ZOOM (for old C++ compilers)],[enable_zoom=$enableval],[enable_zoom=yes])
25 AM_CONDITIONAL(ZOOM, test $enable_zoom = "yes")
26
27 AC_SUBST(YAZPP_SRC_ROOT)
28 AC_SUBST(YAZPP_BUILD_ROOT)
29 YAZPP_SRC_ROOT=`cd ${srcdir}; pwd`
30 YAZPP_BUILD_ROOT=`pwd`
31
32 AC_OUTPUT([
33         Makefile
34         src/Makefile
35         include/Makefile
36         include/yazpp/Makefile
37         zlint/Makefile
38         yazpp-config
39         zoom/Makefile
40         doc/Makefile
41         doc/local.ent
42         doc/common/Makefile
43         doc/common/print.dsl
44 ],[sed s%yaz_echo_source=yes%yaz_echo_source=no%g < yazpp-config >src/yazpp-config && chmod +x yazpp-config src/yazpp-config])