diff options
author | Jess Robinson <castaway@desert-island.me.uk> | 2012-12-29 21:23:01 +0000 |
---|---|---|
committer | Brian Fraser <fraserbn@gmail.com> | 2014-01-17 11:35:46 -0300 |
commit | 88e1e9777949edaf7283b2a9806de221818ff28f (patch) | |
tree | be500f454f56d6298f3d724ba9aed4722a2e6ff2 /Configure | |
parent | 083b43b68e72059c75d05f62a6183e677a4a0ace (diff) | |
download | perl-88e1e9777949edaf7283b2a9806de221818ff28f.tar.gz |
Fix two Configure tests when targethost is set
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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. |