GNOME Bugzilla – Bug 694792
Stop checking for pangox in configure.ac
Last modified: 2013-02-28 17:47:14 UTC
configure.ac currently checks for pangox to decide whether to check for X or not, depending on whether pangox already includes -lX11 et al or not. However gnome-session doesn't use pangox (or pangoxft or even pango) itself, so there's no point in doing this. Furthermore, pangox has been removed from pango in 1.31.0. I propose to stop checking for pangox to decide whether to check for X, and just check for X inconditionally.
Created attachment 237506 [details] [review] Stop checking for pangox
Review of attachment 237506 [details] [review]: Hmm this is a bit messy. This patch will fix a real problem, but if you want to clean things up even more, we could just rely on the fact that nowadays X.org modules come with pkg-config files, and just add "x11 xau" to our PKG_CHECK_MODULES, and drop the reliance on the autoconf AC_PATH_XTRA.
Created attachment 237632 [details] [review] Use pkg-config to check for X11 libraries That makes more sense indeed. This revised version of the patch completely removes the AC_PATH_XTRA check and uses PKG_CHECK_MODULES. I've tried to be consistent and so I've added a check just for x11. Not so for xauth as that's already been checked together with xext. (Not sure what needs xext tbh, but xauth is needed by gnome-session/gdm.c and gets it through XEXT_CFLAGS/LIBS. If xext isn't really needed nowadays I can make another patch to remove the xext check while leaving the xau one)
Review of attachment 237632 [details] [review]: This looks good.
Thanks, pushed as f0063b9