Hello. I had a brutal time figuring out how to get these three to work 
together, so I thought I should post the solution that worked for me.

pdflib:

1. unpack the tarball

2. setenv LDFLAGS '-flat_namespace' # I don't know if this was entirely 
necessary

3. ./configure \
         --enable-shared \
         --enable-static \
         --with-java=no \
         --with-perl=/usr/bin/perl \
         --enable-php

4. edit libtool, find the line beginning with archive_cmds='$CC ...', 
and add ' -flat_namespace ' after the 'CC'

5. make

6. sudo make install

7. delete (or move somewhere else) the file libpdf.dylib from 
/usr/local/lib and the symlink in /usr/lib, this is to force php to link 
against pdflib statically.

php

1. unpack the tarball

2. setenv LDFLAGS '-flat_namespace'

3. ./configure \
         --with-xml \
         --with-zlib \
         --with-apxs=/usr/sbin/apxs \
         --enable-trans-sid \
         --with-pdflib=/usr/local \
         --enable-shared \
         --with-mysql=/usr/local \
         --with-jpeg-dir=/usr/local \
         --with-zlib-dir=/usr \
         --with-tiff-dir=/usr/local \
         --with-png-dir=/usr/local

4. edit libtool, add '-flat_namespace' to the archive_cmds line as above 
for pdflib

5. make

6. make install

####

Of course configurations will vary, but the key elements for me were 
adding the -flat_namespace flag to libtool, and deleting the 
libpdf.dylib library before configuring php.

Hope someone finds this helpful.

-Steve



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to