GNOME Bugzilla – Bug 461899
configure doesn't find Xlib headers in non-standard locations
Last modified: 2007-08-01 20:48:53 UTC
Use standard autoconf techniques to find the host's X11 libraries and headers since libgnomekbd uses Xlib and XKB. Other information: The libgnomekbd configure process currently relies on finding the host's X11 installation implicitly through gdk-x11-2.0 and other pkg-config checks. However, these are not guaranteed to find the X11 headers. Also, libX11 only ends up being linked as NEEDED despite libgnomekbd using Xlib and XKB.
Created attachment 92731 [details] [review] Find Xlib from AC_PATH_XTRA Attached patch uses AC_PATH_XTRA to find the host's X11 installation. This is only the minimal setup. Really, it should also check for <X11/XKBlib.h> or <X11/extensions/XKBgeom.h> since they're used in gkbd-drawing.h. The above check was taken from gtk+. It could alternatively try to find x11 and kbproto from pkg-config and then fall back to AC_PATH_XTRA.
Well spotted, thanks, committed.