develooper Front page | perl.perl5.porters | Postings from September 2000

Re: [ID 20000902.003] [PATCH 6962] Configure -- Assignment wrong way around?

Thread Previous
From:
Jarkko Hietaniemi
Date:
September 2, 2000 08:24
Subject:
Re: [ID 20000902.003] [PATCH 6962] Configure -- Assignment wrong way around?
Message ID:
20000902102400.A3221@chaos.wustl.edu
On Sat, Sep 02, 2000 at 11:39:23AM +0200, Philip Newton wrote:
> I assume the following assignments are back-to-front -- that of $cc is
> set to anything except '', it should be used for modelcc; if it is blank,
> then use 'cc' for modelcc.
> 
> --- Configure~	Sat Sep  2 08:10:00 2000
> +++ Configure	Sat Sep  2 10:16:38 2000
> @@ -2916,8 +2916,8 @@
>  }
>  EOP
>  	case "$cc" in
> -	'') modelcc="$cc" ;;
> -	*) modelcc="cc" ;;
> +	'') modelcc="cc" ;;
> +	*) modelcc="$cc" ;;
>  	esac
>  	( $modelcc -o pdp11 pdp11.c ) >/dev/null 2>&1
>  	if $test -f pdp11 && ./pdp11 2>/dev/null; then
> 
> End of patch.

Well, I dunno...I don't want to break things for Perl PDP users :-)

> Applies to perl 5.7.0 build 6962.
> 
> Cheers,
> Philip

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About