-dnl Zebra, Index Data ApS, 1995-2008
-dnl $Id: configure.ac,v 1.73 2008-01-18 09:07:01 adam Exp $
+dnl This file is part of the Zebra server.
+dnl Copyright (C) 1994-2009 Index Data
dnl
-AC_PREREQ(2.59)
-AC_INIT([idzebra],[2.0.24],[zebra-help@indexdata.dk])
+AC_PREREQ(2.60)
+AC_INIT([idzebra],[2.0.41],[zebra-help@indexdata.dk])
AC_CONFIG_SRCDIR(configure.ac)
AC_CONFIG_AUX_DIR(config)
-AM_INIT_AUTOMAKE([1.8])
+AM_INIT_AUTOMAKE([1.9])
PACKAGE_SUFFIX="-2.0"
AC_SUBST(PACKAGE_SUFFIX)
dnl http://www.gnu.org/software/libtool/manual.html#Versioning
fi
fi
dnl
+dnl ------- zlib
+AC_CHECK_LIB([z],[compress2])
+if test "$ac_cv_lib_z_compress2" = "yes"; then
+ AC_CHECK_HEADERS([zlib.h])
+fi
dnl ------ -lm
AC_CHECK_LIB(m,sqrt)
dnl ------ -ldl
dnl ------ ANSI C Header files
AC_STDC_HEADERS
if test "$ac_cv_header_stdc" = "no"; then
- AC_MSG_WARN(Your system doesn't seem to support ANSI C)
+ AC_MSG_WARN([Your system does not seem to support ANSI C])
fi
AC_SUBST(IDZEBRA_SRC_ROOT)
AC_SUBST(IDZEBRA_BUILD_ROOT)
IDZEBRA_SRC_ROOT=`cd ${srcdir}; pwd`
IDZEBRA_BUILD_ROOT=`pwd`
+dnl
+dnl ------ versioning
+dnl
+WIN_FILEVERSION=`echo $PACKAGE_VERSION | $AWK 'BEGIN { FS = "."; } { m = $4; printf("%d,%d,%d,%d", $1, $2, $3 == "" ? "0" : $3, $4 == "" ? "1" : $4);}'`
+AC_SUBST([WIN_FILEVERSION])
+VERSION_HEX=`echo $PACKAGE_VERSION | $AWK 'BEGIN { FS = "."; } { printf("%x", ($1 * 256 + $2) * 256 + $3);}'`
+AC_SUBST([VERSION_HEX])
+if test -d ${srcdir}/.git; then
+ VERSION_SHA1=`git show --pretty=format:%H|head -1`
+else
+ VERSION_SHA1=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'`
+fi
+AC_SUBST([VERSION_SHA1])
+dnl
dnl ------ Create Makefiles
+dnl
AC_OUTPUT([
Makefile
util/Makefile
test/xpath/Makefile
test/rusmarc/Makefile test/cddb/Makefile test/malxml/Makefile
test/mbox/Makefile
- test/config/Makefile test/sort2/Makefile
+ test/config/Makefile
test/xelm/Makefile
- test/dmoz/Makefile test/sort/Makefile test/zsh/Makefile
+ test/dmoz/Makefile test/zsh/Makefile
test/marcxml/Makefile test/charmap/Makefile test/codec/Makefile
test/espec/Makefile
test/filters/Makefile
- examples/Makefile examples/gils/Makefile examples/zthes/Makefile
- examples/marc21/Makefile examples/marcxml/Makefile
- examples/alvis-oai/Makefile
+ examples/Makefile
+ examples/gils/Makefile
+ examples/marc21/Makefile
+ examples/marcxml/Makefile
+ examples/oai-pmh/Makefile
+ examples/zthes/Makefile
idzebra.spec
idzebra-config-2.0
Doxyfile
+ win/version.nsi
+ include/idzebra/version.h
],[sed s%echo_source=yes%echo_source=no%g < idzebra-config-2.0 > util/idzebra-config-2.0 && chmod +x idzebra-config-2.0 util/idzebra-config-2.0])
echo \