Using the below command you will see all available command for compiling it:
./configure --help |less
While i was browsing it i saw no --enable-so anymore so i am assuming that only using --with-apxs2=path/apsx2
will do the job for you.
I will be compiling this in a minute and let you know how it goes.
UPDATE:
I have just finished compiling the version 5.3.3 and it indeed DONT NEED OR HAVE the --enable-so
aslong as you specify the --with-apxs2
I have configured it with:
./configure --prefix=/usr
--enable-sockets --enable-bcmath --with-pear=/usr/lib/pear --with-mysql=/usr --enable-calendar --with-mhash=/usr --with-kerberos --with-config-file-path=/etc --with-gd --with-xsl --with-freetype-dir=/usr --enable-exif --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-pdo-mysql --enable-ftp --with-curl=/usr --with-pspell=/usr --enable-mbstring --with-mcrypt --with-mysqli --with-openssl=/usr --with-gettext --enable-pcntl --with-apxs2
&& make && make install
Once the proccess was done there was a /usr/lib/httpd/modules/libphp5.so
in place.
Also during the compilation you can see the below:
Installing PHP SAPI module: apache2handler
/usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/apr-1.3.9/build-1/libtool' libphp5.la /usr/lib/httpd/modules
/usr/lib/apr-1.3.9/build-1/libtool --mode=install cp libphp5.la /usr/lib/httpd/modules/
cp .libs/libphp5.so /usr/lib/httpd/modules/libphp5.so
cp .libs/libphp5.lai /usr/lib/httpd/modules/libphp5.la
it has also included the LoadModule php5_module lib/httpd/modules/libphp5.so
on my httpd.conf automaticly without the need to do it by hand.