2 ## This file is part of Pazpar2.
3 ## Process this file with autoconf to produce a configure script.
5 # Autoconf and automake setup
7 AC_INIT([pazpar2],[1.2.1],[pazpar2-help@indexdata.dk])
9 AC_CONFIG_HEADERS(src/config.h)
11 AC_CONFIG_SRCDIR([configure.ac])
12 AC_CONFIG_AUX_DIR([config])
15 AM_INIT_AUTOMAKE([1.9])
24 YAZ_INIT([static icu threads],[3.0.46])
25 if test -z "$YAZLIB"; then
26 AC_MSG_ERROR([YAZ development libraries missing])
30 AC_CHECK_HEADERS([sys/time.h sys/socket.h unistd.h netinet/in.h netdb.h arpa/inet.h glob.h])
32 AC_CHECK_FUNC([connect])
33 if test "$ac_cv_func_connect" = "no"; then
34 AC_CHECK_LIB([socket],[main], LIBS="$LIBS -lsocket", checkBoth=1)
36 if test "$checkBoth" = "1"; then
38 LIBS="$LIBS -lsocket -lnsl"
39 AC_CHECK_FUNC([accept], , [LIBS=$oldLibs])
41 AC_CHECK_FUNC([gethostbyname], ,[AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])])
42 AC_CHECK_FUNCS([getaddrinfo])
44 if test -d ${srcdir}/.git; then
45 sha=`git show --pretty=format:%H|head -1`
47 sha=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'`
49 AC_DEFINE_UNQUOTED([PAZPAR2_VERSION_SHA1], ["$sha"], [Git SHA1])
68 "------------------------------------------------------------------------
72 Source code location: ${srcdir}
73 C Preprocessor: ${CPP}
74 C Preprocessor flags: ${CPPFLAGS}
76 C Compiler flags: ${CFLAGS}
77 Linker flags: ${LDFLAGS}
79 Host System Type: ${host}
80 Install path: ${prefix}
84 YAZ Version: ${YAZVERSION}
85 YAZ Include: ${YAZINC}
86 YAZ La Lib: ${YAZLALIB}
88 Bugreport: ${PACKAGE_BUGREPORT}
90 ------------------------------------------------------------------------"
95 dnl sh-basic-offset: 4