Added --without-sigaction option

This commit is contained in:
Simon Bauer 2021-09-30 11:56:38 +00:00 committed by GitHub
parent 9b6bb3ecbf
commit c0bbe607ed
2 changed files with 41 additions and 2 deletions

View file

@ -298,7 +298,19 @@ if test "${with_libxml2}"; then
fi
#
AC_CHECK_FUNCS(inet_aton sigaction sigvec strlcpy strsep strndup alphasort versionsort getpeereid setns getresuid)
AC_CHECK_FUNCS(inet_aton sigvec strlcpy strsep strndup alphasort versionsort getpeereid setns getresuid)
# Check for --without-sigaction parameter
AC_ARG_WITH(
[sigaction],
[AS_HELP_STRING([--without-sigaction], [Don't use sigaction])],
[],
[with_sigaction=yes]
)
if test "x${with_sigaction}" == "xyes"; then
AC_CHECK_FUNCS(sigaction)
fi
# Checks for getsockopt options for getting unix socket peer credentials on
# Linux