-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathautogen.sh
executable file
·57 lines (41 loc) · 1.09 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
#! /bin/sh
echo aclocal...
(aclocal --version) < /dev/null > /dev/null 2>&1 || {
echo aclocal not found
exit 1
}
aclocal -I m4 $ACLOCAL_FLAGS
echo autoheader...
(autoheader --version) < /dev/null > /dev/null 2>&1 || {
echo autoheader not found
exit 1
}
autoheader
echo libtoolize...
(libtoolize --version || glibtoolize --version) < /dev/null > /dev/null 2>&1 || {
echo libtoolize not found
exit 1
}
#try with recursive first, then without
libtoolize --automake --copy --force --ltdl --recursive --subproject || libtoolize --automake --copy --force --ltdl || glibtoolize --automake --copy --force --ltdl --recursive || glibtoolize --automake --copy --force --ltdl
echo automake...
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo automake not found
exit 1
}
automake --add-missing --copy --gnu
echo autoconf...
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo autoconf not found
exit 1
}
autoconf
echo removing config.cache...
rm -f config.cache
echo autoreconf in libltdl
cd libltdl
autoreconf
cd ..
echo
echo ready to configure
exit 0