summaryrefslogtreecommitdiff
path: root/configure.ac.in
diff options
context:
space:
mode:
authorJan Ziak <0xe2.0x9a.0x9b@gmail.com>2020-11-19 17:35:39 +0100
committerSimon Steinbeiß <ochosi@xfce.org>2020-11-26 09:30:07 +0100
commit441697df084806a5496a1c417e527e8efbde417d (patch)
treedcd17084268ac0dbdc9eefff27eeb8155ca45cfc /configure.ac.in
parent1b722b862abee32d13f45398de17400ad619f120 (diff)
downloadlibxfce4ui-441697df084806a5496a1c417e527e8efbde417d.tar.gz
about: Support multiple GPUs and print GPU memory size
The GPUs are detected using OpenGL and then using GUdev. If a GPU is detected via OpenGL and also via GUdev, the two pieces of information are merged into one GPU description. This patch adds GUdev as an optional dependency to the configuration file. The memory size is obtained via the following OpenGL extensions: GLX_MESA_query_renderer (primary) GL_NVX_gpu_memory_info (secondary) Examples: GeForce® GTX 750 Intel® HD Graphics 4000 Intel® HD Graphics (1.5 GiB) llvmpipe (LLVM 10.0.1, 128 bits) (7.7 GiB) Radeon™ RX 5500 XT (8.0 GiB) See also: https://gitlab.xfce.org/xfce/libxfce4ui/-/issues/27
Diffstat (limited to 'configure.ac.in')
-rw-r--r--configure.ac.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac.in b/configure.ac.in
index b483391..532be7f 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -157,6 +157,17 @@ else
AM_CONDITIONAL([HAVE_EPOXY], [false])
fi
+dnl **********************************
+dnl *** Optional support for GUdev ***
+dnl **********************************
+GUDEV_FOUND="no"
+if test x"$GLIBTOP_FOUND" = x"yes"; then
+ XDT_CHECK_OPTIONAL_PACKAGE([GUDEV], [gudev-1.0], [232], [gudev],
+ [GObject bindings for libudev], [yes])
+else
+ AM_CONDITIONAL([HAVE_GUDEV], [false])
+fi
+
dnl ***************************************
dnl *** Check for gobject-introspection ***
dnl ***************************************
@@ -404,9 +415,11 @@ fi
if test x"$GLIBTOP_FOUND" = x"yes"; then
echo "* System Info (libgtop): yes"
echo "* System Info (epoxy): $EPOXY_FOUND"
+echo "* System Info (gudev): $GUDEV_FOUND"
else
echo "* System Info (libgtop): no"
echo "* System Info (epoxy): no (assumes libgtop)"
+echo "* System Info (gudev): no (assumes libgtop)"
fi
echo "* Manual website: $with_manual_website"
echo