From a5e2eff5e9ffae25792d859213ddc73aeace80d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 25 Aug 2021 10:23:30 +0200 Subject: [PATCH] configure: resolve autotools 2.70 deprecation warnings configure.ac:72: warning: The macro `AC_PROG_CC_C99' is obsolete. configure.ac:72: You should run autoupdate. ./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from... configure.ac:72: the top level configure.ac:134: warning: The macro `AC_HEADER_STDC' is obsolete. configure.ac:134: You should run autoupdate. ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from... configure.ac:134: the top level --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 8e7774f2..71b93b40 100644 --- a/configure.ac +++ b/configure.ac @@ -69,7 +69,7 @@ AC_USE_SYSTEM_EXTENSIONS AC_PROG_CC AM_PROG_CC_C_O -AC_PROG_CC_C99 +m4_version_prereq([2.70], [], [AC_PROG_CC_C99]) AS_IF([test "x$ac_cv_prog_cc_c99" = xno], [AC_MSG_ERROR([htop is written in C99. A newer compiler is required.])]) # ---------------------------------------------------------------------- @@ -131,7 +131,7 @@ esac # ---------------------------------------------------------------------- AC_HEADER_DIRENT -AC_HEADER_STDC +m4_version_prereq([2.70], [AC_CHECK_INCLUDES_DEFAULT], [AC_HEADER_STDC]) AC_CHECK_HEADERS([ \ stdlib.h \ string.h \