X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fstdbool;h=cfb9aac84c681984d8452308a339d74f67a6e43e;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=bad1377a7f9d62a63e5c2e09252871e82af62f01;hpb=458e682cf2b4d55424fe6c1e630a5fdf76c72746;p=gnulib.git diff --git a/modules/stdbool b/modules/stdbool index bad1377a7..cfb9aac84 100644 --- a/modules/stdbool +++ b/modules/stdbool @@ -1,6 +1,9 @@ Description: +An that nearly conforms to C99. +(Nearly: casts to bool may not work.) Files: +lib/stdbool.in.h m4/stdbool.m4 Depends-on: @@ -9,15 +12,28 @@ configure.ac: AM_STDBOOL_H Makefile.am: -EXTRA_DIST += stdbool.h.in +BUILT_SOURCES += $(STDBOOL_H) -# The following is needed in order to create an when the system +# We need the following in order to create when the system # doesn't have one that works. -all-local: @STDBOOL_H@ -stdbool.h: stdbool.h.in - sed -e 's/@''HAVE__BOOL''@/@HAVE__BOOL@/g' < $(srcdir)/stdbool.h.in > stdbool.h -MOSTLYCLEANFILES += stdbool.h +if GL_GENERATE_STDBOOL_H +stdbool.h: stdbool.in.h $(top_builddir)/config.status + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \ + } > $@-t && \ + mv $@-t $@ +else +stdbool.h: $(top_builddir)/config.status + rm -f $@ +endif +MOSTLYCLEANFILES += stdbool.h stdbool.h-t Include: -#include + +License: +LGPLv2+ + +Maintainer: +Bruno Haible