2 ## This file is part of Pazpar2.
3 ## Copyright (C) 2006-2012 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.20])
28 if test -z "$YAZLIB"; then
29 AC_MSG_ERROR([YAZ development libraries missing])
33 AC_SEARCH_LIBS([log],[m])
34 AC_CHECK_HEADERS([sys/time.h sys/socket.h unistd.h netinet/in.h netdb.h arpa/inet.h])
36 AC_CHECK_FUNC([connect])
37 if test "$ac_cv_func_connect" = "no"; then
38 AC_CHECK_LIB([socket],[main], LIBS="$LIBS -lsocket", checkBoth=1)
40 if test "$checkBoth" = "1"; then
42 LIBS="$LIBS -lsocket -lnsl"
43 AC_CHECK_FUNC([accept], , [LIBS=$oldLibs])
45 AC_CHECK_FUNC([gethostbyname], ,[AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])])
46 AC_CHECK_FUNCS([getaddrinfo mallinfo])
48 if test -d ${srcdir}/.git; then
49 sha=`git show --pretty=format:%H|head -1`
51 sha=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'`
53 AC_DEFINE_UNQUOTED([PAZPAR2_VERSION_SHA1], ["$sha"], [Git SHA1])
72 "------------------------------------------------------------------------
76 Source code location: ${srcdir}
77 C Preprocessor: ${CPP}
78 C Preprocessor flags: ${CPPFLAGS}
80 C Compiler flags: ${CFLAGS}
81 Linker flags: ${LDFLAGS}
83 Host System Type: ${host}
84 Install path: ${prefix}
85 YAZ Version: ${YAZVERSION}
86 YAZ Include: ${YAZINC}
88 Bugreport: ${PACKAGE_BUGREPORT}
90 ------------------------------------------------------------------------"
95 dnl sh-basic-offset: 4