summaryrefslogtreecommitdiffstats
path: root/build/linux/autogen.sh
blob: c85679365b7dbd121b0e2e3a6d7a12ef85486b2e (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
34
35
36
#!/bin/bash

aclocal
if test $? -ne 0; then
  echo "Error running aclocal"
  exit 1
fi

autoconf
if test $? -ne 0; then
  echo "Error running autoconf"
  exit 1
fi

libtoolize --install --force > /dev/null 2>&1
if test $? -ne 0; then
  libtoolize --force
  if test $? -ne 0; then
    echo "Error running libtoolize"
    exit 1
  fi
fi

if test ! -e config.guess; then
  ln -s config.guess.dist config.guess
fi

if test ! -e config.sub; then
  ln -s config.sub.dist config.sub
fi

if test ! -e install-sh; then
  ln -s install-sh.dist install-sh
fi

echo "Done."