Avoid conditions for YAZ features.. Require YAZ 3.0.29 or later.
[pazpar2-moved-to-github.git] / configure.ac
1 ## -*- Autoconf -*-
2 ## This file is part of Pazpar2.
3 ## Process this file with autoconf to produce a configure script.
4
5 # Autoconf and automake setup
6 AC_PREREQ(2.60)
7 AC_INIT([pazpar2],[1.0.9],[pazpar2-help@indexdata.dk])
8
9 AC_CONFIG_HEADERS(src/config.h)
10
11 AC_CONFIG_SRCDIR([configure.ac]) 
12 AC_CONFIG_AUX_DIR([config])
13 AC_CANONICAL_SYSTEM
14
15 AM_INIT_AUTOMAKE([1.9])
16
17 AC_PROG_CC
18 AC_PROG_RANLIB
19
20 AC_LANG(C)
21
22 YAZ_INIT([static threads],[3.0.29])
23 if test -z "$YAZLIB"; then
24         AC_MSG_ERROR([YAZ development libraries missing])
25 fi
26 YAZ_DOC
27
28 AC_CHECK_HEADERS([sys/time.h sys/socket.h unistd.h netinet/in.h netdb.h arpa/inet.h])
29 AC_CHECK_FUNCS([getaddrinfo])
30 AC_CHECK_ICU([3.6],[ICU_CPPFLAGS="$ICU_CPPFLAGS -D HAVE_ICU=1"])
31 AC_CONFIG_FILES([
32         Doxyfile
33         Makefile
34         src/Makefile
35         test/Makefile
36         js/Makefile
37         doc/Makefile
38         doc/local.ent
39         doc/common/Makefile
40         doc/common/print.dsl
41
42 ])
43
44 AC_OUTPUT
45
46
47 echo \
48 "------------------------------------------------------------------------
49
50   Package:                    ${PACKAGE}
51   Version:                    ${VERSION}
52   Source code location:       ${srcdir}
53   C Preprocessor:             ${CPP}
54   C Preprocessor flags:       ${CPPFLAGS}
55   C Compiler:                 ${CC}
56   C Compiler flags:           ${CFLAGS}
57   Linker flags:               ${LDFLAGS}
58   Linked libs:                ${LIBS}
59   Host System Type:           ${host}
60   Install path:               ${prefix}
61   Automake:                   ${AUTOMAKE}
62   Archiver:                   ${AR}
63   Ranlib:                     ${RANLIB}
64   YAZ Version:                ${YAZVERSION}
65   YAZ Include:                ${YAZINC}
66   YAZ La Lib:                 ${YAZLALIB}
67   YAZ Lib:                    ${YAZLIB}
68   ICU Version:                ${ICU_VERSION}
69   ICU Include:                ${ICU_CPPFLAGS}
70   ICU Lib:                    ${ICU_LIBS}
71   Bugreport:                  ${PACKAGE_BUGREPORT}
72
73 ------------------------------------------------------------------------"
74
75 dnl Local Variables:
76 dnl mode:shell-script
77 dnl sh-indentation:2
78 dnl sh-basic-offset: 4
79 dnl End: