Changeset 1720

Show
Ignore:
Timestamp:
07/19/07 13:17:59 (3 years ago)
Author:
des
Message:

Adapt for use on MacOS X / Darwin, which has GNU libtool installed as
glibtool, and has a version of automake 1.6 which does not exhibit the
bug I've observed on other platforms.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/varnish-cache/autogen.sh

    r1399 r1720  
    44# 
    55 
    6 if [ -d /usr/local/gnu-autotools/bin ] ; then 
    7         PATH=/usr/local/gnu-autotools/bin:${PATH} 
    8         export PATH 
    9         FIX_BROKEN_FREEBSD_PORTS="-I /usr/local/share/aclocal" 
    10 fi 
     6warn() { 
     7        echo "WARNING: $@" 1>&2 
     8} 
     9 
     10case `uname -s` in 
     11Darwin) 
     12        LIBTOOLIZE=glibtoolize 
     13        ;; 
     14FreeBSD) 
     15        LIBTOOLIZE=libtoolize 
     16        if [ -d /usr/local/gnu-autotools/bin ] ; then 
     17                PATH=/usr/local/gnu-autotools/bin:${PATH} 
     18                export PATH 
     19                FIX_BROKEN_FREEBSD_PORTS="-I /usr/local/share/aclocal" 
     20        fi 
     21        ;; 
     22Linux) 
     23        LIBTOOLIZE=libtoolize 
     24        ;; 
     25esac 
    1126 
    1227automake_version=$(automake --version | tr ' ' '\n' | egrep '^[0-9]\.[0-9a-z.-]+') 
    1328if [ -z "$automake_version" ] ; then 
    14     echo "unable to determine automake version" 
    15     exit 1 
     29    warn "unable to determine automake version" 
    1630else 
    1731    case $automake_version in 
    1832        0.*|1.[0-8]|1.[0-8][.-]*) 
    19             echo "your version of automake ($automake_version) is too old;" \ 
    20                 "you need 1.9 or newer." 
    21             exit 1 
     33            warn "automake ($automake_version) detected; 1.9 or newer recommended" 
    2234            ;; 
    2335        *) 
     
    2941 
    3042aclocal ${FIX_BROKEN_FREEBSD_PORTS} 
    31 libtoolize --copy --force 
     43$LIBTOOLIZE --copy --force 
    3244autoheader 
    3345automake --add-missing --copy --foreign