summaryrefslogtreecommitdiffstats
path: root/storage/mroonga/vendor/groonga/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'storage/mroonga/vendor/groonga/autogen.sh')
-rwxr-xr-xstorage/mroonga/vendor/groonga/autogen.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/storage/mroonga/vendor/groonga/autogen.sh b/storage/mroonga/vendor/groonga/autogen.sh
new file mode 100755
index 00000000..98dcc83a
--- /dev/null
+++ b/storage/mroonga/vendor/groonga/autogen.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+./version-gen.sh
+
+case `uname -s` in
+Darwin)
+ homebrew_aclocal=/usr/local/share/aclocal
+ if [ -d $homebrew_aclocal ]; then
+ ACLOCAL_PATH="$ACLOCAL_PATH $homebrew_aclocal"
+ fi
+ gettext_prefix=/usr/local/Cellar/gettext
+ if [ -d $gettext_prefix ]; then
+ gettext_aclocal=$(ls $gettext_prefix/*/share/aclocal | \
+ gsort --version-sort | \
+ tail -n 1)
+ if [ -d $gettext_aclocal ]; then
+ ACLOCAL_PATH="$ACLOCAL_PATH $gettext_aclocal"
+ fi
+ fi
+ ;;
+FreeBSD)
+ ACLOCAL_PATH="$ACLOCAL_PATH /usr/local/share/aclocal/"
+ ;;
+esac
+
+if [ ! -e vendor/mruby-source/.git ]; then
+ rm -rf vendor/mruby-source
+fi
+git submodule update --init
+
+mkdir -p m4
+
+${AUTORECONF:-autoreconf} --force --install "$@"