# HG changeset patch # User diego # Date 1311635783 0 # Node ID 1e096f5e51c7a56ca8795431ac303cda7f65696a # Parent 725b020e5c31b5618e7b065a76be2a0d9a18c790 configure: add proper check for trunc() instead of hardcoding availability diff -r 725b020e5c31 -r 1e096f5e51c7 configure --- 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