From ec686c9dc2bfae917885c0c860bc171781584750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Tue, 25 Sep 2018 15:49:33 +0200 Subject: [PATCH] configure: split common header and function checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use one line per entry, to work better with line-based git history. Signed-off-by: Ján Tomko Reviewed-by: Erik Skultety --- configure.ac | 56 +++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 47 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index 88743fb665..e49d9b5b57 100644 --- a/configure.ac +++ b/configure.ac @@ -322,17 +322,55 @@ AC_CHECK_SIZEOF([long]) dnl Availability of various common functions (non-fatal if missing), dnl and various less common threadsafe functions -AC_CHECK_FUNCS_ONCE([cfmakeraw fallocate geteuid getgid getgrnam_r \ - getmntent_r getpwuid_r getrlimit getuid if_indextoname kill mmap \ - newlocale posix_fallocate posix_memalign prlimit regexec \ - sched_getaffinity setgroups setns setrlimit symlink sysctlbyname \ - getifaddrs sched_setscheduler unshare]) +AC_CHECK_FUNCS_ONCE([\ + cfmakeraw \ + fallocate \ + geteuid \ + getgid \ + getgrnam_r \ + getmntent_r \ + getpwuid_r \ + getrlimit \ + getuid \ + if_indextoname \ + kill \ + mmap \ + newlocale \ + posix_fallocate \ + posix_memalign \ + prlimit \ + regexec \ + sched_getaffinity \ + setgroups \ + setns \ + setrlimit \ + symlink \ + sysctlbyname \ + getifaddrs \ + sched_setscheduler \ + unshare \ + ]) dnl Availability of various common headers (non-fatal if missing). -AC_CHECK_HEADERS([pwd.h regex.h sys/un.h \ - sys/poll.h syslog.h mntent.h net/ethernet.h linux/magic.h \ - sys/un.h sys/syscall.h sys/sysctl.h netinet/tcp.h ifaddrs.h \ - libtasn1.h sys/ucred.h sys/mount.h stdarg.h]) +AC_CHECK_HEADERS([\ + pwd.h \ + regex.h \ + sys/un.h \ + sys/poll.h \ + syslog.h \ + mntent.h \ + net/ethernet.h \ + linux/magic.h \ + sys/un.h \ + sys/syscall.h \ + sys/sysctl.h \ + netinet/tcp.h \ + ifaddrs.h \ + libtasn1.h \ + sys/ucred.h \ + sys/mount.h \ + stdarg.h \ + ]) dnl Check whether endian provides handy macros. AC_CHECK_DECLS([htole64], [], [], [[#include ]]) AC_CHECK_FUNCS([stat stat64 __xstat __xstat64 lstat lstat64 __lxstat __lxstat64]) -- GitLab