Pazpar2 require YAZ 3
[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.59)
6 AC_INIT([pazpar2],[0.1],[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.8])
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_ICU(3.6, [], 
28     AC_MSG_WARN([For ICU internationalizing support please install libicu36-dev or similar]))
29
30 ln -sf ../../js/pz2.js www/example/pz2.js
31 ln -sf ../../../js/pz2.js www/masterkey/js/pz2.js
32
33 AC_CONFIG_FILES([
34         Doxyfile
35         Makefile
36         src/Makefile
37         test/Makefile
38         doc/Makefile
39         doc/local.ent
40         doc/common/Makefile
41         doc/common/print.dsl
42
43 ])
44
45 AC_OUTPUT
46
47
48 echo \
49 "------------------------------------------------------------------------
50
51   Package:                    ${PACKAGE}
52   Version:                    ${VERSION}
53   Source code location:       ${srcdir}
54   C Preprocessor:             ${CPP}
55   C Preprocessor flags:       ${CPPFLAGS}
56   C Compiler:                 ${CC}
57   C Compiler flags:           ${CFLAGS}
58   Linker flags:               ${LDFLAGS}
59   Linked libs:                ${LIBS}
60   Host System Type:           ${host}
61   Install path:               ${prefix}
62   Automake:                   ${AUTOMAKE}
63   Archiver:                   ${AR}
64   Ranlib:                     ${RANLIB}
65   YAZ Version:                ${YAZVERSION}
66   YAZ Include:                ${YAZINC}
67   YAZ La Lib:                 ${YAZLALIB}
68   YAZ Lib:                    ${YAZLIB}
69   ICU Version:                ${ICU_VERSION}
70   ICU Include:                ${ICU_CPPFLAGS}
71   ICU Lib:                    ${ICU_LIBS}
72   Bugreport:                  ${PACKAGE_BUGREPORT}
73
74 ------------------------------------------------------------------------"
75
76 dnl Local Variables:
77 dnl mode:shell-script
78 dnl sh-indentation:2
79 dnl sh-basic-offset: 4
80 dnl End: