mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-04 22:20:28 +01:00
[configure] Check for shm_open()
As needed for cairo-test-trace.
This commit is contained in:
parent
f298dd92ca
commit
c092136fe9
2 changed files with 11 additions and 1 deletions
|
|
@ -48,6 +48,14 @@ AC_CHECK_LIB(rt, sched_yield, [RT_LIBS=-lrt], [RT_LIBS=])
|
|||
CAIROPERF_LIBS=$RT_LIBS
|
||||
AC_SUBST(CAIROPERF_LIBS)
|
||||
|
||||
has_shm_open=
|
||||
AC_CHECK_LIB(rt, shm_open, [
|
||||
SHM_LIBS=-lrt
|
||||
has_shm_open=yes
|
||||
], [SHM_LIBS=])
|
||||
AM_CONDITIONAL(HAVE_SHM, test "x$has_shm_open" = "xyes")
|
||||
AC_SUBST(SHM_LIBS)
|
||||
|
||||
dnl ====================================================================
|
||||
dnl Header/function checks
|
||||
dnl ====================================================================
|
||||
|
|
|
|||
|
|
@ -95,6 +95,7 @@ if HAVE_PTHREAD
|
|||
cairo_test_suite_LDADD += -lpthread
|
||||
endif
|
||||
|
||||
if HAVE_SHM
|
||||
cairo_test_trace_SOURCES = \
|
||||
cairo-test-trace.c
|
||||
cairo_test_trace_LDADD = \
|
||||
|
|
@ -102,11 +103,12 @@ cairo_test_trace_LDADD = \
|
|||
$(top_builddir)/boilerplate/libcairoboilerplate.la \
|
||||
$(top_builddir)/src/libcairo.la \
|
||||
$(CAIRO_LDADD) \
|
||||
-lrt
|
||||
$(SHM_LIBS)
|
||||
cairo_test_trace_DEPENDENCIES = \
|
||||
$(top_builddir)/util/cairo-script/libcairo-script-interpreter.la \
|
||||
$(top_builddir)/boilerplate/libcairoboilerplate.la \
|
||||
$(top_builddir)/src/libcairo.la
|
||||
endif
|
||||
|
||||
BUILT_SOURCES += cairo-test-constructors.c
|
||||
noinst_SCRIPTS = make-cairo-test-constructors.pl
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue