diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-05-28 13:14:02 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-05-28 13:14:02 +0000 |
commit | 76589481ae6732624713d707581bc3c71f1dde5b (patch) | |
tree | 981bfc9907c2bb1ea70ce275fea438912ad9a11b /Configure | |
parent | 38378574b9a8ff09020260d6092054ca334507b6 (diff) | |
download | perl-76589481ae6732624713d707581bc3c71f1dde5b.tar.gz |
gcc 3 defensiveness from H. Merijn B and Rafael.
p4raw-id: //depot/perl@16831
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Sat May 25 22:51:20 EET DST 2002 [metaconfig 3.0 PL70] +# Generated on Tue May 28 16:40:58 EET DST 2002 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <<EOF @@ -3766,6 +3766,17 @@ case "$ccname" in '') ccname="$cc" ;; esac +# gcc 3.1 complains about adding -Idirectories that it already knows about, +# so we will take those off from locincpth. +case "$gccversion" in +3*) + echo "main(){}">try.c + for incdir in `$cc -v -c try.c 2>&1 | \ + sed '1,/^#include <\.\.\.>/d;/^End of search list/,$d;s/^ //'` ; do + locincpth=`echo $locincpth | sed s!$incdir!!` + done + $rm -f try try.* +esac : decide how portable to be. Allow command line overrides. case "$d_portable" in |