From 0e79cbf8ba1bd3aa2ae8cc552a73b66a13bd4315 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 29 Apr 2005 00:53:04 +0000 Subject: Updated for test gcc4 compatibility git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1253 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'configure') diff --git a/configure b/configure index fd532cb51..3bf91a2ca 100755 --- a/configure +++ b/configure @@ -364,10 +364,17 @@ sub writefiles { #define MAXBUF 514 EOF - if ($config{GCCVER} == 3) { + if ($config{GCCVER} > 3) { print FILEHANDLE "#define GCC3\n"; - if ($config{GCC34} > 3) { - print FILEHANDLE "#define GCC34\n"; + print FILEHANDLE "#define GCC34\n"; + } + else + { + if ($config{GCCVER} == 3) { + print FILEHANDLE "#define GCC3\n"; + if ($config{GCC34} > 3) { + print FILEHANDLE "#define GCC34\n"; + } } } if ($config{HAS_STRLCPY} eq "true") { -- cgit v1.2.3