diff options
author | Steve Bennett <steveb@workware.net.au> | 2011-06-09 11:01:03 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2011-06-09 11:45:39 +1000 |
commit | f8b69284cf7e30abacd6c30adce12e953698f622 (patch) | |
tree | 6d49c1f48c9328662ceb344cd910b9eb9ca1fe5e /auto.def | |
parent | fb30e73b7cf6b9ad0ad75aadf73679796789f51c (diff) | |
download | jimtcl-f8b69284cf7e30abacd6c30adce12e953698f622.zip jimtcl-f8b69284cf7e30abacd6c30adce12e953698f622.tar.gz jimtcl-f8b69284cf7e30abacd6c30adce12e953698f622.tar.bz2 |
Provide a fallback basic [exec] for (e.g.) mingw32
Use system() to implement [exec] if vfork() and waitpid()
are not available. This is just functional enough for simple tasks.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'auto.def')
-rw-r--r-- | auto.def | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -58,7 +58,7 @@ cc-check-types "long long" cc-check-includes sys/un.h dlfcn.h unistd.h -cc-check-functions ualarm sysinfo lstat fork vfork +cc-check-functions ualarm sysinfo lstat fork vfork system cc-check-functions backtrace geteuid mkstemp realpath strptime cc-check-functions regcomp waitpid sigaction sys_signame sys_siglist cc-check-functions syslog opendir readlink sleep usleep pipe inet_ntop getaddrinfo @@ -157,7 +157,7 @@ set dep(rlprompt) readline set dep(tree) oo set needs(aio) {expr {[cc-check-function-in-lib socket socket] || 1}} -set needs(exec) {expr {[have-feature vfork] && [have-feature waitpid]}} +set needs(exec) {expr {([have-feature vfork] && [have-feature waitpid]) || [have-feature system]}} set needs(load) {expr {[have-feature dlopen-compat] || [cc-check-function-in-lib dlopen dl]}} set needs(posix) {have-feature waitpid} set needs(readdir) {have-feature opendir} |