-
Notifications
You must be signed in to change notification settings - Fork 7
/
autogen.sh
executable file
·70 lines (55 loc) · 1.84 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
cd `dirname $0`
TOPDIR=`pwd`
echo
echo "Bootstrapping physfs ..."
cd ./src/physfs
sh bootstrap
cd $TOPDIR
echo "Generating build information ..."
aclocalinclude="$ACLOCAL_FLAGS"
echo "Running libtoolize ..."
libtoolize --copy --force --automake || exit 1
echo "Running aclocal $aclocalinclude ..."
aclocal $aclocalinclude || {
echo
echo "**Error**: aclocal failed. This may mean that you have not"
echo "installed all of the packages you need, or you may need to"
echo "set ACLOCAL_FLAGS to include \"-I \$prefix/share/aclocal\""
echo "for the prefix where you installed the packages whose"
echo "macros were not found"
exit 1
}
echo "Running autoheader ..."
autoheader || ( echo "***ERROR*** autoheader failed." ; exit 1 )
echo "Running automake ..."
automake -c -a --foreign || ( echo "***ERROR*** automake failed." ; exit 1 )
echo "Running autoconf ..."
autoconf || ( echo "***ERROR*** autoconf failed." ; exit 1 )
echo
echo "Checking for tools needed to maintain the package ..."
echo
echo "Checking for \"zip\" ..."
( zip -h >/dev/null 2>&1 ) || {
echo "***ERROR*** zip utility not found!"
echo "You need the zip utility to create theme packages"
exit 1
}
echo "Checking for \"unix2dos\" ..."
( unix2dos -h >/dev/null 2>&1 ) || {
echo "***WARNING** unix2dos not found!"
echo "You will be unable to convert VisualC workspace files"
echo "(Please don't distribute unconverted VisualC projects!)"
}
echo "Checking for \"doxygen\" ..."
( which doxygen >/dev/null 2>&1 ) || {
echo "***WARNING** doxygen not found!"
echo "You will be unable to generate the API documentation"
}
echo "Checking for \"dot\" ..."
( which dot >/dev/null 2>&1 ) || {
echo "***WARNING** graphviz not found!"
echo "Class diagrams will be disabled in your API documentation"
}
echo
echo "Please run ./configure now."