# HG changeset patch # User jwe # Date 867381627 0 # Node ID 2280158c4449ab96a7f4f7ae265b8738672a5b01 # Parent 4e6581fd806000d32b8793db369d03e873d3f2d8 [project @ 1997-06-27 03:19:27 by jwe] diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jun 26 22:16:59 1997 John W. Eaton + + * 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 * configure.in (BOUNDS_CHECKING): Fix comment, allow bounds diff --git a/configure.in b/configure.in --- 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. diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +Thu Jun 26 22:04:09 1997 John W. Eaton + + * 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 * oct-lvalue.h (octave_lvalue::struct_elt_ref): Ensure val is unique. diff --git a/src/utils.cc b/src/utils.cc --- 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 ();