Last change
on this file since 1594 was
381,
checked in by Sam Hocevar, 18 years ago
|
|
-
Property svn:executable set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | #! /bin/sh |
---|
2 | |
---|
3 | ## bootstrap file for Elk -- Sam Hocevar <sam@zoy.org> |
---|
4 | ## $Id: bootstrap 253 2004-08-09 20:08:52Z sam $ |
---|
5 | |
---|
6 | set -x |
---|
7 | set -e |
---|
8 | |
---|
9 | # Get a sane environment, just in case |
---|
10 | LANG=C |
---|
11 | export LANG |
---|
12 | CYGWIN=binmode |
---|
13 | export CYGWIN |
---|
14 | |
---|
15 | # Check for automake |
---|
16 | amvers="no" |
---|
17 | if automake-1.9 --version >/dev/null 2>&1; then |
---|
18 | amvers="-1.9" |
---|
19 | elif automake-1.8 --version >/dev/null 2>&1; then |
---|
20 | amvers="-1.8" |
---|
21 | elif automake-1.7 --version >/dev/null 2>&1; then |
---|
22 | amvers="-1.7" |
---|
23 | elif automake-1.6 --version >/dev/null 2>&1; then |
---|
24 | amvers="-1.6" |
---|
25 | elif automake-1.5 --version >/dev/null 2>&1; then |
---|
26 | amvers="-1.5" |
---|
27 | elif automake --version > /dev/null 2>&1; then |
---|
28 | amvers="`automake --version | sed -e '1s/[^0-9]*//' -e q`" |
---|
29 | if expr "$amvers" "<" "1.5" > /dev/null 2>&1; then |
---|
30 | amvers="no" |
---|
31 | else |
---|
32 | amvers="" |
---|
33 | fi |
---|
34 | fi |
---|
35 | |
---|
36 | if test "$amvers" = "no"; then |
---|
37 | set +x |
---|
38 | echo "$0: you need automake version 1.5 or later" |
---|
39 | exit 1 |
---|
40 | fi |
---|
41 | |
---|
42 | # Remove old cruft |
---|
43 | rm -f aclocal.m4 configure config.guess config.log config.sub config.cache config.h.in config.h compile ltmain.sh libtool ltconfig missing mkinstalldirs depcomp install-sh INSTALL |
---|
44 | rm -Rf autom4te.cache autotools |
---|
45 | mkdir autotools |
---|
46 | |
---|
47 | aclocal${amvers} |
---|
48 | autoconf |
---|
49 | autoheader |
---|
50 | automake${amvers} --add-missing --copy |
---|
51 | |
---|
Note: See
TracBrowser
for help on using the repository browser.