a7a9942c4303c43bf8f9c7da0d4d44d5947dbd24
[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         js/Makefile
39         doc/Makefile
40         doc/local.ent
41         doc/common/Makefile
42         doc/common/print.dsl
43
44 ])
45
46 AC_OUTPUT
47
48
49 echo \
50 "------------------------------------------------------------------------
51
52   Package:                    ${PACKAGE}
53   Version:                    ${VERSION}
54   Source code location:       ${srcdir}
55   C Preprocessor:             ${CPP}
56   C Preprocessor flags:       ${CPPFLAGS}
57   C Compiler:                 ${CC}
58   C Compiler flags:           ${CFLAGS}
59   Linker flags:               ${LDFLAGS}
60   Linked libs:                ${LIBS}
61   Host System Type:           ${host}
62   Install path:               ${prefix}
63   Automake:                   ${AUTOMAKE}
64   Archiver:                   ${AR}
65   Ranlib:                     ${RANLIB}
66   YAZ Version:                ${YAZVERSION}
67   YAZ Include:                ${YAZINC}
68   YAZ La Lib:                 ${YAZLALIB}
69   YAZ Lib:                    ${YAZLIB}
70   ICU Version:                ${ICU_VERSION}
71   ICU Include:                ${ICU_CPPFLAGS}
72   ICU Lib:                    ${ICU_LIBS}
73   Bugreport:                  ${PACKAGE_BUGREPORT}
74
75 ------------------------------------------------------------------------"
76
77 dnl Local Variables:
78 dnl mode:shell-script
79 dnl sh-indentation:2
80 dnl sh-basic-offset: 4
81 dnl End: