This commit is contained in:
Frank Denis 2014-08-04 16:29:13 -07:00
parent 2b0c8e40aa
commit ed76b41369

View File

@ -320,7 +320,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
HAVE_AMD64_ASM_V=0 HAVE_AMD64_ASM_V=0
AS_IF([test "$enable_asm" != "no"],[ AS_IF([test "$enable_asm" != "no"],[
AC_MSG_CHECKING(whether we can assemble basic amd64 code) AC_MSG_CHECKING(whether we should use x86_64 asm code)
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
]], [[ ]], [[
#if defined(__amd64) || defined(__amd64__) || defined(__x86_64__) #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
@ -329,12 +329,12 @@ AS_IF([test "$enable_asm" != "no"],[
# endif # endif
/* neat */ /* neat */
#else #else
# error !amd64 # error !x86_64
#endif #endif
__asm__("pxor %xmm12,%xmm6"); __asm__("pxor %xmm12,%xmm6");
]])], ]])],
[AC_MSG_RESULT(yes) [AC_MSG_RESULT(yes)
AC_DEFINE([HAVE_AMD64_ASM], [1], [basic amd64 code can be assembled]) AC_DEFINE([HAVE_AMD64_ASM], [1], [x86_64 asm code should be used])
HAVE_AMD64_ASM_V=1], HAVE_AMD64_ASM_V=1],
[AC_MSG_RESULT(no)]) [AC_MSG_RESULT(no)])
]) ])