summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-07-05 07:28:59 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-07-05 07:28:59 +0000
commit8ba9dee36046939ca96a462c19c93dee3e0d9d52 (patch)
treec7fa86ab6faeb14a87ce6da74ed5bb78320f73b5 /Configure
parent86959918b69bd7566746d776574341f410f68755 (diff)
parent59c10aa22854831f97f41f8f8237b4d9b2426b0f (diff)
downloadperl-8ba9dee36046939ca96a462c19c93dee3e0d9d52.tar.gz
Integrate with mainperl.
p4raw-id: //depot/cfgperl@3585
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure20
1 files changed, 14 insertions, 6 deletions
diff --git a/Configure b/Configure
index 11b119b477..1901789b0a 100755
--- a/Configure
+++ b/Configure
@@ -4369,18 +4369,26 @@ $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
+
: define an alternate in-header-list? function
inhdr='echo " "; td=$define; tu=$undef; yyy=$@;
cont=true; xxf="echo \"<\$1> found.\" >&4";