changeset 33833:1e096f5e51c7

configure: add proper check for trunc() instead of hardcoding availability
author diego
date Mon, 25 Jul 2011 23:16:23 +0000
parents 725b020e5c31
children 495340edba54
files configure
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Jul 25 18:01:23 2011 +0000
+++ b/configure	Mon Jul 25 23:16:23 2011 +0000
@@ -3074,7 +3074,7 @@
 echores "$_kstat"
 
 
-for func in exp2 exp2f llrint llrintf log2 log2f lrint lrintf round roundf truncf; do
+for func in exp2 exp2f llrint llrintf log2 log2f lrint lrintf round roundf trunc truncf; do
 echocheck $func
 eval _$func=no
 statement_check math.h "${func}(2.0)" -D_ISOC99_SOURCE && eval _$func=yes
@@ -8593,6 +8593,7 @@
 $def_round
 $def_roundf
 $def_threads
+$def_trunc
 $def_truncf
 $def_xform_asm
 $def_xmm_clobbers
@@ -8622,7 +8623,6 @@
 #define HAVE_SYMVER_ASM_LABEL 0
 #define HAVE_SYMVER_GNU_ASM 0
 #define HAVE_SYS_SELECT_H 0
-#define HAVE_TRUNC 1
 #define HAVE_VFP_ARGS 1
 #define HAVE_VIRTUALALLOC 0