diff options
author | Ron <ron@debian.org> | 2014-12-20 19:46:20 +1030 |
---|---|---|
committer | Ron <ron@debian.org> | 2014-12-20 19:46:20 +1030 |
commit | 7424bb0a247c0692327001addb036f6e2313e970 (patch) | |
tree | b0aea93f4a76aa0a66cbd3c65793936a8d004dd3 /configure.ac | |
parent | 3b1928ce3e6943377d9b1d96b9b95ca27e8e693c (diff) | |
download | libopus-7424bb0a247c0692327001addb036f6e2313e970.tar.gz |
Fix the quoting of AC_LANG_PROGRAM
It was under-quoted in c95c9a048f3283afb2e412b10085d4f7c19e1412, which
leads to a flood of warnings when it gets incorrectly expanded, like:
configure.ac:354: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/configure.ac b/configure.ac index 9b2f51f4..95f20b23 100644 --- a/configure.ac +++ b/configure.ac @@ -357,9 +357,9 @@ AS_IF([test x"$enable_float" = x"no"], AS_IF([test x"$enable_rtcd" = x"yes"],[ get_cpuid_by_asm="no" AC_MSG_CHECKING([Get CPU Info]) - AC_LINK_IFELSE(AC_LANG_PROGRAM([ + AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include <stdio.h> - ],[ + ]],[[ unsigned int CPUInfo0; unsigned int CPUInfo1; unsigned int CPUInfo2; @@ -373,19 +373,19 @@ AS_IF([test x"$enable_float" = x"no"], "=d" (CPUInfo3) : "a" (InfoType), "c" (0) ); - ]), + ]])], [get_cpuid_by_asm="yes" AC_MSG_RESULT([Inline Assembly])], - [AC_LINK_IFELSE(AC_LANG_PROGRAM([ + [AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include <cpuid.h> - ],[ + ]],[[ unsigned int CPUInfo0; unsigned int CPUInfo1; unsigned int CPUInfo2; unsigned int CPUInfo3; unsigned int InfoType; __get_cpuid(InfoType, &CPUInfo0, &CPUInfo1, &CPUInfo2, &CPUInfo3); - ]), + ]])], [AC_MSG_RESULT([C method])], [AC_MSG_ERROR([not support Get CPU Info, please disable intrinsics ])])]) @@ -405,14 +405,14 @@ AS_IF([test x"$enable_float" = x"no"], #endif ]) - AC_LINK_IFELSE(AC_LANG_PROGRAM([ + AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include <xmmintrin.h> #include <emmintrin.h> #include <smmintrin.h> - ],[ + ]],[[ __m128i mtest = _mm_setzero_si128(); mtest = _mm_cmpeq_epi64(mtest, mtest); - ]), + ]])], [AC_MSG_RESULT([yes])], [AC_MSG_ERROR([Compiler & linker failure for sse4.1, please disable intrinsics])]) CFLAGS="$TMP_CFLAGS" @@ -432,12 +432,12 @@ AS_IF([test x"$enable_float" = x"no"], AC_CHECK_HEADER(xmmintrin.h, [], [AC_MSG_ERROR([Couldn't find xmmintrin.h])]) AC_CHECK_HEADER(emmintrin.h, [], [AC_MSG_ERROR([Couldn't find emmintrin.h])]) - AC_LINK_IFELSE(AC_LANG_PROGRAM([ + AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include <xmmintrin.h> #include <emmintrin.h> - ],[ + ]],[[ __m128i mtest = _mm_setzero_si128(); - ]), + ]])], [AC_MSG_RESULT([yes])], [AC_MSG_ERROR([Compiler & linker failure for sse2, please disable intrinsics])]) CFLAGS="$TMP_CFLAGS" |