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