From: Gurusamy Sarathy <gsar@cpan.org>
Date: Sat, 4 Dec 1999 22:05:00 +0000 (+0000)
Subject: Configure tweak from Peter Prymmer
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=53d4e464026d47e82a58aab9b922fdc92a91a7f3;p=p5sagit%2Fp5-mst-13.2.git

Configure tweak from Peter Prymmer

p4raw-id: //depot/perl@4644
---

diff --git a/Configure b/Configure
index b448793..2f74812 100755
--- a/Configure
+++ b/Configure
@@ -12856,10 +12856,17 @@ esac
 : Remove SIGSTKSIZE used by Linux.
 : Remove SIGSTKSZ used by Posix.
 : Remove SIGTYP void lines used by OS2.
-xxx=`echo '#include <signal.h>' |
+if [ "X$fieldn" = X ]; then
+    xxx=`echo '#include <signal.h>' |
+	$cppstdin $cppminus $cppflags 2>/dev/null |
+	$grep '^[ 	]*#.*include' | 
+	$sed 's!"!!g' | $sort | $uniq`
+else
+    xxx=`echo '#include <signal.h>' |
 	$cppstdin $cppminus $cppflags 2>/dev/null |
 	$grep '^[ 	]*#.*include' | 
 	$awk "{print \\$$fieldn}" | $sed 's!"!!g' | $sort | $uniq`
+fi
 : Check this list of files to be sure we have parsed the cpp output ok.
 : This will also avoid potentially non-existent files, such 
 : as ../foo/bar.h