From bc443752b3b043b43bc45b19e6210ffaa8006e1c Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Tue, 14 Sep 2010 22:35:48 +0200 Subject: [PATCH] Move eventfd checks to the Linux-specific portion of configure --- configure.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index f0ae7418..17c1f72b 100644 --- a/configure.in +++ b/configure.in @@ -33,8 +33,6 @@ AC_CHECK_HEADERS([sys/wait.h]) AC_CHECK_HEADERS([sys/param.h]) AC_CHECK_HEADERS([sys/select.h]) AC_CHECK_HEADERS([dirent.h]) -AC_CHECK_HEADERS([sys/eventfd.h]) -AC_CHECK_FUNCS(eventfd) AC_CHECK_FUNCS(posix_fadvise) AC_CHECK_FUNCS(strptime) AC_CHECK_FUNCS(strtok_r) @@ -163,6 +161,9 @@ case "$host" in AC_DEFINE(LAUDIO_USE_ALSA, 1, [define if local audio output uses ALSA]) fi + AC_CHECK_HEADERS([sys/eventfd.h]) + AC_CHECK_FUNCS(eventfd) + AC_CHECK_HEADER(sys/signalfd.h, , AC_MSG_ERROR([signalfd required; glibc 2.9+ recommended])) ;; esac