diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-01-12 12:55:09 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-01-12 12:55:09 -0500 |
commit | a2c41aa3e84ba697cc14b4b2345d8e3467cd22ac (patch) | |
tree | 949398ccc66de758a7eaaf71a12e0f497a240ece /configure.in | |
parent | 1e37d8678a7f0a066886a74b0b57bce121d370b1 (diff) | |
parent | 2dd7df8308ec962700b1a4311cd675f668631c90 (diff) | |
download | tor-a2c41aa3e84ba697cc14b4b2345d8e3467cd22ac.tar.gz tor-a2c41aa3e84ba697cc14b4b2345d8e3467cd22ac.zip |
Merge remote branch 'sebastian/bug2337' into maint-0.2.2
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 346008f630..7c6a8a484e 100644 --- a/configure.in +++ b/configure.in @@ -588,6 +588,23 @@ if test "$tor_cv_time_t_signed" != no; then [Define to 1 iff time_t is signed]) fi +AC_CACHE_CHECK([whether size_t is signed], tor_cv_size_t_signed, [ +AC_RUN_IFELSE([AC_LANG_SOURCE([ +#ifdef HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +int main(int c, char**v) { if (((size_t)-1)<0) return 1; else return 0; }])], + tor_cv_size_t_signed=no, tor_cv_size_t_signed=yes, tor_cv_size_t_signed=cross) +]) + +if test "$tor_cv_size_t_signed" = cross; then + AC_MSG_NOTICE([Cross compiling: assuming that size_t is not signed.]) +fi + +if test "$tor_cv_size_t_signed" = yes; then + AC_MSG_ERROR([You have a signed size_t; that's grossly nonconformant.]) +fi + AC_CHECK_SIZEOF(socklen_t, , [AC_INCLUDES_DEFAULT() #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> |