[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] -std-c89 not supported

From: <leif.eriksen_at_hpa.com.au>
Date: 2003-06-18 03:40:06 CEST

I think I have patched in the right place. It generates the right Makefile
output for us, when we apply the same patch to configure. I dont have the
experience with autotools and autoconf to make a configure from this
configure.in
 
For testing, we do not have a gcc 3+ box, so if someone could check that I
haven't broken the CFLAGS for that setup, thanx.
 
Here are our version strings
(ismelorct.melb.hpa)/home/le99007/src/subversion-0.24.1> gcc -v
Reading specs from
/usr/i386-glibc21-linux/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc driver version 2.96 20000731 (Red Hat Linux 7.1 2.96-98) executing gcc
version egcs-2.91.66
(ismelorct.melb.hpa)/home/le99007/src/subversion-0.24.1> gcc --version
2.96

* configure.in
    not all versions of gcc support the -std=c89 flag. This change tests the
compiler version and sets the CFLAGS value appropriately.
 
--- configure.in Mon Jun 16 23:20:04 2003
+++ ../configure.in Wed Jun 18 11:03:24 2003
@@ -391,7 +391,12 @@
       if test "$GCC" = "yes"; then
         dnl SVN_DEBUG enables specific features for developer builds
         dnl AP_DEBUG enables specific (Apache) features for developer
builds
- CFLAGS="$CFLAGS -std=c89 -Wpointer-arith -Wwrite-strings -Wshadow
-DSVN_DEBUG -DAP_DEBUG";
+ CFLAGS="-Wpointer-arith -Wwrite-strings -Wshadow -DSVN_DEBUG
-DAP_DEBUG";
+ case `$CC --version 2>/dev/null` in
+ [3].*)
+ CFLAGS="$CFLAGS -std=c89";
+ ;;
+ esac
       fi
     fi
 ])
 

 

**********************************************************************
IMPORTANT
The contents of this e-mail and its attachments are confidential and intended
solely for the use of the individual or entity to whom they are
addressed. If you received this e-mail in error, please notify
the HPA Postmaster, postmaster@hpa.com.au, then delete
the e-mail.

This footnote also confirms that this e-mail message has been swept for
the presence of computer viruses by MimeSweeper. Before opening or
using any attachments, check them for viruses and defects.

Our liability is limited to resupplying any affected attachments.

HPA collects personal information to provide and market our services.
For more information about use, disclosure and access see our Privacy
Policy at www.hpa.com.au
**********************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 18 03:41:01 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.