Mercurial > hg > octave-jordi > gnulib-hg
annotate m4/stdint_h.m4 @ 7185:90f5608d1c64
* stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
* inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
* longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
* intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 22 Aug 2006 21:16:36 +0000 |
parents | adff74659d81 |
children | 03e819eea554 |
rev | line source |
---|---|
7185
90f5608d1c64
* stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5585
diff
changeset
|
1 # stdint_h.m4 serial 6 |
90f5608d1c64
* stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5585
diff
changeset
|
2 dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc. |
5585
adff74659d81
Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents:
5019
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:
5019
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:
5019
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 Paul Eggert. |
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 HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists, |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 # doesn't clash with <sys/types.h>, and declares uintmax_t. |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 |
5016
7141ea4946af
Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
Jim Meyering <jim@meyering.net>
parents:
4334
diff
changeset
|
12 AC_DEFUN([gl_AC_HEADER_STDINT_H], |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 [ |
5019 | 14 AC_CACHE_CHECK([for stdint.h], gl_cv_header_stdint_h, |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 [AC_TRY_COMPILE( |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 [#include <sys/types.h> |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 #include <stdint.h>], |
7185
90f5608d1c64
* stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5585
diff
changeset
|
18 [uintmax_t i = (uintmax_t) -1; return !i;], |
5019 | 19 gl_cv_header_stdint_h=yes, |
20 gl_cv_header_stdint_h=no)]) | |
21 if test $gl_cv_header_stdint_h = yes; then | |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
22 AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1, |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
23 [Define if <stdint.h> exists, doesn't clash with <sys/types.h>, |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
24 and declares uintmax_t. ]) |
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 ]) |