./configure
--prefix=/usr/local/php/5.4
--with-config-file-path=/usr/local/php/5.4/etc
--with-config-file-scan-dir=/usr/local/php/5.4/etc/conf.d
--disable-debug
--enable-fpm
--with-fpm-user=www
--with-fpm-group=www
--with-curl
--with-pear
--with-gd
--with-jpeg-dir
--with-png-dir
--with-zlib
--with-xpm-dir
--with-freetype-dir
--with-mcrypt
--with-mhash
--with-mysql
--with-mysqli
--with-pdo-mysql
--with-openssl
--with-xmlrpc
--with-xsl
--with-bz2
--with-gettext
--with-zlib-dir
--with-curlwrappers
--enable-mbstring
--enable-mbregex
--enable-wddx
--enable-xml
--enable-pcntl
--enable-inline-optimization
--enable-pdo
--enable-gd-native-ttf
--enable-exif
--enable-zip
--enable-bcmath
--enable-calendar
--enable-ftp
--enable-soap
--enable-sockets
--enable-shmop
--enable-dba
--enable-sysvsem
--enable-sysvshm
--enable-sysvmsg