From 4569ab7eaa0d709fa9b578bc86d703212638a16c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 4 Jun 2026 15:36:19 +0300 Subject: [PATCH] configure: Provide checkasm_header_config_generated.h as well This is required for overriding defines that exist in the public headers of checkasm, when e.g. building with assembly disabled for an architecture where we normally would use the checked_call wrapper. This fixes a leftover in how checkasm is integrated into the ffmpeg build system; there were many different approaches considered for fixing --disable-asm, and the ffmpeg configure integration didn't end up matching the final solution. This fixes building with --disable-asm. --- configure | 33 ++++++++++++++++++++++++--------- tests/checkasm/Makefile | 12 ++++++++---- 2 files changed, 32 insertions(+), 13 deletions(-) diff --git a/configure b/configure index f0c66d9f59..2abf11614a 100755 --- a/configure +++ b/configure @@ -8872,6 +8872,28 @@ if enabled checkasm; then EOF print_config HAVE_ "$TMPH" elf_aux_info getauxval ioctl isatty linux_perf pthread_np_h pthread_setaffinity_np sigaction siglongjmp clock_gettime prctl + + if enabled aarch64; then + print_config HAVE_ "$TMPH" as_archext_sve_directive sve + print_config HAVE_ "$TMPH" as_archext_sme_directive sme + elif enabled riscv; then + print_config HAVE_ "$TMPH" sys_hwprobe_h asm_hwprobe_h + fi + + cat >> $TMPH < $TMPH <> $TMPH <