Mercurial > hg > octave-lojdl > gnulib-hg
annotate m4/wint_t.m4 @ 8863:53f97daf8db3
Update gettext version number.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 20 May 2007 20:13:53 +0000 |
parents | 72bd6a3bf181 |
children | 5671e991175c |
rev | line source |
---|---|
8863
53f97daf8db3
Update gettext version number.
Bruno Haible <bruno@clisp.org>
parents:
7852
diff
changeset
|
1 # wint_t.m4 serial 2 (gettext-0.16.2) |
7852
72bd6a3bf181
* lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
Eric Blake <ebb9@byu.net>
parents:
5585
diff
changeset
|
2 dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. |
5585
adff74659d81
Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents:
4334
diff
changeset
|
3 dnl This file is free software; the Free Software Foundation |
adff74659d81
Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents:
4334
diff
changeset
|
4 dnl gives unlimited permission to copy and/or distribute it, |
adff74659d81
Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents:
4334
diff
changeset
|
5 dnl with or without modifications, as long as this notice is preserved. |
4224
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 dnl From Bruno Haible. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 dnl Test whether <wchar.h> has the 'wint_t' type. |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 dnl Prerequisite: AC_PROG_CC |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 AC_DEFUN([gt_TYPE_WINT_T], |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 [ |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t, |
7852
72bd6a3bf181
* lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
Eric Blake <ebb9@byu.net>
parents:
5585
diff
changeset
|
14 [AC_TRY_COMPILE([ |
72bd6a3bf181
* lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
Eric Blake <ebb9@byu.net>
parents:
5585
diff
changeset
|
15 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
72bd6a3bf181
* lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
Eric Blake <ebb9@byu.net>
parents:
5585
diff
changeset
|
16 <wchar.h>. |
72bd6a3bf181
* lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
Eric Blake <ebb9@byu.net>
parents:
5585
diff
changeset
|
17 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included |
72bd6a3bf181
* lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
Eric Blake <ebb9@byu.net>
parents:
5585
diff
changeset
|
18 before <wchar.h>. */ |
72bd6a3bf181
* lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
Eric Blake <ebb9@byu.net>
parents:
5585
diff
changeset
|
19 #include <stddef.h> |
72bd6a3bf181
* lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
Eric Blake <ebb9@byu.net>
parents:
5585
diff
changeset
|
20 #include <stdio.h> |
72bd6a3bf181
* lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
Eric Blake <ebb9@byu.net>
parents:
5585
diff
changeset
|
21 #include <time.h> |
72bd6a3bf181
* lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
Eric Blake <ebb9@byu.net>
parents:
5585
diff
changeset
|
22 #include <wchar.h> |
4224
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
23 wint_t foo = (wchar_t)'\0';], , |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
24 gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)]) |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
25 if test $gt_cv_c_wint_t = yes; then |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
26 AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.]) |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
27 fi |
83eabea25586
New modules vasnprintf and vasprintf.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
28 ]) |