autoconf has a bug which glib has been bitten by. upstream has added a workaround in the mean time. can we add this to current 2.32.4 ebuilds ? http://git.gnome.org/browse/glib/commit/?id=ddfcfa66ae602c11ce9c4bfc426a79d668653278 (they only added it to master, not the branch, so it'll prob need work in backporting). another possibility is to call AC_STDC_HEADERS right after AC_SYS_LARGEFILE in configure.ac. that might be easier.
(In reply to comment #0) btw, if you're ok with the one line tweak (calling AC_STDC_HEADERS) for 2.32.x, i can take care of committing that.
(In reply to comment #0) > autoconf has a bug which glib has been bitten by. upstream has added a > workaround in the mean time. can we add this to current 2.32.4 ebuilds ? > > http://git.gnome.org/browse/glib/commit/ > ?id=ddfcfa66ae602c11ce9c4bfc426a79d668653278 > (they only added it to master, not the branch, so it'll prob need work in > backporting). I think that you meant http://git.gnome.org/browse/glib/commit/?id=e30823d93ff643c82d4037c2cf0f509e347f49de and http://git.gnome.org/browse/glib/commit/?id=54e31ab4f172bbb28434eafc34c9345a93c9ccf5 The ddfcfa66 commit shouldn't have any effect on cross-compiling.
(In reply to comment #2) all three actually. ideally, AS_IF shouldn't matter at all to cross-compiling, but in the glib case they do because of bugs in autoconf and the resulting implicit ordering of header checks.
I've backported a set of patches from 2.33.x that results in the equivalent usage of AS_IF to what exists in configure.ac in current glib git master. Please reopen if that's not sufficient for cross-compiling. > 12 Sep 2012; Alexandre Rostovtsev <tetromino@gentoo.org> glib-2.32.4.ebuild: > Add AS_IF patches from 2.33.x to fix cross-compiling; bug #434770, thanks to > Mike Frysinger.