In the glib-1.2.8 used by pkg-config there's a problem with the configure-check for a posix-like pthread_cond_timedwait(), which is fixed in glib2 only. See http://bugs.gnome.org/show_bug.cgi?id=70525 for the whole description. Don't know how to handle this cleanly, maybe use a glib2, but i've created a patch to fix this in the glib-1.2.8 shipped within pkgconfig.
Created attachment 1094 [details] [review] patch to fix glib bug-70525 in glib-1.2.8
Why is this needed, given that glib is configured with --disable-threads?
Well, if a system-admin of an HP-UX 11.2x (Itanium) tries to install pkgconfig, why should he decide to "--disable-threads" ? He knows that this system _has_ threads, and he might not know that pkgconfig would run without threads. He's just bothered that configure would hang. So if you don't want to patch third-party code, then please add --disable-threads for the glib-1.2.8/configure-call in your configure.in instead (generally or for this platform only), or update to a newer glib (which has to be a glib-2 to get this fixed).
Fixed in CVS.
pkgconfig 0.16 has been released and contains a fix for this bug.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.