Changed decode failure handling a bit so that failNotify is called.
[yazpp-moved-to-github.git] / configure.ac
1 dnl YAZ++ Toolkit Index Data 1998-2008
2 dnl See the file LICENSE for details.
3 AC_PREREQ(2.60)
4 AC_INIT([yazpp],[1.1.0],[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],[3.0.26])
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])
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_SUBST(YAZPP_SRC_ROOT)
26 AC_SUBST(YAZPP_BUILD_ROOT)
27 YAZPP_SRC_ROOT=`cd ${srcdir}; pwd`
28 YAZPP_BUILD_ROOT=`pwd`
29
30 AC_OUTPUT([
31         Doxyfile
32         Makefile
33         src/Makefile
34         include/Makefile
35         include/yazpp/Makefile
36         zlint/Makefile
37         yazpp-config
38         zoom/Makefile
39         doc/Makefile
40         doc/local.ent
41         doc/common/Makefile
42         doc/common/print.dsl
43 ],[sed s%yaz_echo_source=yes%yaz_echo_source=no%g < yazpp-config >src/yazpp-config && chmod +x yazpp-config src/yazpp-config])
44
45
46 echo \
47 "------------------------------------------------------------------------
48
49   YAZPP Package:              ${PACKAGE}
50   YAZPP Version:              ${VERSION}
51   Source code location:       ${srcdir}
52   CPP Preprocessor:           ${CPP}
53   CPP Preprocessor flags:     ${CPPFLAGS}
54   CXX Compiler:               ${CXX}
55   CXX Compiler flags:         ${CXXFLAGS}
56   Linker flags:               ${LDFLAGS}
57   Linked libs:                ${LIBS}
58   Host System Type:           ${host}
59   Install path:               ${prefix}
60   Automake:                   ${AUTOMAKE}
61   Archiver:                   ${AR}
62   Ranlib:                     ${RANLIB}
63   YAZ Version:                ${YAZVERSION}
64   YAZ Include:                ${YAZINC}
65   YAZ La Lib:                 ${YAZLALIB}
66   YAZ Lib:                    ${YAZLIB}
67   Bugreport:                  ${PACKAGE_BUGREPORT}
68
69 ------------------------------------------------------------------------"