configure: detect libdl and librt

Signed-off-by: Leonid Bobrov <mazocomp@disroot.org>
This commit is contained in:
Leonid Bobrov 2019-02-25 19:38:02 +02:00 committed by Daniel Stone
parent e091839dd0
commit dd3ba21457
3 changed files with 46 additions and 3 deletions

View file

@ -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])],