aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-07-09 01:24:37 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-10 20:26:23 +0200
commit96890c001f32943a8d5823ae553d6022bee8850b (patch)
treeb28f216a6122d5c60a4d4d08ea92feeb0f0b8159
parent84d902fb926f184a00b133d458cafda646c2e296 (diff)
downloadffmpeg-96890c001f32943a8d5823ae553d6022bee8850b.tar.gz
configure: Change the rdtsc check to a linker check
A compile-only test could succeed with an implicit function declaration. Also move the check to the x86 section; rdtsc is x86-only.
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index abafd6ef93..0acbdedc88 100755
--- a/configure
+++ b/configure
@@ -2948,8 +2948,6 @@ check_cc <<EOF && enable inline_asm
void foo(void) { __asm__ volatile ("" ::); }
EOF
-check_code cc intrin.h "__rdtsc()" && enable rdtsc
-
_restrict=
for restrict_keyword in restrict __restrict__ __restrict; do
check_cc <<EOF && _restrict=$restrict_keyword && break
@@ -3057,6 +3055,8 @@ elif enabled sparc; then
elif enabled x86; then
+ check_code ld intrin.h "__rdtsc()" "cc" && enable rdtsc
+
enable local_aligned_8 local_aligned_16
# check whether EBP is available on x86