-
Notifications
You must be signed in to change notification settings - Fork 2
/
real-autogen.sh
executable file
·63 lines (53 loc) · 1.7 KB
/
real-autogen.sh
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
63
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
if test `uname` = "Darwin"; then
LIBTOOL=glibtool;
LIBTOOLIZE=glibtoolize
else
LIBTOOL=libtool
LIBTOOLIZE=libtoolize
fi
srcdir=`dirname $0`
if test -z "$srcdir"; then srcdir=.; fi
DIE=0
(autoconf --version && autoheader --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have autoconf installed to compile Gwydion Dylan."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
}
(aclocal --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have automake installed to compile Gwydion Dylan."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
}
($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have $LIBTOOL installed to compile Gwydion Dylan."
if test $LIBTOOL = glibtool; then
echo "This should have come with Darwin/MacOS X"
else
echo "Get ftp://ftp.gnu.org/pub/gnu/libtool/libtool-1.3.2.tar.gz"
echo "(or a newer version if it is available)"
fi
DIE=1
}
if test "$DIE" -eq 1; then
exit 1
fi
(test -d $srcdir/d2c && test -d $srcdir/mindy) || {
echo "I can't find the Gwydion Dylan source directory in $srcdir"
exit 1
}
echo processing...
( cd $srcdir
aclocal $ACLOCAL_FLAGS
# we just run automake for copying in missing files. Ignore errors.
automake --add-missing
$LIBTOOLIZE --install --force --copy >/dev/null 2>&1 \
|| $LIBTOOLIZE --force --copy
autoheader
autoconf )