build: Replace use of deprecated autoconf macro AC_PROG_CC_C89

According to [autoconf 2.70](https://www.gnu.org/software/autoconf/manual/autoconf-2.70/html_node/Obsolete-Macros.html)
documentation, the `AC_PROG_CC_C89' is replaced by `AC_PROG_CC`, which
defines the same variable `ac_cv_prog_cc_c89`.

Avoids the following message:
```
configure.ac:23: warning: The macro `AC_PROG_CC_C89' is obsolete.
```

Also, remove deprecated `AM_PROG_CC_C_O`.
This commit is contained in:
laanwj 2022-02-02 16:46:13 +01:00
parent d8a2463246
commit e0db3f8a25
1 changed files with 1 additions and 2 deletions

View File

@ -38,8 +38,7 @@ AC_PATH_TOOL(AR, ar)
AC_PATH_TOOL(RANLIB, ranlib) AC_PATH_TOOL(RANLIB, ranlib)
AC_PATH_TOOL(STRIP, strip) AC_PATH_TOOL(STRIP, strip)
AM_PROG_CC_C_O AC_PROG_CC
AC_PROG_CC_C89
if test x"$ac_cv_prog_cc_c89" = x"no"; then if test x"$ac_cv_prog_cc_c89" = x"no"; then
AC_MSG_ERROR([c89 compiler support required]) AC_MSG_ERROR([c89 compiler support required])
fi fi