Further fix SIZEOF_VOIDP in SDL_config.h.in
authorEdward Rudd <urkle@outoforder.cc>
Wed, 31 Jul 2013 12:13:26 -0400
changeset 75544b653ef6050d
parent 7553 f0091f8eae33
child 7555 93b540e4db8a
Further fix SIZEOF_VOIDP in SDL_config.h.in

The configure script was still overwriting SIZEOF_VOIDP so both ended up as either 4 or 8 depending on the arch. This simply removes the check from configure.in
configure
configure.in
     1.1 --- a/configure	Wed Jul 31 11:00:23 2013 -0400
     1.2 +++ b/configure	Wed Jul 31 12:13:26 2013 -0400
     1.3 @@ -16853,39 +16853,6 @@
     1.4  
     1.5  fi
     1.6  
     1.7 -# The cast to long int works around a bug in the HP C Compiler
     1.8 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
     1.9 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    1.10 -# This bug is HP SR number 8606223364.
    1.11 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
    1.12 -$as_echo_n "checking size of void*... " >&6; }
    1.13 -if ${ac_cv_sizeof_voidp+:} false; then :
    1.14 -  $as_echo_n "(cached) " >&6
    1.15 -else
    1.16 -  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
    1.17 -
    1.18 -else
    1.19 -  if test "$ac_cv_type_voidp" = yes; then
    1.20 -     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    1.21 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    1.22 -as_fn_error 77 "cannot compute sizeof (void*)
    1.23 -See \`config.log' for more details" "$LINENO" 5; }
    1.24 -   else
    1.25 -     ac_cv_sizeof_voidp=0
    1.26 -   fi
    1.27 -fi
    1.28 -
    1.29 -fi
    1.30 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
    1.31 -$as_echo "$ac_cv_sizeof_voidp" >&6; }
    1.32 -
    1.33 -
    1.34 -
    1.35 -cat >>confdefs.h <<_ACEOF
    1.36 -#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
    1.37 -_ACEOF
    1.38 -
    1.39 -
    1.40  
    1.41  # Check whether --enable-gcc-atomics was given.
    1.42  if test "${enable_gcc_atomics+set}" = set; then :
     2.1 --- a/configure.in	Wed Jul 31 11:00:23 2013 -0400
     2.2 +++ b/configure.in	Wed Jul 31 12:13:26 2013 -0400
     2.3 @@ -265,7 +265,7 @@
     2.4      AC_CHECK_MEMBER(struct sigaction.sa_sigaction,[AC_DEFINE(HAVE_SA_SIGACTION)], ,[#include <signal.h>])
     2.5  fi
     2.6  
     2.7 -AC_CHECK_SIZEOF(void*)
     2.8 +dnl AC_CHECK_SIZEOF(void*)
     2.9  
    2.10  dnl See whether we can use gcc atomic operations on this architecture
    2.11  AC_ARG_ENABLE(gcc-atomics,