|
|
|
@ -65,34 +65,6 @@ case $target in
@@ -65,34 +65,6 @@ case $target in
|
|
|
|
|
;; |
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
if test x$have_x86 = xtrue |
|
|
|
|
then |
|
|
|
|
AC_MSG_CHECKING(whether we can compile AVX code) |
|
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[asm ("vmovdqa %ymm0, %ymm1");])], |
|
|
|
|
AC_DEFINE(USE_AVX, 1, [Define to 1 if AVX assembly is available.]) |
|
|
|
|
AC_MSG_RESULT(yes) |
|
|
|
|
AC_MSG_CHECKING(whether we can compile XOP code) |
|
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[asm ("vprotd \$7, %xmm0, %xmm1");])], |
|
|
|
|
AC_DEFINE(USE_XOP, 1, [Define to 1 if XOP assembly is available.]) |
|
|
|
|
AC_MSG_RESULT(yes) |
|
|
|
|
, |
|
|
|
|
AC_MSG_RESULT(no) |
|
|
|
|
AC_MSG_WARN([The assembler does not support the XOP instruction set.]) |
|
|
|
|
) |
|
|
|
|
AC_MSG_CHECKING(whether we can compile AVX2 code) |
|
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[asm ("vpaddd %ymm0, %ymm1, %ymm2");])], |
|
|
|
|
AC_DEFINE(USE_AVX2, 1, [Define to 1 if AVX2 assembly is available.]) |
|
|
|
|
AC_MSG_RESULT(yes) |
|
|
|
|
, |
|
|
|
|
AC_MSG_RESULT(no) |
|
|
|
|
AC_MSG_WARN([The assembler does not support the AVX2 instruction set.]) |
|
|
|
|
) |
|
|
|
|
, |
|
|
|
|
AC_MSG_RESULT(no) |
|
|
|
|
AC_MSG_WARN([The assembler does not support the AVX instruction set.]) |
|
|
|
|
) |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
AC_CHECK_LIB(jansson, json_loads, request_jansson=false, request_jansson=true) |
|
|
|
|
AC_CHECK_LIB([pthread], [pthread_create], PTHREAD_LIBS="-lpthread", |
|
|
|
|
AC_CHECK_LIB([pthreadGC2], [pthread_create], PTHREAD_LIBS="-lpthreadGC2", |
|
|
|
|