[Xcb] Adding pthread stubs into libxcb

Diego 'Flameeyes' Pettenò flameeyes at gentoo.org
Thu Nov 9 08:03:06 PST 2006

On Wednesday 08 November 2006 20:48, Josh Triplett wrote:
> Note that AC_CHECK_FUNCS won't do what you want; it only checks for a
> function in the standard C library or in a library you designate, rather
> than in all libraries linked by default as AC_TRY_LINK does.
Actually, AC_CHECK_FUNCS links everything in $LIBS as AC_TRY_LINK does, so it 
should just what we need here. I've tried it myself by adding -lunieject to 

configure:22114: checking for pthread_self
configure:22170: gcc -o conftest -g -O2   conftest.c  -lunieject >&5
configure:22176: $? = 0
configure:22183: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:22186: $? = 0
configure:22193: test -s conftest
configure:22196: $? = 0
configure:22210: result: yes

> All of those seem like overkill just to avoid copy-pasting a few lines for
> each of a dozen or so pthread functions.  Once we get this working
> correctly, we hopefully won't need to touch it again, so we don't really
> need a code-generation solution.
Let's hope so :) I've used a simple bash semi-script to generate the original 
lines and I'll now go into testing it on the fbsd box, if it works I'll post 
the cg-mkpatch output here :)

Diego "Flameeyes" Pettenò - http://farragut.flameeyes.is-a-geek.org/
Gentoo/Alt lead, Gentoo/FreeBSD, Video, Sound, ALSA, PAM, KDE, CJK, Ruby ...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xcb/attachments/20061109/7529ff67/attachment.pgp

More information about the Xcb mailing list