aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom2018-01-05 09:25:31 -0600
committerEric Engestrom2018-01-31 05:22:53 -0600
commit0db36bdec8a1b2caac0046c22eb477ba19c2b43c (patch)
tree25460f579d6af0b9b89184645c51fc83e80c537d /configure.ac
parent7797751cf7bbbcffdb1003f3a38479388dc4d7f9 (diff)
downloadexternal-libdrm-0db36bdec8a1b2caac0046c22eb477ba19c2b43c.tar.gz
external-libdrm-0db36bdec8a1b2caac0046c22eb477ba19c2b43c.tar.xz
external-libdrm-0db36bdec8a1b2caac0046c22eb477ba19c2b43c.zip
configure: always define HAVE_LIBDRM_ATOMIC_PRIMITIVES and HAVE_LIB_ATOMIC_OPS
Fixes #if undefined warnings Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5396c841..f7620268 100644
--- a/configure.ac
+++ b/configure.ac
@@ -259,9 +259,13 @@ AC_CACHE_CHECK([for native atomic primitives], drm_cv_atomic_primitives, [
259if test "x$drm_cv_atomic_primitives" = xIntel; then 259if test "x$drm_cv_atomic_primitives" = xIntel; then
260 AC_DEFINE(HAVE_LIBDRM_ATOMIC_PRIMITIVES, 1, 260 AC_DEFINE(HAVE_LIBDRM_ATOMIC_PRIMITIVES, 1,
261 [Enable if your compiler supports the Intel __sync_* atomic primitives]) 261 [Enable if your compiler supports the Intel __sync_* atomic primitives])
262else
263 AC_DEFINE(HAVE_LIBDRM_ATOMIC_PRIMITIVES, 0)
262fi 264fi
263if test "x$drm_cv_atomic_primitives" = "xlibatomic-ops"; then 265if test "x$drm_cv_atomic_primitives" = "xlibatomic-ops"; then
264 AC_DEFINE(HAVE_LIB_ATOMIC_OPS, 1, [Enable if you have libatomic-ops-dev installed]) 266 AC_DEFINE(HAVE_LIB_ATOMIC_OPS, 1, [Enable if you have libatomic-ops-dev installed])
267else
268 AC_DEFINE(HAVE_LIB_ATOMIC_OPS, 0)
265fi 269fi
266 270
267dnl Print out the approapriate message considering the value set be the 271dnl Print out the approapriate message considering the value set be the