]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/perl/UCW/Configure/C.pm
Added MAX_WORD_BYTES and MAX_WORD_CHARS to ucw/autoconf.h .
[libucw.git] / ucw / perl / UCW / Configure / C.pm
index cc42df21c013309b684dcf9ffb3f3bf6f4b5ea9f..e3a7fdf859440f8b9d0187e3df3675b282f6241b 100644 (file)
@@ -256,6 +256,15 @@ if (IsSet("CONFIG_DARWIN")) {
        Append("COPT" => "-I/sw/include");
        # Fill in some constants not found in the system header files
        Set("SOL_TCP" => 6);            # missing in /usr/include/netinet/tcp.h
+       if (IsGiven("CONFIG_DIRECT_IO") && IsSet("CONFIG_DIRECT_IO")) {
+               Fail("Direct I/O is not available on darwin");
+       } else {
+               UnSet("CONFIG_DIRECT_IO");
+       }
+       if (!IsSet("CONFIG_POSIX_REGEX") && !IsSet("CONFIG_PCRE")) {
+               Set("CONFIG_POSIX_REGEX" => 1);
+               Warn "BSD regex library on Darwin isn't compatible, using POSIX regex.\n";
+       }
 }
 
 ### Writing C headers with configuration ###