THRIFT-994. build: Don't try to invoke phpize if we don't have it
authorBryan Duxbury <bryanduxbury@apache.org>
Wed, 26 Jan 2011 23:38:54 +0000 (23:38 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Wed, 26 Jan 2011 23:38:54 +0000 (23:38 +0000)
Patch: Richard Salz

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1063919 13f79535-47bb-0310-9956-ffa450edef68

bootstrap.sh

index cda21df..0c2b886 100755 (executable)
 #
 
 ./cleanup.sh
-(cd lib/php/src/ext/thrift_protocol && phpize)
+if test -d lib/php/src/ext/thrift_protocol ; then
+    if phpize -v >/dev/null 2>/dev/null ; then
+        (cd lib/php/src/ext/thrift_protocol && phpize)
+    fi
+fi
 
 set -e