summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorJess Robinson <castaway@desert-island.me.uk>2012-12-29 21:23:01 +0000
committerBrian Fraser <fraserbn@gmail.com>2014-01-17 11:35:46 -0300
commit88e1e9777949edaf7283b2a9806de221818ff28f (patch)
treebe500f454f56d6298f3d724ba9aed4722a2e6ff2 /Configure
parent083b43b68e72059c75d05f62a6183e677a4a0ace (diff)
downloadperl-88e1e9777949edaf7283b2a9806de221818ff28f.tar.gz
Fix two Configure tests when targethost is set
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure15
1 files changed, 13 insertions, 2 deletions
diff --git a/Configure b/Configure
index f6fc4c90c8..2b601492e8 100755
--- a/Configure
+++ b/Configure
@@ -19614,7 +19614,13 @@ EOCP
set tryp
if eval $compile; then
$rm -f tryp.out
- $cat tryp.c | $run ./tryp 2>/dev/null > tryp.out
+ # Copy the .c file to the remote host ($to is an ssh-alike if targethost is set)
+ if $test "X$targethost" != X; then
+ $to tryp.c
+ $run ./tryp \< tryp.c 2>/dev/null > tryp.out
+ else
+ $cat tryp.c | $run ./tryp 2>/dev/null > tryp.out
+ fi
if cmp tryp.c tryp.out >/dev/null 2>&1; then
$cat >&4 <<EOM
fflush(NULL) seems to behave okay with input streams.
@@ -19678,7 +19684,12 @@ EOCP
set tryp
if eval $compile; then
$rm -f tryp.out
- $cat tryp.c | $run ./tryp 2>/dev/null > tryp.out
+ if $test "X$targethost" != X; then
+ $to tryp.c
+ $run ./tryp \< tryp.c 2>/dev/null > tryp.out
+ else
+ $cat tryp.c | $run ./tryp 2>/dev/null > tryp.out
+ fi
if cmp tryp.c tryp.out >/dev/null 2>&1; then
$cat >&4 <<EOM
Good, at least fflush(stdin) seems to behave okay when stdin is a pipe.