|
From: | Chris Johns |
Subject: | Re: autoconf-2.61's AC_LINK_IFELSE with MinGW cross-compilers |
Date: | Mon, 02 Apr 2007 15:57:23 +1000 |
User-agent: | Thunderbird 1.5.0.10 (X11/20070301) |
Paul Eggert wrote:
I want it to evaluate as false on platforms where 'test -x' doesn'twork as Posix-conforming scripts would expect.
Can we assume a chmod is present ? So on Linux: $ set -x; touch a.out; chmod +x a.out; test -x; echo $? + touch a.out + chmod +x a.out + test -x + echo 0 0 and on MSYS: $ set -x; touch a.out; chmod +x a.out; test -x a.out; echo $? + set -x + touch a.out + chmod +x a.out + test -x a.out + echo 1 1 Or is something as simple as this, first on Linux: $ set -x; echo "test" > a.exe; test -x a.exe; echo $? + echo test + test -x a.exe + echo 1 1 and on MSYS: $ set -x; echo "test" > a.exe; test -x a.exe; echo $? + set -x + echo test + test -x a.exe + echo 0 0
I understand that MSYS has a problem, but I don't know that Cygwin does. Does Cygwin have the problem? If not, then the test is incorrect.
It may have the problem if the file-system is FAT32 rather than NTFS. An RTEMS user reported Cygwin worked once he changed from FAT32 to NTFS.
Regards Chris
[Prev in Thread] | Current Thread | [Next in Thread] |