forked from libyal/libfvalue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.sh
executable file
·136 lines (108 loc) · 1.99 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#!/bin/sh
# Script to generate ./configure using the autotools
#
# Version: 20160106
EXIT_SUCCESS=0;
EXIT_FAILURE=1;
BINDIR="/usr/bin";
if ! test -x "${BINDIR}/pkg-config";
then
BINDIR="/usr/local/bin";
fi
if ! test -x "${BINDIR}/pkg-config";
then
BINDIR="/usr/local/bin";
fi
if ! test -x "${BINDIR}/pkg-config";
then
# Default location of MacPorts installed binaries.
BINDIR="/opt/local/bin";
fi
if ! test -x "${BINDIR}/pkg-config";
then
# Default location of MSYS-MinGW installed binaries.
BINDIR="/mingw/bin";
fi
PKGCONFIG="${BINDIR}/pkg-config";
if ! test -x "${PKGCONFIG}";
then
echo "Unable to find: pkg-config";
exit ${EXIT_FAILURE};
fi
ACLOCAL="${BINDIR}/aclocal";
AUTOCONF="${BINDIR}/autoconf";
AUTOHEADER="${BINDIR}/autoheader";
AUTOMAKE="${BINDIR}/automake";
AUTOPOINT="${BINDIR}/autopoint";
AUTORECONF="${BINDIR}/autoreconf";
LIBTOOLIZE="${BINDIR}/libtoolize";
if test -x "${AUTORECONF}";
then
${AUTORECONF} --force --install
if test $? -ne 0;
then
exit $?;
fi
else
if ! test -x "${ACLOCAL}";
then
echo "Unable to find: aclocal";
exit ${EXIT_FAILURE};
fi
if ! test -x "${AUTOCONF}";
then
echo "Unable to find: autoconf";
exit ${EXIT_FAILURE};
fi
if ! test -x "${AUTOHEADER}";
then
echo "Unable to find: autoheader";
exit ${EXIT_FAILURE};
fi
if ! test -x "${AUTOMAKE}";
then
echo "Unable to find: automake";
exit ${EXIT_FAILURE};
fi
if ! test -x "${AUTOPOINT}";
then
echo "Unable to find: autopoint";
exit ${EXIT_FAILURE};
fi
if ! test -x "${LIBTOOLIZE}";
then
echo "Unable to find: libtoolize";
exit ${EXIT_FAILURE};
fi
${AUTOPOINT} --force;
if test $? -ne 0;
then
exit $?;
fi
${ACLOCAL} --force -I m4;
if test $? -ne 0;
then
exit $?;
fi
${LIBTOOLIZE} --force;
if test $? -ne 0;
then
exit $?;
fi
${AUTOHEADER} --force;
if test $? -ne 0;
then
exit $?;
fi
${AUTOCONF} --force;
if test $? -ne 0;
then
exit $?;
fi
${AUTOMAKE} --force --add-missing;
if test $? -ne 0;
then
exit $?;
fi
fi
exit ${EXIT_SUCCESS};