forked from compnerd/eds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautogen.bash
executable file
·48 lines (38 loc) · 1.02 KB
/
autogen.bash
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
#!/bin/bash
# Copyright 2010 Saleem Abdulrasool <[email protected]>
: ${ACLOCAL:=aclocal}
: ${AUTOCONF:=autoconf}
: ${AUTOMAKE:=automake}
run()
{
echo ">>> ${@}" >&2
if ! ${@} ; then
echo "failed to configure autotools" >&2
exit 127
fi
}
srcdir=$(dirname "${0}")
[[ -z ${srcdir} ]] && srcdir='.'
( "${AUTOCONF}" --version ) </dev/null >/dev/null 2>&1 || {
echo
echo "You must have autoconf installed to compile ${PROJECT}."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
echo
DIE=1
}
( "${AUTOMAKE}" --version ) </dev/null >/dev/null 2>&1 || {
echo
echo "You must have automake installed to compile ${PROJECT}."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
echo
DIE=1
}
if [[ ${DIE} == 1 ]] ; then
exit 127
fi
run "${ACLOCAL}"
rm -f config.cache
run "${AUTOCONF}"
run "${AUTOMAKE}" --add-missing --copy --foreign