mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-23 01:40:43 -05:00
build: Add declaration checks to check for required syscall flags
The required flags are relatively new and some older enterprise distributions do not feature them. https://bugs.freedesktop.org/show_bug.cgi?id=63360
This commit is contained in:
parent
b693088904
commit
bc3e020475
1 changed files with 11 additions and 0 deletions
11
configure.ac
11
configure.ac
|
|
@ -41,6 +41,17 @@ AC_SUBST(GCC_CFLAGS)
|
||||||
|
|
||||||
AC_CHECK_FUNCS([accept4 mkostemp])
|
AC_CHECK_FUNCS([accept4 mkostemp])
|
||||||
|
|
||||||
|
AC_CHECK_DECL(SFD_CLOEXEC,[],
|
||||||
|
[AC_MSG_ERROR("SFD_CLOEXEC is needed to compile weston")],
|
||||||
|
[[#include <sys/signalfd.h>]])
|
||||||
|
AC_CHECK_DECL(TFD_CLOEXEC,[],
|
||||||
|
[AC_MSG_ERROR("TFD_CLOEXEC is needed to compile weston")],
|
||||||
|
[[#include <sys/timerfd.h>]])
|
||||||
|
AC_CHECK_DECL(CLOCK_MONOTONIC,[],
|
||||||
|
[AC_MSG_ERROR("CLOCK_MONOTONIC is needed to compile weston")],
|
||||||
|
[[#include <time.h>]])
|
||||||
|
AC_CHECK_HEADERS([execinfo.h])
|
||||||
|
|
||||||
AC_ARG_ENABLE([scanner],
|
AC_ARG_ENABLE([scanner],
|
||||||
[AC_HELP_STRING([--disable-scanner],
|
[AC_HELP_STRING([--disable-scanner],
|
||||||
[Disable compilation of wayland-scanner])],
|
[Disable compilation of wayland-scanner])],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue