aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-11-09 22:41:34 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-11-09 22:41:34 +0000
commit3c0bf315f5578d5ca1da93d55d999304407a490d (patch)
tree406a65471a866c41fd89812c6c0cfc60032a60f4 /gdb/configure.in
parent96336a434c4c5b8727c1c92f392df181a02b34fa (diff)
downloadgdb-3c0bf315f5578d5ca1da93d55d999304407a490d.zip
gdb-3c0bf315f5578d5ca1da93d55d999304407a490d.tar.gz
gdb-3c0bf315f5578d5ca1da93d55d999304407a490d.tar.bz2
Enable powerpc simulator for all powerpc-eabi targets, not just powerpc-eabisim if compiling with GCC. Add --enable-sim-powerpc option to control this.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in22
1 files changed, 18 insertions, 4 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index b1aa080..ac4531d 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -54,6 +54,14 @@ esac])
# end-sanitize-gm
+AC_ARG_ENABLE(sim-powerpc,
+[ --enable-sim-powerpc ],
+[case "${enableval}" in
+yes) powerpc_sim=yes ;;
+no) powerpc_sim=no ;;
+*) AC_MSG_ERROR(bad value ${enableval} given for sim-powerpc option) ;;
+esac],[if test x"$GCC" != x""; then powerpc_sim=yes; else powerpc_sim=no; fi])
+
# start-sanitize-gdbtk
ENABLE_GDBTK=
@@ -461,10 +469,16 @@ powerpc-*-netware*) gdb_target=ppc-nw
powerpc-*-aix4*) gdb_target=aix4 ;;
powerpc-*-aix*) gdb_target=aix ;;
-powerpc-*-eabisim*) gdb_target=ppc-sim ;;
-powerpc-*-eabi*) gdb_target=ppc-eabi ;;
-powerpcle-*-eabisim*) gdb_target=ppcle-sim ;;
-powerpcle-*-eabi*) gdb_target=ppcle-eabi ;;
+powerpc-*-eabi*) if test x"$powerpc_sim" = x"yes"; then
+ gdb_target=ppc-sim
+ else
+ gdb_target=ppc-eabi
+ fi ;;
+powerpcle-*-eabi*) if test x"$powerpc_sim" = x"yes"; then
+ gdb_target=ppcle-sim
+ else
+ gdb_target=ppcle-eabi
+ fi ;;
pyramid-*-*) gdb_target=pyramid ;;