# HG changeset patch # User diego # Date 1293968988 0 # Node ID cccc340868f454f45ce1c78a8ea81ea05e7f6d5b # Parent b3b553ad6da8e6f320be4ab67bca316337860114 Simplify vector declarations and fast inttypes check with statement_check(). diff -r b3b553ad6da8 -r cccc340868f4 configure --- a/configure Sat Jan 01 19:39:19 2011 +0000 +++ b/configure Sun Jan 02 11:49:48 2011 +0000 @@ -2778,11 +2778,8 @@ echores "$_altivec_gcc_flags" # check if the compiler supports braces for vector declarations - cat > $TMPC << EOF -$inc_altivec_h -int main(void) { (vector int) {1}; return 0; } -EOF - cc_check $_altivec_gcc_flags || die "You need a compiler that supports {} in AltiVec vector declarations." + statement_check "$inc_altivec_h" '(vector int) {1}' $_altivec_gcc_flags || + die "You need a compiler that supports {} in AltiVec vector declarations." # Disable runtime cpudetection if we cannot generate AltiVec code or # AltiVec is disabled by the user. @@ -3395,12 +3392,8 @@ echocheck "int_fastXY_t in inttypes.h" -cat > $TMPC << EOF -#include -int main(void) { volatile int_fast16_t v = 0; return v; } -EOF _fast_inttypes=no -cc_check && _fast_inttypes=yes +statement_check "inttypes.h" 'volatile int_fast16_t v = 0' && _fast_inttypes=yes if test "$_fast_inttypes" = no ; then def_fast_inttypes=' typedef signed char int_fast8_t;