x86-model: New program, prints CPUID information.
[misc] / configure.ac
index dda3d4e..814b686 100644 (file)
@@ -30,6 +30,8 @@ AC_CONFIG_SRCDIR([shadowfix.in])
 AC_CONFIG_AUX_DIR([config])
 AM_INIT_AUTOMAKE([foreign])
 
+AC_CANONICAL_HOST
+
 dnl--------------------------------------------------------------------------
 dnl C programming environment.
 
@@ -57,6 +59,10 @@ PKG_CHECK_MODULES([catacomb], [catacomb >= 2.1.1],
                  [have_catacomb=yes], [have_catacomb=no])
 AM_CONDITIONAL([HAVE_CATACOMB], [test $have_catacomb = yes])
 
+## Processor type.
+case "$host_cpu" in i?86) x86=yes;; *) x86=no;; esac
+AM_CONDITIONAL([X86], [test $x86 = yes -a $GCC = yes])
+
 dnl--------------------------------------------------------------------------
 dnl Python, Perl and other scripting languages.