changeset 2762:ac1427f5c9e6

[project @ 1997-02-28 08:26:30 by jwe]
author jwe
date Fri, 28 Feb 1997 08:26:43 +0000
parents 873b1ef30534
children d9d00d7e271e
files ChangeLog configure.in doc/interpreter/var.texi scripts/elfun/acot.m src/ChangeLog src/syswait.h
diffstat 6 files changed, 39 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Feb 28 01:56:52 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
+
+	* configure.in (f77_rules_frag): Set default value to /dev/null
+	and redfine as needed.
+	(bsd_gcc_kluge_targets_frag): Likewise.
+
 Wed Feb 26 12:17:05 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* octMakefile.in (maintainer-clean): Delete some more stuff.
--- 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.257 $)
+AC_REVISION($Revision: 1.258 $)
 AC_PREREQ(2.9)
 AC_INIT(src/octave.cc)
 AC_CONFIG_HEADER(config.h)
@@ -619,8 +619,9 @@
 fi
 
 
-f77_rules_frag=Makefrag.f77
+f77_rules_frag=/dev/null
 if $have_fortran_compiler; then
+  f77_rules_frag=Makefrag.f77
 changequote(,)dnl
   cat << \EOF > $f77_rules_frag
 
@@ -987,7 +988,7 @@
   ;;
 esac
 
-bsd_gcc_kluge_targets_frag=
+bsd_gcc_kluge_targets_frag=/dev/null
 case "$canonical_host_type" in
   *-*-386bsd* | *-*-openbsd* | *-*-netbsd* | *-*-freebsd*)
     bsd_gcc_kluge_targets_frag=Makefrag.bsd
--- a/doc/interpreter/var.texi
+++ b/doc/interpreter/var.texi
@@ -353,6 +353,11 @@
 
 Default value: @code{[]}.
 
+@item default_save_format
+@xref{Simple File I/O}.
+
+Default value: @code{"ascii"}.
+
 @item do_fortran_indexing
 @xref{Index Expressions}.
 
--- a/scripts/elfun/acot.m
+++ b/scripts/elfun/acot.m
@@ -27,6 +27,6 @@
     usage ("acot (z)");
   endif
 
-  w = atan (1 ./ z);
+  w = pi/2 - atan (z);
 
 endfunction
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
+Fri Feb 28 01:49:48 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
+
+	* syswait.h: Include sys/wait.h on NeXT systems, but don't use the
+	WIFEXTED, WEXITSTATUS, and WIFSIGNALLED macros defined there.
+	Also define waitpid in terms of wait4.  From Rex A. Dieter
+	<rdieter@math.unl.edu>.
+
 Wed Feb 26 16:43:31 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* oct-stream.cc (octave_base_stream::do_scanf): Don't report an
--- a/src/syswait.h
+++ b/src/syswait.h
@@ -29,10 +29,25 @@
 #include <sys/types.h>
 #endif
 
-#ifdef HAVE_SYS_WAIT_H
+#if defined (NeXT) && ! defined (_POSIX_SOURCE))
+#define HAVE_SYS_WAIT_H
+#endif
+
+#if defined HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif
 
+#if defined (NeXT)
+#define HAVE_WAITPID 1
+#define waitpid(a, b, c) \
+  wait4 ((a) == -1 ? 0 : (a), (union wait *)(b), c, 0)
+
+// Use the defaults below
+#undef WIFEXITED
+#undef WEXITSTATUS
+#undef WIFSIGNALLED
+#endif
+
 // NeXT has sys/wait.h, but it is not compatible with POSIX.1, so we
 // try to define waitpid in terms of wait4.