- use $(PREFIX) when accessing files in /etc/asciidoc/...
on Darwin, we use /sw
- remove obsolete reference to internal regex library
- configure script makes sure the BSD library isn't used on Darwin due to
incompatibility
- document dependency on asciidoc
$(o)/%.html: $(o)/%.txt $(BUILDSYS)/asciidoc.conf $(BUILDSYS)/asciidoc-xhtml.conf run/$(DOCDIR)/$(DOC_MODULE)/.dir-stamp
$(M)"DOC-HTML $<"
- $(Q)asciidoc -e -f $(BUILDSYS)/asciidoc.conf -f $(BUILDSYS)/asciidoc-xhtml.conf -f /etc/asciidoc/asciidoc.conf -f /etc/asciidoc/xhtml11.conf $<
+ $(Q)asciidoc -e -f $(BUILDSYS)/asciidoc.conf -f $(BUILDSYS)/asciidoc-xhtml.conf -f $(PREFIX)/etc/asciidoc/asciidoc.conf -f $(PREFIX)/etc/asciidoc/xhtml11.conf $<
$(Q)$(call symlink,$@,run/$(DOCDIR)/$(DOC_MODULE))
# In reality, we do not depend on the .txt files, but on the corresponding .deflist's.
ifdef CONFIG_DARWIN
SOEXT=bundle
+PREFIX=/sw
else
SOEXT=so
+PREFIX=
endif
SO_RUNDIR=lib
# Fill in some constants not found in the system header files
Set("SOL_TCP" => 6); # missing in /usr/include/netinet/tcp.h
Set("O_DIRECT" => 0); # Darwin doesn't support direct IO, so make Sherlock at least compilable
+ if (!IsSet("CONFIG_POSIX_REGEX") && !IsSet("CONFIG_PCRE")) {
+ Set("CONFIG_POSIX_REGEX" => 1);
+ Warn "BSD regexp library on Darwin isn't compatible, using POSIX regexp.\n";
+ }
}
### Writing C headers with configuration ###
/* BSD regular expression library */
-#ifdef CONFIG_OWN_BSD_REGEX
-#include "ucw/regex/regex-sh.h"
-#else
#include <regex.h>
-#endif
#define INITIAL_MEM 1024 /* Initial space allocated for each pattern */
#define CHAR_SET_SIZE 256 /* How many characters in the character set. */