diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-06-13 18:59:17 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-06-13 19:07:37 +0100 |
commit | c092136fe9e5fee71dfe02f945fe5676f43b2d05 (patch) | |
tree | bfa7159036d4bb127d4a7d5ac5a7c063470dea4c /build | |
parent | f298dd92ca0b789a3d2b591753c992e1673b2d87 (diff) |
[configure] Check for shm_open()
As needed for cairo-test-trace.
Diffstat (limited to 'build')
-rw-r--r-- | build/configure.ac.system | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build/configure.ac.system b/build/configure.ac.system index 1a01a429..35fd28d5 100644 --- a/build/configure.ac.system +++ b/build/configure.ac.system @@ -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 ==================================================================== |