source: libcaca/trunk/bootstrap @ 355

Last change on this file since 355 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
RevLine 
[17]1#! /bin/sh
[71]2
[189]3##  bootstrap file for libcaca -- Sam Hocevar <sam@zoy.org>
[71]4##  $Id: bootstrap 189 2003-11-16 12:07:52Z sam $
5
[17]6set -x
[71]7set -e
[17]8
[71]9# Get a sane environment, just in case
10LANG=C
11export LANG
12CYGWIN=binmode
13export CYGWIN
[17]14
15# Check for automake
[71]16amvers="no"
17if automake-1.7 --version >/dev/null 2>&1; then
[17]18  amvers="-1.7"
[71]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"
[17]27  else
[71]28    amvers=""
[17]29  fi
30fi
31
[71]32if test "$amvers" = "no"; then
[17]33  set +x
[71]34  echo "$0: you need automake version 1.5 or later"
[17]35  exit 1
36fi
37
[71]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
[73]40rm -Rf autom4te.cache
[71]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.