Может кому-то пригодится конфиг, который использую для сборки php из сырцов:

./configure —prefix=/usr/local/php —enable-fpm —with-zlib —enable-pdo 
—enable-sockets —enable-calendar —with-iconv —enable-exif —enable-soap 
—enable-ftp —enable-wddx —with-zlib —with-bz2 —with-gettext —with-xmlrpc 
—enable-pcntl —enable-soap —enable-bcmath —enable-mbstring —enable-dba 
—with-openssl —with-mhash —with-mcrypt —with-xsl —with-curl —with-pcre-regex 
—with-gd —enable-gd-native-ttf —with-ldap —enable-pdo —with-pdo-mysql 
—with-mysql —with-sqlite —with-pdo-sqlite —enable-zip —enable-sqlite-utf8 
—with-pear —with-mysqli —with-config-file-scan-dir=/etc/php/conf.d/