Changeset 153 for trunk/configure


Ignore:
Timestamp:
Aug 31, 2010 10:34:41 AM (9 years ago)
Author:
kulshres
Message:

use a better sizeof void * check

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r150 r153  
    1512215122
    1512315123
    15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof int*" >&5
    15125 $as_echo_n "checking sizeof int*... " >&6; }
    15126 if ac_fn_c_compute_int "$LINENO" "sizeof(int *)" "SIZEOF_INT_P"        ""; then :
    15127 
    15128 fi
    15129 
    15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIZEOF_INT_P bytes" >&5
    15131 $as_echo "$SIZEOF_INT_P bytes" >&6; }
    15132 if test "x$SIZEOF_INT_P" = "x8" ; then
     15124# The cast to long int works around a bug in the HP C Compiler
     15125# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
     15126# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
     15127# This bug is HP SR number 8606223364.
     15128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
     15129$as_echo_n "checking size of void *... " >&6; }
     15130if test "${ac_cv_sizeof_void_p+set}" = set; then :
     15131  $as_echo_n "(cached) " >&6
     15132else
     15133  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
     15134
     15135else
     15136  if test "$ac_cv_type_void_p" = yes; then
     15137     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     15138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     15139{ as_fn_set_status 77
     15140as_fn_error "cannot compute sizeof (void *)
     15141See \`config.log' for more details." "$LINENO" 5; }; }
     15142   else
     15143     ac_cv_sizeof_void_p=0
     15144   fi
     15145fi
     15146
     15147fi
     15148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
     15149$as_echo "$ac_cv_sizeof_void_p" >&6; }
     15150
     15151
     15152
     15153cat >>confdefs.h <<_ACEOF
     15154#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
     15155_ACEOF
     15156
     15157
     15158if test "x$SIZEOF_VOID_P" = "x8" ; then
    1513315159   _lib=lib64
    1513415160else
Note: See TracChangeset for help on using the changeset viewer.