diff --git a/lib/Makefile.am b/lib/Makefile.am
index 80f3e62e028ac082c26b4c7a8f06a5fcdb5b8d11..9cab14af87e513a35159cde7432009f49c7e867e 100644 (file)
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
INCLUDES = -I$(srcdir) -I$(top_srcdir)/intl
+BUILT_SOURCES = $(STDBOOL_H)
+EXTRA_DIST = stdbool_.h
+MOSTLYCLEANFILES = stdbool.h stdbool.ht
+# Create stdbool.h on systems that lack a working one.
+stdbool.h: stdbool_.h
+ sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' $(srcdir)/stdbool_.h > $@t
+ mv $@t $@
+