forked from tinyos/nesc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bootstrap
executable file
·62 lines (54 loc) · 1.39 KB
/
Bootstrap
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/sh
set -e
srcdir=src
# Use defaults now. Hopefully nobody uses really old versions
# anymore,
ACLOCAL="aclocal"
AUTOMAKE="automake"
AUTOCONF="autoconf"
AUTOHEADER="autoheader"
set -x
(
$ACLOCAL
$AUTOCONF
[ -d config-aux ] || mkdir config-aux
$AUTOMAKE -a -c
cd $srcdir
$ACLOCAL -I ../config-aux
$AUTOHEADER
$AUTOCONF
$AUTOMAKE -a -c
cd ..
cd libiberty
# 2.67 at least is broken with libiberty (AC_REPLACE_FUNCS not working),
# current binutils distributions force the use of 2.64, use that if possible
if autoheader2.64 --version >/dev/null 2>/dev/null; then
autoheader2.64
autoconf2.64
else
if autoconf --version | grep -q '2\.67'; then
set +x
echo "autoconf 2.67 does not work with libiberty"
echo "Either install debian/ubuntu's autoconf2.64 package, or"
echo "replace the default autoconf version with 2.69 or later, or 2.64"
exit 2
else
if autoconf --version | grep -q '2\.68'; then
set +x
echo "autoconf 2.68 does not work with libiberty"
echo "Either install debian/ubuntu's autoconf2.64 package, or"
echo "replace the default autoconf version with 2.69 or later, or 2.64"
exit 2
fi
fi
$AUTOHEADER
$AUTOCONF
fi
cd ..
cd libcpp
$ACLOCAL -I ../config-aux
$AUTOHEADER
$AUTOCONF
cd ..
)
rm -f config.cache $srcdir/config.cache