Hello Dan,
According to configure.in, --with-named-thread-lib=${PTHREAD_LIBS} should be what you need. 7.4's configure.in is missing the named-thread code but it should be trivial to backport.
This is what I try to port from mysql 4.0 configure.in... But it doesn't works at all...
The current ports of pike 7.4 and 7.5 (ports lang/pike74 and lang/pike75) have "conformity" of FreeBSD PTHREADS_CFLAGS and LIBS but they are completly b0rken (eg threads are not working). As you can see, FreeBSD commiters tryed to make some patches to Makefiles and configure scripts to make them compliant, but break them completly :
- pike74 cannot be compiled on 5.x :
===> Checking if lang/pike74 already installed Installing Pike in /usr/local/pike/7.4.44, please wait...
Fatal error 'Unable to read from thread kernel pipe' at line 1100 in file /usr/src/lib/libc_r/uthread/uthread_kern.c (errno = 0) Abort trap (core dumped) gmake: *** [install] Error 134 *** Error code 2
Stop in /usr/ports/lang/pike74.
- pike75 can be compiled and installed but threads support is dead ;(
So since this can is *really* a nightmare to make 'em FreeBSD ports compliant, I ask for hint to make 'em working....
I really think that on some other OS there is some clue on make it working with different threading support ?
/Xavier
-- Xavier Beaudouin - Unix System Administrator & Projects Leader. President of Kazar Organization : http://www.kazar.net/ Please visit http://caudium.net/, home of Caudium & Camas projects