blob: bb3b5cc1df5f108971c0964b9afc31769df004db (
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
37
38
39
40
41
42
|
#!/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
case `uname` in
Darwin*)
test -x "`which glibtoolize 2>/dev/null`" && LIBTOOLIZEBIN=glibtoolize || LIBTOOLIZEBIN=libtoolize ;;
*)
LIBTOOLIZEBIN=libtoolize ;; esac
$LIBTOOLIZEBIN --install --force > /dev/null 2>&1
if test $? -ne 0; then
$LIBTOOLIZEBIN --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."
|