GNOME Bugzilla – Bug 667307
build: Make sure AC_INCLUDES_DEFAULT is used.
Last modified: 2012-05-16 08:47:37 UTC
Without using AC_INCLUDES_DEFAULT explicitly, ceratin platforms will complain that the header was found, but not usable by the compiler. This happens for instance on Solaris where certain headers are needed to pull in proper defines.
Created attachment 204625 [details] [review] patch
Seems to have an unrelated (or non obviously related) chunk relating to the vorbis detection ?
Håvard, ping, any response for comment#2 ?
I've been away on paternity leave. Apologies for the late answer. Yes, it does indeed. The chunk around the Vorbis detection is for autoconf 2.68 and newer which requires AC_LANG_SOURCE or AC_LANG_PROGRAM for AC_COMPILE_IFELSE. This should still work with older, relevant, versions of autoconf. It got committed in the same chunk because I have 2.68 on Solaris and didn't see it there together with the AC_INCLUDES_DEFAULT fixes. How do you want to proceed with it? Is it OK to have it in this patch, or do you want a separate "autoconf 2.68 upgrade" patch?
I've pushed the AC_INCLUDES_DEFAULT bits now. I've omitted the AC_LANG_SOURCE bits, because the patch didn't apply any more and I added bits manually, and because I'm not sure if they're needed since there are AC_LANG_PROGRAM bits already and either one should be fine. My autoconf 2.68 doesn't complain anyway. commit 443897bebc6169c9efc891220460240527cbc2d4 Author: Idar Tollefsen <itollefs@cisco.com> Date: Sun Jan 1 20:48:29 2012 +0100 build: Make sure AC_INCLUDES_DEFAULT is used. Without using AC_INCLUDES_DEFAULT explicitly, certain platforms will complain that the header was found, but not usable by the compiler. This happens for instance on Solaris where certain headers are needed to pull in proper defines. https://bugzilla.gnome.org/show_bug.cgi?id=667307