Ye gods I think that did it. Well, with some modifications. I used the --with-mysql-config flag and the serverlogistics.com version of mysql (I assume you're not using the default mysql package?). I also had to manually remove the -arch i386 from its two points in the Makefile. But it has compiled and installed. From one Pat to another, thankyou. And a massive thanks to all who've provided any input into this thread.