summaryrefslogtreecommitdiff
path: root/m4/ax_ext.m4
diff options
context:
space:
mode:
authorMatthew William Cox <matt@mattcox.ca>2009-12-02 14:32:30 -0500
committerPeter Simons <simons@cryp.to>2009-12-16 21:27:49 +0100
commit801bf89d182600b54e64a93dff9658424cc77f3f (patch)
tree3c6d2bf25eac9ed8a50467def95e43d1279d3c29 /m4/ax_ext.m4
parent54074d5b92b7bd3db7bacaff041fc3fac1d98c8a (diff)
downloadautoconf-archive-801bf89d182600b54e64a93dff9658424cc77f3f.tar.gz
modernize the name of cache variables in ax_ext
The name space structure for cache variables should now contain _cv_. I've left them in the AX name space, so the cache variables used by ax_ext are now named ax_cv_...
Diffstat (limited to 'm4/ax_ext.m4')
-rw-r--r--m4/ax_ext.m440
1 files changed, 20 insertions, 20 deletions
diff --git a/m4/ax_ext.m4 b/m4/ax_ext.m4
index 7a8c677..cb2d19c 100644
--- a/m4/ax_ext.m4
+++ b/m4/ax_ext.m4
@@ -37,67 +37,67 @@ AC_DEFUN([AX_EXT],
ecx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 3`
edx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 4`
- AC_CACHE_CHECK([whether mmx is supported], [ax_have_mmx_ext],
+ AC_CACHE_CHECK([whether mmx is supported], [ax_cv_have_mmx_ext],
[
- ax_have_mmx_ext=no
+ ax_cv_have_mmx_ext=no
if test "$((0x$edx>>23&0x01))" = 1; then
- ax_have_mmx_ext=yes
+ ax_cv_have_mmx_ext=yes
fi
])
- AC_CACHE_CHECK([whether sse is supported], [ax_have_sse_ext],
+ AC_CACHE_CHECK([whether sse is supported], [ax_cv_have_sse_ext],
[
- ax_have_sse_ext=no
+ ax_cv_have_sse_ext=no
if test "$((0x$edx>>25&0x01))" = 1; then
- ax_have_sse_ext=yes
+ ax_cv_have_sse_ext=yes
fi
])
- AC_CACHE_CHECK([whether sse2 is supported], [ax_have_sse2_ext],
+ AC_CACHE_CHECK([whether sse2 is supported], [ax_cv_have_sse2_ext],
[
- ax_have_sse2_ext=no
+ ax_cv_have_sse2_ext=no
if test "$((0x$edx>>26&0x01))" = 1; then
- ax_have_sse2_ext=yes
+ ax_cv_have_sse2_ext=yes
fi
])
- AC_CACHE_CHECK([whether sse3 is supported], [ax_have_sse3_ext],
+ AC_CACHE_CHECK([whether sse3 is supported], [ax_cv_have_sse3_ext],
[
- ax_have_sse3_ext=no
+ ax_cv_have_sse3_ext=no
if test "$((0x$ecx&0x01))" = 1; then
- ax_have_sse3_ext=yes
+ ax_cv_have_sse3_ext=yes
fi
])
- AC_CACHE_CHECK([whether ssse3 is supported], [ax_have_ssse3_ext],
+ AC_CACHE_CHECK([whether ssse3 is supported], [ax_cv_have_ssse3_ext],
[
- ax_have_ssse3_ext=no
+ ax_cv_have_ssse3_ext=no
if test "$((0x$ecx>>9&0x01))" = 1; then
- ax_have_ssse3_ext=yes
+ ax_cv_have_ssse3_ext=yes
fi
])
- if test "$ax_have_mmx_ext" = yes; then
+ if test "$ax_cv_have_mmx_ext" = yes; then
AC_DEFINE(HAVE_MMX,,[Support mmx instructions])
AX_CHECK_COMPILER_FLAGS(-mmmx, SIMD_FLAGS="$SIMD_FLAGS -mmmx", [])
fi
- if test "$ax_have_sse_ext" = yes; then
+ if test "$ax_cv_have_sse_ext" = yes; then
AC_DEFINE(HAVE_SSE,,[Support SSE (Streaming SIMD Extensions) instructions])
AX_CHECK_COMPILER_FLAGS(-msse, SIMD_FLAGS="$SIMD_FLAGS -msse", [])
fi
- if test "$ax_have_sse2_ext" = yes; then
+ if test "$ax_cv_have_sse2_ext" = yes; then
AC_DEFINE(HAVE_SSE2,,[Support SSE2 (Streaming SIMD Extensions 2) instructions])
AX_CHECK_COMPILER_FLAGS(-msse2, SIMD_FLAGS="$SIMD_FLAGS -msse2", [])
fi
- if test "$ax_have_sse3_ext" = yes; then
+ if test "$ax_cv_have_sse3_ext" = yes; then
AC_DEFINE(HAVE_SSE3,,[Support SSE3 (Streaming SIMD Extensions 3) instructions])
AX_CHECK_COMPILER_FLAGS(-msse3, SIMD_FLAGS="$SIMD_FLAGS -msse3", [])
fi
- if test "$ax_have_ssse3_ext" = yes; then
+ if test "$ax_cv_have_ssse3_ext" = yes; then
AC_DEFINE(HAVE_SSSE3,,[Support SSSE3 (Supplemental Streaming SIMD Extensions 3) instructions])
fi