summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-07-06 09:22:48 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-07-06 09:22:48 +0000
commit4e4001929c5e81f54967a70241728b7f8bd0de63 (patch)
tree5e0e9604267f351ce963d3e8d8d7ee901569cbec /Configure
parent7c7bf78e2115cf1c10624a9f40e98f0bff340218 (diff)
downloadperl-4e4001929c5e81f54967a70241728b7f8bd0de63.tar.gz
Put back the cygwin32 Configure fix of 3582 undone by 3597.
p4raw-id: //depot/cfgperl@3607
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure21
1 files changed, 14 insertions, 7 deletions
diff --git a/Configure b/Configure
index a3ba9b2bd9..22f6dd8978 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 Mon Jul 5 22:55:23 EET DST 1999 [metaconfig 3.0 PL70]
+# Generated on Tue Jul 6 11:02:34 EET DST 1999 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.com)
cat >/tmp/c1$$ <<EOF
@@ -4397,15 +4397,22 @@ $grep "^[ ]*#.*\$wanted" | \
while read cline; do
name=\`echo \$cline | $awk "\$awkprg" | $tr -d '"'\`
case "\$name" in
- *[/\\\\]\$wanted) echo "\$name"; exit 0;;
- *[\\\\/]\$wanted) echo "\$name"; exit 0;;
- *) name='';;
+ *[/\\\\]\$wanted) echo "\$name"; exit 1;;
+ *[\\\\/]\$wanted) echo "\$name"; exit 1;;
+ *) exit 2;;
esac;
done;
+#
+# status = 0: grep returned 0 lines, case statement not executed
+# status = 1: headerfile found
+# status = 2: while loop executed, no headerfile found
+#
+status=\$?
$rm -f foo\$\$.c;
-case "\$name" in
-'') exit 1;;
-esac
+if test \$status -eq 1; then
+ exit 0;
+fi
+exit 1
EOF
chmod +x findhdr