Mac OS X: Run glibtoolize in absence of libtoolize
[hivex.git] / autogen.sh
index 0d08b4c..4017d32 100755 (executable)
@@ -46,11 +46,12 @@ fi
 # anything that is required at configure-time when configure is run
 # from a distribution tarball.  From those, nothing ocaml-related is
 # required.
+mkdir -p perl/lib/Win
 ./generator/generator.ml
 
 # If no arguments were specified and configure has run before, use the previous
 # arguments
-if [ $# == 0 -a -x ./config.status ]; then
+if test $# = 0 && test -x ./config.status; then
     ./config.status --recheck
 else
     $CONFIGUREDIR/configure "$@"