From 8d6f7939bfc611dedd9b5c694563ca08c063d5fc Mon Sep 17 00:00:00 2001 From: Brian Fraser Date: Sun, 26 Jan 2014 01:06:40 -0300 Subject: [PATCH] Configure: Fix the fflush(NULL) test in cross builds Second attempt at this. This is less portable than the previous version, since it assumes that the target system will have a cat, but unlike the previous version this now actually works. --- Configure | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Configure b/Configure index a6fa428..29a6152 100755 --- a/Configure +++ b/Configure @@ -19712,7 +19712,8 @@ EOCP # 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 + $to tryp + $run "cat tryp.c | ./tryp" 2>/dev/null > tryp.out else $cat tryp.c | $run ./tryp 2>/dev/null > tryp.out fi @@ -19781,7 +19782,8 @@ EOCP $rm -f tryp.out if $test "X$targethost" != X; then $to tryp.c - $run ./tryp \< tryp.c 2>/dev/null > tryp.out + $to tryp + $run "cat tryp.c | ./tryp" 2>/dev/null > tryp.out else $cat tryp.c | $run ./tryp 2>/dev/null > tryp.out fi -- 2.7.4