[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [obfsproxy/master] Make SIZEOF_SIZE_T get defined



commit 5f4b127a97d38556f7b60bdffc490872f054d8dc
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Fri Feb 10 14:31:37 2012 -0500

    Make SIZEOF_SIZE_T get defined
    
    Part of this was adding AC_CHECK_SIZEOF(size_t).
    
    The other part was removing the code to suppress
    AC_INCLUDE_DEFAULTS.  That was a neat idea for making the configure
    script run faster, but apparently it makes lots of normal autoconf
    snippets stop working.  I'd rather be slower than error-prone, so
    out _that_ goes.  [And we're not so slow, really. The configure
    script still finishes in less than 4 seconds on my desktop.]
    
    This fixes bug 5074, which happened because SIZEOF_SIZE_T was not
    getting set, so smartlists could never get expanded.
---
 configure.ac |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3809750..5234911 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,12 +3,6 @@ AC_INIT([obfsproxy], [0.0])
 AC_CONFIG_SRCDIR([src/main.c])
 AM_INIT_AUTOMAKE([foreign nostdinc])
 
-dnl The stock definition of AC_INCLUDES_DEFAULT performs a whole bunch
-dnl of completely unnecessary checks *even if* you override its
-dnl mostly-useless default header list at invocation time.
-dnl Replace it with a version that does nothing unless requested.
-m4_pushdef([AC_INCLUDES_DEFAULT], [$1])
-
 ### Programs ###
 
 AC_PROG_CC
@@ -49,6 +43,7 @@ LIBS="$save_LIBS"
 
 AC_C_INLINE
 AC_CHECK_SIZEOF(int)
+AC_CHECK_SIZEOF(size_t)
 
 ### Output ###
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits