# Use epoll (needs support in libc and kernel, default: auto-detect)
# Set("CONFIG_UCW_EPOLL");
+# Which regular expression library should be used? If none is selected, we use BSD regex from libc.
+UnSet("CONFIG_UCW_POSIX_REGEX");
+UnSet("CONFIG_UCW_PCRE");
+
# Return success
1;
threads=
#endif
-#ifdef CONFIG_PCRE
+#ifdef CONFIG_UCW_PCRE
regex=-lpcre
#else
regex=
} else {
UnSet("CONFIG_UCW_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";
- }
}
### Compiling test programs ###
FINIS
});
+# Darwin does not support BSD regexes, fix up
+if (IsSet("CONFIG_DARWIN")) {
+ if (!IsSet("CONFIG_UCW_POSIX_REGEX") && !IsSet("CONFIG_UCW_PCRE")) {
+ Set("CONFIG_UCW_POSIX_REGEX" => 1);
+ Warn "BSD regex library on Darwin isn't compatible, using POSIX regex.\n";
+ }
+}
+
PostConfig {
AtWrite {
UCW::Configure::C::ConfigHeader("ucw/autoconf.h", [
#include <stdio.h>
#include <string.h>
-#ifdef CONFIG_POSIX_REGEX
+#ifdef CONFIG_UCW_POSIX_REGEX
/* POSIX regular expression library */
return 1;
}
-#elif defined(CONFIG_PCRE)
+#elif defined(CONFIG_UCW_PCRE)
/* PCRE library */