|
Packit |
f0d170 |
dnl
|
|
Packit |
f0d170 |
define([AC_INIT_NOTICE],
|
|
Packit |
f0d170 |
[### Generated automatically using autoconf version] AC_ACVERSION [
|
|
Packit |
f0d170 |
### Copyright 2005-19 Steve Grubb <sgrubb@redhat.com>
|
|
Packit |
f0d170 |
###
|
|
Packit |
f0d170 |
### Permission is hereby granted, free of charge, to any person obtaining a
|
|
Packit |
f0d170 |
### copy of this software and associated documentation files (the "Software"),
|
|
Packit |
f0d170 |
### to deal in the Software without restriction, including without limitation
|
|
Packit |
f0d170 |
### the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
Packit |
f0d170 |
### and/or sell copies of the Software, and to permit persons to whom the
|
|
Packit |
f0d170 |
### Software is furnished to do so, subject to the following conditions:
|
|
Packit |
f0d170 |
###
|
|
Packit |
f0d170 |
### The above copyright notice and this permission notice shall be included
|
|
Packit |
f0d170 |
### in all copies or substantial portions of the Software.
|
|
Packit |
f0d170 |
###
|
|
Packit |
f0d170 |
### THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
Packit |
f0d170 |
### IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
Packit |
f0d170 |
### FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
Packit |
f0d170 |
### THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
Packit |
f0d170 |
### OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
Packit |
f0d170 |
### ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
Packit |
f0d170 |
### OTHER DEALINGS IN THE SOFTWARE.
|
|
Packit |
f0d170 |
###
|
|
Packit |
f0d170 |
### For usage, run `./configure --help'
|
|
Packit |
f0d170 |
### For more detailed information on installation, read the file `INSTALL'.
|
|
Packit |
f0d170 |
###
|
|
Packit |
f0d170 |
### If configuration succeeds, status is in the file `config.status'.
|
|
Packit |
f0d170 |
### A log of configuration tests is in `config.log'.
|
|
Packit |
f0d170 |
])
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
AC_REVISION($Revision: 1.3 $)dnl
|
|
Packit |
f0d170 |
AC_INIT(audit,3.0)
|
|
Packit |
f0d170 |
AC_PREREQ(2.12)dnl
|
|
Packit |
f0d170 |
AM_CONFIG_HEADER(config.h)
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
echo Configuring auditd $VERSION
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
AC_CONFIG_MACRO_DIR([m4])
|
|
Packit |
f0d170 |
AC_CANONICAL_TARGET
|
|
Packit |
f0d170 |
AM_INIT_AUTOMAKE
|
|
Packit |
f0d170 |
AM_PROG_LIBTOOL
|
|
Packit |
f0d170 |
AC_SUBST(LIBTOOL_DEPS)
|
|
Packit |
f0d170 |
OLDLIBS="$LIBS"
|
|
Packit |
f0d170 |
m4_include([src/libev/libev.m4])
|
|
Packit |
f0d170 |
libev_LIBS="$LIBS"
|
|
Packit |
f0d170 |
LIBS="$OLDLIBS"
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
echo .
|
|
Packit |
f0d170 |
echo Checking for programs
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
AC_PROG_CC
|
|
Packit |
f0d170 |
AC_PROG_INSTALL
|
|
Packit |
f0d170 |
AC_PROG_AWK
|
|
Packit |
f0d170 |
AX_PROG_CC_FOR_BUILD
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
echo .
|
|
Packit |
f0d170 |
echo Checking for header files
|
|
Packit |
f0d170 |
AC_HEADER_STDC
|
|
Packit |
f0d170 |
AC_HEADER_TIME
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
AC_C_CONST
|
|
Packit |
f0d170 |
AC_C_INLINE
|
|
Packit |
f0d170 |
AC_CHECK_SIZEOF([unsigned int])
|
|
Packit |
f0d170 |
AC_CHECK_SIZEOF([unsigned long])
|
|
Packit |
f0d170 |
AM_PROG_CC_C_O
|
|
Packit |
f0d170 |
AC_CHECK_DECLS([AUDIT_FEATURE_VERSION], [], [], [[#include <linux/audit.h>]])
|
|
Packit |
f0d170 |
AC_CHECK_MEMBERS([struct audit_status.feature_bitmap], [], [], [[#include <linux/audit.h>]])
|
|
Packit |
f0d170 |
AC_CHECK_DECLS([AUDIT_VERSION_BACKLOG_WAIT_TIME], [], [], [[#include <linux/audit.h>]])
|
|
Packit |
f0d170 |
AC_CHECK_DECLS([AUDIT_STATUS_BACKLOG_WAIT_TIME], [], [], [[#include <linux/audit.h>]])
|
|
Packit |
f0d170 |
AC_CHECK_DECLS([ADDR_NO_RANDOMIZE],,, [#include <sys/personality.h>])
|
|
Packit |
f0d170 |
dnl; posix_fallocate is used in audisp-remote
|
|
Packit |
f0d170 |
AC_CHECK_FUNCS([posix_fallocate])
|
|
Packit |
f0d170 |
dnl; signalfd is needed for libev
|
|
Packit |
f0d170 |
AC_CHECK_FUNC([signalfd], [], [ AC_MSG_ERROR([The signalfd system call is necessary for auditd]) ])
|
|
Packit |
f0d170 |
dnl; check if rawmemchr is available
|
|
Packit |
f0d170 |
AC_CHECK_FUNCS([rawmemchr])
|
|
Packit |
f0d170 |
dnl; check if strndupa is available
|
|
Packit |
f0d170 |
AC_LINK_IFELSE(
|
|
Packit |
f0d170 |
[AC_LANG_SOURCE(
|
|
Packit |
f0d170 |
[[
|
|
Packit |
f0d170 |
#define _GNU_SOURCE
|
|
Packit |
f0d170 |
#include <string.h>
|
|
Packit |
f0d170 |
int main() { (void) strndupa("test", 10); return 0; }]])],
|
|
Packit |
f0d170 |
[AC_DEFINE(HAVE_STRNDUPA, 1, [Let us know if we have it or not])],
|
|
Packit |
f0d170 |
[]
|
|
Packit |
f0d170 |
)
|
|
Packit |
f0d170 |
dnl; pthread_yield is used in zos-remote
|
|
Packit |
f0d170 |
AC_SEARCH_LIBS(pthread_yield, pthread,
|
|
Packit |
f0d170 |
[AC_DEFINE(HAVE_PTHREAD_YIELD, 1, [Define to 1 if we have pthread_yield])], [])
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
ALLWARNS=""
|
|
Packit |
f0d170 |
ALLDEBUG="-g"
|
|
Packit |
f0d170 |
OPT="-O"
|
|
Packit |
f0d170 |
if test x"$GCC" = x"yes"; then
|
|
Packit |
f0d170 |
OPT="-O2 -pipe"
|
|
Packit |
f0d170 |
case "$target" in
|
|
Packit |
f0d170 |
*linux*)
|
|
Packit |
f0d170 |
ALLWARNS="-W -Wall -Wundef -Wpointer-arith -Wcast-align \
|
|
Packit |
f0d170 |
-Wwrite-strings -Waggregate-return -Wstrict-prototypes \
|
|
Packit |
f0d170 |
-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls \
|
|
Packit |
f0d170 |
-Wnested-externs -Winline -Wfloat-equal -Wchar-subscripts"
|
|
Packit |
f0d170 |
;;
|
|
Packit |
f0d170 |
esac
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
AC_MSG_CHECKING(whether to create python bindings)
|
|
Packit |
f0d170 |
AC_ARG_WITH(python,
|
|
Packit |
f0d170 |
AS_HELP_STRING([--with-python],[enable building python bindings]),
|
|
Packit |
f0d170 |
use_python=$withval,
|
|
Packit |
f0d170 |
use_python=auto)
|
|
Packit |
f0d170 |
if test "x$use_python" = xno ; then
|
|
Packit |
f0d170 |
python_found="no"
|
|
Packit |
f0d170 |
AC_MSG_RESULT(no)
|
|
Packit |
f0d170 |
else
|
|
Packit |
f0d170 |
AC_MSG_RESULT(testing)
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
# Try to find a versioned Python2 interpreter,
|
|
Packit |
f0d170 |
# if not explicitly specified by the user.
|
|
Packit |
f0d170 |
if test "x$PYTHON" = "x"; then
|
|
Packit |
f0d170 |
AC_MSG_CHECKING([for versioned Python2 interpreter])
|
|
Packit |
f0d170 |
AC_MSG_RESULT([])
|
|
Packit |
f0d170 |
for python2 in python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0; do
|
|
Packit |
f0d170 |
AC_PATH_PROG([PYTHON], [$python2])
|
|
Packit |
f0d170 |
if test "x$PYTHON" != "x"; then
|
|
Packit |
f0d170 |
break;
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
done
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
# Setup Python2 with the interpreter found previously.
|
|
Packit |
f0d170 |
AM_PATH_PYTHON
|
|
Packit |
f0d170 |
PYINCLUDEDIR=`python${am_cv_python_version} -c "from distutils import sysconfig; print(sysconfig.get_config_var('INCLUDEPY'))"`
|
|
Packit |
f0d170 |
if test -f ${PYINCLUDEDIR}/Python.h ; then
|
|
Packit |
f0d170 |
python_found="yes"
|
|
Packit |
f0d170 |
AC_SUBST(PYINCLUDEDIR)
|
|
Packit |
f0d170 |
pybind_dir="python"
|
|
Packit |
f0d170 |
AC_SUBST(pybind_dir)
|
|
Packit |
f0d170 |
AC_MSG_NOTICE(Python bindings will be built)
|
|
Packit |
f0d170 |
else
|
|
Packit |
f0d170 |
python_found="no"
|
|
Packit |
f0d170 |
if test "x$use_python" = xyes ; then
|
|
Packit |
f0d170 |
AC_MSG_ERROR([Python explicitly requested and python headers were not found])
|
|
Packit |
f0d170 |
else
|
|
Packit |
f0d170 |
AC_MSG_WARN("Python headers not found - python bindings will not be made")
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
AM_CONDITIONAL(HAVE_PYTHON, test ${python_found} = "yes")
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
withval=""
|
|
Packit |
f0d170 |
AC_MSG_CHECKING(whether to create python3 bindings)
|
|
Packit |
f0d170 |
AC_ARG_WITH(python3,
|
|
Packit |
f0d170 |
AS_HELP_STRING([--with-python3],[enable building python3 bindings]),
|
|
Packit |
f0d170 |
use_python3=$withval,
|
|
Packit |
f0d170 |
use_python3=auto)
|
|
Packit |
f0d170 |
if test "x$use_python3" = xno ; then
|
|
Packit |
f0d170 |
AC_MSG_RESULT(no)
|
|
Packit |
f0d170 |
else
|
|
Packit |
f0d170 |
AC_MSG_RESULT(investigating)
|
|
Packit |
f0d170 |
AC_PATH_PROG([use_python3], [python3-config], [no])
|
|
Packit |
f0d170 |
if test "x$use_python3" = xno ; then
|
|
Packit |
f0d170 |
if test "x$withval" = xyes ; then
|
|
Packit |
f0d170 |
echo "Python3 bindings were selected but python3-config was not found."
|
|
Packit |
f0d170 |
echo "Please ensure that it's installed or pass --without-python3 to ./configure"
|
|
Packit |
f0d170 |
exit 1
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
echo "Python3 bindings will NOT be built"
|
|
Packit |
f0d170 |
else
|
|
Packit |
f0d170 |
echo "Python3 bindings WILL be built"
|
|
Packit |
f0d170 |
use_python3=yes
|
|
Packit |
f0d170 |
AC_PATH_PROG([PYTHON3], [python3], [no])
|
|
Packit |
f0d170 |
if test "x$PYTHON3" = "xno" ; then
|
|
Packit |
f0d170 |
echo "The python3 program was not found in the search path. Please ensure"
|
|
Packit |
f0d170 |
echo "that it is installed and its directory is included in the search path or"
|
|
Packit |
f0d170 |
echo "pass --without-python3 to ./configure."
|
|
Packit |
f0d170 |
exit 1
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
PYTHON3_CFLAGS=`python3-config --cflags 2> /dev/null`
|
|
Packit |
f0d170 |
PYTHON3_LIBS=`python3-config --libs 2> /dev/null`
|
|
Packit |
f0d170 |
PYTHON3_INCLUDES=`python3-config --includes 2> /dev/null`
|
|
Packit |
f0d170 |
AC_SUBST([PYTHON3_PREFIX], ['${prefix}'])
|
|
Packit |
f0d170 |
AC_SUBST([PYTHON3_EXEC_PREFIX], ['${exec_prefix}'])
|
|
Packit |
f0d170 |
PYTHON3_DIR=`$PYTHON3 -c "import distutils.sysconfig; \
|
|
Packit |
f0d170 |
print(distutils.sysconfig.get_python_lib(0,0,prefix='$PYTHON3_PREFIX'))"`
|
|
Packit |
f0d170 |
PYTHON3_EXECDIR=`$PYTHON3 -c "import distutils.sysconfig; \
|
|
Packit |
f0d170 |
print(distutils.sysconfig.get_python_lib(1,0,prefix='$PYTHON3_EXEC_PREFIX'))"`
|
|
Packit |
f0d170 |
AC_SUBST(PYTHON3_CFLAGS)
|
|
Packit |
f0d170 |
AC_SUBST(PYTHON3_LIBS)
|
|
Packit |
f0d170 |
AC_SUBST(PYTHON3_INCLUDES)
|
|
Packit |
f0d170 |
AC_SUBST(python3dir, $PYTHON3_DIR)
|
|
Packit |
f0d170 |
AC_SUBST(py3execdir, $PYTHON3_EXECDIR)
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
AM_CONDITIONAL(USE_PYTHON3, test ${use_python3} = "yes")
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
withval=""
|
|
Packit |
f0d170 |
AC_MSG_CHECKING(whether to create Go language bindings)
|
|
Packit |
f0d170 |
AC_ARG_WITH(golang,
|
|
Packit |
f0d170 |
AS_HELP_STRING([--with-golang],[enable building golang bindings]),
|
|
Packit |
f0d170 |
use_golang=$withval,
|
|
Packit |
f0d170 |
use_golang=auto)
|
|
Packit |
f0d170 |
if test "x$use_golang" = xno ; then
|
|
Packit |
f0d170 |
golang_found="no"
|
|
Packit |
f0d170 |
AC_MSG_RESULT(no)
|
|
Packit |
f0d170 |
else
|
|
Packit |
f0d170 |
AC_MSG_RESULT(testing)
|
|
Packit |
f0d170 |
AC_CHECK_PROG([GOLANG],[go],[go],[no])
|
|
Packit |
f0d170 |
AS_IF([test "x$GOLANG" != "xno"],[
|
|
Packit |
f0d170 |
AC_MSG_NOTICE(Go bindings will be built)
|
|
Packit |
f0d170 |
golang_found="yes"
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
# Substitute some golang environment.
|
|
Packit |
f0d170 |
GOROOT=`$GOLANG env GOROOT`
|
|
Packit |
f0d170 |
AC_SUBST([GOROOT])
|
|
Packit |
f0d170 |
], [
|
|
Packit |
f0d170 |
if test "x$use_golang" = xyes ; then
|
|
Packit |
f0d170 |
AC_MSG_ERROR([Go language explicitly requested and program not found])
|
|
Packit |
f0d170 |
else
|
|
Packit |
f0d170 |
AC_MSG_WARN("Go not found - go bindings will not be made")
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
])
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
AM_CONDITIONAL(HAVE_GOLANG, test "x${golang_found}" = "xyes")
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
#auditd listener
|
|
Packit |
f0d170 |
AC_MSG_CHECKING(whether to include auditd network listener support)
|
|
Packit |
f0d170 |
AC_ARG_ENABLE(listener,
|
|
Packit |
f0d170 |
[AS_HELP_STRING([--disable-listener],
|
|
Packit |
f0d170 |
[Disable auditd network listener support])],
|
|
Packit |
f0d170 |
enable_listener=$enableval,
|
|
Packit |
f0d170 |
enable_listener=yes)
|
|
Packit |
f0d170 |
if test "x$enable_listener" != "xno"; then
|
|
Packit |
f0d170 |
AC_DEFINE(USE_LISTENER, 1,
|
|
Packit |
f0d170 |
[Define if you want to use the auditd network listener.])
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
AM_CONDITIONAL(ENABLE_LISTENER, test "x$enable_listener" != "xno")
|
|
Packit |
f0d170 |
AC_MSG_RESULT($enable_listener)
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
#audisp zos-remote plugin
|
|
Packit |
f0d170 |
AC_MSG_CHECKING(whether to include audisp ZOS remote plugin)
|
|
Packit |
f0d170 |
AC_ARG_ENABLE(zos-remote,
|
|
Packit |
f0d170 |
[AS_HELP_STRING([--disable-zos-remote],
|
|
Packit |
f0d170 |
[Disable audisp ZOS remote plugin])],
|
|
Packit |
f0d170 |
enable_zos_remote=$enableval,
|
|
Packit |
f0d170 |
enable_zos_remote=yes)
|
|
Packit |
f0d170 |
if test $enable_zos_remote = yes; then
|
|
Packit |
f0d170 |
AC_CHECK_HEADER(lber.h, ldap_headers=yes, ldap_headers=no)
|
|
Packit |
f0d170 |
AC_CHECK_LIB(lber, ber_free, LDAP_LDADD=-llber)
|
|
Packit |
f0d170 |
if test x$LDAP_LDADD = x ; then
|
|
Packit |
f0d170 |
AC_MSG_ERROR(zos remote support was requested but the openldap library was not found)
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
if test $ldap_headers = no ; then
|
|
Packit |
f0d170 |
AC_MSG_ERROR(openldap libraries found but headers are missing)
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
AM_CONDITIONAL(ENABLE_ZOS_REMOTE, test "x$enable_zos_remote" != "xno")
|
|
Packit |
f0d170 |
AC_MSG_RESULT($enable_zos_remote)
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
#gssapi
|
|
Packit |
f0d170 |
AC_ARG_ENABLE(gssapi_krb5,
|
|
Packit |
f0d170 |
[AS_HELP_STRING([--enable-gssapi-krb5],[Enable GSSAPI Kerberos 5 support @<:@default=no@:>@])],
|
|
Packit |
f0d170 |
[case "${enableval}" in
|
|
Packit |
f0d170 |
yes) want_gssapi_krb5="yes" ;;
|
|
Packit |
f0d170 |
no) want_gssapi_krb5="no" ;;
|
|
Packit |
f0d170 |
*) AC_MSG_ERROR(bad value ${enableval} for --enable-gssapi-krb5) ;;
|
|
Packit |
f0d170 |
esac],
|
|
Packit |
f0d170 |
[want_gssapi_krb5="no"]
|
|
Packit |
f0d170 |
)
|
|
Packit |
f0d170 |
if test $want_gssapi_krb5 = yes; then
|
|
Packit |
f0d170 |
AC_CHECK_LIB(gssapi_krb5, gss_acquire_cred, [
|
|
Packit |
f0d170 |
AC_CHECK_HEADER(gssapi/gssapi.h, [
|
|
Packit |
f0d170 |
AC_DEFINE(USE_GSSAPI,,
|
|
Packit |
f0d170 |
Define if you want to use GSSAPI)
|
|
Packit |
f0d170 |
gss_libs="-lgssapi_krb5 -lkrb5"
|
|
Packit |
f0d170 |
AC_SUBST(gss_libs)
|
|
Packit |
f0d170 |
])
|
|
Packit |
f0d170 |
])
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
AM_CONDITIONAL(ENABLE_GSSAPI, test x$want_gssapi_krb5 = xyes)
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
#systemd
|
|
Packit |
f0d170 |
AC_ARG_ENABLE(systemd,
|
|
Packit |
f0d170 |
[AS_HELP_STRING([--enable-systemd],[Enable systemd init scripts @<:@default=no@:>@])],
|
|
Packit |
f0d170 |
[case "${enableval}" in
|
|
Packit |
f0d170 |
yes) want_systemd="yes" ;;
|
|
Packit |
f0d170 |
no) want_systemd="no" ;;
|
|
Packit |
f0d170 |
*) AC_MSG_ERROR(bad value ${enableval} for --enable-systemd) ;;
|
|
Packit |
f0d170 |
esac],
|
|
Packit |
f0d170 |
[want_systemd="no"]
|
|
Packit |
f0d170 |
)
|
|
Packit |
f0d170 |
AM_CONDITIONAL(ENABLE_SYSTEMD, test x$want_systemd = xyes)
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
# linux/fanotify.h
|
|
Packit |
f0d170 |
AC_CHECK_HEADER(linux/fanotify.h, [ AC_DEFINE(USE_FANOTIFY, [],
|
|
Packit |
f0d170 |
[Defined when fanotify headers are found]) ])
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
withval=""
|
|
Packit |
f0d170 |
ALLDEBUG="-g"
|
|
Packit |
f0d170 |
AC_ARG_WITH(debug,
|
|
Packit |
f0d170 |
[ --with-debug turn on debugging [[default=no]]],
|
|
Packit |
f0d170 |
[
|
|
Packit |
f0d170 |
if test "x${withval}" = xyes; then
|
|
Packit |
f0d170 |
DEBUG="$ALLDEBUG"
|
|
Packit |
f0d170 |
OPT="-O"
|
|
Packit |
f0d170 |
AM_CONDITIONAL(DEBUG, true)
|
|
Packit |
f0d170 |
else
|
|
Packit |
f0d170 |
DEBUG="-DNDEBUG"
|
|
Packit |
f0d170 |
AM_CONDITIONAL(DEBUG, false)
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
],
|
|
Packit |
f0d170 |
[ DEBUG="-DNDEBUG"; AM_CONDITIONAL(DEBUG, false) ])
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
withval=""
|
|
Packit |
f0d170 |
AC_ARG_WITH(warn,
|
|
Packit |
f0d170 |
[ --with-warn turn on warnings [[default=yes]]],
|
|
Packit |
f0d170 |
[
|
|
Packit |
f0d170 |
if test "x${withval}" = xyes; then
|
|
Packit |
f0d170 |
WARNS="$ALLWARNS"
|
|
Packit |
f0d170 |
else
|
|
Packit |
f0d170 |
WARNS=""
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
],WARNS="$ALLWARNS")
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
withval=""
|
|
Packit |
f0d170 |
AC_MSG_CHECKING(whether to include arm eabi processor support)
|
|
Packit |
f0d170 |
AC_ARG_WITH(arm,
|
|
Packit |
f0d170 |
AS_HELP_STRING([--with-arm],[enable Arm eabi processor support]),
|
|
Packit |
f0d170 |
use_arm=$withval,
|
|
Packit |
f0d170 |
use_arm=no)
|
|
Packit |
f0d170 |
if test x$use_arm != xno ; then
|
|
Packit |
f0d170 |
AC_DEFINE(WITH_ARM,1,[Define if you want to enable Arm eabi processor support.])
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
AM_CONDITIONAL(USE_ARM, test x$use_arm = xyes)
|
|
Packit |
f0d170 |
AC_MSG_RESULT($use_arm)
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
withval=""
|
|
Packit |
f0d170 |
AC_MSG_CHECKING(whether to include aarch64 processor support)
|
|
Packit |
f0d170 |
AC_ARG_WITH(aarch64,
|
|
Packit |
f0d170 |
AS_HELP_STRING([--with-aarch64],[enable Aarch64 processor support]),
|
|
Packit |
f0d170 |
use_aarch64=$withval,
|
|
Packit |
f0d170 |
use_aarch64=no)
|
|
Packit |
f0d170 |
if test x$use_aarch64 != xno ; then
|
|
Packit |
f0d170 |
AC_DEFINE(WITH_AARCH64,1,[Define if you want to enable Aarch64 processor support.])
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
AM_CONDITIONAL(USE_AARCH64, test x$use_aarch64 = xyes)
|
|
Packit |
f0d170 |
AC_MSG_RESULT($use_aarch64)
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
withval=""
|
|
Packit |
f0d170 |
AC_MSG_CHECKING(whether to use apparmor)
|
|
Packit |
f0d170 |
AC_ARG_WITH(apparmor,
|
|
Packit |
f0d170 |
AS_HELP_STRING([--with-apparmor],[enable AppArmor events]),
|
|
Packit |
f0d170 |
use_apparmor=$withval,
|
|
Packit |
f0d170 |
use_apparmor=no)
|
|
Packit |
f0d170 |
if test x$use_apparmor != xno ; then
|
|
Packit |
f0d170 |
AC_DEFINE(WITH_APPARMOR,1,[Define if you want to enable AppArmor events.])
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
AC_MSG_RESULT($use_apparmor)
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
withval=""
|
|
Packit |
f0d170 |
AC_MSG_CHECKING(whether to use libwrap)
|
|
Packit |
f0d170 |
AC_ARG_WITH(libwrap,
|
|
Packit |
f0d170 |
[ --with-libwrap[=PATH] Compile in libwrap (tcp_wrappers) support.],
|
|
Packit |
f0d170 |
[ case "$withval" in
|
|
Packit |
f0d170 |
no)
|
|
Packit |
f0d170 |
AC_MSG_RESULT(no)
|
|
Packit |
f0d170 |
;;
|
|
Packit |
f0d170 |
yes)
|
|
Packit |
f0d170 |
AC_MSG_RESULT(yes)
|
|
Packit |
f0d170 |
AC_CHECK_HEADER(tcpd.h, [],
|
|
Packit |
f0d170 |
AC_MSG_ERROR([Could not find libwrap headers]),)
|
|
Packit |
f0d170 |
AC_CHECK_LIB(wrap, request_init, [ LIBWRAP_LIBS="-lwrap" ])
|
|
Packit |
f0d170 |
AC_CHECK_LIB(nsl, yp_get_default_domain, [
|
|
Packit |
f0d170 |
LIBWRAP_LIBS="$LIBWRAP_LIBS -lnsl" ])
|
|
Packit |
f0d170 |
;;
|
|
Packit |
f0d170 |
*)
|
|
Packit |
f0d170 |
AC_MSG_RESULT(yes)
|
|
Packit |
f0d170 |
if test -d "$withval"; then
|
|
Packit |
f0d170 |
LIBWRAP_LIBS="-L$withval -lwrap"
|
|
Packit |
f0d170 |
else
|
|
Packit |
f0d170 |
LIBWRAP_LIBS="$withval"
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
AC_CHECK_HEADER(tcpd.h, [],
|
|
Packit |
f0d170 |
AC_MSG_ERROR([Could not find libwrap headers]))
|
|
Packit |
f0d170 |
AC_CHECK_LIB(wrap, request_init, [])
|
|
Packit |
f0d170 |
AC_CHECK_LIB(nsl, yp_get_default_domain, [
|
|
Packit |
f0d170 |
LIBWRAP_LIBS="$LIBWRAP_LIBS -lnsl" ])
|
|
Packit |
f0d170 |
OLDLIBS="$LIBS"
|
|
Packit |
f0d170 |
LIBS="$LIBWRAP_LIBS $LIBS"
|
|
Packit |
f0d170 |
AC_TRY_LINK([ int allow_severity; int deny_severity; ],
|
|
Packit |
f0d170 |
[ hosts_access(); ], [],
|
|
Packit |
f0d170 |
[ AC_MSG_ERROR(Could not find the $withval library. You must first install tcp_wrappers.) ])
|
|
Packit |
f0d170 |
LIBS="$OLDLIBS"
|
|
Packit |
f0d170 |
;;
|
|
Packit |
f0d170 |
esac ],
|
|
Packit |
f0d170 |
AC_MSG_RESULT(no)
|
|
Packit |
f0d170 |
)
|
|
Packit |
f0d170 |
if test x"$LIBWRAP_LIBS" != "x"; then
|
|
Packit |
f0d170 |
AC_DEFINE_UNQUOTED(HAVE_LIBWRAP, [], Define if tcp_wrappers support is enabled )
|
|
Packit |
f0d170 |
fi
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
# See if we want to support lower capabilities for plugins
|
|
Packit |
f0d170 |
LIBCAP_NG_PATH
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
AC_SUBST(DEBUG)
|
|
Packit |
f0d170 |
AC_SUBST(LIBWRAP_LIBS)
|
|
Packit |
f0d170 |
#AC_SUBST(libev_LIBS)
|
|
Packit |
f0d170 |
AC_SUBST(LIBPRELUDE_CFLAGS)
|
|
Packit |
f0d170 |
AC_SUBST(LIBPRELUDE_LDFLAGS)
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
AC_OUTPUT(Makefile common/Makefile lib/Makefile lib/audit.pc lib/test/Makefile auparse/Makefile auparse/test/Makefile auparse/auparse.pc src/Makefile src/libev/Makefile src/test/Makefile docs/Makefile rules/Makefile init.d/Makefile audisp/Makefile audisp/plugins/Makefile audisp/plugins/builtins/Makefile audisp/plugins/remote/Makefile audisp/plugins/zos-remote/Makefile audisp/plugins/syslog/Makefile bindings/Makefile bindings/python/Makefile bindings/python/python2/Makefile bindings/python/python3/Makefile bindings/golang/Makefile bindings/swig/Makefile bindings/swig/src/Makefile bindings/swig/python/Makefile bindings/swig/python3/Makefile tools/Makefile tools/aulast/Makefile tools/aulastlog/Makefile tools/ausyscall/Makefile tools/auvirt/Makefile m4/Makefile)
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
echo .
|
|
Packit |
f0d170 |
echo "
|
|
Packit |
f0d170 |
|
|
Packit |
f0d170 |
Auditd Version: $VERSION
|
|
Packit |
f0d170 |
Target: $target
|
|
Packit |
f0d170 |
Installation prefix: $prefix
|
|
Packit |
f0d170 |
Compiler: $CC
|
|
Packit |
f0d170 |
Compiler flags:
|
|
Packit |
f0d170 |
`echo $CFLAGS | fmt -w 50 | sed 's,^, ,'`
|
|
Packit |
f0d170 |
"
|