From 08088411259056f63774befb2d00951fdd5c46ba Mon Sep 17 00:00:00 2001 From: "Timothy B. Terriberry" Date: Wed, 6 Jul 2022 15:23:12 -0700 Subject: Only build platform RTCD sources when enabled. To avoid issues with empty compilation units. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e2c88ed1..1d426f27 100644 --- a/configure.ac +++ b/configure.ac @@ -195,6 +195,7 @@ AC_ARG_ENABLE([intrinsics], rtcd_support=no cpu_arm=no +cpu_x86=no AS_IF([test x"${enable_asm}" = x"yes"],[ inline_optimization="No inline ASM for your platform, please send patches" @@ -535,6 +536,7 @@ AS_IF([test x"$enable_intrinsics" = x"yes"],[ ], [i?86|x86_64], [ + cpu_x86=yes OPUS_CHECK_INTRINSICS( [SSE], [$X86_SSE_CFLAGS], @@ -744,6 +746,7 @@ AM_CONDITIONAL([HAVE_ARM_NEON_INTR], [test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1"]) AM_CONDITIONAL([HAVE_ARM_NE10], [test x"$HAVE_ARM_NE10" = x"1"]) +AM_CONDITIONAL([CPU_X86], [test "$cpu_x86" = "yes"]) AM_CONDITIONAL([HAVE_SSE], [test x"$OPUS_X86_MAY_HAVE_SSE" = x"1"]) AM_CONDITIONAL([HAVE_SSE2], @@ -753,6 +756,8 @@ AM_CONDITIONAL([HAVE_SSE4_1], AM_CONDITIONAL([HAVE_AVX], [test x"$OPUS_X86_MAY_HAVE_AVX" = x"1"]) +AM_CONDITIONAL([HAVE_RTCD], + [test x"$enable_rtcd" = x"yes" -a x"$rtcd_support" != x"no"]) AS_IF([test x"$enable_rtcd" = x"yes"],[ AS_IF([test x"$rtcd_support" != x"no"],[ AC_DEFINE([OPUS_HAVE_RTCD], [1], -- cgit v1.2.3