Mercurial > mplayer.hg
changeset 7420:78678f03c28d
WORDSIZE detection by Bj«Órn Sandell <biorn@dce.chalmers.se>
author | arpi |
---|---|
date | Mon, 16 Sep 2002 19:37:57 +0000 |
parents | a2555f227a3d |
children | 0684cad9b204 |
files | configure |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Mon Sep 16 16:53:25 2002 +0000 +++ b/configure Mon Sep 16 19:37:57 2002 +0000 @@ -1645,6 +1645,15 @@ fi echores "$_inttypes" +echocheck "word size" +_mp_wordsize="#undef MP_WORDSIZE" +cat > $TMPC << EOF +#include <stdio.h> +#include <sys/types.h> +int main(void) { printf("%d\n", sizeof(size_t)*8); return 0; } +EOF +cc_check && _wordsize=`$TMPO` && _mp_wordsize="#define MP_WORDSIZE $_wordsize" +echores "$_wordsize" echocheck "stddef.h" cat > $TMPC << EOF @@ -4692,6 +4701,8 @@ /* Define this to any prefered value from 386 up to infinity with step 100 */ #define __CPU__ $iproc +$_mp_wordsize + $_def_linux $_def_vcd