configure: detect ifunc and avx2 attribute
commit99f2dbd34328771b12dee782ebccda1c25b4c23b
authorLiang Li <liang.z.li@intel.com>
Tue, 8 Mar 2016 05:53:16 +0000 (8 13:53 +0800)
committerAmit Shah <amit.shah@redhat.com>
Tue, 8 Mar 2016 11:23:26 +0000 (8 16:53 +0530)
treeb1b7db8ef57f54b69e117907105f272bcb0b1325
parent614e8018ed0dfa1b95a2109ae42fd0e5f94b5a91
configure: detect ifunc and avx2 attribute

Detect if the compiler can support the ifun and avx2, if so, set
CONFIG_AVX2_OPT which will be used to turn on the avx2 instruction
optimization.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Liang Li <liang.z.li@intel.com>
Message-Id: <1457416397-26671-2-git-send-email-liang.z.li@intel.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
configure