I ran into trouble compiling pnm2ppa under Mac OS X 10.2 but I have solved these issues and would like to share them. Maybe they could be put into a Mac OS X installation guide which I missed.
1. You need to install libgnugetopt 1.1. There are precompiled versions for Mac OS X on the net. Otherwise, it probably compiles on Mac OS X flawlessly.
2. Install it (not forgetting renaming the shared library to libgnugetopt.dylib instead of *.a).
3. Edit the pnm2ppa Makefile as follows:
Right in the first few line change the CFLAGS to
CFLAGS=-Wall -no-cpp-precomp -traditional-cpp -pedantic -O2
and remove the LDFLAGS reference -lm:
Later on in the BSD section:
That was it for me.
Regards and happy printing,
I've added a Mac OS X entry to the Makefile in cvs
(this just missed the pnm2ppa-1.11 release)
If you would like to contribute a text file
"INSTALL.MacOSX", with any extra hints,
just send it to me
duncan_haldane at users.sourceforge.net.