annotate m4/inttypes_h.m4 @ 40196:e63f5d3edab5

relocatable-prog: Update documentation. * doc/relocatable-maint.texi (Supporting Relocation): Update to match the recent changes.
author Bruno Haible <bruno@clisp.org>
date Sun, 24 Feb 2019 01:49:15 +0100
parents b06060465f09
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13577
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
1 # inttypes_h.m4 serial 10
40057
b06060465f09 maint: Run 'make update-copyright'
Paul Eggert <eggert@cs.ucla.edu>
parents: 19484
diff changeset
2 dnl Copyright (C) 1997-2004, 2006, 2008-2019 Free Software Foundation, Inc.
5585
adff74659d81 Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents: 5021
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: 5021
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: 5021
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_INTTYPES_H_WITH_UINTMAX if <inttypes.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_INTTYPES_H],
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 [
10979
03e819eea554 More systematic m4 argument quoting.
Bruno Haible <bruno@clisp.org>
parents: 7185
diff changeset
14 AC_CACHE_CHECK([for inttypes.h], [gl_cv_header_inttypes_h],
13577
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
15 [AC_COMPILE_IFELSE(
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
16 [AC_LANG_PROGRAM(
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
17 [[
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
18 #include <sys/types.h>
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
19 #include <inttypes.h>
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
20 ]],
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
21 [[uintmax_t i = (uintmax_t) -1; return !i;]])],
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
22 [gl_cv_header_inttypes_h=yes],
d53740f6f336 Modernize AC_TRY_COMPILE invocations.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
23 [gl_cv_header_inttypes_h=no])])
5019
3c49e2a96a18 jm_ac_ -> gl_
Bruno Haible <bruno@clisp.org>
parents: 5016
diff changeset
24 if test $gl_cv_header_inttypes_h = yes; then
11007
f6cba5a556ce many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents: 10979
diff changeset
25 AC_DEFINE_UNQUOTED([HAVE_INTTYPES_H_WITH_UINTMAX], [1],
4107
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 [Define if <inttypes.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
27 and declares uintmax_t. ])
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 fi
7c1a6b73f48e An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 ])