Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 7425 invoked from network); 17 Sep 2004 19:55:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Sep 2004 19:55:33 -0000 Received: (qmail 54773 invoked by uid 500); 17 Sep 2004 19:55:32 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 54520 invoked by uid 500); 17 Sep 2004 19:55:30 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 54507 invoked by uid 99); 17 Sep 2004 19:55:30 -0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Message-ID: <028001c49cf0$40ed8ad0$78d96f83@robinson.cam.ac.uk> From: "Max Bowsher" To: References: <1095444490.23198.9.camel@localhost> <20040917192153.GA11593@redhat.com> Subject: Re: Fwd: clean OSX build -- compile error. Date: Fri, 17 Sep 2004 20:55:12 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ X-Cam-AntiVirus: No virus found X-Cam-SpamDetails: Not scanned X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Joe Orton wrote: > Portable software will not use -std=c89 by default, because it's asking > the compiler to be less lenient than normal. The fact that this > eventually found a bug in a system header on some platform is not really > very surprising. Don't use -std=c89 if you don't want to risk breaking > stuff. Agree. > SVN only seems to enable this for --enable-maintainer-mode with: > > case "$host" in > *freebsd*|*linux*) > CFLAGS="$CFLAGS -std=c89" > ;; > esac > > so I'm not sure why Ben is getting it on Mac OS anyway. The above code snippet is old. Now we do an AC_TRY_COMPILE to find out if -std=c89 works. We will be fixing this by #including in our AC_TRY_COMPILE call. Max.