[vlc-devel] [PATCH] configure.ac: fail if wayland-scanner variable is empty

Alexandre Janniaux ajanni at videolabs.io
Thu Sep 26 16:11:15 CEST 2019


---
 configure.ac | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure.ac b/configure.ac
index 210b4ca5371..16c688ca121 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3378,6 +3378,8 @@ AS_IF([test "${enable_wayland}" != "no"], [
   ])
   PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner >= 1.15], [
     WAYLAND_SCANNER="$(${PKG_CONFIG} wayland-scanner --variable wayland_scanner)"
+    AS_IF([ test "x$WAYLAND_SCANNER" = "x" ], [
+        wl_err"$wl_err couldn't find wayland-scanner"])
   ], [
     wl_err="$wl_err ${WAYLAND_SCANNER_PKG_ERRORS}."
   ])
-- 
2.23.0



More information about the vlc-devel mailing list