Merge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/yaz
[yaz-moved-to-github.git] / buildconf.sh
index d34ee86..d86b270 100755 (executable)
@@ -1,14 +1,22 @@
 #!/bin/sh
-# $Id: buildconf.sh,v 1.45 2007-01-03 13:55:49 mike 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 configuation for FreeBSD ..."
+    echo "Using special configuration for FreeBSD ..."
     automake=automake19
     aclocal="aclocal19 -I /usr/local/share/aclocal"
     autoconf=autoconf259