7 |
|
|
8 |
|
PROG="Basilisk II" |
9 |
|
|
10 |
+ |
# Check how echo works in this /bin/sh |
11 |
+ |
case `echo -n` in |
12 |
+ |
-n) _echo_n= _echo_c='\c';; |
13 |
+ |
*) _echo_n=-n _echo_c=;; |
14 |
+ |
esac |
15 |
+ |
|
16 |
|
(autoconf --version) < /dev/null > /dev/null 2>&1 || { |
17 |
|
echo |
18 |
|
echo "You must have autoconf installed to compile $PROG." |
21 |
|
DIE=1 |
22 |
|
} |
23 |
|
|
24 |
+ |
(aclocal --version) < /dev/null > /dev/null 2>&1 || { |
25 |
+ |
echo |
26 |
+ |
echo "**Error**: Missing aclocal. The version of automake" |
27 |
+ |
echo "installed doesn't appear recent enough." |
28 |
+ |
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz" |
29 |
+ |
echo "(or a newer version if it is available)" |
30 |
+ |
DIE=1 |
31 |
+ |
} |
32 |
+ |
|
33 |
|
if test "$DIE" -eq 1; then |
34 |
|
exit 1 |
35 |
|
fi |
36 |
|
|
37 |
< |
if test -z "$*"; then |
38 |
< |
echo "I am going to run ./configure with no arguments - if you wish " |
39 |
< |
echo "to pass any to it, please specify them on the $0 command line." |
37 |
> |
aclocalinclude="$ACLOCAL_FLAGS"; \ |
38 |
> |
(echo $_echo_n " + Running aclocal: $_echo_c"; \ |
39 |
> |
aclocal $aclocalinclude; \ |
40 |
> |
echo "done.") && \ |
41 |
> |
(echo $_echo_n " + Running autoheader: $_echo_c"; \ |
42 |
> |
autoheader; \ |
43 |
> |
echo "done.") && \ |
44 |
> |
(echo $_echo_n " + Running autoconf: $_echo_c"; \ |
45 |
> |
autoconf; \ |
46 |
> |
echo "done.") |
47 |
> |
|
48 |
> |
rm -f config.cache |
49 |
> |
|
50 |
> |
if [ x"$NO_CONFIGURE" = "x" ]; then |
51 |
> |
echo " + Running 'configure $@':" |
52 |
> |
if [ -z "$*" ]; then |
53 |
> |
echo " ** If you wish to pass arguments to ./configure, please" |
54 |
> |
echo " ** specify them on the command line." |
55 |
> |
fi |
56 |
> |
./configure "$@" |
57 |
|
fi |
26 |
– |
|
27 |
– |
for dir in . |
28 |
– |
do |
29 |
– |
echo processing $dir |
30 |
– |
(cd $dir; \ |
31 |
– |
aclocalinclude="$ACLOCAL_FLAGS"; \ |
32 |
– |
aclocal $aclocalinclude; \ |
33 |
– |
autoheader; autoconf) |
34 |
– |
done |
35 |
– |
|
36 |
– |
./configure "$@" |