]> git.sesse.net Git - vlc/blobdiff - bootstrap
update: fix memory error handling
[vlc] / bootstrap
index 76d1fe854cb48305ffa3733efd3eb548bbf85d5b..1eaa5664030b6146cd08afce156ccfacac090e42 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -19,6 +19,11 @@ fi
 
 ACLOCAL_ARGS="-I m4 ${ACLOCAL_ARGS}"
 
+# Check for tools directory
+if test -d extras/tools/build/bin; then
+  PATH="`pwd`/extras/tools/build/bin:$PATH"
+fi
+
 ###
 ###  Get a sane environment, just in case
 ###
@@ -59,7 +64,7 @@ echo "generating modules/**/Makefile.am"
 find modules/ -name Modules.am | \
 sed -ne 's,modules/\(.*\)/Modules.am,\1,p' | \
 while read d; do
-       sh modules/genmf "$d"
+       ${CONFIG_SHELL-sh} modules/genmf "$d"
        printf "."
 done
 printf "\n"