Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.4KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_cpu_vendor.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_CPU_VENDOR
  8. #
  9. # DESCRIPTION
  10. #
  11. # Find your CPU's vendor by requesting cpuid and define "ax_cpu_vendor"
  12. # accordingly. This macro depends on AX_GCC_X86_CPUID.
  13. #
  14. # LICENSE
  15. #
  16. # Copyright (c) 2008 Christophe Tournayre <turn3r@users.sourceforge.net>
  17. #
  18. # Copying and distribution of this file, with or without modification, are
  19. # permitted in any medium without royalty provided the copyright notice
  20. # and this notice are preserved. This file is offered as-is, without any
  21. # warranty.
  22. #serial 8
  23. AC_DEFUN([AX_CPU_VENDOR],
  24. [
  25. AC_REQUIRE([AX_GCC_X86_CPUID])
  26. AX_GCC_X86_CPUID(0x0)
  27. AC_CACHE_CHECK(for the processor vendor, ax_cpu_vendor,
  28. [
  29. vendor=`echo $ax_cv_gcc_x86_cpuid_0x0 | cut -d ":" -f 2`
  30. case $vendor in
  31. 756e6547*)
  32. ax_cpu_vendor="Intel"
  33. ;;
  34. 68747541*)
  35. ax_cpu_vendor="AMD"
  36. ;;
  37. 69727943*)
  38. ax_cpu_vendor="Cyrix"
  39. ;;
  40. 746e6543*)
  41. ax_cpu_vendor="IDT"
  42. ;;
  43. 646f6547*)
  44. ax_cpu_vendor="Natsemi Geode"
  45. ;;
  46. 52697365*)
  47. ax_cpu_vendor="Rise"
  48. ;;
  49. 65736952*)
  50. ax_cpu_vendor="Rise"
  51. ;;
  52. 20536953*)
  53. ax_cpu_vendor="SiS"
  54. ;;
  55. *)
  56. ax_cpu_vendor="Unknown"
  57. ;;
  58. esac
  59. ])
  60. ])