changeset 5199:16a6247730d9

[project @ 2005-03-10 20:24:45 by jwe]
author jwe
date Thu, 10 Mar 2005 20:24:45 +0000
parents 083039a30a3f
children 240ed0328925
files ChangeLog mkoctfile.in src/ChangeLog src/toplev.cc
diffstat 4 files changed, 19 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-03-10  John W. Eaton  <jwe@octave.org>
+
+	* mkoctfile.in: Accept -R DIR.
+
 2005-03-09  John W. Eaton  <jwe@octave.org>
 
 	* examples/Makefile.in (bin-dist): Delete target.
--- a/mkoctfile.in
+++ b/mkoctfile.in
@@ -128,6 +128,10 @@
   -M, --depend            Generate dependency files (.d) for C and C++
                           source files.
 
+  -RDIR                   Add -RDIR to link command.
+
+  -W                      Pass flags though the compiler like -Wl,-rpath=...
+
   -c, --compile           Compile, but do not link.
 
   -o FILE, --output FILE  Output file name.  Default extension is .oct
@@ -161,8 +165,6 @@
 
   -v, --verbose           Echo commands as they are executed.
 
-  -W                      Pass flags though the compiler like -Wl,-rpath=...
-
   FILE                    Compile or link FILE.  Recognized file types are:
 
                             .c    C source
@@ -182,7 +184,7 @@
     -D*)
       defs="$defs $1"
     ;;
-    -[lL]*)
+    -[lLR]*)
       ldflags="$ldflags $1"
     ;;
     -M | --depend)
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-10  John W. Eaton  <jwe@octave.org>
+
+	* toplev.cc (Foctave_config_info): Print error instead of crashing
+	if struct does not contain field we are looking for.
+
 2005-03-09  John W. Eaton  <jwe@octave.org>
 
 	* load-save.cc (Fload, Fsave): Accept -text as an alias for -ascii.
--- a/src/toplev.cc
+++ b/src/toplev.cc
@@ -790,7 +790,11 @@
       if (! error_state)
 	{
 	  Cell c = m.contents (arg.c_str ());
-	  retval = c(0);
+
+	  if (c.is_empty ())
+	    error ("octave_config_info: no info for `%s'", arg.c_str ());
+	  else
+	    retval = c(0);
 	}
     }
   else if (nargin == 0)