summaryrefslogtreecommitdiffstats
path: root/storage/mroonga/vendor/groonga/autogen.sh
blob: 98dcc83a79ef663b29b6230cf328f8fa38af8a38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 "$@"