I'm attempting to build PHP 5.3.6 with Apache 2..55 using gcc compiler in Solaris 10 SPARC. My requirement would be to build the Static portable binary of php.

Following may be the configure statement I made use of.

./configure
--enable-static=yes
--prefix=/opt/genesys/gvp/php
--with-apxs2=/opt/genesys/gvp/apache/bin/apxs
--with-config-file-path=/opt/genesys/gvp/apache/conf
--disable-cli
--disable-cgi
--with-zlib-dir=/usr/local
--enable-bcmath
--with-curl=/usr/local
--with-gdbm=/usr/local
--with-gd
--with-png-dir=/usr/local
--with-libxml-dir=/usr/local
--with-xsl=/usr/local
--with-gettext
--with-iconv=/usr/local
--without-mysql
--enable-shmop
--enable-electrical sockets
--enable-xml
--with-libexpat-dir=/usr/local
--with-iconv-dir=/usr/local
--with-mcrypt=/usr/local
--without-pear
--with-openssl=/usr/local/ssl
--enable-maintainer-zts
--without-sqlite
--without-sqlite3
--without-pdo-sqlite
--with-oci8=instantclient,/tmp/instantclient_10_2

I enabled to construct with static libraries using --enable-static=yes but nonetheless the creation of configure shows negative

checking whether draining libraries can be done... no
checking if libtool supports shared libraries... yes
checking whether or not to build shared libraries... yes
checking whether or not to build static libraries... no

Even when I execute ldd on libphp5 after make making do the installation still shows it's mentioning to libraries externally.

Are you able to help me how you can perform the static build? Thanks.

just attempted

./configure --enable-static

and output was

checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes

can't state that I realize how you get different result

Are you able to please verify, it will not enable static building if you use just simple command when i ?