[vlc-commits] configure.ac: simplify GBM package check

Alexandre Janniaux git at videolan.org
Tue Apr 20 10:31:38 UTC 2021


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Fri Apr 16 10:28:06 2021 +0200| [82f607772c4e72a6e7ca858caa5e2db4faef67bd] | committer: Alexandre Janniaux

configure.ac: simplify GBM package check

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=82f607772c4e72a6e7ca858caa5e2db4faef67bd
---

 configure.ac | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/configure.ac b/configure.ac
index b774a34ddc..8dddeb148b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4470,20 +4470,7 @@ AS_IF([test "${enable_osx_notifications}" != "no"], [
 dnl
 dnl Check for GBM
 dnl
-AC_ARG_ENABLE([gbm],
-  AS_HELP_STRING([--enable-gbm],
-    [Use GBM for egl_pbuffer (default enabled)]))
-have_gbm="no"
-AS_IF([test "${enable_gbm}" != "no"], [
-  PKG_CHECK_MODULES([GBM], [gbm], [have_gbm="yes"], [
-    AS_IF([test -n "${enable_gbm}"], [
-      AC_MSG_ERROR([${GBM_PKG_ERRORS}.])
-    ], [
-      AC_MSG_WARN([${GBM_PKG_ERRORS}.])
-    ])
-  ])
-])
-AM_CONDITIONAL([HAVE_GBM], [test "${have_gbm}" = "yes"])
+PKG_HAVE_WITH_MODULES([GBM], [gbm])
 
 dnl
 dnl Libnotify notification plugin



More information about the vlc-commits mailing list