diff --git a/Makefile.in b/Makefile.in index 10d84a9e3..c252854f3 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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@ diff --git a/configure.in b/configure.in index b9d091af6..85dd6ad33 100644 --- a/configure.in +++ b/configure.in @@ -80,16 +80,12 @@ if test $ac_cv_header_limits_h = no; then AC_MSG_ERROR([NASM requires '' to compile]) fi +dnl Check for 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