mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-19 18:00:23 +08:00
Detect missing <inttypes.h> and include ersatz version if missing
This commit is contained in:
parent
fa87e1a088
commit
52daec56f9
@ -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@
|
||||
|
10
configure.in
10
configure.in
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user