From 2527c2f7749b27399392afdb84b50c0d939fc723 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 11 Jul 2016 11:10:50 +0100 Subject: [PATCH] configure.ac: Use modern version of `AC_CHECK_TYPES'. Also, check for `socklen_t' in , so that we can find it on Android. I don't expect this to be the last Android portability failure, because I've not even tried building it there yet. --- configure.ac | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 8b6ca53d..6171efd2 100644 --- a/configure.ac +++ b/configure.ac @@ -216,10 +216,19 @@ dnl Find out if we're cross-compiling. AM_CONDITIONAL([CROSS_COMPILING], [test "$cross_compiling" = yes]) dnl Various standard types. -AC_CHECK_TYPE([pid_t], [int]) +AC_CHECK_TYPE([pid_t], [], + [AC_DEFINE([pid_t], [int], + [Define to `int' if does not define])]) AC_TYPE_UID_T -AC_CHECK_TYPE([ssize_t], [int]) -AC_CHECK_TYPE([socklen_t], [int]) +AC_CHECK_TYPE([ssize_t], [], + [AC_DEFINE([ssize_t], [int], + [Define to `int' if does not define])]) +AC_CHECK_TYPE([socklen_t], [], + [AC_DEFINE([socklen_t], [int], + [Define to `int' if does not define])], + [AC_INCLUDES_DEFAULT +#include +]) dnl The maths library. mdw_ORIG_LIBS=$LIBS LIBS= -- 2.11.0