source: pwntcha/trunk/bootstrap @ 415

Last change on this file since 415 was 381, checked in by Sam Hocevar, 16 years ago
  • first pwntcha commit!
  • 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
6set -x
7set -e
8
9# Get a sane environment, just in case
10LANG=C
11export LANG
12CYGWIN=binmode
13export CYGWIN
14
15# Check for automake
16amvers="no"
17if automake-1.9 --version >/dev/null 2>&1; then
18  amvers="-1.9"
19elif automake-1.8 --version >/dev/null 2>&1; then
20  amvers="-1.8"
21elif automake-1.7 --version >/dev/null 2>&1; then
22  amvers="-1.7"
23elif automake-1.6 --version >/dev/null 2>&1; then
24  amvers="-1.6"
25elif automake-1.5 --version >/dev/null 2>&1; then
26  amvers="-1.5"
27elif 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
34fi
35
36if test "$amvers" = "no"; then
37  set +x
38  echo "$0: you need automake version 1.5 or later"
39  exit 1
40fi
41
42# Remove old cruft
43rm -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
44rm -Rf autom4te.cache autotools
45mkdir autotools
46
47aclocal${amvers}
48autoconf
49autoheader
50automake${amvers} --add-missing --copy
51
Note: See TracBrowser for help on using the repository browser.