2 ## This file is part of Pazpar2.
3 ## Copyright (C) 2006-2011 Index Data
4 ## Process this file with autoconf to produce a configure script.
6 # Autoconf and automake setup
8 AC_INIT([pazpar2],[1.5.2],[pazpar2-help@indexdata.dk])
10 AC_CONFIG_HEADERS(src/config.h)
12 AC_CONFIG_SRCDIR([configure.ac])
13 AC_CONFIG_AUX_DIR([config])
16 AM_INIT_AUTOMAKE([1.9])
25 YAZ_INIT([static icu],[4.1.0])
26 if test -z "$YAZLIB"; then
27 AC_MSG_ERROR([YAZ development libraries missing])
31 AC_CHECK_HEADERS([sys/time.h sys/socket.h unistd.h netinet/in.h netdb.h arpa/inet.h])
33 AC_CHECK_FUNC([connect])
34 if test "$ac_cv_func_connect" = "no"; then
35 AC_CHECK_LIB([socket],[main], LIBS="$LIBS -lsocket", checkBoth=1)
37 if test "$checkBoth" = "1"; then
39 LIBS="$LIBS -lsocket -lnsl"
40 AC_CHECK_FUNC([accept], , [LIBS=$oldLibs])
42 AC_CHECK_FUNC([gethostbyname], ,[AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])])
43 AC_CHECK_FUNCS([getaddrinfo])
45 if test -d ${srcdir}/.git; then
46 sha=`git show --pretty=format:%H|head -1`
48 sha=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'`
50 AC_DEFINE_UNQUOTED([PAZPAR2_VERSION_SHA1], ["$sha"], [Git SHA1])
69 "------------------------------------------------------------------------
73 Source code location: ${srcdir}
74 C Preprocessor: ${CPP}
75 C Preprocessor flags: ${CPPFLAGS}
77 C Compiler flags: ${CFLAGS}
78 Linker flags: ${LDFLAGS}
80 Host System Type: ${host}
81 Install path: ${prefix}
85 YAZ Version: ${YAZVERSION}
86 YAZ Include: ${YAZINC}
87 YAZ La Lib: ${YAZLALIB}
89 Bugreport: ${PACKAGE_BUGREPORT}
91 ------------------------------------------------------------------------"
96 dnl sh-basic-offset: 4