8 PREFIX
=`dirname $(dirname $(which php-config))`
11 echo "Using prefix '$PREFIX' for phpize and php-config!"
13 echo -n "executing phpize... "
14 ${PREFIX}/bin
/phpize
2>&1 >/dev
/null
15 if test $?
-ne 0 ; then
21 echo -n "configuring... "
22 CFLAGS
="-Wall -Wextra -Wno-unused-parameter -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wbad-function-cast -Wcast-align -Wmissing-field-initializers -Wnested-externs" \
23 .
/configure
--with-php-config=${PREFIX}/bin
/php-config $@
>/dev
/null
24 if test $?
-ne 0 ; then
30 echo -n "building... "
31 make clean all
2>warnings
>/dev
/null
32 if test $?
-ne 0 ; then
38 if test -s warnings
; then
39 grep -E "^/.+http" warnings