From: Andy Dougherty Date: Fri, 15 Jun 2007 12:05:36 +0000 (-0400) Subject: Re: [perl #43216] Perl 5.8.8 does not compile on Solaris 8 with-Dusethreads X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dce40316f42a4668ccea2765cda9168a586b4ffc;p=p5sagit%2Fp5-mst-13.2.git Re: [perl #43216] Perl 5.8.8 does not compile on Solaris 8 with-Dusethreads Message-ID: p4raw-id: //depot/perl@31395 --- diff --git a/Configure b/Configure index 9a3e436..b54ff9d 100755 --- a/Configure +++ b/Configure @@ -26,7 +26,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Wed Jun 13 22:14:49 CEST 2007 [metaconfig 3.0 PL70] +# Generated on Sat Jun 16 07:55:39 CEST 2007 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <&1`" in - *gcc*) trygcc=no ;; - esac + # Skip this test because it gives a false match on output like: + # ./trygcc: line 23: cc: command not found + # case "`$cc -v -c try.c 2>&1`" in + # *gcc*) trygcc=no ;; + # esac if $test X"$trygcc" = Xyes; then if gcc -o try -c try.c; then echo " " echo "You seem to have a working gcc, though." >&4 - rp="Would you like to use it?" - dflt=y + # Switching compilers may undo the work of hints files. + # The most common problem is -D_REENTRANT for threads. + # This heuristic catches that case, but gets false positives + # if -Dusethreads was not actually specified. Better to + # bail out here with a useful message than fail + # mysteriously later. Should we perhaps just try to + # re-invoke Configure -Dcc=gcc config_args ? + if $test -f usethreads.cbu; then + $cat >&4 <&4 <