forked from davewongillies/gmameui
-
Notifications
You must be signed in to change notification settings - Fork 4
/
autogen.sh
executable file
·70 lines (57 loc) · 1.64 KB
/
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
64
65
66
67
68
69
70
#!/bin/sh
ACLOCAL_FLAGS="-I m4"
SETUP_GETTEXT=./setup-gettext
($SETUP_GETTEXT --gettext-tool) < /dev/null > /dev/null 2>&1 || {
echo;
echo "You must have gettext installed to compile GMAMEUI.";
echo;
exit;
}
(intltoolize --version) < /dev/null > /dev/null 2>&1 || {
echo;
echo "You must have intltool installed to compile GMAMEUI.";
echo;
exit;
}
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo;
echo "You must have automake installed to compile GMAMEUI";
echo;
exit;
}
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo;
echo "You must have autoconf installed to compile GMAMEUI";
echo;
exit;
}
echo "Generating configuration files for GMAMEUI, please wait...."
echo;
# Backup the po/ChangeLog. This should prevent the annoying
# gettext ChangeLog modifications.
cp -p po/ChangeLog po/ChangeLog.save
echo "Running gettextize, please ignore non-fatal messages...."
$SETUP_GETTEXT
intltoolize --force --copy --automake
# Restore the po/ChangeLog file.
mv po/ChangeLog.save po/ChangeLog
# Add other directories to this list if people continue to experience
# brokennesses ... Obviously the real answer is for them to fix it
# themselves, but for Luke's sake we have this.
for dir in "/usr/local/share/aclocal"
do
if test -d $dir ; then
ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $dir"
fi
done
echo "Running aclocal $ACLOCAL_FLAGS ..."
aclocal $ACLOCAL_FLAGS || exit;
echo "Running autoheader..."
autoheader || exit;
echo "Running automake --add-missing --copy ..."
automake --add-missing --copy;
echo "Running autoconf ..."
autoconf || exit;
echo "Running automake ..."
automake || exit;
echo "Now you can run ./configure"