* ltmain.sh (check_executable): The WIN32 API and MinGW do not support

S_IXOTH and S_IXGRP so use of these modes should be conditional.
This commit is contained in:
Bob Friesenhahn 2004-05-21 22:27:07 +00:00
parent bcaed0820d
commit 3c23a06daa
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-05-21 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
* ltmain.sh (check_executable): The WIN32 API and MinGW do not support
S_IXOTH and S_IXGRP so use of these modes should be conditional.
2004-05-21 Gary V. Vaughan <gary@gnu.org>
* tests/tagtrace.test: Forgot to add this file to the repository

View File

@ -4898,9 +4898,16 @@ check_executable(const char * path)
return 0;
if ((stat (path, &st) >= 0) &&
(((st.st_mode & S_IXOTH) == S_IXOTH) ||
(
/* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
#if defined (S_IXOTH)
((st.st_mode & S_IXOTH) == S_IXOTH) ||
#endif
#if defined (S_IXGRP)
((st.st_mode & S_IXGRP) == S_IXGRP) ||
((st.st_mode & S_IXUSR) == S_IXUSR)))
#endif
((st.st_mode & S_IXUSR) == S_IXUSR))
)
return 1;
else
return 0;