From a83e2f4980cce0e63337f89dd7cab7161399a5f1 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 15 Jun 2004 00:17:50 +0000 Subject: [PATCH] do it like this --- stepmania/configure.ac | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/stepmania/configure.ac b/stepmania/configure.ac index 9a89d685f1..c1b52aee74 100644 --- a/stepmania/configure.ac +++ b/stepmania/configure.ac @@ -212,9 +212,6 @@ case $host in AC_DEFINE(UNIX, 1, [Unix]) linux=yes unix=yes - if test $host = powerpc-unknown-linux-gnu; then - AC_DEFINE(LINUX_PPC, 1, [Linux PPC]) - fi ;; *) @@ -225,6 +222,20 @@ esac AM_CONDITIONAL(UNIX, test "$unix" = "yes" ) AM_CONDITIONAL(LINUX, test "$linux" = "yes" ) +# Define macros for individual CPU types, for a few bits of inline assembly. +# This is for major, compatible CPU classes--"CPU_X86" includes P2, P3, P4, +# AMD, etc. If you need CPU-specific assembly, check at runtime--don't create +# separate binaries for each CPU if the binaries themselves are otherwise +# compatible. +case $host in +i?86-*) + AC_DEFINE(CPU_X86, 1, [x86]) + ;; +powerpc-*) + AC_DEFINE(CPU_PPC, 1, [PPC]) + ;; +esac + AC_ARG_ENABLE(tests, AC_HELP_STRING([--enable-tests], [Build test programs]), enable_tests=$enableval, enable_tests=no) AM_CONDITIONAL(BUILD_TESTS, test "$enable_tests" = "yes" )