getcwd-lgpl: new module
[pspp] / modules / float
index 004d2bf42ae799a55f7a99af0bef5ea29b189fab..4a1c16a538dc259dc9ea01402a77358a6d918a7c 100644 (file)
@@ -12,14 +12,12 @@ configure.ac:
 gl_FLOAT_H
 
 Makefile.am:
-nodist_pkginclude_HEADERS += $(FLOAT_H)
-EXTRA_HEADERS += float.h
-
 BUILT_SOURCES += $(FLOAT_H)
 
 # We need the following in order to create <float.h> when the system
 # doesn't have one that works with the given compiler.
-float.h: float.in.h
+if GL_GENERATE_FLOAT_H
+float.h: float.in.h $(top_builddir)/config.status
        $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
@@ -29,6 +27,10 @@ float.h: float.in.h
              < $(srcdir)/float.in.h; \
        } > $@-t && \
        mv $@-t $@
+else
+float.h: $(top_builddir)/config.status
+       rm -f $@
+endif
 MOSTLYCLEANFILES += float.h float.h-t
 
 Include: