The following occurs quite regularly on FreeBSD:
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.
and when fixed, it’s followed up by:
Cannot find autoheader. Please check your autoconf installation and the $PHP_AUTOHEADER environment variable. Then, rerun this script.
The fix is to set those environment variables (as appropriate for the autoconf and autoheader version numbers – the below is my example on FreeBSD 8.1):
export PHP_AUTOCONF=/usr/local/bin/autoconf-2.68 export PHP_AUTOHEADER=/usr/local/bin/autoheader-2.68
in bash of the following in tcsh:
setenv PHP_AUTOCONF autoconf-2.68 setenv PHP_AUTOHEADER autoheader-2.68