Skip to content

m4: update ax_prog_cc_for_build.m4 to latest#524

Merged
stevegrubb merged 1 commit intolinux-audit:masterfrom
shr-project:fix-autoconf-2.73
Apr 23, 2026
Merged

m4: update ax_prog_cc_for_build.m4 to latest#524
stevegrubb merged 1 commit intolinux-audit:masterfrom
shr-project:fix-autoconf-2.73

Conversation

@shr-project
Copy link
Copy Markdown
Contributor

After the autoconf update to 2.73 this was using -std=gnu23 even on hosts with gcc-13 which doesn't support it:

ac_cv_prog_ac_ct_CC_FOR_BUILD='gcc '
ac_cv_prog_cc_c23=-std=gnu23
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=-std=gnu23

Leading to:
gcc -std=gnu23 -DHAVE_CONFIG_H -I. -I../../sources/audit-4.1.4/lib -I.. -I. -I../../sources/audit-4.1.4 -I../../sources/audit-4.1.4/auparse -I../../sources/audit-4.1.4/common -isystem/audit/4.1.4/recipe-sysroot-native/usr/include '-DTABLE_H="fieldtab.h"' -isystem/audit/4.1.4/recipe-sysroot-native/usr/include -O2 -pipe -c -o gen_fieldtabs_h-gen_tables.o test -f 'gen_tables.c' || echo '../../sources/audit-4.1.4/lib/'gen_tables.c gcc: error: unrecognized command-line option �-std=gnu23�; did you mean �-std=gnu2x�?

Needs the updated ac_cv_prog_cc_c23 from:
autoconf-archive/autoconf-archive@8a970ce

After the autoconf update to 2.73 this was using -std=gnu23
even on hosts with gcc-13 which doesn't support it:

ac_cv_prog_ac_ct_CC_FOR_BUILD='gcc '
ac_cv_prog_cc_c23=-std=gnu23
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=-std=gnu23

Leading to:
gcc  -std=gnu23 -DHAVE_CONFIG_H -I. -I../../sources/audit-4.1.4/lib -I..  -I. -I../../sources/audit-4.1.4 -I../../sources/audit-4.1.4/auparse -I../../sources/audit-4.1.4/common -isystem/audit/4.1.4/recipe-sysroot-native/usr/include '-DTABLE_H="fieldtab.h"' -isystem/audit/4.1.4/recipe-sysroot-native/usr/include -O2 -pipe -c -o gen_fieldtabs_h-gen_tables.o `test -f 'gen_tables.c' || echo '../../sources/audit-4.1.4/lib/'`gen_tables.c
gcc: error: unrecognized command-line option �-std=gnu23�; did you mean �-std=gnu2x�?

Needs the updated ac_cv_prog_cc_c23 from:
autoconf-archive/autoconf-archive@8a970ce

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Copy link
Copy Markdown
Contributor

@Cropi Cropi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the changes. The PR updates m4/ax_prog_cc_for_build.m4 from serial 8 to serial 26 and is a byte-for-byte match with the current upstream at https://gitweb.git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_prog_cc_for_build.m4

@stevegrubb
Copy link
Copy Markdown
Contributor

I was waiting for autoconf-2.73 to show up in rawhide. Build checks good. Thanks for the patch.

@stevegrubb stevegrubb merged commit f154930 into linux-audit:master Apr 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants