This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
formatting nit
[metaconfig.git] / U / perl / gccvers.U
index eb6af58..d3f2583 100644 (file)
@@ -1,7 +1,7 @@
 ?RCS: $Id$
 ?RCS:
 ?RCS: Copyright (c) 2000, Jarkko Hietaniemi
-?RCS: 
+?RCS:
 ?RCS: You may redistribute only under the terms of the Artistic Licence,
 ?RCS: as specified in the README file that comes with the distribution.
 ?RCS: You may reuse parts of this distribution only within the terms of
@@ -9,7 +9,7 @@
 ?RCS: of the source tree for dist 3.0.
 ?RCS:
 ?MAKE:gccversion gccosandvers gccansipedantic: cat cpp rm +cc \
-       Mcc Myread Guess Options Oldconfig Loc osname osvers run
+       Myread Guess Options Oldconfig Loc osname osvers run
 ?MAKE: -pick add $@ %<
 ?S:gccversion:
 ?S:    If GNU cc (gcc) is used, this variable holds '1' or '2' to
 ?S:    -ansi and -pedantic ccflags for building core files (through
 ?S:    cflags script). (See Porting/pumpkin.pod for full description).
 ?S:.
+?D:gccversion=''
+?D:gccansipedantic=''
 ?T:gccshortvers
 ?T:incdir
 ?T:warn
-?D:gccversion=''
-?D:gccansipedantic=''
+?F:!try
 ?LINT:change cpp
 ?LINT:extern ccflags
 ?LINT:extern ldflags
 ?LINT:extern locincpth
 ?LINT:extern ccname
-?LINT:change ccflags
 ?LINT:change ccname
 ?LINT:change locincpth
+?LINT:set gccansipedantic
 ?X: Check if they have gcc in any guise.
+: Check if we are using GNU gcc and what its version is
 echo " "
 echo "Checking for GNU cc in disguise and/or its version number..." >&4
 $cat >try.c <<EOM
 #include <stdio.h>
 int main() {
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
 #ifdef __VERSION__
        printf("%s\n", __VERSION__);
 #else