From: Gurusamy Sarathy <gsar@cpan.org>
Date: Fri, 28 Apr 2000 03:47:29 +0000 (+0000)
Subject: allow Configure -S to run non-interactively (spotted by Greg Hudson
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=aaeb8e512e8e9e1416ee9b8dbb637dc3114c310c;p=p5sagit%2Fp5-mst-13.2.git

allow Configure -S to run non-interactively (spotted by Greg Hudson
<ghudson@mit.edu>)

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

diff --git a/Configure b/Configure
index 9538137..7c5c134 100755
--- a/Configure
+++ b/Configure
@@ -1341,10 +1341,15 @@ esac
 case "$fastread$alldone" in
 yescont|yesexit) ;;
 *)
-	if test ! -t 0; then
-		echo "Say 'sh Configure', not 'sh <Configure'"
-		exit 1
-	fi
+	case "$extractsh" in
+	true) ;;
+	*)
+		if test ! -t 0; then
+			echo "Say 'sh Configure', not 'sh <Configure'"
+			exit 1
+		fi
+		;;
+	esac
 	;;
 esac