diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-07-05 23:57:37 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-07-05 23:57:37 +0200 |
commit | c4b681fdacc57de0b2a9584c1f6a195cf2629b32 (patch) | |
tree | 6314adbbde6f9e64282120ad1d43db9034f41034 /m4/inttypes_h.m4 | |
parent | 5374ec9c281c2e77c283f60afd55e47d86e3b898 (diff) | |
download | guile-c4b681fdacc57de0b2a9584c1f6a195cf2629b32.tar.gz |
Use Gnulib's `vsnprintf' module.
* m4/gnulib-cache.m4: Use `vsnprintf', needed by `deprecation.c'.
Diffstat (limited to 'm4/inttypes_h.m4')
-rw-r--r-- | m4/inttypes_h.m4 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/m4/inttypes_h.m4 b/m4/inttypes_h.m4 new file mode 100644 index 000000000..f4ca16021 --- /dev/null +++ b/m4/inttypes_h.m4 @@ -0,0 +1,26 @@ +# inttypes_h.m4 serial 9 +dnl Copyright (C) 1997-2004, 2006, 2008, 2009 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Paul Eggert. + +# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists, +# doesn't clash with <sys/types.h>, and declares uintmax_t. + +AC_DEFUN([gl_AC_HEADER_INTTYPES_H], +[ + AC_CACHE_CHECK([for inttypes.h], [gl_cv_header_inttypes_h], + [AC_TRY_COMPILE( + [#include <sys/types.h> +#include <inttypes.h>], + [uintmax_t i = (uintmax_t) -1; return !i;], + [gl_cv_header_inttypes_h=yes], + [gl_cv_header_inttypes_h=no])]) + if test $gl_cv_header_inttypes_h = yes; then + AC_DEFINE_UNQUOTED([HAVE_INTTYPES_H_WITH_UINTMAX], [1], + [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, + and declares uintmax_t. ]) + fi +]) |