configure: use pkg-config to detect X11
authorTim-Philipp Müller <tim@centricular.com>
Mon, 24 Nov 2014 19:53:56 +0000 (19:53 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 24 Nov 2014 19:53:56 +0000 (19:53 +0000)
Like we do in -base and -good now.

https://bugzilla.gnome.org/show_bug.cgi?id=731047

configure.ac

index 2739b55..6fb61fb 100644 (file)
@@ -650,7 +650,7 @@ AC_ARG_ENABLE([dispmanx],
        *) AC_MSG_ERROR([bad value ${enableval} for --enable-dispmanx]) ;;
      esac],[NEED_DISPMANX=auto])
 
-AG_GST_CHECK_X
+AG_GST_PKG_CHECK_MODULES(X, x11)
 save_CPPFLAGS="$CPPFLAGS"
 save_LIBS="$LIBS"
 
@@ -2441,7 +2441,6 @@ dnl *** nas ***
 translit(dnm, m, l) AM_CONDITIONAL(USE_NAS, true)
 AG_GST_CHECK_FEATURE(NAS, [nas plug-in], nassink, [
   HAVE_NAS="no"
-  AG_GST_CHECK_X
   if test "x$HAVE_X" = "xyes"; then
     save_cppflags=$CFLAGS
     CPPFLAGS="$CPPFLAGS $X_CFLAGS"