inttypes.m4 826 B

12345678910111213141516171819202122232425
  1. # inttypes.m4 serial 1 (gettext-0.11.4)
  2. dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
  3. dnl This file is free software; the Free Software Foundation
  4. dnl gives unlimited permission to copy and/or distribute it,
  5. dnl with or without modifications, as long as this notice is preserved.
  6. dnl From Paul Eggert.
  7. # Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with
  8. # <sys/types.h>.
  9. AC_DEFUN([gt_HEADER_INTTYPES_H],
  10. [
  11. AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,
  12. [
  13. AC_TRY_COMPILE(
  14. [#include <sys/types.h>
  15. #include <inttypes.h>],
  16. [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)
  17. ])
  18. if test $gt_cv_header_inttypes_h = yes; then
  19. AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
  20. [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.])
  21. fi
  22. ])