GNOME Bugzilla – Bug 125970
Build problem: autoconf warning
Last modified: 2004-12-22 21:47:04 UTC
running './autogen.sh' (with autoconf 2.56+) on gnome-control-center from cvs gives the warnings: checking X11/extensions/xf86misc.h usability... no checking X11/extensions/xf86misc.h presence... yes configure: WARNING: X11/extensions/xf86misc.h: present but cannot be compiled configure: WARNING: X11/extensions/xf86misc.h: check for missing prerequisite headers? configure: WARNING: X11/extensions/xf86misc.h: see the Autoconf documentation configure: WARNING: X11/extensions/xf86misc.h: section "Present But Cannot Be Compiled" configure: WARNING: X11/extensions/xf86misc.h: proceeding with the preprocessor's result configure: WARNING: X11/extensions/xf86misc.h: in the future, the compiler will take precedence configure: WARNING: ## ------------------------------------------ ## configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ## configure: WARNING: ## ------------------------------------------ ## Unfortunately xf86misc.h is not a self-contained header file - it relies on (but does not #include) X11/Xlib.h to define 'Bool'. The warning can be removed by changing the configure.in line: AC_CHECK_HEADERS(X11/extensions/xf86misc.h, XF86MISC_LIBS="-lXxf86misc") to: AC_CHECK_HEADERS([X11/Xlib.h]) AC_CHECK_HEADERS([X11/extensions/xf86misc.h], [XF86MISC_LIBS="-lXxf86misc"],[], [#if HAVE_X11_XLIB_H #include <X11/Xlib.h> #endif ])
Created attachment 21111 [details] [review] Patch to fix the reported problem.
Good idea. Applied to head, and gnome-2-4