diff options
author | Dom Lachowicz <domlachowicz@gmail.com> | 2009-01-24 15:00:48 +0000 |
---|---|---|
committer | Dom Lachowicz <domlachowicz@gmail.com> | 2009-01-24 15:00:48 +0000 |
commit | f3707f5740bbc69e127628394cc34401e41b34dc (patch) | |
tree | aaf772f7e6fd07f131ed45250fa00fbdbd98e568 | |
parent | 9a3a1091ca19896f19675dfaff32a2538ea6b542 (diff) | |
download | enchant-f3707f5740bbc69e127628394cc34401e41b34dc.tar.gz |
11914 - missing ssize_t define
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@25543 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r-- | ac-helpers/foo | 1 | ||||
-rw-r--r-- | ac-helpers/ssize_t.m4 | 21 | ||||
-rw-r--r-- | configure.in | 1 |
3 files changed, 22 insertions, 1 deletions
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 <sys/types.h>], + [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 |