Skip to content

Commit 1cc0941

Browse files
configure: Don't abort if the compiler does not define __STDC__
This removes a check for $ac_cv_prog_cc_c89 which is set by AC_PROG_CC if defined(__STDC__) in the preprocessor. (Standard compliant compilers are supposed to define __STDC__ to 1 but the value is actually not checked here.) Unfortunately, MSVC doesn't define it, so configure fails for MSVC. This check is not very useful in practice. Over 30 years after C89 has been released, there are no C compilers out there that are not sufficiently compliant with C89 for the project. The only practically relevant case was that the check rejected C++ compilers. A different method to reject C++ compilers will be introduced in a later commit.
1 parent cca8cbb commit 1cc0941

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

configure.ac

-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
3535
PKG_PROG_PKG_CONFIG
3636

3737
AC_PROG_CC
38-
if test x"$ac_cv_prog_cc_c89" = x"no"; then
39-
AC_MSG_ERROR([c89 compiler support required])
40-
fi
4138
AM_PROG_AS
4239
AM_PROG_AR
4340

0 commit comments

Comments
 (0)