smb2_ioctl: split ioctl handler code on device type
[kai/samba.git] / install_with_python.sh
index d7ae55da1238e44b56bb41aac8bd1617d86e173e..7b51e5c6691b450ab9e45e2dbe1bf691ed5e5f32 100755 (executable)
@@ -14,6 +14,8 @@ shift
 
 PATH=$PREFIX/python/bin:$PATH
 export PATH
+LD_LIBRARY_PATH=$PREFIX/python/lib:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH
 
 VERSION="Python-2.6.5"
 
@@ -31,11 +33,14 @@ do_install_python() {
        rm -rf python_install || exit 1
 }
 
-if ! test -d $PREFIX/python; then
+if [ ! -d $PREFIX/python ]; then
    # needs to be installed
    do_install_python
 fi
 
+PYTHON=$PREFIX/python/bin/python
+export PYTHON
+
 `dirname $0`/configure --prefix=$PREFIX $@ || exit 1
 make -j || exit 1
 make install || exit 1