How to check the size of pthread_t?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello list,

I am trying to create an autoconf script that does check the size of pthread_t,
but I am experiencing some troubles in the way.

To be precise, what I need is a macro like SIZEOF_PTHREAD_T, similar to
SIZEOF_LONG. The problem is that pthread.h must be included in the test program
and it must be linked with the OS-dependent -pthread or -lpthread or
whatever flag
the OS is using to link against the POSIX threads library.

Can anyone send me a quick snippet of autoconf magic how to achieve this?

Thank you!

-- 
Vasil Dimov


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux