Install phpize into libdir. --- php-5.0.5/scripts/Makefile.frag.phpize64 +++ php-5.0.5/scripts/Makefile.frag @@ -4,7 +4,7 @@ # phpincludedir = $(includedir)/php -phpbuilddir = $(libdir)/build +phpbuilddir = $(libdir)/php/build BUILD_FILES = \ scripts/phpize.m4 \ --- php-5.0.5/scripts/phpize.in.phpize64 +++ php-5.0.5/scripts/phpize.in @@ -3,7 +3,7 @@ # Variable declaration prefix='@prefix@' exec_prefix="`eval echo @exec_prefix@`" -phpdir="`eval echo @libdir@`/build" +phpdir="@libdir@/php/build" includedir="`eval echo @includedir@`/php" builddir="`pwd`"