summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/Makefile
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-07-14 03:26:29 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-07-14 04:42:14 +0200
commit1c7225fb7bd8a9a565524bb735565407782293ef (patch)
tree584886987826befa979d8fe2280517286207c037 /crawl-ref/source/Makefile
parent25caa0c88187b765701aec4e9c3ae49078d58a5d (diff)
downloadcrawl-ref-1c7225fb7bd8a9a565524bb735565407782293ef.tar.gz
crawl-ref-1c7225fb7bd8a9a565524bb735565407782293ef.zip
Do a compile check for the presence of fdatasync().
This is a NIH implementation of a part of autoconf, it is limited as it would be hard to affect the Makefile from such tests. On the other hand, even nasty hacks like grepping for sqlite features are not enough here, as we're looking for something in system headers. I think all of configuration in the Makefile should be nuked and rewritten, so it's just a crutch for 0.11.
Diffstat (limited to 'crawl-ref/source/Makefile')
-rw-r--r--crawl-ref/source/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/Makefile b/crawl-ref/source/Makefile
index 7b5d86f388..644a5982e4 100644
--- a/crawl-ref/source/Makefile
+++ b/crawl-ref/source/Makefile
@@ -949,7 +949,7 @@ LIBS += $(CONTRIB_LIBS) $(EXTRA_LIBS)
DOC_BASE := ../docs
DOC_TEMPLATES := $(DOC_BASE)/template
GENERATED_DOCS := $(DOC_BASE)/aptitudes.txt $(DOC_BASE)/FAQ.html $(DOC_BASE)/crawl_manual.txt
-GENERATED_HEADERS := art-enum.h #the rest are private
+GENERATED_HEADERS := art-enum.h config.h #the rest are private
GENERATED_FILES := $(GENERATED_HEADERS) art-data.h mon-mst.h mi-enum.h \
$(RLTILES)/dc-unrand.txt build.h compflag.h dat/dlua/tags.lua \
cmd-name.h $(INI_OBJECTS)
@@ -1304,6 +1304,9 @@ endif
icon.o: util/crawl.rc util/crawl.ico .cflags
$(QUIET_WINDRES)$(WINDRES) util/crawl.rc icon.o
+config.h: util/configure .cflags
+ ${QUIET_GEN}util/configure "$(CXX)" $(ALL_CFLAGS)
+
#
# Contribs
#