mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-30 11:11:05 -04:00
configure: detect libdl and librt
Signed-off-by: Leonid Bobrov <mazocomp@disroot.org>
This commit is contained in:
parent
e091839dd0
commit
dd3ba21457
3 changed files with 46 additions and 3 deletions
|
|
@ -65,6 +65,12 @@ AC_SUBST(GCC_CFLAGS)
|
|||
AC_CHECK_HEADERS([sys/prctl.h])
|
||||
AC_CHECK_FUNCS([accept4 mkostemp posix_fallocate prctl])
|
||||
|
||||
# *BSD don't have libdl, but they have its functions in libc
|
||||
WESTON_SEARCH_LIBS([DL], [dl], [dlsym])
|
||||
|
||||
# OpenBSD doesn't have librt, but it has its functions in libc
|
||||
WESTON_SEARCH_LIBS([RT], [rt], [clock_gettime])
|
||||
|
||||
AC_ARG_ENABLE([libraries],
|
||||
[AC_HELP_STRING([--disable-libraries],
|
||||
[Disable compilation of wayland libraries])],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue