1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

Fixed assembler detection in configure.ac, and added

detection for x86_64.
This commit is contained in:
Lasse Collin 2008-01-15 13:29:14 +02:00
parent 54ec204f58
commit f3c88e8b8d

View file

@ -298,28 +298,28 @@ AC_ARG_ENABLE(assembler, AC_HELP_STRING([--disable-assembler],
[], [enable_assembler=yes]) [], [enable_assembler=yes])
if test "x$enable_assembler" = xyes; then if test "x$enable_assembler" = xyes; then
case $host_cpu in case $host_cpu in
i?86) i?86) enable_assembler=x86 ;;
# Darwin has different ABI than GNU+Linux and Solaris, x86_64) enable_assembler=x86_64 ;;
# and the x86 assembler code doesn't assemble. *) enable_assembler=no ;;
case $host_os in
darwin*)
enable_assembler=no
;;
*)
enable_assembler=x86
;;
esac esac
;; # Darwin has different ABI than GNU+Linux and Solaris,
*) # and the assembler code doesn't assemble.
enable_assembler=no case $host_os in
;; darwin*) enable_assembler=no ;;
*) ;;
esac esac
fi fi
case $enable_assembler in case $enable_assembler in
x86|no) x86)
AC_DEFINE([HAVE_ASM_X86], 1, AC_DEFINE([HAVE_ASM_X86], 1,
[Define to 1 if using x86 assembler optimizations.]) [Define to 1 if using x86 assembler optimizations.])
;; ;;
x86_64)
AC_DEFINE([HAVE_ASM_X86_64], 1,
[Define to 1 if using x86_64 assembler optimizations.])
;;
no)
;;
*) *)
AC_MSG_RESULT([]) AC_MSG_RESULT([])
AC_MSG_ERROR([--enable-assembler accepts only \`yes', \`no', or \`x86'.]) AC_MSG_ERROR([--enable-assembler accepts only \`yes', \`no', or \`x86'.])