mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
build: generate sh.config for feeding configure results to shell scripts
Only include the relevant information. Amended by David Bremner: Use a prefix NOTMUCH_ to minimize collisions with other variables.
This commit is contained in:
parent
5694d72a83
commit
57540a1952
2 changed files with 14 additions and 1 deletions
|
@ -338,7 +338,7 @@ SRCS := $(SRCS) $(notmuch_client_srcs)
|
||||||
CLEAN := $(CLEAN) notmuch notmuch-shared $(notmuch_client_modules)
|
CLEAN := $(CLEAN) notmuch notmuch-shared $(notmuch_client_modules)
|
||||||
CLEAN := $(CLEAN) version.stamp notmuch-*.tar.gz.tmp
|
CLEAN := $(CLEAN) version.stamp notmuch-*.tar.gz.tmp
|
||||||
|
|
||||||
DISTCLEAN := $(DISTCLEAN) .first-build-message Makefile.config
|
DISTCLEAN := $(DISTCLEAN) .first-build-message Makefile.config sh.config
|
||||||
|
|
||||||
DEPS := $(SRCS:%.c=.deps/%.d)
|
DEPS := $(SRCS:%.c=.deps/%.d)
|
||||||
DEPS := $(DEPS:%.cc=.deps/%.d)
|
DEPS := $(DEPS:%.cc=.deps/%.d)
|
||||||
|
|
13
configure
vendored
13
configure
vendored
|
@ -956,3 +956,16 @@ CONFIGURE_CXXFLAGS = -DHAVE_GETLINE=\$(HAVE_GETLINE) \$(GMIME_CFLAGS) \\
|
||||||
|
|
||||||
CONFIGURE_LDFLAGS = \$(GMIME_LDFLAGS) \$(TALLOC_LDFLAGS) \$(ZLIB_LDFLAGS) \$(XAPIAN_LDFLAGS)
|
CONFIGURE_LDFLAGS = \$(GMIME_LDFLAGS) \$(TALLOC_LDFLAGS) \$(ZLIB_LDFLAGS) \$(XAPIAN_LDFLAGS)
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# construct the sh.config
|
||||||
|
cat > sh.config <<EOF
|
||||||
|
# This sh.config was automatically generated by the ./configure
|
||||||
|
# script of notmuch.
|
||||||
|
|
||||||
|
# Whether the Xapian version in use supports compaction
|
||||||
|
NOTMUCH_HAVE_XAPIAN_COMPACT=${have_xapian_compact}
|
||||||
|
|
||||||
|
# Whether there's either sphinx or rst2man available for building
|
||||||
|
# documentation
|
||||||
|
NOTMUCH_HAVE_MAN=$((have_sphinx || have_rst2man))
|
||||||
|
EOF
|
||||||
|
|
Loading…
Reference in a new issue