Mercurial > hg > octave-jordi > gnulib-hg
annotate m4/inttypes-pri.m4 @ 7006:436f1f8cdf1e
Update to GNU gettext 0.15.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 22 Jul 2006 13:18:28 +0000 |
parents | be44f23226e0 |
children | a1deb716fd26 |
rev | line source |
---|---|
7006
436f1f8cdf1e
Update to GNU gettext 0.15.
Bruno Haible <bruno@clisp.org>
parents:
5659
diff
changeset
|
1 # inttypes-pri.m4 serial 2 (gettext-0.15) |
436f1f8cdf1e
Update to GNU gettext 0.15.
Bruno Haible <bruno@clisp.org>
parents:
5659
diff
changeset
|
2 dnl Copyright (C) 1997-2002, 2006 Free Software Foundation, Inc. |
5659
be44f23226e0
Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents:
4536
diff
changeset
|
3 dnl This file is free software; the Free Software Foundation |
be44f23226e0
Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents:
4536
diff
changeset
|
4 dnl gives unlimited permission to copy and/or distribute it, |
be44f23226e0
Update from GNU gettext 0.14.2.
Bruno Haible <bruno@clisp.org>
parents:
4536
diff
changeset
|
5 dnl with or without modifications, as long as this notice is preserved. |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 dnl From Bruno Haible. |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 # Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI* |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 # macros to non-string values. This is the case on AIX 4.3.3. |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 AC_DEFUN([gt_INTTYPES_PRI], |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 [ |
7006
436f1f8cdf1e
Update to GNU gettext 0.15.
Bruno Haible <bruno@clisp.org>
parents:
5659
diff
changeset
|
14 AC_REQUIRE([gl_HEADER_INTTYPES_H]) |
436f1f8cdf1e
Update to GNU gettext 0.15.
Bruno Haible <bruno@clisp.org>
parents:
5659
diff
changeset
|
15 if test $gl_cv_header_inttypes_h = yes; then |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 gt_cv_inttypes_pri_broken, |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
18 [ |
4536
3358eb550c86
Leave whitespace alone when importing, undoing that part of yesterday's
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
19 AC_TRY_COMPILE([#include <inttypes.h> |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
20 #ifdef PRId32 |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
21 char *p = PRId32; |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
22 #endif |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
23 ], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes) |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
24 ]) |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
25 fi |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
26 if test "$gt_cv_inttypes_pri_broken" = yes; then |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
27 AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1, |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
28 [Define if <inttypes.h> exists and defines unusable PRI* macros.]) |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
29 fi |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
30 ]) |