1The fpm.patch (for <rdar://problem/10451659>) drastically changes 2configure (among other files) and therefore is fragile. To update 3fpm.patch if PHP itself or another patch changes: 4 51. Unpack the PHP tarball. 6 $ tar xjf php-X.Y.Z.tar.bz2 7 82. Apply all the patches up to but not including fpm.patch in the order 9 listed in the Makefile (AEP_Patches). 10 $ cd php-X.Y.Z 11 $ for p in list-of-patches 12 > do 13 > patch -l -p1 < ../patches/$p 14 > done 15 163. Save a copy of the source at this point, then apply fpm.patch. 17 Disable or ignore the changes fpm.patch makes to configure (but not 18 configure.in or any other files). 19 204. Update configure by running buildconf. You will need autoconf-2.13 21 from, say, MacPorts. 22 $ sudo port install autoconf213 23 $ env PATH=/opt/local/bin:$PATH PHP_AUTOCONF=autoconf213 PHP_AUTOHEADER=autoheader213 buildconf --force 24 255. Regenerate fpm.patch by diffing the source tree against the copy you 26 saved at step 3. 27 28 29A future enhancement might automatically run buildconf after patching 30and before compiling in order to keep configure fresh, but that would 31require the build system to have autoconf213 or for this package to 32include autoconf213. 33