aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/bootstrap
blob: 9f03bce44face504088d5f6687e71d4b6f40d50b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# Some platforms may not have m4/autoconf. If not, build temporary copies in
# order to bootstrap.
DEPENDS=`dirname $0`
export PATH="$DEPENDS/pre-build-deps/bin:$PATH"
which m4 >/dev/null 2>/dev/null || make -C $DEPENDS/pre-depends/m4-pre-depends
which autoconf >/dev/null 2>/dev/null || make -C $DEPENDS/pre-depends/autoconf-pre-depends
which autoconf >/dev/null 2>/dev/null || \
  (echo "autoconf was not found and could not be built. Aborting." && exit 1)

autoconf -f