-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathautogen.sh
executable file
·69 lines (54 loc) · 1.11 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
#!/bin/sh
# Run all necessary autotools
if ! autoconf --version >/dev/null; then
echo No autoconf found.
exit 1
fi
if ! automake --version >/dev/null; then
echo No automake found.
exit 1
fi
if ! autoheader --version >/dev/null; then
echo No autoheader found.
exit 1
fi
if ! libtoolize --version >/dev/null; then
echo No libtoolize found.
exit 1
fi
if ! aclocal --version >/dev/null; then
echo No aclocal found.
exit 1
fi
if ! git --version >/dev/null; then
echo No git found.
exit 1
fi
############
if ! libtoolize --force; then
echo Error running libtoolize.
exit 1
fi
if ! aclocal; then
echo Error running aclocal.
exit 1
fi
if ! autoheader; then
echo Error running autoheader.
exit 1
fi
if ! git whatchanged >ChangeLog; then
echo Error generating ChangeLog using git.
exit
fi
if ! automake --add-missing; then
echo Error running automake.
exit 1
fi
if ! autoconf; then
echo Error running autoconf.
exit 1
fi
CONF=--enable-maintainer-mode
echo Running configure with options $CONF $@
sh configure --enable-maintainer-mode $@