diff options
| author | dgp <dgp@users.sourceforge.net> | 2012-05-24 16:50:40 (GMT) |
|---|---|---|
| committer | dgp <dgp@users.sourceforge.net> | 2012-05-24 16:50:40 (GMT) |
| commit | 286580c577c4f54efd199d0996a7df88c02d01b4 (patch) | |
| tree | 4251a9956293cba5d933f821e66ea739b15f7dca /unix/configure.in | |
| parent | c8619c8ec837fc2b74af6a04df85b7c5646fae5d (diff) | |
| parent | dce46c947bd11b68d1979b9e708d177acfddb911 (diff) | |
| download | tcl-286580c577c4f54efd199d0996a7df88c02d01b4.zip tcl-286580c577c4f54efd199d0996a7df88c02d01b4.tar.gz tcl-286580c577c4f54efd199d0996a7df88c02d01b4.tar.bz2 | |
merge 8.5
Diffstat (limited to 'unix/configure.in')
| -rw-r--r-- | unix/configure.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/unix/configure.in b/unix/configure.in index b3df242..441c98f 100644 --- a/unix/configure.in +++ b/unix/configure.in @@ -726,6 +726,24 @@ elif test $tcl_cv_stack_grows_up = yes; then fi #-------------------------------------------------------------------- +# The check below checks whether the cpuid instruction is usable. +#-------------------------------------------------------------------- + +AC_CACHE_CHECK([whether the cpuid instruction is usable], tcl_cv_cpuid, [ + AC_TRY_LINK(, [ + int index,regsPtr[4]; + __asm__ __volatile__("mov %%ebx, %%edi \n\t" + "cpuid \n\t" + "mov %%ebx, %%esi \n\t" + "mov %%edi, %%ebx \n\t" + : "=a"(regsPtr[0]), "=S"(regsPtr[1]), "=c"(regsPtr[2]), "=d"(regsPtr[3]) + : "a"(index) : "edi"); + ], tcl_cv_cpuid=yes, tcl_cv_cpuid=no)]) +if test $tcl_cv_cpuid = yes; then + AC_DEFINE(HAVE_CPUID, 1, [Is the cpuid instruction usable?]) +fi + +#-------------------------------------------------------------------- # The statements below define a collection of symbols related to # building libtcl as a shared library instead of a static library. #-------------------------------------------------------------------- |
