[nasm:master] configure.ac: update to autoconf 2.71 standard

nasm-bot for H. Peter Anvin hpa at zytor.com
Mon Nov 7 17:12:32 PST 2022


Commit-ID:  b6151260a1d09a2e98f4d9074080e89fb6b3aa98
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=b6151260a1d09a2e98f4d9074080e89fb6b3aa98
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 5 Oct 2022 12:09:36 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 5 Oct 2022 12:09:36 -0700

configure.ac: update to autoconf 2.71 standard

autoconf 2.71 changes some macros and obsolete others; fix to match
autoconf 2.71 standard.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 configure.ac | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 17132af9..04a9f648 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,8 @@
 dnl Process this file with autoconf 2.69 or later to produce
 dnl a configure script.
-AC_PREREQ(2.69)
-AC_INIT([config/config.h.in])
+AC_PREREQ([2.71])
+AC_INIT
+AC_CONFIG_SRCDIR([config/config.h.in])
 AC_CONFIG_HEADERS([config/config.h])
 AC_PREFIX_PROGRAM(nasm)
 AC_CONFIG_AUX_DIR(autoconf/helpers)
@@ -24,10 +25,9 @@ dnl Get the canonical target system name
 AC_CANONICAL_HOST
 
 dnl Enable any available C extensions
+AC_PROG_CC
 AC_USE_SYSTEM_EXTENSIONS
 AC_SYS_LARGEFILE
-AC_PROG_CC
-AC_PROG_CC_STDC
 PA_ADD_CFLAGS([-std=c17], [], [],
 [PA_ADD_CFLAGS([-std=c11], [], [],
  [PA_ADD_CFLAGS([-std=c99])])])
@@ -175,7 +175,8 @@ AC_C_INLINE
 AC_C_RESTRICT
 
 dnl Checks for header files.
-AC_HEADER_STDC
+AC_CHECK_INCLUDES_DEFAULT
+
 PA_ADD_HEADERS(string.h)
 PA_ADD_HEADERS(stdarg.h)
 AC_CHECK_HEADERS(inttypes.h)


More information about the Nasm-commits mailing list