Hi all,

I am currently trying to get the JK/JK2 connectors working on MacOS X 
(with little success so far, but that's another thing). Trouble already 
starts compiling the native sources using the provided ant buildfiles.
To make life easier for other mac users, would you mind making the 
following additional statements to your buildfiles in 
jk/native/build.xml and jk/native2/build.xml?

1) Detect MacOS X hosts:

     <condition property="macosx">
         <and>
             <os family="mac" />
             <os family="unix" />
         </and>
     </condition>

2) Add the native java header files:

     Everywhere you include the native header files of the java 
distribution to include jni.h, insert one of the following lines, they 
both work, since ${java.home}/include is a symbolic link to 
${java.home}/../Headers:

     <include name="${java.home}/include" if="macosx" />
     or
     <include name="${java.home}/../Headers" if="macosx" />

3) Provide Information on dlopen

MacOS X doesn't provide dlopen. But a kind person (Jorge Acereda 
<[EMAIL PROTECTED]>) wrote a wrapper for it, consisting of 
the headerfile dlfcn.h and an implementation which IMHO should at least 
be mentioned in the README if not included somewhere in your 
src-distribution. The link to the files is as followed:

     http://http://download.sourceforge.net/fink/dlcompat-20020709.tar.gz

Thanks for your help!

Greetings,
Tobias


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to