summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorBenjamin Franzke <[email protected]>2011-05-31 11:14:46 +0200
committerKristian Høgsberg <[email protected]>2011-05-31 15:13:37 -0400
commita7cd65fb38a3ece6202d3675a543785c10f0932a (patch)
tree570fd41aa9c2f3b86c61fdb98e554cf936c3fe70 /configure.ac
parentaa87a938fb4cec30dad48642e8d12810e947bc8b (diff)
st/egl: Fix udev linkage when egl_dri2 is not build
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index b55473ffec9..510d23f41bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1202,6 +1202,9 @@ if test "x$enable_egl" = xyes; then
PKG_CHECK_MODULES([LIBUDEV], [libudev > 150],
[have_libudev=yes],[have_libudev=no])
+ if test "$have_libudev" = yes; then
+ DEFINES="$DEFINES -DHAVE_LIBUDEV"
+ fi
if test "$mesa_driver" = dri; then
# build egl_dri2 when xcb-dri2 is available
PKG_CHECK_MODULES([XCB_DRI2], [x11-xcb xcb-dri2 xcb-xfixes],
@@ -1210,9 +1213,6 @@ if test "x$enable_egl" = xyes; then
if test "$have_xcb_dri2" = yes; then
EGL_DRIVER_DRI2=dri2
DEFINES="$DEFINES -DHAVE_XCB_DRI2"
- if test "$have_libudev" = yes; then
- DEFINES="$DEFINES -DHAVE_LIBUDEV"
- fi
# workaround a bug in xcb-dri2 generated by xcb-proto 1.6
AC_CHECK_LIB(xcb-dri2, xcb_dri2_connect_alignment_pad, [],
[DEFINES="$DEFINES -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN"])