./configure --prefix=/usr/local/php-fcgi --with-gd --with-jpeg-dir=/usr/local/jpeg --with-png-dir=/usr/local/png --with-zlib-dir=/usr/local/zlib --enable-fastcgi