changeset 3065:2280158c4449

[project @ 1997-06-27 03:19:27 by jwe]
author jwe
date Fri, 27 Jun 1997 03:20:27 +0000
parents 4e6581fd8060
children 2d485faf2fa3
files ChangeLog configure.in src/ChangeLog src/utils.cc
diffstat 4 files changed, 23 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jun 26 22:16:59 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
+
+	* configure.in: Only set GCC_IEEE_FP_FLAG to -mieee-fp on Intel
+	systems if it seems to work.
+
 Mon Jun 23 09:16:56 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* configure.in (BOUNDS_CHECKING): Fix comment, allow bounds
--- a/configure.in
+++ b/configure.in
@@ -21,7 +21,7 @@
 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 ### 02111-1307, USA. 
 
-AC_REVISION($Revision: 1.280 $)
+AC_REVISION($Revision: 1.281 $)
 AC_PREREQ(2.9)
 AC_INIT(src/octave.cc)
 AC_CONFIG_HEADER(config.h)
@@ -276,18 +276,21 @@
 fi
 AC_SUBST(CC_VERSION)
 
-### On Intel systems with gcc, we need to compile with -mieee-fp to
+### On Intel systems with gcc, we may need to compile with -mieee-fp to
 ### get full support for IEEE floating point.
 ###
 ### On Alpha/OSF systems, wee need -mieee, but that also
 ### requires gcc 2.8.x or later.
 
+GCC_IEEE_FP_FLAG=
 case "$canonical_host_type" in
 changequote(,)dnl
   i[3456789]86-*-*)
 changequote([,])dnl
-    GCC_IEEE_FP_FLAG="-mieee-fp"
-    AC_MSG_RESULT([defining GCC_IEEE_FP_FLAG to be $GCC_IEEE_FP_FLAG])
+    XCFLAGS="$CFLAGS"
+    CFLAGS="$CFLAGS -mieee-fp"
+    AC_TRY_LINK([], [], [GCC_IEEE_FP_FLAG="-mieee-fp"], [])
+    CFLAGS="$XCFLAGS"
   ;;
   alpha-dec-osf*)
     case "$gcc_version" in
@@ -297,11 +300,13 @@
       ;;
       *)
         GCC_IEEE_FP_FLAG="-mieee"
-        AC_MSG_RESULT([defining GCC_IEEE_FP_FLAG to be $GCC_IEEE_FP_FLAG])
       ;;
     esac
   ;;
 esac
+if test -n "$GCC_IEEE_FP_FLAG"; then
+  AC_MSG_RESULT([defining GCC_IEEE_FP_FLAG to be $GCC_IEEE_FP_FLAG])
+fi
 AC_SUBST(GCC_IEEE_FP_FLAG)
 
 ### Use -static if compiling on Alpha OSF/1 1.3 systems.
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jun 26 22:04:09 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
+
+	* utils.cc (file_in_path): Add default load path to PATH arg if
+	it begins or ends with a colon.
+
 Wed Jun 25 13:31:06 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* oct-lvalue.h (octave_lvalue::struct_elt_ref): Ensure val is unique.
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -252,7 +252,9 @@
 
   if (argc == 3)
     {
-      string fname = search_path_for_file (argv[1], argv[2]);
+      string path = maybe_add_default_load_path (argv[1]);
+
+      string fname = search_path_for_file (path, argv[2]);
 
       if (fname.empty ())
 	retval = Matrix ();