Skip to content

Commit

Permalink
configure: Don't abort if the compiler does not define __STDC__
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
real-or-random committed Mar 17, 2022
1 parent cca8cbb commit 1cc0941
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions configure.ac
Expand Up @@ -35,9 +35,6 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
PKG_PROG_PKG_CONFIG

AC_PROG_CC
if test x"$ac_cv_prog_cc_c89" = x"no"; then
AC_MSG_ERROR([c89 compiler support required])
fi
AM_PROG_AS
AM_PROG_AR

Expand Down

0 comments on commit 1cc0941

Please sign in to comment.