Merge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/yaz
[yaz-moved-to-github.git] / buildconf.sh
index 8647f28..d86b270 100755 (executable)
@@ -1,11 +1,19 @@
 #!/bin/sh
-# $Id: buildconf.sh,v 1.46 2007-02-20 09:53:01 adam Exp $
 
 automake=automake
 aclocal=aclocal
 autoconf=autoconf
 libtoolize=libtoolize
 
+test -d config || mkdir config
+if test .git; then
+    if test -d m4/.git -a -d doc/common/.git; then
+       :
+    else
+       git submodule init
+    fi
+    git submodule update
+fi
 if [ "`uname -s`" = FreeBSD ]; then
     # FreeBSD intalls the various auto* tools with version numbers
     echo "Using special configuration for FreeBSD ..."