diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-01-19 13:01:03 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-01-19 13:07:25 +0100 |
commit | 08ccec1ec77a92ec1aa766c8571a0a7a2e6541f8 (patch) | |
tree | afe7c7edd8d0e146833cc6e1e7c7fac44ce63e3a | |
parent | f07e4d1885fbf54a4faa1f91a92fa9499e11b011 (diff) |
tests: make testdisplay non-optional
Not testing modesetting should not be an option.
Also this hopefully prevents testdisplay build-breakage from lingering
on for days like it has in the past.
And we want to eventually test the gem/kms cross-section, i.e.
pageflips.
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | configure.ac | 21 | ||||
-rw-r--r-- | tests/Makefile.am | 6 |
2 files changed, 4 insertions, 23 deletions
diff --git a/configure.ac b/configure.ac index 3af123e4..19744e08 100644 --- a/configure.ac +++ b/configure.ac @@ -55,23 +55,10 @@ XORG_DEFAULT_OPTIONS PKG_CHECK_MODULES(DRM, [libdrm_intel >= 2.4.30 libdrm]) PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.10]) -PKG_CHECK_MODULES(CAIRO, cairo, [HAVE_CAIRO=yes], [HAVE_CAIRO=no]) -if test "x$HAVE_CAIRO" = xyes; then - AC_DEFINE(HAVE_CAIRO, 1, [Have cairo support]) -fi -AM_CONDITIONAL(HAVE_CAIRO, [test "x$HAVE_CAIRO" = xyes]) - -PKG_CHECK_MODULES(LIBUDEV, libudev, [HAVE_LIBUDEV=yes], [HAVE_LIBUDEV=no]) -if test "x$HAVE_LIBUDEV" = xyes; then - AC_DEFINE(HAVE_LIBUDEV, 1, [Have libudev support]) -fi -AM_CONDITIONAL(HAVE_LIBUDEV, [test "x$HAVE_LIBUDEV" = xyes]) - -PKG_CHECK_MODULES(GLIB, glib-2.0, [HAVE_GLIB=yes], [HAVE_GLIB=no]) -if test "x$HAVE_GLIB" = xyes; then - AC_DEFINE(HAVE_GLIB, 1, [Have glib support]) -fi -AM_CONDITIONAL(HAVE_GLIB, [test "x$HAVE_GLIB" = xyes]) +# for testdisplay +PKG_CHECK_MODULES(CAIRO, cairo) +PKG_CHECK_MODULES(LIBUDEV, libudev) +PKG_CHECK_MODULES(GLIB, glib-2.0) # ----------------------------------------------------------------------------- # Configuration options diff --git a/tests/Makefile.am b/tests/Makefile.am index bb2581bd..ad7f498b 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -91,15 +91,9 @@ AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS) \ -I$(srcdir)/../lib LDADD = ../lib/libintel_tools.la $(PCIACCESS_LIBS) $(DRM_LIBS) -if HAVE_CAIRO -if HAVE_LIBUDEV -if HAVE_GLIB TESTS_progs += testdisplay LDADD += $(CAIRO_LIBS) $(LIBUDEV_LIBS) $(GLIB_LIBS) AM_CFLAGS += $(CAIRO_CFLAGS) $(LIBUDEV_CFLAGS) $(GLIB_CFLAGS) -endif -endif -endif gem_fence_thrash_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS) gem_fence_thrash_LDADD = $(LDADD) -lpthread |