summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorRobin Barker <RMBarker@cpan.org>2002-02-15 12:14:39 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-15 15:00:01 +0000
commit68b017694cf07e3fdd0ee21ed6f069a3fbc2ceec (patch)
tree174567d21bfcf1ff4fc2e6f9315a30da02589b05 /Configure
parentc093de0b1a4069c7a5652962616100091b2f6475 (diff)
downloadperl-68b017694cf07e3fdd0ee21ed6f069a3fbc2ceec.tar.gz
Re: [PATCH hints/solaris_2.sh]; was Re: [PATCH Configure] Interaction of cc.cbu and checkcc
Message-Id: <200202151214.MAA26466@tempest.npl.co.uk> Split checking-for-gcc and checking-for-cc. p4raw-id: //depot/perl@14707
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure37
1 files changed, 31 insertions, 6 deletions
diff --git a/Configure b/Configure
index a56d56a104..7c5a3c8405 100755
--- a/Configure
+++ b/Configure
@@ -20,7 +20,7 @@
# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Fri Feb 15 01:22:14 EET 2002 [metaconfig 3.0 PL70]
+# Generated on Fri Feb 15 17:48:38 EET 2002 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >c1$$ <<EOF
@@ -2246,10 +2246,10 @@ FOO
;;
esac
-cat <<EOS >checkcc
+cat <<EOS >trygcc
$startsh
EOS
-cat <<'EOSC' >>checkcc
+cat <<'EOSC' >>trygcc
case "$cc" in
'') ;;
*) $rm -f try try.*
@@ -2291,15 +2291,37 @@ EOM
esac
fi
fi
+ fi
+ $rm -f try try.*
+ ;;
+esac
+EOSC
+
+cat <<EOS >checkcc
+$startsh
+EOS
+cat <<'EOSC' >>checkcc
+case "$cc" in
+'') ;;
+*) $rm -f try try.*
+ $cat >try.c <<EOM
+int main(int argc, char *argv[]) {
+ return 0;
+}
+EOM
+ if $cc -o try $ccflags $ldflags try.c; then
+ :
+ else
if $test X"$despair" = Xyes; then
- $cat >&4 <<EOM
+ echo "Uh-oh, the C compiler '$cc' doesn't seem to be working." >&4
+ fi
+ $cat >&4 <<EOM
You need to find a working C compiler.
Either (purchase and) install the C compiler supplied by your OS vendor,
or for a free C compiler try http://gcc.gnu.org/
I cannot continue any further, aborting.
EOM
- exit 1
- fi
+ exit 1
fi
$rm -f try try.*
;;
@@ -3542,6 +3564,9 @@ esac
rp="Use which C compiler?"
. ./myread
cc="$ans"
+
+: See if they have not cc but they do have gcc
+. ./trygcc
: Look for a hint-file generated 'call-back-unit'. Now that the
: user has specified the compiler, we may need to set or change some
: other defaults.