source: libcaca/trunk/bootstrap @ 367

Last change on this file since 367 was 367, checked in by Sam Hocevar, 16 years ago
  • bootstrap: + Support for automake 1.8.
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1#! /bin/sh
2
3##  bootstrap file for libcaca -- Sam Hocevar <sam@zoy.org>
4##  $Id: bootstrap 367 2004-07-05 12:08:49Z 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.8 --version >/dev/null 2>&1; then
18  amvers="-1.8"
19elif automake-1.7 --version >/dev/null 2>&1; then
20  amvers="-1.7"
21elif automake-1.6 --version >/dev/null 2>&1; then
22  amvers="-1.6"
23elif automake-1.5 --version >/dev/null 2>&1; then
24  amvers="-1.5"
25elif automake --version > /dev/null 2>&1; then
26  amvers="`automake --version | sed -e '1s/[^0-9]*//' -e q`"
27  if expr "$amvers" "<" "1.5" > /dev/null 2>&1; then
28    amvers="no"
29  else
30    amvers=""
31  fi
32fi
33
34if test "$amvers" = "no"; then
35  set +x
36  echo "$0: you need automake version 1.5 or later"
37  exit 1
38fi
39
40# Remove old cruft
41rm -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
42rm -Rf autom4te.cache
43(cd autotools && rm -f config.guess config.sub missing mkinstalldirs compile ltmain.sh depcomp install-sh)
44
45aclocal${amvers}
46autoconf
47autoheader
48automake${amvers} --add-missing --copy
49
Note: See TracBrowser for help on using the repository browser.