Skip to contentSkip to conversation

configure: check for gdbus-codegen presence

PATCH In review Marc-André Lureau 2 participants 2 messages Jan 10, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: check for gdbus-codegen presence

Some distros ship gdbus-codegen separately for gio headers/pc...

---
 configure | 3 +++
 1 file changed, 3 insertions(+)
configure +3 -0
index 0ce2c0354a..28ee2a254f 100755
@@ -3702,6 +3702,9 @@ if $pkg_config --atleast-version=$glib_req_ver gio-2.0; then
     gio_cflags=$($pkg_config --cflags gio-2.0)
     gio_libs=$($pkg_config --libs gio-2.0)
     gdbus_codegen=$($pkg_config --variable=gdbus_codegen gio-2.0)
+    if [ ! -x "$gdbus_codegen" ]; then
+        gdbus_codegen=
+    fi
 else
     gio=no
 fi
Signature · 1 line
2.25.0.rc1.20.g2443f3f80d.dirty
#1 lore raw
Quoted 24 lines · Marc-André Lureau

Some distros ship gdbus-codegen separately for gio headers/pc...

---
 configure | 3 +++
 1 file changed, 3 insertions(+)
configure +3 -1
index 0ce2c0354a..28ee2a254f 100755
@@ -3702,6 +3702,9 @@ if $pkg_config --atleast-version=$glib_req_ver gio-2.0; then
     gio_cflags=$($pkg_config --cflags gio-2.0)
     gio_libs=$($pkg_config --libs gio-2.0)
     gdbus_codegen=$($pkg_config --variable=gdbus_codegen gio-2.0)
+    if [ ! -x "$gdbus_codegen" ]; then
+        gdbus_codegen=
+    fi
 else
     gio=no
 fi
--
Quoted 1 line

2.25.0.rc1.20.g2443f3f80d.dirty

Thanks; applied to master as a buildfix.

-- PMM