Add subarch values x86_64_x32 x86_64_x64 resp. These are active in conjunctions with x86_64. Test based on presence of __ILP32__ macro. 'sizeof(long double)>12' should work too.
Signed-off-by: Matthias Räncker <[email protected]> --- configure | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/configure b/configure index b4ffbe6..93d2eed 100755 --- a/configure +++ b/configure @@ -1110,6 +1110,8 @@ ARCH_LIST=' x86 x86_32 x86_64 + x86_64_x64 + x86_64_x32 ' ARCH_EXT_LIST_ARM=' @@ -2815,7 +2817,14 @@ case "$arch" in spic=$shared ;; x86) - check_64bit x86_32 x86_64 'sizeof(void *) > 4' + check_64bit x86_32 'x86_64 x86_64_x64' 'sizeof(void *) > 4' + if test "$subarch" = "x86_32"; then + check_64bit x86_32 'x86_64 x86_64_x32' ' + #if defined __x86_64__ && defined __ILP32__ + 1 + #endif + ' + fi if test "$subarch" = "x86_64"; then spic=$shared fi @@ -3281,7 +3290,8 @@ EOF if ! disabled_any asm mmx yasm; then if check_cmd $yasmexe --version; then - enabled x86_64 && yasm_extra="-m amd64" + enabled x86_64_x64 && yasm_extra="-m amd64" + enabled x86_64_x32 && yasm_extra="-m x32" yasm_debug="-g dwarf2" elif check_cmd nasm -v; then yasmexe=nasm -- 1.8.1.1 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
