Try linking _xgetbv() for obsolete mingw versions

This commit is contained in:
Frank Denis 2017-04-14 19:01:04 +02:00
parent 4809639ae1
commit dfc226fed6

View File

@ -460,7 +460,7 @@ AC_SUBST(CFLAGS_PCLMUL)
AC_CHECK_HEADERS([sys/mman.h intrin.h]) AC_CHECK_HEADERS([sys/mman.h intrin.h])
AC_MSG_CHECKING([if _xgetbv() is available]) AC_MSG_CHECKING([if _xgetbv() is available])
AC_COMPILE_IFELSE( AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[ #include <intrin.h> ]], [[ (void) _xgetbv(0) ]])], [AC_LANG_PROGRAM([[ #include <intrin.h> ]], [[ (void) _xgetbv(0) ]])],
[AC_MSG_RESULT(yes) [AC_MSG_RESULT(yes)
AC_DEFINE([HAVE__XGETBV], [1], [_xgetbv() is available])], AC_DEFINE([HAVE__XGETBV], [1], [_xgetbv() is available])],