|
Packit |
fc043f |
# inttypes-pri.m4 serial 2 (gettext-0.15)
|
|
Packit |
fc043f |
dnl Copyright (C) 1997-2002, 2006 Free Software Foundation, Inc.
|
|
Packit |
fc043f |
dnl This file is free software; the Free Software Foundation
|
|
Packit |
fc043f |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit |
fc043f |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
dnl From Bruno Haible.
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
|
|
Packit |
fc043f |
# macros to non-string values. This is the case on AIX 4.3.3.
|
|
Packit |
fc043f |
|
|
Packit |
fc043f |
AC_DEFUN([gt_INTTYPES_PRI],
|
|
Packit |
fc043f |
[
|
|
Packit |
fc043f |
AC_REQUIRE([gl_HEADER_INTTYPES_H])
|
|
Packit |
fc043f |
if test $gl_cv_header_inttypes_h = yes; then
|
|
Packit |
fc043f |
AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
|
|
Packit |
fc043f |
gt_cv_inttypes_pri_broken,
|
|
Packit |
fc043f |
[
|
|
Packit |
fc043f |
AC_TRY_COMPILE([#include <inttypes.h>
|
|
Packit |
fc043f |
#ifdef PRId32
|
|
Packit |
fc043f |
char *p = PRId32;
|
|
Packit |
fc043f |
#endif
|
|
Packit |
fc043f |
], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
|
|
Packit |
fc043f |
])
|
|
Packit |
fc043f |
fi
|
|
Packit |
fc043f |
if test "$gt_cv_inttypes_pri_broken" = yes; then
|
|
Packit |
fc043f |
AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
|
|
Packit |
fc043f |
[Define if <inttypes.h> exists and defines unusable PRI* macros.])
|
|
Packit |
fc043f |
fi
|
|
Packit |
fc043f |
])
|