root@suzgc # /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --with-curl=/usr/local/curl
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
http://ftp.gnu.org/gnu/m4
-rw-r--r-- 1 root root 1657870 May 28 2012 m4-1.4.16.tar.gz
root@suzgc # gunzip m4-1.4.16.tar.gz
root@suzgc # tar -xvf m4-1.4.16.tar
# cd m4-1.4.16/
# ./configure && make && make install
http://ftp.gnu.org/gnu/autoconf/
-rw-r--r-- 1 root root 1927468 May 28 2012 autoconf-2.69.tar.gz
root@suzgc # gunzip autoconf-2.69.tar.gz
-rw-r--r-- 1 root root 6748160 May 28 2012 autoconf-2.69.tar
root@suzgc # tar -xvf autoconf-2.69.tar
root@suzgc # cd autoconf-2.69
# ./configure && make && make install
root@suzgc # ./configure
checking for a BSD-compatible install... build-aux/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
configure: autobuild project... GNU Autoconf
configure: autobuild revision... 2.68
configure: autobuild hostname... suzgc
configure: autobuild timestamp... 20120528T122812Z
checking whether /bin/sh -n is known to work... no
checking for characters that cannot appear in file names... none
checking whether directories can have trailing spaces... yes
checking for expr... /usr/bin/expr
checking for GNU M4 that supports accurate traces... configure: error: no acceptable m4 could be found in $PATH.
GNU M4 1.4.6 or later is required; 1.4.14 is recommended
root@suzgc # make
make: Fatal error: No arguments to build
root@suzgc # make
make: Fatal error: No arguments to build
root@suzgc # make install
make: Fatal error: Don't know how to make target `install'
root@suzgc # export PATH=/usr/src/m4-1.4.16:$PATH
root@suzgc # ./configure
checking for a BSD-compatible install... build-aux/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
configure: autobuild project... GNU Autoconf
configure: autobuild revision... 2.69
configure: autobuild hostname... suzgc
configure: autobuild timestamp... 20120528T123016Z
checking whether /bin/sh -n is known to work... no
checking for characters that cannot appear in file names... none
checking whether directories can have trailing spaces... yes
checking for expr... /usr/bin/expr
checking for GNU M4 that supports accurate traces... configure: error: no acceptable m4 could be found in $PATH.
GNU M4 1.4.6 or later is required; 1.4.16 or newer is recommended.
GNU M4 1.4.15 uses a buggy replacement strstr on some systems.
Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 have another strstr bug.
root@suzgc # export PATH=/usr/src/m4-1.4.16/src:$PATH
root@suzgc # ./configure
checking for a BSD-compatible install... build-aux/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
configure: autobuild project... GNU Autoconf
configure: autobuild revision... 2.69
configure: autobuild hostname... suzgc
configure: autobuild timestamp... 20120528T123032Z
checking whether /bin/sh -n is known to work... no
checking for characters that cannot appear in file names... none
checking whether directories can have trailing spaces... yes
checking for expr... /usr/bin/expr
checking for GNU M4 that supports accurate traces... /usr/src/m4-1.4.16/src/m4
checking whether /usr/src/m4-1.4.16/src/m4 accepts --gnu... yes
checking how m4 supports trace files... --debugfile
checking for perl... /usr/bin/perl
checking whether /usr/bin/perl Fcntl::flock is implemented... yes
checking for emacs... no
checking for xemacs... no
checking for emacs... no
checking where .elc files should go... ${datadir}/emacs/site-lisp
checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep
checking for egrep... /usr/sfw/bin/ggrep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking whether make is case sensitive... yes
configure: creating ./config.status
config.status: creating tests/Makefile
config.status: creating tests/atlocal
config.status: creating man/Makefile
config.status: creating lib/emacs/Makefile
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating lib/Autom4te/Makefile
config.status: creating lib/autoscan/Makefile
config.status: creating lib/m4sugar/Makefile
config.status: creating lib/autoconf/Makefile
config.status: creating lib/autotest/Makefile
config.status: creating bin/Makefile
config.status: executing tests/atconfig commands
root@suzgc # make
root@suzgc # make install
root@suzgc # pwd
/u01/php-5.4.3/ext/curl
root@suzgc # export PATH=/usr/src/autoconf-2.69/bin:$PATH
root@suzgc # /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
root@suzgc # ./configure --with-php-config=/usr/local/php/bin/php-config --with-curl=/usr/local/curl
..
root@suzgc # make
root@suzgc # make install
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-zts-20100525/
root@suzgc # cd /usr/local/php/lib/
root@suzgc # ls -lrt
total 266
-rw-r--r-- 1 root root 66823 May 25 16:17 php.ini-development
-rw-r--r-- 1 root root 66823 May 28 11:05 php.ini
drwxr-xr-x 15 root root 512 May 28 20:37 php
root@suzgc # vi php.ini
extension_dir = "/usr/local/php/lib/php/extensions/no-debug-zts-20100525/"
extension = curl.so
root@suzgc # /usr/local/apache/bin/httpd -k start
root@suzgc # /usr/local/php/bin/php -v
PHP 5.4.3 (cli) (built: May 25 2012 16:11:33)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies