- changed HttpRequest::getHistory() to return a real property
[m6w6/ext-http] / rebuild
1 #!/bin/bash
2 rm -f warnings
3
4 if test -d "$1"; then
5 PREFIX=$1
6 else
7 PREFIX=/opt
8 fi
9
10 echo "Using prefix '$PREFIX' for phpize and php-config!"
11
12 echo -n "executing phpize... "
13 ${PREFIX}/bin/phpize 2>&1 >/dev/null
14 if test $? -ne 0 ; then
15 echo "FAILED!"
16 exit 1
17 fi
18 echo "DONE"
19
20 echo -n "configuring... "
21 CFLAGS="-Wall -Wextra -Wno-unused-parameter -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wbad-function-cast -Wcast-align -Wmissing-field-initializers -Wnested-externs" \
22 ./configure --with-php-config=${PREFIX}/bin/php-config $2 >/dev/null
23 if test $? -ne 0 ; then
24 echo "FAILED!"
25 exit 1
26 fi
27 echo "DONE"
28
29 echo -n "building... "
30 make clean all 2>warnings >/dev/null
31 if test $? -ne 0 ; then
32 echo "FAILED!"
33 else
34 echo "DONE"
35 fi
36
37 if test -s warnings; then
38 grep -E "^/.+http" warnings
39 fi
40