Message-ID: 200006211431.KAA13316@thor.sdrc.com
To: ren@spans.gscc.nrcan.gc.ca (Richard E Nairn)
Subject: Re: Configure for linux DSO (v3.5.5)Resent-Sender: info-cvs-request@gnu.org
From: larry.jones@sdrc.com (Larry Jones)
Date: Wed, 21 Jun 2000 10:31:57 -0400 (EDT)
Cc: tiff@olympiakos.com
In-Reply-To: <20000620155153.C20784@spans.localdomain> from "Richard E Nairn" at Jun 20, 0 03:51:53 pm
Sender: owner-tiff@olympiakos.com


Richard E Nairn writes:
>
> diff -ur tiff-v3.5.5/configure tiff-v3.5.5-old/configure
> --- tiff-v3.5.5/configure     Mon Mar 20 11:20:42 2000
> +++ tiff-v3.5.5-old/configure Tue Jun 20 15:42:30 2000
> @@ -1156,7 +1156,7 @@
>       TIFFLIBREF='-L${DEPTH}/libtiff -ltiff'
>       ;;
>      *-linux*)
> -     if [ -r /lib/libc.so.6 || -r /lib/libc.so.5 ]; then
> +     if [ -r /lib/libc.so.6 -o  -r /lib/libc.so.5 ]; then
>           DSOSUF=so.${DIST_MAJOR}
>           DSOSUF_VERSION=${DSOSUF}.${DIST_MINOR}.${DIST_ALPHA}
>           LIBCOPTS='-fPIC'

A better fix is:

        if [ -r /lib/libc.so.6 ] || [ -r /lib/libc.so.5 ]; then

The boolean test operators (-a and -o) operators have screwy precedences
on some systems, their grammar is highly ambiguous which can lead to
very unpleasant surprises, and they're not supported by POSIX.

-Larry Jones

Start tying the sheets together.  We'll go out the window. -- Calvin

