aboutsummaryrefslogtreecommitdiff
path: root/auto.def
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2011-06-27 21:34:07 -0700
committerSteve Bennett <steveb@workware.net.au>2011-06-28 16:20:04 +1000
commitdc1e58da45332c2645d39154571835d4fb79c456 (patch)
treee34cd916911b1249ea0838f741272af25841e686 /auto.def
parentab51e987cb8a9e9fce6af1eeb3b6309f8c11941f (diff)
downloadjimtcl-dc1e58da45332c2645d39154571835d4fb79c456.zip
jimtcl-dc1e58da45332c2645d39154571835d4fb79c456.tar.gz
jimtcl-dc1e58da45332c2645d39154571835d4fb79c456.tar.bz2
Fix support for 64-bit mingw
- Check for mkdir with one arg at configure time - mingw can't really do select(), so support only time events in eventloop - Declare dlerror() to be compatible with mingw Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'auto.def')
-rw-r--r--auto.def21
1 files changed, 15 insertions, 6 deletions
diff --git a/auto.def b/auto.def
index d32e963..1e1c495 100644
--- a/auto.def
+++ b/auto.def
@@ -58,10 +58,11 @@ options {
cc-check-types "long long"
+cc-check-includes sys/socket.h netinet/in.h arpa/inet.h netdb.h
cc-check-includes sys/un.h dlfcn.h unistd.h crt_externs.h
-cc-check-functions ualarm sysinfo lstat fork vfork system
-cc-check-functions backtrace geteuid mkstemp realpath strptime
+cc-check-functions ualarm sysinfo lstat fork vfork system select
+cc-check-functions backtrace geteuid mkstemp realpath strptime gettimeofday
cc-check-functions regcomp waitpid sigaction sys_signame sys_siglist
cc-check-functions syslog opendir readlink sleep usleep pipe inet_ntop getaddrinfo
@@ -86,6 +87,16 @@ if {![cc-check-functions _NSGetEnviron]} {
}
}
+# Windows has a mkdir with no permission arg
+cc-check-includes sys/types.h sys/stat.h
+msg-checking "Checking for mkdir with one arg..."
+if {[cctest -includes {sys/types.h sys/stat.h} -code {mkdir("/dummy");}]} {
+ define HAVE_MKDIR_ONE_ARG
+ msg-result yes
+} else {
+ msg-result no
+}
+
set extra_objs {}
set jimregexp 0
@@ -168,7 +179,7 @@ set dep(binary) pack
set needs(aio) {expr {[cc-check-function-in-lib socket socket] || 1}}
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(load) {expr {[cc-check-function-in-lib dlopen dl] || [have-feature dlopen-compat]}}
set needs(posix) {have-feature waitpid}
set needs(readdir) {have-feature opendir}
set needs(readline) {cc-check-function-in-lib readline readline}
@@ -176,6 +187,7 @@ set needs(signal) {expr {[have-feature sigaction] && [have-feature vfork]}}
set needs(sqlite) {cc-check-function-in-lib sqlite_open sqlite}
set needs(sqlite3) {cc-check-function-in-lib sqlite3_open sqlite3}
set needs(syslog) {have-feature syslog}
+set needs(eventloop) {expr {[have-feature select] || [have-feature usleep]}}
set needs(win32) {have-feature windows}
# First handle dependencies. If an extension is enabled, also enable its dependency
@@ -274,9 +286,6 @@ foreach i [lsort $ext_all] {
}
if {[have-feature windows]} {
- if {"aio" in "$ext $extmod"} {
- define-append LIBS -lwsock32
- }
lappend extra_objs jim-win32compat.o
if {$extmod ne "" && [get-define JIM_LIBTYPE] eq "static"} {