From: Mr. Chow Wing Siu on
Hi all,

I contribute my solution as a script about mod_h264_streaming on Solaris 10.

--
Johnson Chow



===================================================================
#!/bin/sh

if [ ! -f apache_mod_h264_streaming-2.2.5.tar.gz ]; then
wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.5.tar.gz
fi

gzcat apache_mod_h264_streaming-2.2.5.tar.gz | tar xvf -
cd mod_h264_streaming-2.2.5

APR_CONFIG=/usr/apache2/bin/apr-config; export APR_CONFIG
APU_CONFIG=/usr/apache2/bin/apu-config; export APU_CONFIG
CC="/usr/sfw/bin/gcc" ;export CC
LTFLAGS="--tag=CC"; export LTFLAGS
CFLAGS="-O -prefer-non-pic -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSSL_EXPERIMENTAL -DSSL_ENGINE"; export CFLAGS
AP_CFLAGS="-O -prefer-non-pic -DSSL_EXPERIMENTAL -DSSL_ENGINE -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/apache2/include"; export AP_CFLAGS
APXS_CFLAGS="-O -prefer-non-pic -DSSL_EXPERIMENTAL -DSSL_ENGINE -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/apache2/include"; export APXS_CFLAGS
MODULE_CFLAGS="-O -prefer-non-pic -DSSL_EXPERIMENTAL -DSSL_ENGINE -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/apache2/include"; export MODULE_CFLAGS
LDFLAGS="-L/usr/apache2/lib"; export LDFLAGS

if [ -f configure2 ]; then
rm configure2
fi

if [ -f configure3 ]; then
rm configure3
fi

sed 's/MODULE_LDFLAGS=/# MODULE_LDFLAGS=/' configure > configure2
sed 's/MODULE_CFLAGS=/# MODULE_CFLAGS=/' configure2 > configure3

if [ -f configure3 ]; then
mv configure3 configure
fi

chmod a+rx configure

../configure --with-apxs=/usr/apache2/bin/apxs --disable-apachetest
make
make install