view modules/float @ 12841:6ff1b1c23f57

Perform the same test for many <math.h> functions.
author Bruno Haible <bruno@clisp.org>
date Sun, 31 Jan 2010 19:40:17 +0100
parents 67c2b22aff08
children a19ace3ba849
line wrap: on
line source

Description:
A correct <float.h>.

Files:
lib/float.in.h
m4/float_h.m4

Depends-on:
include_next

configure.ac:
gl_FLOAT_H

Makefile.am:
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
	$(AM_V_GEN)rm -f $@-t $@ && \
	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
	  sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
	      -e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \
	      < $(srcdir)/float.in.h; \
	} > $@-t && \
	mv $@-t $@
MOSTLYCLEANFILES += float.h float.h-t

Include:
<float.h>

License:
LGPLv2+

Maintainer:
all