From 307c661a552a7140a28c5b76f484985fbfd3e982 Mon Sep 17 00:00:00 2001 From: kramm Date: Fri, 21 Dec 2001 10:27:11 +0000 Subject: [PATCH] fixed system() backtick checking --- aclocal.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aclocal.m4 b/aclocal.m4 index 7a8ab74..224949b 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -51,12 +51,12 @@ AC_TRY_RUN([ #include "stdlib.h" int main (int argc, char*argv[]) { - return system("echo `echo 0` > config.tmp2"); + return system("echo `touch config.tmp2`"); } ], OK=OK,,CROSSCOMPILE=1) if test "x${OK}" = "xOK";then - test -s config.tmp2 || OK= + test -e config.tmp2 || OK= fi if test "x${CROSSCOMPILE}" = "x1";then -- 1.7.10.4