Rewrote the php configure test to use php-config.