source: libcaca/branches/0.9/bootstrap @ 3273

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