summaryrefslogtreecommitdiffstats
path: root/src/gui/configure.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/configure.json')
-rw-r--r--src/gui/configure.json30
1 files changed, 16 insertions, 14 deletions
diff --git a/src/gui/configure.json b/src/gui/configure.json
index 3d0f75254a..123ef208a2 100644
--- a/src/gui/configure.json
+++ b/src/gui/configure.json
@@ -454,6 +454,19 @@
{ "type": "pkgConfig", "args": "wayland-server" }
]
},
+ "xlib": {
+ "label": "XLib",
+ "test": {
+ "include": "X11/Xlib.h",
+ "main": [
+ "Display *d = XOpenDisplay(NULL);",
+ "XCloseDisplay(d);"
+ ]
+ },
+ "sources": [
+ { "type": "makeSpec", "spec": "X11" }
+ ]
+ },
"x11sm": {
"label": "X11 session management",
"sources": [
@@ -626,7 +639,8 @@
"test": "x11/xrender",
"sources": [
"-lXrender"
- ]
+ ],
+ "use": "xlib"
}
},
@@ -913,18 +927,6 @@
"pkg-config-variable": "prefix",
"value": "/usr",
"log": "value"
- },
- "xlib": {
- "label": "XLib",
- "type": "compile",
- "test": {
- "include": "X11/Xlib.h",
- "main": [
- "Display *d = XOpenDisplay(NULL);",
- "XCloseDisplay(d);"
- ],
- "qmake": "CONFIG += x11"
- }
}
},
@@ -1374,7 +1376,7 @@
"xlib": {
"label": "XLib",
"autoDetect": "!config.darwin || features.xcb",
- "condition": "tests.xlib",
+ "condition": "libs.xlib",
"output": [ "privateFeature" ]
},
"texthtmlparser": {