summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@gmail.com>2014-08-21 11:23:24 +0200
committerCedric BAIL <cedric@osg.samsung.com>2014-08-21 12:04:53 +0200
commitf449f0ddb6c030e1763cc549caac5e162efbca74 (patch)
treeb108946ace8d71909c36ab0facbb2bcbbc6438be /configure.ac
parentf5b81093978fbbe411f9fb509617b6f4081f8da8 (diff)
eina: port Eina_Spinlock for OSX
Summary: Support of Spinlocks in Eina (Eina_Spinlock) for OSX, which does not implement them in pthread. @feature Reviewers: raster, raoulh, naguirre, cedric, stefan_schmidt Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1151 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index dbd24ccbc2..c39c5505dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -936,6 +936,7 @@ EINA_CONFIG([HAVE_PTHREAD_BARRIER], [test "x${efl_have_pthread_barrier}" = "xyes
936EINA_CONFIG([HAVE_PTHREAD_AFFINITY], [test "x${efl_have_setaffinity}" = "xyes"]) 936EINA_CONFIG([HAVE_PTHREAD_AFFINITY], [test "x${efl_have_setaffinity}" = "xyes"])
937EINA_CONFIG([HAVE_DEBUG_THREADS], [test "x${want_debug_threads}" = "xyes"]) 937EINA_CONFIG([HAVE_DEBUG_THREADS], [test "x${want_debug_threads}" = "xyes"])
938EINA_CONFIG([HAVE_POSIX_SPINLOCK], [test "x${efl_have_posix_threads_spinlock}" = "xyes"]) 938EINA_CONFIG([HAVE_POSIX_SPINLOCK], [test "x${efl_have_posix_threads_spinlock}" = "xyes"])
939EINA_CONFIG([HAVE_OSX_SPINLOCK], [test "x${efl_have_osx_spinlock}" = "xyes"])
939 940
940### Modules 941### Modules
941 942
@@ -4498,7 +4499,12 @@ elif test "${have_windows}" = "yes"; then
4498fi 4499fi
4499EFL_ADD_FEATURE([system], [ipv6]) 4500EFL_ADD_FEATURE([system], [ipv6])
4500 4501
4501EFL_ADD_FEATURE([thread], [spinlocks], [${efl_have_posix_threads_spinlock}]) 4502if test "x${efl_have_posix_threads_spinlock}" = "xyes" || test "x${efl_have_osx_spinlock}" = "xyes"; then
4503 efl_have_spinlock="yes"
4504else
4505 efl_have_spinlock="no"
4506fi
4507EFL_ADD_FEATURE([thread], [spinlocks], [${efl_have_spinlock}])
4502EFL_ADD_FEATURE([thread], [barrier], [${efl_have_pthread_barrier}]) 4508EFL_ADD_FEATURE([thread], [barrier], [${efl_have_pthread_barrier}])
4503EFL_ADD_FEATURE([thread], [affinity], [${efl_have_setaffinity}]) 4509EFL_ADD_FEATURE([thread], [affinity], [${efl_have_setaffinity}])
4504 4510