diff options
author | Reinhard Prix <reinhard.prix@aei.mpg.de> | 2014-02-24 21:53:13 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2014-02-24 21:53:13 +0100 |
commit | e318eaa3707ac1b135101bb9dea488e2b9bcd082 (patch) | |
tree | db5cca24b3f8e8997a5d56f93d290e5171d45f8a /m4/ax_ext.m4 | |
parent | 971301ef0eabbc2df967d23de3631d35eac4ee0a (diff) | |
download | autoconf-archive-e318eaa3707ac1b135101bb9dea488e2b9bcd082.tar.gz |
AX_EXT: handle case where AX_GCC_X86_CPUID(0x00000001) returns 'unknown'
Diffstat (limited to 'm4/ax_ext.m4')
-rw-r--r-- | m4/ax_ext.m4 | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/m4/ax_ext.m4 b/m4/ax_ext.m4 index f660a6a..86fb398 100644 --- a/m4/ax_ext.m4 +++ b/m4/ax_ext.m4 @@ -31,7 +31,7 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 12 +#serial 13 AC_DEFUN([AX_EXT], [ @@ -61,8 +61,13 @@ AC_DEFUN([AX_EXT], AC_REQUIRE([AX_GCC_X86_AVX_XGETBV]) AX_GCC_X86_CPUID(0x00000001) - ecx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 3` - edx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 4` + ecx=0 + edx=0 + if test "$ax_cv_gcc_x86_cpuid_0x00000001" != "unknown"; + then + ecx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 3` + edx=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 4` + fi AC_CACHE_CHECK([whether mmx is supported], [ax_cv_have_mmx_ext], [ |