|
|
794a5c |
Prefer types in <inttypes.h> to our own, because it removes file content
|
|
|
794a5c |
conflicts between 32- and 64-bit architectures. RFEd as #2829.
|
|
|
794a5c |
|
|
|
794a5c |
--- cyrus-sasl-2.1.21/configure.in 2006-05-16 07:37:52.000000000 -0400
|
|
|
794a5c |
+++ cyrus-sasl-2.1.21/configure.in 2006-05-16 07:37:52.000000000 -0400
|
|
|
794a5c |
@@ -1083,6 +1083,10 @@
|
|
|
794a5c |
AC_HEADER_DIRENT
|
|
|
794a5c |
AC_HEADER_SYS_WAIT
|
|
|
794a5c |
AC_CHECK_HEADERS(des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h)
|
|
|
794a5c |
+AC_CHECK_TYPES([long long, int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t],,,[
|
|
|
794a5c |
+#ifdef HAVE_INTTYPES_H
|
|
|
794a5c |
+#include <inttypes.h>
|
|
|
794a5c |
+#endif])
|
|
|
794a5c |
|
|
|
794a5c |
IPv6_CHECK_SS_FAMILY()
|
|
|
794a5c |
IPv6_CHECK_SA_LEN()
|
|
|
296055 |
diff -up cyrus-sasl-2.1.26/configure.sizes cyrus-sasl-2.1.26/configure
|
|
|
296055 |
--- cyrus-sasl-2.1.26/configure.sizes 2013-11-13 16:40:44.492792539 +0100
|
|
|
296055 |
+++ cyrus-sasl-2.1.26/configure 2013-11-13 16:40:47.489777836 +0100
|
|
|
296055 |
@@ -18166,6 +18166,124 @@ fi
|
|
|
296055 |
|
|
|
296055 |
done
|
|
|
296055 |
|
|
|
296055 |
+ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "
|
|
|
296055 |
+#ifdef HAVE_INTTYPES_H
|
|
|
296055 |
+#include <inttypes.h>
|
|
|
296055 |
+#endif
|
|
|
296055 |
+"
|
|
|
296055 |
+if test "x$ac_cv_type_long_long" = xyes; then :
|
|
|
296055 |
+
|
|
|
296055 |
+cat >>confdefs.h <<_ACEOF
|
|
|
296055 |
+#define HAVE_LONG_LONG 1
|
|
|
296055 |
+_ACEOF
|
|
|
296055 |
+
|
|
|
296055 |
+
|
|
|
296055 |
+fi
|
|
|
296055 |
+ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "
|
|
|
296055 |
+#ifdef HAVE_INTTYPES_H
|
|
|
296055 |
+#include <inttypes.h>
|
|
|
296055 |
+#endif
|
|
|
296055 |
+"
|
|
|
296055 |
+if test "x$ac_cv_type_int8_t" = xyes; then :
|
|
|
296055 |
+
|
|
|
296055 |
+cat >>confdefs.h <<_ACEOF
|
|
|
296055 |
+#define HAVE_INT8_T 1
|
|
|
296055 |
+_ACEOF
|
|
|
296055 |
+
|
|
|
296055 |
+
|
|
|
296055 |
+fi
|
|
|
296055 |
+ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "
|
|
|
296055 |
+#ifdef HAVE_INTTYPES_H
|
|
|
296055 |
+#include <inttypes.h>
|
|
|
296055 |
+#endif
|
|
|
296055 |
+"
|
|
|
296055 |
+if test "x$ac_cv_type_uint8_t" = xyes; then :
|
|
|
296055 |
+
|
|
|
296055 |
+cat >>confdefs.h <<_ACEOF
|
|
|
296055 |
+#define HAVE_UINT8_T 1
|
|
|
296055 |
+_ACEOF
|
|
|
296055 |
+
|
|
|
296055 |
+
|
|
|
296055 |
+fi
|
|
|
296055 |
+ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "
|
|
|
296055 |
+#ifdef HAVE_INTTYPES_H
|
|
|
296055 |
+#include <inttypes.h>
|
|
|
296055 |
+#endif
|
|
|
296055 |
+"
|
|
|
296055 |
+if test "x$ac_cv_type_int16_t" = xyes; then :
|
|
|
296055 |
+
|
|
|
296055 |
+cat >>confdefs.h <<_ACEOF
|
|
|
296055 |
+#define HAVE_INT16_T 1
|
|
|
296055 |
+_ACEOF
|
|
|
296055 |
+
|
|
|
296055 |
+
|
|
|
296055 |
+fi
|
|
|
296055 |
+ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "
|
|
|
296055 |
+#ifdef HAVE_INTTYPES_H
|
|
|
296055 |
+#include <inttypes.h>
|
|
|
296055 |
+#endif
|
|
|
296055 |
+"
|
|
|
296055 |
+if test "x$ac_cv_type_uint16_t" = xyes; then :
|
|
|
296055 |
+
|
|
|
296055 |
+cat >>confdefs.h <<_ACEOF
|
|
|
296055 |
+#define HAVE_UINT16_T 1
|
|
|
296055 |
+_ACEOF
|
|
|
296055 |
+
|
|
|
296055 |
+
|
|
|
296055 |
+fi
|
|
|
296055 |
+ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "
|
|
|
296055 |
+#ifdef HAVE_INTTYPES_H
|
|
|
296055 |
+#include <inttypes.h>
|
|
|
296055 |
+#endif
|
|
|
296055 |
+"
|
|
|
296055 |
+if test "x$ac_cv_type_int32_t" = xyes; then :
|
|
|
296055 |
+
|
|
|
296055 |
+cat >>confdefs.h <<_ACEOF
|
|
|
296055 |
+#define HAVE_INT32_T 1
|
|
|
296055 |
+_ACEOF
|
|
|
296055 |
+
|
|
|
296055 |
+
|
|
|
296055 |
+fi
|
|
|
296055 |
+ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "
|
|
|
296055 |
+#ifdef HAVE_INTTYPES_H
|
|
|
296055 |
+#include <inttypes.h>
|
|
|
296055 |
+#endif
|
|
|
296055 |
+"
|
|
|
296055 |
+if test "x$ac_cv_type_uint32_t" = xyes; then :
|
|
|
296055 |
+
|
|
|
296055 |
+cat >>confdefs.h <<_ACEOF
|
|
|
296055 |
+#define HAVE_UINT32_T 1
|
|
|
296055 |
+_ACEOF
|
|
|
296055 |
+
|
|
|
296055 |
+
|
|
|
296055 |
+fi
|
|
|
296055 |
+ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "
|
|
|
296055 |
+#ifdef HAVE_INTTYPES_H
|
|
|
296055 |
+#include <inttypes.h>
|
|
|
296055 |
+#endif
|
|
|
296055 |
+"
|
|
|
296055 |
+if test "x$ac_cv_type_int64_t" = xyes; then :
|
|
|
296055 |
+
|
|
|
296055 |
+cat >>confdefs.h <<_ACEOF
|
|
|
296055 |
+#define HAVE_INT64_T 1
|
|
|
296055 |
+_ACEOF
|
|
|
296055 |
+
|
|
|
296055 |
+
|
|
|
296055 |
+fi
|
|
|
296055 |
+ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "
|
|
|
296055 |
+#ifdef HAVE_INTTYPES_H
|
|
|
296055 |
+#include <inttypes.h>
|
|
|
296055 |
+#endif
|
|
|
296055 |
+"
|
|
|
296055 |
+if test "x$ac_cv_type_uint64_t" = xyes; then :
|
|
|
296055 |
+
|
|
|
296055 |
+cat >>confdefs.h <<_ACEOF
|
|
|
296055 |
+#define HAVE_UINT64_T 1
|
|
|
296055 |
+_ACEOF
|
|
|
296055 |
+
|
|
|
296055 |
+
|
|
|
296055 |
+fi
|
|
|
296055 |
+
|
|
|
296055 |
|
|
|
296055 |
|
|
|
296055 |
{ $as_echo "$as_me:$LINENO: checking whether you have ss_family in struct sockaddr_storage" >&5
|
|
|
296055 |
diff -up cyrus-sasl-2.1.26/include/makemd5.c.sizes cyrus-sasl-2.1.26/include/makemd5.c
|
|
|
296055 |
--- cyrus-sasl-2.1.26/include/makemd5.c.sizes 2012-01-28 00:31:36.000000000 +0100
|
|
|
296055 |
+++ cyrus-sasl-2.1.26/include/makemd5.c 2013-11-13 16:22:24.195981512 +0100
|
|
|
794a5c |
@@ -82,12 +82,19 @@
|
|
|
794a5c |
*/
|
|
|
794a5c |
|
|
|
794a5c |
|
|
|
794a5c |
+#ifdef HAVE_CONFIG_H
|
|
|
794a5c |
+#include "../config.h"
|
|
|
794a5c |
+#endif
|
|
|
794a5c |
|
|
|
794a5c |
#include <stdio.h>
|
|
|
794a5c |
#include <string.h>
|
|
|
794a5c |
#include <stdlib.h>
|
|
|
794a5c |
#include <ctype.h>
|
|
|
794a5c |
|
|
|
794a5c |
+#ifdef HAVE_INTTYPES_H
|
|
|
794a5c |
+#include <inttypes.h>
|
|
|
794a5c |
+#endif
|
|
|
794a5c |
+
|
|
|
794a5c |
|
|
|
794a5c |
static void
|
|
|
794a5c |
my_strupr(char *s)
|
|
|
794a5c |
@@ -122,6 +129,18 @@
|
|
|
794a5c |
static void
|
|
|
794a5c |
try_signed(FILE *f, int len)
|
|
|
794a5c |
{
|
|
|
794a5c |
+#ifdef HAVE_INT8_T
|
|
|
794a5c |
+ BITSIZE(int8_t);
|
|
|
794a5c |
+#endif
|
|
|
794a5c |
+#ifdef HAVE_INT16_T
|
|
|
794a5c |
+ BITSIZE(int16_t);
|
|
|
794a5c |
+#endif
|
|
|
794a5c |
+#ifdef HAVE_INT32_T
|
|
|
794a5c |
+ BITSIZE(int32_t);
|
|
|
794a5c |
+#endif
|
|
|
794a5c |
+#ifdef HAVE_INT64_T
|
|
|
794a5c |
+ BITSIZE(int64_t);
|
|
|
794a5c |
+#endif
|
|
|
794a5c |
BITSIZE(signed char);
|
|
|
794a5c |
BITSIZE(short);
|
|
|
794a5c |
BITSIZE(int);
|
|
|
794a5c |
@@ -135,6 +154,18 @@
|
|
|
794a5c |
static void
|
|
|
794a5c |
try_unsigned(FILE *f, int len)
|
|
|
794a5c |
{
|
|
|
794a5c |
+#ifdef HAVE_UINT8_T
|
|
|
794a5c |
+ BITSIZE(uint8_t);
|
|
|
794a5c |
+#endif
|
|
|
794a5c |
+#ifdef HAVE_UINT16_T
|
|
|
794a5c |
+ BITSIZE(uint16_t);
|
|
|
794a5c |
+#endif
|
|
|
794a5c |
+#ifdef HAVE_UINT32_T
|
|
|
794a5c |
+ BITSIZE(uint32_t);
|
|
|
794a5c |
+#endif
|
|
|
794a5c |
+#ifdef HAVE_UINT64_T
|
|
|
794a5c |
+ BITSIZE(uint64_t);
|
|
|
794a5c |
+#endif
|
|
|
794a5c |
BITSIZE(unsigned char);
|
|
|
794a5c |
BITSIZE(unsigned short);
|
|
|
794a5c |
BITSIZE(unsigned int);
|
|
|
794a5c |
@@ -165,6 +196,11 @@
|
|
|
794a5c |
"/* POINTER defines a generic pointer type */\n"
|
|
|
794a5c |
"typedef unsigned char *POINTER;\n"
|
|
|
794a5c |
"\n"
|
|
|
794a5c |
+#ifdef HAVE_INTTYPES_H
|
|
|
794a5c |
+ "/* We try to define integer types for our use */\n"
|
|
|
794a5c |
+ "#include <inttypes.h>\n"
|
|
|
794a5c |
+ "\n"
|
|
|
794a5c |
+#endif
|
|
|
794a5c |
);
|
|
|
794a5c |
return 1;
|
|
|
794a5c |
}
|
|
|
794a5c |
@@ -212,31 +248,15 @@
|
|
|
794a5c |
|
|
|
794a5c |
print_pre(f);
|
|
|
794a5c |
|
|
|
794a5c |
-#ifndef HAVE_INT8_T
|
|
|
794a5c |
try_signed (f, 8);
|
|
|
794a5c |
-#endif /* HAVE_INT8_T */
|
|
|
794a5c |
-#ifndef HAVE_INT16_T
|
|
|
794a5c |
try_signed (f, 16);
|
|
|
794a5c |
-#endif /* HAVE_INT16_T */
|
|
|
794a5c |
-#ifndef HAVE_INT32_T
|
|
|
794a5c |
try_signed (f, 32);
|
|
|
794a5c |
-#endif /* HAVE_INT32_T */
|
|
|
794a5c |
-#ifndef HAVE_INT64_T
|
|
|
794a5c |
try_signed (f, 64);
|
|
|
794a5c |
-#endif /* HAVE_INT64_T */
|
|
|
794a5c |
|
|
|
794a5c |
-#ifndef HAVE_U_INT8_T
|
|
|
794a5c |
try_unsigned (f, 8);
|
|
|
794a5c |
-#endif /* HAVE_INT8_T */
|
|
|
794a5c |
-#ifndef HAVE_U_INT16_T
|
|
|
794a5c |
try_unsigned (f, 16);
|
|
|
794a5c |
-#endif /* HAVE_U_INT16_T */
|
|
|
794a5c |
-#ifndef HAVE_U_INT32_T
|
|
|
794a5c |
try_unsigned (f, 32);
|
|
|
794a5c |
-#endif /* HAVE_U_INT32_T */
|
|
|
794a5c |
-#ifndef HAVE_U_INT64_T
|
|
|
794a5c |
try_unsigned (f, 64);
|
|
|
794a5c |
-#endif /* HAVE_U_INT64_T */
|
|
|
794a5c |
|
|
|
794a5c |
print_post(f);
|
|
|
794a5c |
|