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