Remove Ubuntu karmic from build
[yazpp-moved-to-github.git] / configure.ac
1 dnl This file is part of yazpp
2 dnl Copyright (C) 1998-2011 Index Data
3 AC_PREREQ(2.60)
4 AC_INIT([yazpp],
5 m4_esyscmd([. ./IDMETA; echo $VERSION|tr -d '\n']),
6 [adam@indexdata.dk])
7 AC_CONFIG_HEADERS([include/config.h])
8 AC_CONFIG_SRCDIR(configure.ac)
9 AC_CONFIG_AUX_DIR([config])
10 AM_INIT_AUTOMAKE([1.9])
11
12 AC_PROG_CC
13 AC_PROG_CPP
14 AC_PROG_CXX
15 AC_HEADER_STDC
16 AM_PROG_LIBTOOL
17
18 YAZ_INIT([threads],[4.2.8])
19 if test -z "$YAZLIB"; then
20         AC_MSG_ERROR([YAZ development libraries missing])
21 fi
22 YAZ_DOC
23 AC_CHECK_HEADERS([unistd.h sys/stat.h sys/time.h sys/types.h fcntl.h])
24
25 AC_ARG_ENABLE(zoom,[  --disable-zoom          disable ZOOM (for old C++ compilers)],[enable_zoom=$enableval],[enable_zoom=yes])
26 AM_CONDITIONAL(ZOOM, test $enable_zoom = "yes")
27
28 AC_OUTPUT([
29         Doxyfile
30         Makefile
31         src/Makefile
32         include/Makefile
33         include/yazpp/Makefile
34         zlint/Makefile
35         yazpp-config
36         zoom/Makefile
37         doc/Makefile
38         doc/local.ent
39         doc/common/Makefile
40         doc/common/print.dsl
41 ],[sed s%echo_source=yes%echo_source=no%g < yazpp-config >src/yazpp-config && chmod +x yazpp-config src/yazpp-config])
42
43
44 echo \
45 "------------------------------------------------------------------------
46
47   YAZPP Package:              ${PACKAGE}
48   YAZPP Version:              ${VERSION}
49   Source code location:       ${srcdir}
50   CPP Preprocessor:           ${CPP}
51   CPP Preprocessor flags:     ${CPPFLAGS}
52   CXX Compiler:               ${CXX}
53   CXX Compiler flags:         ${CXXFLAGS}
54   Linker flags:               ${LDFLAGS}
55   Linked libs:                ${LIBS}
56   Host System Type:           ${host}
57   Install path:               ${prefix}
58   Automake:                   ${AUTOMAKE}
59   Archiver:                   ${AR}
60   Ranlib:                     ${RANLIB}
61   YAZ Version:                ${YAZVERSION}
62   YAZ Include:                ${YAZINC}
63   YAZ La Lib:                 ${YAZLALIB}
64   YAZ Lib:                    ${YAZLIB}
65   Bugreport:                  ${PACKAGE_BUGREPORT}
66
67 ------------------------------------------------------------------------"