Skip to content

Commit 2157431

Browse files
committed
Ignore AC_PROG_CC_C99 obsolete from autoconf 2.70 on
With autoconf 2.70 AC_PROG_CC now enables C2011 by default and will handle C99 and C89. Signed-off-by: Christoph Niethammer <[email protected]>
1 parent b84c60e commit 2157431

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/opal_setup_cc.m4

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ AC_DEFUN([OPAL_SETUP_CC],[
169169
# AC_MSG_WARNING([Open MPI requires a C11 (or newer) compiler])
170170
# AC_MSG_ERROR([Aborting.])
171171
# From Open MPI 1.7 on we require a C99 compiant compiler
172-
AC_PROG_CC_C99
172+
dnl with autoconf 2.70 AC_PROG_CC makes AC_PROG_CC_C99 obsolete
173+
m4_version_prereq([2.70],
174+
[],
175+
[AC_PROG_CC_C99])
173176
# The result of AC_PROG_CC_C99 is stored in ac_cv_prog_cc_c99
174177
if test "x$ac_cv_prog_cc_c99" = xno ; then
175178
AC_MSG_WARN([Open MPI requires a C99 (or newer) compiler. C11 is recommended.])

0 commit comments

Comments
 (0)