hivex: Add metadata length functions for nodes and values
[hivex.git] / autogen.sh
index a1fd048..4017d32 100755 (executable)
@@ -42,9 +42,16 @@ if [ ! -z "$BUILDDIR" ]; then
     CONFIGUREDIR=..
 fi
 
+# Rerun the generator (requires OCaml interpreter).  This is *not* for
+# 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 "$@"