root/trunk/varnish-cache/autogen.sh

Revision 2222, 0.7 KB (checked in by des, 2 years ago)

Add Solaris support. Avoid kshisms.

  • Property svn:executable set to *
  • Property svn:keywords set to Id
Line 
1#!/bin/sh
2#
3# $Id$
4#
5
6warn() {
7        echo "WARNING: $@" 1>&2
8}
9
10case `uname -s` in
11Darwin)
12    LIBTOOLIZE=glibtoolize
13    ;;
14FreeBSD)
15    LIBTOOLIZE=libtoolize
16    ;;
17Linux)
18    LIBTOOLIZE=libtoolize
19    ;;
20SunOS)
21    LIBTOOLIZE=libtoolize
22    ;;
23*)
24    warn "unrecognized platform:" `uname -s`
25    LIBTOOLIZE=libtoolize
26esac
27
28automake_version=`automake --version | tr ' ' '\n' | egrep '^[0-9]\.[0-9a-z.-]+'`
29if [ -z "$automake_version" ] ; then
30    warn "unable to determine automake version"
31else
32    case $automake_version in
33        0.*|1.[0-8]|1.[0-8][.-]*)
34            warn "automake ($automake_version) detected; 1.9 or newer recommended"
35            ;;
36        *)
37            ;;
38    esac
39fi
40
41set -ex
42
43aclocal
44$LIBTOOLIZE --copy --force
45autoheader
46automake --add-missing --copy --foreign
47autoconf
Note: See TracBrowser for help on using the browser.