summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-09-16 19:37:57 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-09-16 19:37:57 +0000
commitc9ffe1f35630b15d1d54cfda3e5bb188b383583c (patch)
treee0377909edee06ee8d812c34dca0e1c2246bb9da /configure
parentced94d002187e31916c55694d2327477879f8764 (diff)
downloadmpv-c9ffe1f35630b15d1d54cfda3e5bb188b383583c.tar.bz2
mpv-c9ffe1f35630b15d1d54cfda3e5bb188b383583c.tar.xz
WORDSIZE detection by Björn Sandell <biorn@dce.chalmers.se>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7421 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 32a83f9fe3..b656bb842f 100755
--- a/configure
+++ b/configure
@@ -1645,6 +1645,15 @@ else
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 @@ $_def_confwin32
/* Define this to any prefered value from 386 up to infinity with step 100 */
#define __CPU__ $iproc
+$_mp_wordsize
+
$_def_linux
$_def_vcd