summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-11-23 02:37:11 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-11-23 02:37:11 +0000
commit4953fde289c18efa91926fcf7e81cf979f4c6c3d (patch)
tree2296e911d75dbdc5522702436818844df8ee87f4 /configure.ac
parent2f5943ae7cd2f87e5b87582cc03b9b16d09579d5 (diff)
downloadpcsxr-4953fde289c18efa91926fcf7e81cf979f4c6c3d.tar.gz
readded powerpc dynarec.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@60001 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac16
1 files changed, 15 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index d16d5d50..326a221e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -143,8 +143,9 @@ fi
AM_CONDITIONAL(ARCH_X86, false)
AM_CONDITIONAL(ARCH_X86_64, false)
+AM_CONDITIONAL(ARCH_PPC, false)
-AC_ARG_ENABLE(dynarec, [ --enable-dynarec=... force selection of dynamic recompiler platform (auto/no/x86/x86_64) (default: auto)],
+AC_ARG_ENABLE(dynarec, [ --enable-dynarec=... force selection of dynamic recompiler platform (auto/no/x86/x86_64/ppc) (default: auto)],
[ DYNAREC="$enableval" ],[ DYNAREC="auto" ])
if test "x$DYNAREC" = xauto; then
@@ -153,6 +154,8 @@ else if test "x$DYNAREC" = xx86; then
DYNARECSEL="x86"
else if test "x$DYNAREC" = xx86_64; then
DYNARECSEL="x86_64"
+else if test "x$DYNAREC" = xppc; then
+ DYNARECSEL="ppc"
else if test "x$DYNAREC" = xno; then
DYNARECSEL="no"
else
@@ -162,6 +165,7 @@ fi
fi
fi
fi
+fi
if test "x$DYNARECSEL" = xauto; then
if expr x"$target_cpu" : 'xi.86' > /dev/null; then
@@ -171,6 +175,10 @@ if test "x$DYNARECSEL" = xauto; then
if expr x"$target_cpu" : 'xx86_64' > /dev/null; then
DYNARECSEL="x86_64"
fi
+
+ if expr x"$target_cpu" : 'xpowerpc' > /dev/null; then
+ DYNARECSEL="ppc"
+ fi
fi
if test "x$DYNARECSEL" = xno; then
@@ -192,6 +200,12 @@ if test "x$DYNARECSEL" = xx86_64; then
AC_MSG_RESULT([Dynamic Recompiler selected: x86_64])
fi
+if test "x$DYNARECSEL" = xppc; then
+ AC_DEFINE([__ppc__], [1], [Define if we are compiling for powerpc architectures.])
+ AM_CONDITIONAL(ARCH_PPC, true)
+ AC_MSG_RESULT([Dynamic Recompiler selected: ppc])
+fi
+
AC_C_BIGENDIAN(AC_DEFINE([__BIGENDIAN__],[],[define on a big endian system]))
AC_DEFINE([__LINUX__], [1], [Define if building on a GNU/Linux system.])