do it like this
This commit is contained in:
+14
-3
@@ -212,9 +212,6 @@ case $host in
|
|||||||
AC_DEFINE(UNIX, 1, [Unix])
|
AC_DEFINE(UNIX, 1, [Unix])
|
||||||
linux=yes
|
linux=yes
|
||||||
unix=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(UNIX, test "$unix" = "yes" )
|
||||||
AM_CONDITIONAL(LINUX, test "$linux" = "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)
|
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" )
|
AM_CONDITIONAL(BUILD_TESTS, test "$enable_tests" = "yes" )
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user