1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.60])
AC_INIT([sshguard], [2.5.1], [sshguard-users@lists.sourceforge.net])
AM_MAINTAINER_MODE([enable])
AC_CONFIG_SRCDIR([src/sshguard.in])
AM_CONFIG_HEADER([src/common/config.h])
AM_INIT_AUTOMAKE([foreign])
AM_SILENT_RULES([yes])
AC_REQUIRE_AUX_FILE([tap-driver.sh])
# Enable POSIX extensions on hosts that normally disable them.
AC_USE_SYSTEM_EXTENSIONS
AS_BOX([Program Checks])
AC_PROG_CC_C99
AC_PROG_RANLIB
AC_PROG_YACC
AM_PROG_AR
AM_PROG_LEX
AS_BOX([Headers, Types, and Compiler Checks])
AC_CHECK_HEADERS([getopt.h])
AC_CHECK_HEADERS([capsicum_helpers.h libcasper.h], capsicum_found=candidate)
AS_IF([test "$capsicum_found" = "candidate"],
[AC_SEARCH_LIBS([cap_init], [casper], [capsicum_found=yes])]
[AC_SEARCH_LIBS([cap_getaddrinfo], [cap_net], [capsicum_found=yes])])
AS_IF([test "$capsicum_found" = "yes"],
[AC_DEFINE([CAPSICUM], [1], [Use Capsicum])])
AC_CHECK_PROGS(RST2MAN_PROG, [rst2man rst2man.py], no)
AM_CONDITIONAL([BUILD_MAN], [test "x$RST2MAN_PROG" != xno])
AS_IF([test "$RST2MAN_PROG" = "no"],
[AC_MSG_WARN([rst2man not found; using pre-built man pages])])
AS_BOX([Library Functions])
AC_SEARCH_LIBS([gethostbyname], [nsl])
AC_SEARCH_LIBS([pthread_create], [pthread])
AC_SEARCH_LIBS([socket], [socket])
AC_CHECK_FUNC([setresgid], [AC_DEFINE([HAVE_SETRESGID], [1], [Have setresgid])])
AC_CHECK_FUNC([setresuid], [AC_DEFINE([HAVE_SETRESUID], [1], [Have setresuid])])
AC_OUTPUT([Makefile src/Makefile src/blocker/Makefile src/fw/Makefile src/parser/Makefile])
|