summaryrefslogtreecommitdiffstats
path: root/config.tests/x11/xlib
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-04-01 09:07:16 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-04-03 11:40:34 (GMT)
commitb652130dc00dfab7322751275e42f59943c7e8e3 (patch)
tree656ac90ae4e61ff2d189f525ea7185c5bdd07e4d /config.tests/x11/xlib
parentdcff85182dda913b45867e27fde3f37e61ae86d6 (diff)
downloadQt-b652130dc00dfab7322751275e42f59943c7e8e3.zip
Qt-b652130dc00dfab7322751275e42f59943c7e8e3.tar.gz
Qt-b652130dc00dfab7322751275e42f59943c7e8e3.tar.bz2
Add config test for XLib
Previously, it was entirely possible to successfully configure Qt/X11 without any X11 installed. The problems would only start showing up once you stated building. This is not very useful if you're cross-compiling and trying to setup the paths correctly. Reviewed-by: Denis
Diffstat (limited to 'config.tests/x11/xlib')
-rw-r--r--config.tests/x11/xlib/xlib.cpp9
-rw-r--r--config.tests/x11/xlib/xlib.pro3
2 files changed, 12 insertions, 0 deletions
diff --git a/config.tests/x11/xlib/xlib.cpp b/config.tests/x11/xlib/xlib.cpp
new file mode 100644
index 0000000..8d25bf5
--- /dev/null
+++ b/config.tests/x11/xlib/xlib.cpp
@@ -0,0 +1,9 @@
+#include <X11/Xlib.h>
+
+int main(int, char **)
+{
+ Display *d = XOpenDisplay(NULL);
+ XCloseDisplay(d);
+ return 0;
+}
+
diff --git a/config.tests/x11/xlib/xlib.pro b/config.tests/x11/xlib/xlib.pro
new file mode 100644
index 0000000..658161e
--- /dev/null
+++ b/config.tests/x11/xlib/xlib.pro
@@ -0,0 +1,3 @@
+CONFIG += x11
+CONFIG -= qt
+SOURCES = xlib.cpp