Detect missing <inttypes.h> and include ersatz version if missing

This commit is contained in:
H. Peter Anvin 2007-06-21 19:00:12 +00:00
parent fa87e1a088
commit 52daec56f9
2 changed files with 4 additions and 7 deletions

@ -7,6 +7,7 @@
# redistributable under the licence given in the file "Licence"
# distributed in the NASM archive.
top_srcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
prefix = @prefix@

@ -80,16 +80,12 @@ if test $ac_cv_header_limits_h = no; then
AC_MSG_ERROR([NASM requires '<limits.h>' to compile])
fi
dnl Check for <inttypes.h> or add a substitute version
AC_CHECK_HEADERS(inttypes.h, , CFLAGS="$CFLAGS -I\$(top_srcdir)/inttypes")
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
if test $ac_cv_c_const = no; then
AC_MSG_ERROR([NASM requires ANSI C (specifically, working "const")])
fi
AC_TYPE_SIZE_T
if test $ac_cv_type_size_t = no; then
AC_MSG_ERROR([NASM requires ANSI C (specifically, "size_t")])
fi
dnl Checks for library functions.
AC_FUNC_VPRINTF