From: Guido Draheim Date: Thu, 1 Mar 2018 23:41:02 +0000 (+0100) Subject: do not check int/long/ptr sizes when stdint.h is available #33 X-Git-Tag: v0.13.69~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c3d8567d928d04a9ca5a540b494b99c03c8b99e;p=zziplib do not check int/long/ptr sizes when stdint.h is available #33 --- diff --git a/configure b/configure index e3ad915..bb1cd1e 100755 --- a/configure +++ b/configure @@ -12975,7 +12975,8 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 +if test "xno" = "x$ac_cv_header_stdint_h" ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 $as_echo_n "checking size of short... " >&6; } if ${ac_cv_sizeof_short+:} false; then : $as_echo_n "(cached) " >&6 @@ -13015,7 +13016,7 @@ cat >>confdefs.h <<_ACEOF _ACEOF -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 $as_echo_n "checking size of int... " >&6; } if ${ac_cv_sizeof_int+:} false; then : $as_echo_n "(cached) " >&6 @@ -13055,7 +13056,7 @@ cat >>confdefs.h <<_ACEOF _ACEOF -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 $as_echo_n "checking size of long... " >&6; } if ${ac_cv_sizeof_long+:} false; then : $as_echo_n "(cached) " >&6 @@ -13095,7 +13096,7 @@ cat >>confdefs.h <<_ACEOF _ACEOF -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 $as_echo_n "checking size of int *... " >&6; } if ${ac_cv_sizeof_int_p+:} false; then : $as_echo_n "(cached) " >&6 @@ -13135,6 +13136,7 @@ cat >>confdefs.h <<_ACEOF _ACEOF +fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } if ${ac_cv_c_bigendian+:} false; then : diff --git a/configure.ac b/configure.ac index bdbde30..804be64 100644 --- a/configure.ac +++ b/configure.ac @@ -108,10 +108,12 @@ dnl AC_TYPE_SSIZE_T AC_CHECK_TYPE(ssize_t,int) AC_CHECK_TYPE(off64_t,_zzip_off_t) AC_CHECK_TYPE(__int64,long long) -AC_COMPILE_CHECK_SIZEOF([short]) -AC_COMPILE_CHECK_SIZEOF([int]) -AC_COMPILE_CHECK_SIZEOF([long]) -AC_COMPILE_CHECK_SIZEOF([int *]) +if test "xno" = "x$ac_cv_header_stdint_h" ; then + AC_COMPILE_CHECK_SIZEOF([short]) + AC_COMPILE_CHECK_SIZEOF([int]) + AC_COMPILE_CHECK_SIZEOF([long]) + AC_COMPILE_CHECK_SIZEOF([int *]) +fi AC_C_BIGENDIAN AX_CHECK_ALIGNED_ACCESS_REQUIRED dnl -------------------------------------------------------------