* configure.in: Suppress unnecessary checks for size_t.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 22 Apr 2011 07:36:41 +0000 (00:36 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 22 Apr 2011 07:36:41 +0000 (00:36 -0700)
(AC_TYPE_SIZE_T): Define an empty macro, to suppress obsolescent test.
(size_t): Do not check for this, and do not typedef.  This code
is never exercised now.

ChangeLog
configure.in

index bb487c6..64aad9e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * configure.in: Suppress unnecessary checks for size_t.
+       (AC_TYPE_SIZE_T): Define an empty macro, to suppress obsolescent test.
+       (size_t): Do not check for this, and do not typedef.  This code
+       is never exercised now.
+
 2011-04-21  Paul Eggert  <eggert@cs.ucla.edu>
 
        * Makefile.in (GNULIB_MODULES): Add strtoumax.
index d20dee8..4ab8f58 100644 (file)
@@ -987,6 +987,9 @@ else
   CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
 fi
 
+# Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
+AC_DEFUN([AC_TYPE_SIZE_T])
+
 dnl Do this early because it can frob feature test macros for Unix-98 &c.
 AC_SYS_LARGEFILE
 
@@ -3026,8 +3029,6 @@ if test $emacs_cv_langinfo_codeset = yes; then
     [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
 fi
 
-AC_CHECK_TYPES(size_t)
-
 AC_TYPE_MBSTATE_T
 
 AC_CACHE_CHECK([for C restricted array declarations], emacs_cv_c_restrict_arr,
@@ -3553,10 +3554,6 @@ extern "C"
 void *alloca (size_t);
 #endif
 
-#ifndef HAVE_SIZE_T
-typedef unsigned size_t;
-#endif
-
 #ifndef HAVE_STRCHR
 #define strchr(a, b) index (a, b)
 #endif