When a system has weak symbols, this may be possible. But we need to know what symbol to test for, and that seems to vary across systems. It needs to be something that exists in the pthread library but not in the main C library. On some systems pthread_once has worked; on others, apparently it does not.
Does HP-UX 11 have stubs for pthread_create? pthread_join?
(Other means for figuring out if the thread library is loaded would be useful, but I don't think the pthread interface gives us much besides, for example, invoking pthread_create and seeing that it fails. Or perhaps, in fact, I should consider setting up a test that invokes pthread_once, and notes that it returns no error and fails to invoke the specified function....)
Ken
________________________________________________ Kerberos mailing list [email protected] https://mailman.mit.edu/mailman/listinfo/kerberos
