mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-28 05:30:34 +00:00
configure: generalise 64-bit test
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
c44cef978b
commit
d4c99513f4
11
configure
vendored
11
configure
vendored
@ -2668,13 +2668,20 @@ EOF
|
||||
check_host_cflags -std=c99
|
||||
check_host_cflags -Wall
|
||||
|
||||
check_64bit(){
|
||||
arch32=$1
|
||||
arch64=$2
|
||||
expr=$3
|
||||
check_code cc "" "int test[2*($expr) - 1]" &&
|
||||
subarch=$arch64 || subarch=$arch32
|
||||
}
|
||||
|
||||
case "$arch" in
|
||||
alpha|ia64|mips|parisc|sparc)
|
||||
spic=$shared
|
||||
;;
|
||||
x86)
|
||||
subarch="x86_32"
|
||||
check_code cc "" "int test[(int)sizeof(char*) - 7]" && subarch="x86_64"
|
||||
check_64bit x86_32 x86_64 'sizeof(void *) > 4'
|
||||
if test "$subarch" = "x86_64"; then
|
||||
spic=$shared
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user