The ./configure
script is finding the first php-config
in your environment's PATH variable, and extracting PHP location information to populate the makefile. To force a specific installed version of PHP, use the --with-php-config
option.
./configure --with-php-config=/usr/local/php-5.3.21/bin/php-config