Skip to content

Commit

Permalink
configure: don't call AC_PROG_CC_C99 on recent autoconf
Browse files Browse the repository at this point in the history
It's deprecated since autoconf 2.70 and $ac_cv_prog_cc_c99 is set by AC_PROG_CC

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Jun 7, 2021
1 parent f6791b3 commit c49b658
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions config/hwloc.m4
Expand Up @@ -163,8 +163,9 @@ EOF])
[AC_DEFINE([HWLOC_SYM_TRANSFORM], [1])])
# hwloc 2.0+ requires a C99 compliant compiler
AC_PROG_CC_C99
# The result of AC_PROG_CC_C99 is stored in ac_cv_prog_cc_c99
# AC_PROG_CC_C99 obsolete, detected inside AC_PROG_CC, since autoconf 2.70
m4_version_prereq([2.70], [], [AC_PROG_CC_C99])
# The C99 result of AC_PROG_CC>=2.70 or AC_PROG_CC_C99 is stored in ac_cv_prog_cc_c99
if test "x$ac_cv_prog_cc_c99" = xno ; then
AC_MSG_WARN([hwloc requires a C99 compiler])
AC_MSG_ERROR([Aborting.])
Expand Down
3 changes: 2 additions & 1 deletion configure.ac
Expand Up @@ -97,7 +97,8 @@ LT_LANG([C++])
CFLAGS_save=$CFLAGS
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CC_C99
# AC_PROG_CC_C99 obsolete, detected inside AC_PROG_CC, since autoconf 2.70
m4_version_prereq([2.70], [], [AC_PROG_CC_C99])
CFLAGS=$CFLAGS_save

AC_ARG_VAR(CC_FOR_BUILD,[build system C compiler])
Expand Down

0 comments on commit c49b658

Please sign in to comment.