- get rid of 1001 strict-aliasing warnings
[m6w6/ext-http] / rebuild
diff --git a/rebuild b/rebuild
index fe6576e2e49d3b2c34bb6b8ce8db007efc37a939..b7f97c87625337f93638713918682d88dba179a9 100755 (executable)
--- a/rebuild
+++ b/rebuild
@@ -4,7 +4,7 @@ rm -f warnings
 if test -d "$1"; then
     PREFIX=$1
 else
-    PREFIX=/opt
+    PREFIX=`dirname $(dirname $(which php-config))`
 fi
 
 echo "Using prefix '$PREFIX' for phpize and php-config!"