Add configure option --with-sim-funit for sim & gdb.
authorJames Lemke <jlemke@cygnus>
Tue, 21 Apr 1998 21:14:09 +0000 (21:14 +0000)
committerJames Lemke <jlemke@cygnus>
Tue, 21 Apr 1998 21:14:09 +0000 (21:14 +0000)
gdb/ChangeLog
gdb/configure.in
sim/mips/configure.in

index 95681d9b3f0af00d603b0b4ca249f49eb5a70915..79c14d9de3f8d99d0ff2a1d35a5a19d41c254d7e 100644 (file)
@@ -1,3 +1,8 @@
+start-sanitize-sky
+Wed Tue 21 17:29:48 1998  Jim Lemke  <jlemke@cygnus.com>
+       * configure.in: Add configure option --with-sim-funit.
+
+end-sanitize-sky
 Tue Apr 21 11:20:54 1998  Frank Ch. Eigler  <fche@cygnus.com>
 
        * mips-tdep.c (gdb_print_insn_mips): Disassemble MIPS instructions
index a2c3508b7cbb7e5dad4abf368716e67eafe155f1..44c47bffca00a1e906f78d193285809a804b5434 100644 (file)
@@ -446,6 +446,20 @@ AC_ARG_WITH(sim-gpu2,
     fi ;;
   *)  AC_MSG_WARN([--with-sim-gpu2 option invalid for target ${target}])
 esac])dnl
+
+# Enable target accurate FP library
+AC_ARG_WITH(sim-funit,
+[  --with-sim-funit=path               Use target FP lib under given directory],
+[case "${target}" in
+  mips*-sky-*)
+    if test -d "${withval}"
+    then
+      LIBS="${LIBS} -L${withval}/lib -lfunit"
+    else
+      AC_MSG_WARN([Directory ${withval} does not exist.])
+    fi ;;
+  *)  AC_MSG_WARN([--with-sim-funit option invalid for target ${target}])
+esac])dnl
 # end-sanitize-sky
 
 AC_SUBST(ENABLE_CFLAGS)
index c5b24321bd906e5ea901ef3eb11f859a6a39b1a5..181d2ac0cca436f7e5ffecfd075291c7b342c68a 100644 (file)
@@ -246,6 +246,16 @@ then
 else
   AC_MSG_ERROR("Directory ${withval} does not exist.");
 fi])dnl
+# Enable target accurate FP library
+AC_ARG_WITH(sim-funit,
+[  --with-sim-funit=path               Use target FP library under given directory],
+[if test -d "${withval}"
+then
+  SIM_SUBTARGET="${SIM_SUBTARGET} -DSKY_FUNIT -I${withval}/include"
+  mips_extra_libs="${mips_extra_libs} -L${withval}/lib -lfunit"
+else
+  AC_MSG_ERROR("Directory ${withval} does not exist.");
+fi])dnl
 # end-sanitize-sky
 AC_SUBST(mips_extra_libs)