summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
Diffstat (limited to 'config.tests')
-rw-r--r--config.tests/glx/glx.pro2
-rw-r--r--config.tests/xcomposite/xcomposite.pro2
2 files changed, 4 insertions, 0 deletions
diff --git a/config.tests/glx/glx.pro b/config.tests/glx/glx.pro
index 26f048f08..74cc60837 100644
--- a/config.tests/glx/glx.pro
+++ b/config.tests/glx/glx.pro
@@ -1,6 +1,8 @@
TARGET = glx
QT = core
+!contains(QT_CONFIG, opengl): error("glx support requires Qt configured with OpenGL")
+
!contains(QT_CONFIG, no-pkg-config) {
CONFIG += link_pkgconfig
PKGCONFIG += x11 gl
diff --git a/config.tests/xcomposite/xcomposite.pro b/config.tests/xcomposite/xcomposite.pro
index 1c885357b..6838970a6 100644
--- a/config.tests/xcomposite/xcomposite.pro
+++ b/config.tests/xcomposite/xcomposite.pro
@@ -1,6 +1,8 @@
TARGET = xcomposite
QT = core
+!contains(QT_CONFIG, opengl): error("xcomposite support requires Qt configured with OpenGL")
+
!contains(QT_CONFIG, no-pkg-config) {
CONFIG += link_pkgconfig
PKGCONFIG += xcomposite