From f3707f5740bbc69e127628394cc34401e41b34dc Mon Sep 17 00:00:00 2001 From: Dom Lachowicz Date: Sat, 24 Jan 2009 15:00:48 +0000 Subject: 11914 - missing ssize_t define git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@25543 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6 --- ac-helpers/foo | 1 - ac-helpers/ssize_t.m4 | 21 +++++++++++++++++++++ configure.in | 1 + 3 files changed, 22 insertions(+), 1 deletion(-) delete mode 100644 ac-helpers/foo create mode 100644 ac-helpers/ssize_t.m4 diff --git a/ac-helpers/foo b/ac-helpers/foo deleted file mode 100644 index 257cc56..0000000 --- a/ac-helpers/foo +++ /dev/null @@ -1 +0,0 @@ -foo diff --git a/ac-helpers/ssize_t.m4 b/ac-helpers/ssize_t.m4 new file mode 100644 index 0000000..4eaef93 --- /dev/null +++ b/ac-helpers/ssize_t.m4 @@ -0,0 +1,21 @@ +# ssize_t.m4 serial 4 (gettext-0.15) +dnl Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. +dnl Test whether ssize_t is defined. + +AC_DEFUN([gt_TYPE_SSIZE_T], +[ + AC_CACHE_CHECK([for ssize_t], [gt_cv_ssize_t], + [AC_TRY_COMPILE([#include ], + [int x = sizeof (ssize_t *) + sizeof (ssize_t); + return !x;], + [gt_cv_ssize_t=yes], [gt_cv_ssize_t=no])]) + if test $gt_cv_ssize_t = no; then + AC_DEFINE([ssize_t], [int], + [Define as a signed type of the same size as size_t.]) + fi +]) diff --git a/configure.in b/configure.in index f0580b3..8f05e84 100644 --- a/configure.in +++ b/configure.in @@ -38,6 +38,7 @@ AC_PROG_MAKE_SET AC_STDC_HEADERS AC_LIBTOOL_WIN32_DLL AM_PROG_LIBTOOL +gt_TYPE_SSIZE_T AC_C_CONST -- cgit v1.2.1