2 ## This file is part of Pazpar2.
3 ## Copyright (C) Index Data
4 ## Process this file with autoconf to produce a configure script.
6 # Autoconf and automake setup
9 m4_esyscmd([. ./IDMETA; echo $VERSION|tr -d '\n']),
10 [pazpar2-help@indexdata.dk])
12 AC_CONFIG_HEADERS(src/config.h)
14 AC_CONFIG_SRCDIR([configure.ac])
15 AC_CONFIG_AUX_DIR([config])
18 AM_INIT_AUTOMAKE([1.9])
27 YAZ_INIT([static icu],[4.2.68])
28 if test -z "$YAZLIB"; then
29 AC_MSG_ERROR([YAZ development libraries missing])
33 *) AC_MSG_ERROR([YAZ not compiled with Libxslt support]) ;;
38 AC_SEARCH_LIBS([log],[m])
39 AC_CHECK_HEADERS([sys/time.h sys/socket.h unistd.h netinet/in.h netdb.h arpa/inet.h])
41 AC_CHECK_FUNC([connect])
42 if test "$ac_cv_func_connect" = "no"; then
43 AC_CHECK_LIB([socket],[main], LIBS="$LIBS -lsocket", checkBoth=1)
45 if test "$checkBoth" = "1"; then
47 LIBS="$LIBS -lsocket -lnsl"
48 AC_CHECK_FUNC([accept], , [LIBS=$oldLibs])
50 AC_CHECK_FUNC([gethostbyname], ,[AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])])
51 AC_CHECK_FUNCS([getaddrinfo mallinfo])
53 if test -d ${srcdir}/.git; then
54 sha=`git show --pretty=format:%H|head -1`
56 sha=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'`
58 AC_DEFINE_UNQUOTED([PAZPAR2_VERSION_SHA1], ["$sha"], [Git SHA1])
73 diff doc/local.ent doc/local0.ent >/dev/null 2>/dev/null \
74 || cp doc/local0.ent doc/local.ent
78 "------------------------------------------------------------------------
82 Source code location: ${srcdir}
83 C Preprocessor: ${CPP}
84 C Preprocessor flags: ${CPPFLAGS}
86 C Compiler flags: ${CFLAGS}
87 Linker flags: ${LDFLAGS}
89 Host System Type: ${host}
90 Install path: ${prefix}
91 YAZ Version: ${YAZVERSION}
92 YAZ Include: ${YAZINC}
94 Bugreport: ${PACKAGE_BUGREPORT}
96 ------------------------------------------------------------------------"
101 dnl sh-basic-offset: 4