comparison configure @ 7420:78678f03c28d

WORDSIZE detection by Bj«Órn Sandell <biorn@dce.chalmers.se>
author arpi
date Mon, 16 Sep 2002 19:37:57 +0000
parents 24c517eeac25
children ad967766679a
comparison
equal deleted inserted replaced
7419:a2555f227a3d 7420:78678f03c28d
1643 else 1643 else
1644 die "cannot find header inttypes.h (see DOCS/faq.html)" 1644 die "cannot find header inttypes.h (see DOCS/faq.html)"
1645 fi 1645 fi
1646 echores "$_inttypes" 1646 echores "$_inttypes"
1647 1647
1648 echocheck "word size"
1649 _mp_wordsize="#undef MP_WORDSIZE"
1650 cat > $TMPC << EOF
1651 #include <stdio.h>
1652 #include <sys/types.h>
1653 int main(void) { printf("%d\n", sizeof(size_t)*8); return 0; }
1654 EOF
1655 cc_check && _wordsize=`$TMPO` && _mp_wordsize="#define MP_WORDSIZE $_wordsize"
1656 echores "$_wordsize"
1648 1657
1649 echocheck "stddef.h" 1658 echocheck "stddef.h"
1650 cat > $TMPC << EOF 1659 cat > $TMPC << EOF
1651 #include <stddef.h> 1660 #include <stddef.h>
1652 int main(void) { return 0; } 1661 int main(void) { return 0; }
4690 $_def_confwin32 4699 $_def_confwin32
4691 4700
4692 /* Define this to any prefered value from 386 up to infinity with step 100 */ 4701 /* Define this to any prefered value from 386 up to infinity with step 100 */
4693 #define __CPU__ $iproc 4702 #define __CPU__ $iproc
4694 4703
4704 $_mp_wordsize
4705
4695 $_def_linux 4706 $_def_linux
4696 4707
4697 $_def_vcd 4708 $_def_vcd
4698 4709
4699 #ifdef sun 4710 #ifdef sun