you would need to recompile the php server and include the string to compile it with GD support.
the MAC OS kernel is based on Linux, so the compiling php for mac is very similar to compiling it for linux. Here is a tutorial for compiling php fior linux:
instructi...e-on-linux.htm