Mercurial > hg > octave-kai > gnulib-hg
annotate m4/mbstate_t.m4 @ 15857:6b8400199763
New module 'sqrtf'.
* lib/math.in.h (sqrtf): New declaration.
* lib/sqrtf.c: New file.
* m4/sqrtf.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
* modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
* modules/sqrtf: New file.
* tests/test-math-c++.cc: Check the declaration of sqrtf.
* doc/posix-functions/sqrtf.texi: Mention the new module.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 08 Oct 2011 21:16:48 +0200 |
parents | 97fc9a21a8fb |
children | 8250f2777afc |
rev | line source |
---|---|
14020
318a4063e921
Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
1 # mbstate_t.m4 serial 13 |
14079
97fc9a21a8fb
maint: update almost all copyright ranges to include 2011
Jim Meyering <meyering@redhat.com>
parents:
14020
diff
changeset
|
2 dnl Copyright (C) 2000-2002, 2008-2011 Free Software Foundation, Inc. |
5585
adff74659d81
Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents:
3883
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:
3883
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:
3883
diff
changeset
|
5 dnl with or without modifications, as long as this notice is preserved. |
2637
a2dc7794f060
New file, defining AC_MBSTATE_T_OBJECT.
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
6 |
a2dc7794f060
New file, defining AC_MBSTATE_T_OBJECT.
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
7 # From Paul Eggert. |
a2dc7794f060
New file, defining AC_MBSTATE_T_OBJECT.
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
8 |
2741
e9b47b61488d
(AC_MBSTATE_T): Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
Jim Meyering <jim@meyering.net>
parents:
2709
diff
changeset
|
9 # BeOS 5 has <wchar.h> but does not define mbstate_t, |
2637
a2dc7794f060
New file, defining AC_MBSTATE_T_OBJECT.
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
10 # so you can't declare an object of that type. |
a2dc7794f060
New file, defining AC_MBSTATE_T_OBJECT.
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
11 # Check for this incompatibility with Standard C. |
a2dc7794f060
New file, defining AC_MBSTATE_T_OBJECT.
Jim Meyering <jim@meyering.net>
parents:
diff
changeset
|
12 |
3883
05a49235000e
Update from diffutils-2.8.2.
Jim Meyering <jim@meyering.net>
parents:
3339
diff
changeset
|
13 # AC_TYPE_MBSTATE_T |
05a49235000e
Update from diffutils-2.8.2.
Jim Meyering <jim@meyering.net>
parents:
3339
diff
changeset
|
14 # ----------------- |
05a49235000e
Update from diffutils-2.8.2.
Jim Meyering <jim@meyering.net>
parents:
3339
diff
changeset
|
15 AC_DEFUN([AC_TYPE_MBSTATE_T], |
10918
1a3d44359528
Ensure mbstate_t is defined on HP-UX 11.11.
Bruno Haible <bruno@clisp.org>
parents:
9921
diff
changeset
|
16 [ |
1a3d44359528
Ensure mbstate_t is defined on HP-UX 11.11.
Bruno Haible <bruno@clisp.org>
parents:
9921
diff
changeset
|
17 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) dnl for HP-UX 11.11 |
1a3d44359528
Ensure mbstate_t is defined on HP-UX 11.11.
Bruno Haible <bruno@clisp.org>
parents:
9921
diff
changeset
|
18 |
11007
f6cba5a556ce
many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents:
10918
diff
changeset
|
19 AC_CACHE_CHECK([for mbstate_t], [ac_cv_type_mbstate_t], |
3883
05a49235000e
Update from diffutils-2.8.2.
Jim Meyering <jim@meyering.net>
parents:
3339
diff
changeset
|
20 [AC_COMPILE_IFELSE( |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
11007
diff
changeset
|
21 [AC_LANG_PROGRAM( |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
11007
diff
changeset
|
22 [AC_INCLUDES_DEFAULT[ |
14020
318a4063e921
Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
23 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
318a4063e921
Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
24 <wchar.h>. |
318a4063e921
Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
25 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
318a4063e921
Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
26 included before <wchar.h>. */ |
318a4063e921
Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
27 #include <stddef.h> |
318a4063e921
Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
28 #include <stdio.h> |
318a4063e921
Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
29 #include <time.h> |
318a4063e921
Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
30 #include <wchar.h>]], |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
11007
diff
changeset
|
31 [[mbstate_t x; return sizeof x;]])], |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
11007
diff
changeset
|
32 [ac_cv_type_mbstate_t=yes], |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
11007
diff
changeset
|
33 [ac_cv_type_mbstate_t=no])]) |
3883
05a49235000e
Update from diffutils-2.8.2.
Jim Meyering <jim@meyering.net>
parents:
3339
diff
changeset
|
34 if test $ac_cv_type_mbstate_t = yes; then |
11007
f6cba5a556ce
many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents:
10918
diff
changeset
|
35 AC_DEFINE([HAVE_MBSTATE_T], [1], |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
11007
diff
changeset
|
36 [Define to 1 if <wchar.h> declares mbstate_t.]) |
3883
05a49235000e
Update from diffutils-2.8.2.
Jim Meyering <jim@meyering.net>
parents:
3339
diff
changeset
|
37 else |
11007
f6cba5a556ce
many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents:
10918
diff
changeset
|
38 AC_DEFINE([mbstate_t], [int], |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
11007
diff
changeset
|
39 [Define to a type if <wchar.h> does not define.]) |
10918
1a3d44359528
Ensure mbstate_t is defined on HP-UX 11.11.
Bruno Haible <bruno@clisp.org>
parents:
9921
diff
changeset
|
40 fi |
1a3d44359528
Ensure mbstate_t is defined on HP-UX 11.11.
Bruno Haible <bruno@clisp.org>
parents:
9921
diff
changeset
|
41 ]) |