fixed system() backtick checking
authorkramm <kramm>
Fri, 21 Dec 2001 10:27:11 +0000 (10:27 +0000)
committerkramm <kramm>
Fri, 21 Dec 2001 10:27:11 +0000 (10:27 +0000)
aclocal.m4

index 7a8ab74..224949b 100644 (file)
@@ -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