aboutsummaryrefslogtreecommitdiff
path: root/sim/mips/configure.in
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>1998-03-18 00:20:40 +0000
committerFrank Ch. Eigler <fche@redhat.com>1998-03-18 00:20:40 +0000
commit9b23b76d68b5dd0078b726f21b03fb7bbcb69e5d (patch)
tree1c8c4dbcb0407828b2a70cb270111ef9a2c39acd /sim/mips/configure.in
parent8903601144cb78b55c89b982e3b76e1d2c27acfc (diff)
downloadgdb-9b23b76d68b5dd0078b726f21b03fb7bbcb69e5d.zip
gdb-9b23b76d68b5dd0078b726f21b03fb7bbcb69e5d.tar.gz
gdb-9b23b76d68b5dd0078b726f21b03fb7bbcb69e5d.tar.bz2
* Added --with-sim-gpu2=<path> option for linking SCEI's GPU2 library with
the stand-alone executable. [in ChangeLog.sky:] * sky-gpuif.c (call_gs): Call properly into GPU2 library if configured --with-sim-gpu2. Use SKY_GPU2_REFRESH symbol as placeholder for future GPU2-refresh policy. [in ChangeLog:] * Makefile.in (MIPS_EXTRA_LIBS, SIM_EXTRA_LIBS): Added configurable settings for stand-alone simulator. start-sanitize-sky * configure.in: Added --with-sim-gpu2 option to specify path of sky GPU2 library. Triggers -DSKY_GPU2 for sky-gpuif.c, and links/compiles stand-alone simulator with this library. * interp.c (MEM_SIZE): Increased default sky memory size to 16MB. end-sanitize-sky * configure.in: Added X11 search, just in case. * configure: Regenerated.
Diffstat (limited to 'sim/mips/configure.in')
-rw-r--r--sim/mips/configure.in18
1 files changed, 17 insertions, 1 deletions
diff --git a/sim/mips/configure.in b/sim/mips/configure.in
index e498bd2..9772553 100644
--- a/sim/mips/configure.in
+++ b/sim/mips/configure.in
@@ -215,7 +215,7 @@ AC_ARG_ENABLE(sim-igen,
yes) sim_gen="${sim_default_gen}";;
no) sim_gen=NO;;
16) sim_gen=M16;;
- *) AC_MSG_ERROR("Unknown value $enableval passed to --enable-sim-stdio"); sim_gen="";;
+ *) AC_MSG_ERROR("Unknown value $enableval passed to --enable-sim-igen"); sim_gen="";;
esac
if test x"$silent" != x"yes" && test x"$sim_gen" != x""; then
echo "Setting sim_igen = $sim_gen" 6>&1
@@ -234,6 +234,22 @@ esac
AC_SUBST(mips_extra_objs)
+AC_PATH_X
+mips_extra_libs=""
+# start-sanitize-sky
+# Enable GPU2 library
+AC_ARG_WITH(sim-gpu2,
+[ --with-sim-gpu2=path Use GPU2 library under given directory],
+[if test -d "${withval}"
+then
+ SIM_SUBTARGET="${SIM_SUBTARGET} -DSKY_GPU2 -I${withval}/include"
+ mips_extra_libs="-L${withval}/lib -lgpu2 -L${x_libraries} -lX11"
+else
+ AC_MSG_ERROR("Directory ${withval} does not exist.");
+fi])dnl
+# end-sanitize-sky
+AC_SUBST(mips_extra_libs)
+
AC_CHECK_HEADERS(string.h strings.h stdlib.h stdlib.h)
AC_CHECK_LIB(m, fabs)
AC_CHECK_FUNCS(aint anint sqrt)