#!/bin/sh

rm -rf build
mkdir build
cp * build
cd build
./gen_code
phpize
./configure --with-$1
make
cp modules/*.so ..
cd ..
#rm -rf build
