./configure --prefix=/usr/local/php-5.6.16 --with-apxs2=/usr/sbin/apxs --with-zlib --enable-bcmath --with-bz2 --with-curl=/usr/local/curl --enable-ftp --with-gd --enable-gd-native-ttf --with-mhash --enable-mbstring --enable-soap --enable-zip --enable-sockets --with-iconv --with-pear --with-kerberos --with-imap=/usr/local/Cellar/imap-uw/2007f/ --with-imap-ssl —-with-mysqli --with-freetype-dir=/usr/local/Cellar/freetype
make
make install