On Wed, 7 Jan 2004, Riccardo wrote:
Hello,
Hi!
I have a question whichmight be a short configuration question. I'm trying to build dillo 0.7.3 on AIX 4.2.1 using gcc. I already installed and tested gtk and pth.
Pth is different from pthread (POSIX threads).
when configuring dillo it says it can't find pthreads. In fact it tries -pthread. I'm sure that AIX has native threads,
Yes, but our configure doesn't detect them yet. Although this should not be hard to do: Get the detected target system type string from the configure script. That is, near the third line of output, it says something like: checking target system type... i586-pc-linux-gnu Then add that option to "configure.in" inside the case statement for pthreads. Something like: [...] case $target in *-*-linux*|*-*-solaris*) AC_CHECK_LIB(pthread, pthread_create) ;; + *-*-aix*) + AC_CHECK_LIB(pthreads, pthread_create) + ;; [...] Then follow the directives at: http://home.t-online.de/home/Andreas.Steinmetz/unix/pthreads.html That is basically adding a call to pthread_init() somewhere in main() in dillo.c. Run autoreconf or autogen.sh, configure, make, tweak and send some feedback! :-)
but in any case -lpth should be used to use libpth. I'm not an expert with AIX development, I'm using version 4.2.1. Can dillo be linked against lpth? other projects usually have a configure option top select the threading model.
Against Pth, no. Cheers Jorge.-