Another and hopefully, last, YAZ OID DB update
[yazproxy-moved-to-github.git] / configure.ac
1 dnl yazproxy, Index Data 1994-2007
2 dnl See the file LICENSE for details.
3 dnl $Id: configure.ac,v 1.15 2007-03-20 16:23:42 adam Exp $
4 AC_PREREQ(2.59)
5 AC_INIT([yazproxy],[1.3.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_PROG_LIBTOOL
15
16 YAZPP_INIT(threads,1.0.1)
17 if test -z "$YAZPPLIB"; then
18         AC_MSG_ERROR([YAZ++ development libraries missing])
19 fi
20 YAZ_DOC
21 USEMARCON_INIT
22
23 AC_CHECK_FUNCS(setrlimit getrlimit gettimeofday)
24 AC_CHECK_HEADERS(pwd.h sys/resource.h sys/stat.h sys/time.h sys/types.h sys/wait.h unistd.h)
25 AC_CHECK_LIB(dl,dlopen)
26 dnl
27 AC_SUBST(YAZPROXY_SRC_ROOT)
28 AC_SUBST(YAZPROXY_BUILD_ROOT)
29 YAZPROXY_SRC_ROOT=`cd ${srcdir}; pwd`
30 YAZPROXY_BUILD_ROOT=`pwd`
31 AC_OUTPUT([
32         Makefile
33         src/Makefile
34         include/Makefile
35         include/yazproxy/Makefile
36         doc/Makefile
37         doc/local.ent
38         doc/common/Makefile
39         doc/common/print.dsl
40         etc/Makefile
41 ])