shithub: sox

Download patch

ref: 62d0c55dd226c26994e3d404e571cfaa40b625f9
parent: 3218e40d0378cdb31db4f6e024d3fb45e8527d49
author: cbagwell <cbagwell>
date: Mon Dec 3 22:32:25 EST 2001

ststdint.h updates

--- a/aclocal.m4
+++ b/aclocal.m4
@@ -47,7 +47,7 @@
 dnl      AC_COMPILE_CHECK_SIZEOF(off_t, $headers)
 dnl
 dnl @author Kaveh Ghazi <ghazi@caip.rutgers.edu>
-dnl @version $Id: aclocal.m4,v 1.2 2001/12/03 16:11:52 cbagwell Exp $
+dnl @version $Id: aclocal.m4,v 1.3 2001/12/04 03:32:25 cbagwell Exp $
 dnl
 AC_DEFUN([AC_COMPILE_CHECK_SIZEOF],
 [changequote(<<, >>)dnl
@@ -58,7 +58,7 @@
 changequote([, ])dnl
 AC_MSG_CHECKING(size of $1)
 AC_CACHE_VAL(AC_CV_NAME,
-[for ac_size in 4 8 1 2 16 $2 ; do # List sizes in rough order of prevalence.
+[for ac_size in 4 8 1 2 16 $3 ; do # List sizes in rough order of prevalence.
   AC_TRY_COMPILE([#include "confdefs.h"
 #include <sys/types.h>
 ], [switch (0) case 0: case (sizeof ($1) == $ac_size):;], AC_CV_NAME=$ac_size)
@@ -85,7 +85,7 @@
 dnl a convenience macro AC_CHECK_TYPEDEF_ is provided that will not emit
 dnl any message to the user - it just executes one of the actions.
 dnl
-dnl @version $Id: aclocal.m4,v 1.2 2001/12/03 16:11:52 cbagwell Exp $
+dnl @version $Id: aclocal.m4,v 1.3 2001/12/04 03:32:25 cbagwell Exp $
 dnl @author  Guido Draheim <guidod@gmx.de>
 
 AC_DEFUN(AC_CHECK_TYPEDEF_,
@@ -113,7 +113,7 @@
  AC_CHECK_TYPEDEF_($1,$2,AC_MSG_RESULT(yes),AC_MSG_RESULT(no))dnl
 ])
 
-dnl @synopsis AC_NEED_STDINT_H [( HEADER-TO-GENERATE [, HEDERS-TO-CHECK])]
+dnl @synopsis AC_NEED_STDINT_H [( HEADER-TO-GENERATE [, HEADERS-TO-CHECK])]
 dnl
 dnl the "ISO C9X: 7.18 Integer types <stdint.h>" section requires the
 dnl existence of an include file <stdint.h> that defines a set of 
@@ -145,17 +145,17 @@
 dnl Remember, if the system already had a valid <stdint.h>, the generated
 dnl file will include it directly. No need for fuzzy HAVE_STDINT_H things...
 dnl
-dnl @version $Id: aclocal.m4,v 1.2 2001/12/03 16:11:52 cbagwell Exp $
-dnl @author  Guido Draheim <guidod@gmx.de>       STATUS: used on new platforms
+dnl @version $Id: aclocal.m4,v 1.3 2001/12/04 03:32:25 cbagwell Exp $
+dnl @author  Guido Draheim <guidod@gmx.de> STATUS: used on new platforms
 
 AC_DEFUN([AC_NEED_STDINT_H],
 [AC_MSG_CHECKING([for stdint-types])
  ac_cv_header_stdint="no-file"
  ac_cv_header_stdint_u="no-file"
- for i in $1 inttypes.h sys/inttypes.h sys/int_types.h stdint.h ; do
+ for i in $2 inttypes.h sys/inttypes.h sys/int_types.h stdint.h ; do
    AC_CHECK_TYPEDEF_(uint32_t, $i, [ac_cv_header_stdint=$i])
  done
- for i in $1 sys/types.h inttypes.h sys/inttypes.h sys/int_types.h ; do
+ for i in $2 sys/types.h inttypes.h sys/inttypes.h sys/int_types.h ; do
    AC_CHECK_TYPEDEF_(u_int32_t, $i, [ac_cv_header_stdint_u=$i])
  done
  dnl debugging: __AC_MSG( !$ac_cv_header_stdint!$ac_cv_header_stdint_u! ...)
@@ -194,8 +194,8 @@
    ac_cv_header_stdint_generated=true
  else
    AC_MSG_RESULT(not found, need to guess the types now... )
-   AC_COMPILE_CHECK_SIZEOF(long, 32)
-   AC_COMPILE_CHECK_SIZEOF(void*, 32)
+   AC_COMPILE_CHECK_SIZEOF(long, $2, 32)
+   AC_COMPILE_CHECK_SIZEOF(void*, $2, 32)
    AC_MSG_RESULT( creating $ac_stdint_h - using detected values for sizeof long and sizeof void* )
    cat >$ac_stdint_h <<EOF
 
@@ -256,11 +256,11 @@
 typedef uint16_t  uint_least16_t;
 typedef uint32_t  uint_least32_t;
 
-typedef  int8_t    int_fast8_t; 
+typedef  int8_t    int_fast8_t;	
 typedef  int32_t   int_fast16_t;
 typedef  int32_t   int_fast32_t;
 
-typedef uint8_t   uint_fast8_t; 
+typedef uint8_t   uint_fast8_t;	
 typedef uint32_t  uint_fast16_t;
 typedef uint32_t  uint_fast32_t;
 
--- a/configure
+++ b/configure
@@ -2181,12 +2181,11 @@
 #include "confdefs.h"
 #include <sys/types.h>
 
-
 int main() {
 switch (0) case 0: case (sizeof (long) == $ac_size):;
 ; return 0; }
 EOF
-if { (eval echo configure:2190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_sizeof_long=$ac_size
 else
@@ -2209,23 +2208,22 @@
 
 
    echo $ac_n "checking size of void*""... $ac_c" 1>&6
-echo "configure:2213: checking size of void*" >&5
+echo "configure:2212: checking size of void*" >&5
 if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   for ac_size in 4 8 1 2 16 32 ; do # List sizes in rough order of prevalence.
   cat > conftest.$ac_ext <<EOF
-#line 2219 "configure"
+#line 2218 "configure"
 #include "confdefs.h"
 #include "confdefs.h"
 #include <sys/types.h>
 
-
 int main() {
 switch (0) case 0: case (sizeof (void*) == $ac_size):;
 ; return 0; }
 EOF
-if { (eval echo configure:2229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_sizeof_voidp=$ac_size
 else