aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-03-27 19:26:19 +0100
committerAnton Khirnov <anton@khirnov.net>2013-04-03 09:22:31 +0200
commitf9f6402e9c9ce3642df981b48507df3a2d956f65 (patch)
treea2048ccf4ac1e312f0cdcde048d15e23544788ed /configure
parent0933fd1533560fbc718026e12f19a4824b041237 (diff)
downloadffmpeg-f9f6402e9c9ce3642df981b48507df3a2d956f65.tar.gz
configure: prettify atomics handling.
Add simpler names and a shorthand for native atomics (as opposed to pthreads fallback).
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure b/configure
index 1326c448ef..7f77b007e6 100755
--- a/configure
+++ b/configure
@@ -1122,6 +1122,12 @@ THREADS_LIST='
w32threads
'
+ATOMICS_LIST='
+ atomics_gcc
+ atomics_win32
+ atomics_suncc
+'
+
ARCH_LIST='
aarch64
alpha
@@ -1226,6 +1232,7 @@ HAVE_LIST="
$HAVE_LIST_CMDLINE
$HAVE_LIST_PUB
$THREADS_LIST
+ $ATOMICS_LIST
$MATH_FUNCS
aligned_malloc
aligned_stack
@@ -1234,6 +1241,7 @@ HAVE_LIST="
arpa_inet_h
asm_mod_q
asm_mod_y
+ atomics_native
attribute_may_alias
attribute_packed
cdio_paranoia_h
@@ -3528,6 +3536,10 @@ for thread in $THREADS_LIST; do
fi
done
+enabled sync_val_compare_and_swap && enable atomics_gcc
+enabled machine_rw_barrier && enable atomics_suncc
+enabled MemoryBarrier && enable atomics_win32
+
check_lib math.h sin -lm && LIBM="-lm"
enabled vaapi && require vaapi va/va.h vaInitialize -lva
@@ -3791,6 +3803,7 @@ case $target_os in
esac
enabled_any $THREADS_LIST && enable threads
+enabled_any $ATOMICS_LIST && enable atomics_native
enabled asm || { arch=c; disable $ARCH_LIST $ARCH_EXT_LIST; }