X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fperl%2FUCW%2FConfigure%2FC.pm;h=e3a7fdf859440f8b9d0187e3df3675b282f6241b;hb=8c416794bc7282bfc03fcc0500898aa2483c338a;hp=6219a164bf11eed8548f8d3ff9052dd3f1ab3ac9;hpb=9773afa84a6ba2bdaa9acab70b27ce75c9e78c4c;p=libucw.git diff --git a/ucw/perl/UCW/Configure/C.pm b/ucw/perl/UCW/Configure/C.pm index 6219a164..e3a7fdf8 100644 --- a/ucw/perl/UCW/Configure/C.pm +++ b/ucw/perl/UCW/Configure/C.pm @@ -256,10 +256,14 @@ 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") && IsSet("CONFIG_DIRECT")) { + if (IsGiven("CONFIG_DIRECT_IO") && IsSet("CONFIG_DIRECT_IO")) { Fail("Direct I/O is not available on darwin"); } else { - UnSet("CONFIG_DIRECT"); + 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"; } }