File tree Expand file tree Collapse file tree 3 files changed +31
-6
lines changed
Expand file tree Collapse file tree 3 files changed +31
-6
lines changed Original file line number Diff line number Diff line change @@ -8121,7 +8121,11 @@ else case e in #(
81218121# error "Compiler does not advertise ISO C conformance"
81228122#endif
81238123
8124+ // Most new features have feature tests. but bool type is fundamental.
8125+
81248126int main(void) {
8127+ bool x = true;
8128+
81258129 return 0;
81268130}
81278131
@@ -8169,7 +8173,11 @@ else case e in #(
81698173# error "Compiler does not advertise ISO C conformance"
81708174#endif
81718175
8176+ // Most new features have feature tests. but bool type is fundamental.
8177+
81728178int main(void) {
8179+ bool x = true;
8180+
81738181 return 0;
81748182}
81758183
@@ -8201,8 +8209,15 @@ fi
82018209
82028210
82038211if test x$use_C23 = xyes; then
8204- CC=${CC23}
8205- CFLAGS=${C23FLAGS}
8212+ if test x${r_cv_C23} = xyes; then
8213+ CC=${CC23}
8214+ CFLAGS=${C23FLAGS}
8215+ else
8216+ CC=${CC_save}
8217+ CFLAGS=${CFLAGS_save}
8218+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: C23 support is unavailable" >&5
8219+ printf "%s\n" "$as_me: WARNING: C23 support is unavailable" >&2;}
8220+ fi
82068221else
82078222CC=${CC_save}
82088223CFLAGS=${CFLAGS_save}
@@ -27514,7 +27529,7 @@ _ACEOF
2751427529# flags.
2751527530r_save_CFLAGS=$CFLAGS
2751627531CFLAGS="$CFLAGS $r_verb"
27517- (eval echo $as_me:27517 : \"$ac_link\") >&5
27532+ (eval echo $as_me:27532 : \"$ac_link\") >&5
2751827533r_c_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
2751927534echo "$r_c_v_output" >&5
2752027535CFLAGS=$r_save_CFLAGS
@@ -27592,7 +27607,7 @@ _ACEOF
2759227607# flags.
2759327608r_save_CFLAGS=$CFLAGS
2759427609CFLAGS="$CFLAGS $r_cv_prog_c_v"
27595- (eval echo $as_me:27595 : \"$ac_link\") >&5
27610+ (eval echo $as_me:27610 : \"$ac_link\") >&5
2759627611r_c_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
2759727612echo "$r_c_v_output" >&5
2759827613CFLAGS=$r_save_CFLAGS
Original file line number Diff line number Diff line change @@ -777,8 +777,14 @@ AC_SUBST(CC23)
777777AC_SUBST ( C23FLAGS )
778778
779779if test x$use_C23 = xyes; then
780- CC=${CC23}
781- CFLAGS=${C23FLAGS}
780+ if test x${r_cv_C23} = xyes; then
781+ CC=${CC23}
782+ CFLAGS=${C23FLAGS}
783+ else
784+ CC=${CC_save}
785+ CFLAGS=${CFLAGS_save}
786+ AC_MSG_WARN ( [ C23 support is unavailable] )
787+ fi
782788else
783789CC=${CC_save}
784790CFLAGS=${CFLAGS_save}
Original file line number Diff line number Diff line change @@ -5370,7 +5370,11 @@ AC_DEFUN([R_C23],
53705370# error "Compiler does not advertise ISO C conformance"
53715371#endif
53725372
5373+ // Most new features have feature tests. but bool type is fundamental.
5374+
53735375int main(void) {
5376+ bool x = true;
5377+
53745378 return 0;
53755379}
53765380
You can’t perform that action at this time.
0 commit comments