#! /bin/sh
#
# To apply this patch, cd to the top level Octave source directory and
# run this file through /bin/sh.  It will first remove any files that
# have been deleted from the source distribution since the last
# release and then update the sources with patch(1).
#
# Diffs for updating *.ps, *.dvi, and *.info* files are not included
# because they can be recreated from the Texinfo files using TeX and
# makeinfo.
#
# Diffs for updating parse.cc and y.tab.h are not included because
# they can be recreated from the file parse.y using bison.
#
# Diffs for updating lex.cc are not included because it can be
# recreated from lex.l using flex.
#
# John W. Eaton
# jwe@bevo.che.wisc.edu
# University of Wisconsin-Madison
# Department of Chemical Engineering

if test -f src/octave.cc ; then
  true
else
  echo '***********************************************************' 1>&2
  echo 'You must run this script in the top-level octave directory!' 1>&2
  echo '***********************************************************' 1>&2
  exit 1
fi

###
### Special commands should go here.
###

mv src/bessel.cc src/besselj.cc

echo 'patching existing files'
patch -p1 << \PATCH_EOF
diff -cNr octave-2.0.10/BUGS octave-2.0.11/BUGS
*** octave-2.0.10/BUGS	Wed Dec 10 02:57:44 1997
--- octave-2.0.11/BUGS	Fri Feb 20 03:03:20 1998
***************
*** 348,354 ****
  like to join the discussion, please send a short note to
  <help-octave*-request*@bevo.che.wisc.edu>.
  
!    *Please do not* send requests to be added or removed from the the
  mailing list, or other administrative trivia to the list itself.
  
     If you think you have found a bug in the installation procedure,
--- 348,354 ----
  like to join the discussion, please send a short note to
  <help-octave*-request*@bevo.che.wisc.edu>.
  
!    *Please do not* send requests to be added or removed from the
  mailing list, or other administrative trivia to the list itself.
  
     If you think you have found a bug in the installation procedure,
diff -cNr octave-2.0.10/ChangeLog octave-2.0.11/ChangeLog
*** octave-2.0.10/ChangeLog	Thu Feb  5 23:46:06 1998
--- octave-2.0.11/ChangeLog	Tue Feb 24 16:30:55 1998
***************
*** 1,3 ****
--- 1,36 ----
+ Tue Feb 24 16:30:16 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* Version 2.0.11 released.
+ 
+ Mon Feb 23 13:06:11 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* configure.in (ieee_fp_flag): Use -mieee-with-inexact on Alphas.
+ 	Use octave_cv_f77_is_g77, not just f77_is_g77.
+ 
+ Fri Feb 20 00:38:31 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* configure.in, Makeconf.in: Try to set things up to use the
+ 	system glob and fnmatch headers and functions if they exist.
+ 	Better handling of include and lib flags.
+ 
+ Thu Feb 19 01:21:19 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* configure.in: Don't check for gamma or lgamma
+ 	* acconfig.h: Delete undef for HAVE_GAMMA and HAVE_LGAMMA.
+ 
+ Wed Feb 18 15:06:13 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* configure.in: Don't check for vfork.
+ 
+ Wed Feb 11 19:41:22 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* Makeconf.in (mk-libdir-link): Don't create link if a directory
+ 	named $(libdir)/octave already exists.
+ 
+ Fri Feb  6 16:59:13 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* Version 2.0.10 released.
+ 
  Thu Feb  5 23:45:58 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
  
  	* configure.in: Check for vfork.
diff -cNr octave-2.0.10/Makeconf.in octave-2.0.11/Makeconf.in
*** octave-2.0.10/Makeconf.in	Tue Feb  3 00:23:33 1998
--- octave-2.0.11/Makeconf.in	Fri Feb 20 14:15:46 1998
***************
*** 63,68 ****
--- 63,69 ----
  # cc and associated flags.
  
  DLFCN_INCFLAGS = @DLFCN_INCFLAGS@
+ GLOB_INCFLAGS = @GLOB_INCFLAGS@
  
  # Clean up INCFLAGS a bit if we are not compiling in a separate
  # directory.
***************
*** 73,86 ****
  endif
  ifeq ($(TOPDIR),$(top_srcdir))
    TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave -I$(TOPDIR)/src \
! 	-I$(TOPDIR)/glob -I$(TOPDIR)/libcruft/misc
  else
    TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave -I$(TOPDIR)/src \
! 	-I$(TOPDIR)/glob -I$(TOPDIR)/libcruft/misc -I$(top_srcdir) \
  	-I$(top_srcdir)/liboctave -I$(top_srcdir)/src \
! 	-I$(top_srcdir)/glob -I$(top_srcdir)/libcruft/misc
  endif
! INCFLAGS = $(TMP_IF_1) $(TMP_IF_2) $(DLFCN_INCFLAGS)
  
  LIBFLAGS = -L$(TOPDIR)
  
--- 74,87 ----
  endif
  ifeq ($(TOPDIR),$(top_srcdir))
    TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave -I$(TOPDIR)/src \
! 	-I$(TOPDIR)/libcruft/misc
  else
    TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave -I$(TOPDIR)/src \
! 	-I$(TOPDIR)/libcruft/misc -I$(top_srcdir) \
  	-I$(top_srcdir)/liboctave -I$(top_srcdir)/src \
! 	-I$(top_srcdir)/libcruft/misc
  endif
! INCFLAGS = $(TMP_IF_1) $(TMP_IF_2) $(DLFCN_INCFLAGS) $(GLOB_INCFLAGS)
  
  LIBFLAGS = -L$(TOPDIR)
  
***************
*** 121,128 ****
--- 122,135 ----
  FLIBS = @FLIBS@
  
  TERMLIBS = @TERMLIBS@
+ LIBGLOB = @LIBGLOB@
  LIBPLPLOT = @LIBPLPLOT@
  LIBDLFCN = @LIBDLFCN@
+ LIBDLFCN = @LIBREADLINE@
+ LIBKPATHSEA = @LIBKPATHSEA@
+ LIBOCTINTERP = @LIBOCTINTERP@
+ LIBOCTAVE = @LIBOCTAVE@
+ LIBCRUFT = @LIBCRUFT@
  SPECIAL_MATH_LIB = @SPECIAL_MATH_LIB@
  
  # The arguments passed to configure.
***************
*** 388,395 ****
  if [ "$$src" = "octave" ] ; then \
    true ; \
  else \
!   cd $(libdir) ; \
!   rm -f octave ; \
!   $(LN_S) $$src octave ; \
  fi
  endef
--- 395,406 ----
  if [ "$$src" = "octave" ] ; then \
    true ; \
  else \
!   if [ -d "$(libdir)/octave" ] ; then \
!     true ; \
!   else \
!     cd $(libdir) ; \
!     rm -f octave ; \
!     $(LN_S) $$src octave ; \
!   fi ; \
  fi
  endef
diff -cNr octave-2.0.10/NEWS octave-2.0.11/NEWS
*** octave-2.0.10/NEWS	Fri Feb  6 02:07:35 1998
--- octave-2.0.11/NEWS	Fri Feb 20 02:57:38 1998
***************
*** 1,3 ****
--- 1,15 ----
+ Summary of changes for version 2.0.11:
+ -------------------------------------
+ 
+   * There are two new built-in variables that control how global
+     variables are initialized.  If `initialize_global_variables' is
+     nonzero, global variables are initialized to the value of the
+     variable `default_global_variable_value'.  The default value of
+     `initialize_global_variables' is 0 (1 if you use --traditional)
+     and `default_global_variable_value' is undefined (the empty matrix
+     if you use --traditional).  The default settings are compatible
+     with versions of Octave before 2.0.10.
+ 
  Summary of changes for version 2.0.10:
  -------------------------------------
  
diff -cNr octave-2.0.10/README.Linux octave-2.0.11/README.Linux
*** octave-2.0.10/README.Linux	Tue Feb  3 13:08:03 1998
--- octave-2.0.11/README.Linux	Sat Feb  7 11:15:58 1998
***************
*** 13,19 ****
  example, Dirk Eddelbuettel <edd@debian.org> maintains the Debian
  Octave package and usually has them ready within a day or so of new
  Octave releases.  They are available via the WWW at
! http://www.debian.org/Packages/dist/math/octave.html.
  
  If for some reason you can't (or choose not to) install Octave from
  one of the binary distributions or by using one of the Debian or RPM
--- 13,19 ----
  example, Dirk Eddelbuettel <edd@debian.org> maintains the Debian
  Octave package and usually has them ready within a day or so of new
  Octave releases.  They are available via the WWW at
! http://www.debian.org/packages.html.
  
  If for some reason you can't (or choose not to) install Octave from
  one of the binary distributions or by using one of the Debian or RPM
diff -cNr octave-2.0.10/README.Windows octave-2.0.11/README.Windows
*** octave-2.0.10/README.Windows	Thu Jan 15 23:35:17 1998
--- octave-2.0.11/README.Windows	Sat Feb 14 13:16:03 1998
***************
*** 1,62 ****
! Octave has been mostly ported to Windows NT and Windows 95 using the
! beta 17 release of the Cygnus GNU-WIN32 tools.  Not everything works,
! but it is usable.  If you would like to volunteer to work on
! improving this port, please contact bug-octave@bevo.che.wisc.edu.
  
  Here is a list of current problems (and workarounds, where available).
  
! * There is no binary version of Octave available for Windows NT or
!   Windows 95.  One will probably be released when the port is a little
!   more stable.
! 
! * To compile and install Octave on a Windows NT or Windows 95 system,
!   you will need to get the beta 17 release of the GNU-WIN32 tools.  They
!   are available from ftp://ftp.cygnus.com/pub/gnu-win32.
! 
! * There is a conflict between the files /cygnus/include/g++/String.h and
!   /cygnus/H-i386-cygwin32/i386-cygwin32/include/stringh.  You should
!   rename or remove /cygnus/include/g++/String.h.  (These file names
!   assume that you have installed the GNU-WIN32 tools in /cygnus).
! 
! * On Windows 95 systems, there is a bug that causes redirections to
!   /dev/null to fail.  You can work around the problem by substituting
!   /dev/nul for /dev/null in all of the files that use it.  (This
!   problem is fixed in the b17.1 release of the tools.)
! 
! * You will need to have f2c and libf2c.a or g77 installed.  You can get
!   a copy of f2c from ftp://netlib.att.com/netlib/f2c.
  
  * You will also need a termcap library.  The GNU termcap library seems
    to work.  You can get it from any GNU archive site, including 
!   ftp://prep.ai.mit.edu/pub/gnu/termcap-1.3.tar.gz.
! 
! * GNU info doesn't work yet.  It compiles but doesn't run.  Perhaps the
!   problem is just that a proper termcap entry needs to be defined.
  
! * If no other pager can be found, Octave will use more.com.  Since
!   that's a pretty limited pager (no going backward, etc.) you may want
!   to find a working version of less.  The GNU-WIN32 tools used to
!   include a copy of less, but I am told it was dropped from the
!   distribution because it didn't work very well.  If you know of a
!   better port of less that will work with Octave, please contact
!   bug-octave@bevo.che.wisc.edu.
! 
! * To make plotting work, you will need to find a version of gnuplot
!   that can read commands from a pipe.  The binary versions of gnuplot
!   for Windows that I found could only read from their command windows,
!   and wouldn't accept commands through a pipe, so they could not be
!   called from Octave.
! 
!   After deleting -DREADLINE from the Makefile, I was able to compile a
!   working version of gnuplot 3.6 beta 315 using the GNU-WIN32 tools,
!   but it does not support the Windows graphics terminal.  It does
!   support dumb terminals and lots of other output devices, including
!   PostScript, but it would be much nicer if it could open a separate
!   window and draw pretty graphs there.
  
  * If Octave takes a long time to find function files, you may have to
    modify your LOADPATH to avoid device names specified using the
!   `//DEV/sudir' syntax.  To map the D: drive (for example) to
    /D_DRIVE, do the following:
  
      cd /
--- 1,44 ----
! Octave has been ported to Windows NT and Windows 95 using the beta 18
! release of the Cygnus gnu-win32 tools.  If you would like to volunteer
! to work on improving this port, please contact bug-octave@bevo.che.wisc.edu.
! 
! The directory ftp://ftp.che.wisc.edu/pub/octave/BINARIES/gnu-win32
! contains a binary distribution of Octave for Windows NT/95 along with
! installation instructions.  Unless you are interested in doing some
! hacking, you should use the binary releases.
  
  Here is a list of current problems (and workarounds, where available).
  
! * To compile and install Octave on a Windows NT/95 system,
!   you will need to get the beta 18 release of the gnu-win32 tools.
!   They are available from ftp://ftp.cygnus.com/pub/gnu-win32.
! 
! * There is a conflict between /gnu-win32/b18/include/g++/String.h
!   and /gnu-win32/b18/H-i386-cygwin32/i386-cygwin32/include/string.h.
!   You should rename or remove /gnu-win32/b18/include/g++/String.h.
!   (These file names assume that you have installed the gnu-win32 tools
!   in /gnu-win32/b18).
! 
! * You will need to have f2c and libf2c.a or g77 installed.  I would
!   recommend using g77.  Mumit Khan has directions for building g77 at
!   http://www.xraylith.wisc.edu/~khan/software/gnu-win32/g77.html.
!   Another solution is to use egcs, which includes g77.  The egcs
!   compiler is available from http://www.cygnus.com/egcs.
  
  * You will also need a termcap library.  The GNU termcap library seems
    to work.  You can get it from any GNU archive site, including 
!   ftp://ftp.gnu.org/pub/gnu/termcap-1.3.tar.gz.
  
! * Octave requires gnuplot for plotting, but the normal Windows version
!   of gnuplot will not work because it only reads from the GUI and refuses
!   to read input from stdin.  Mumit Khan has written a patch that fixes
!   the problem, but the gnuplot license does not allow us to distribute
!   modified versions of gnuplot in binary form.  The patch is available
!   from http://www.xraylith.wisc.edu/~khan/software/gnu-win32.
  
  * If Octave takes a long time to find function files, you may have to
    modify your LOADPATH to avoid device names specified using the
!   `//DEV/subdir' syntax.  To map the D: drive (for example) to
    /D_DRIVE, do the following:
  
      cd /
***************
*** 69,75 ****
  If you know of solutions for any of the problems mentioned above,
  please contact bug-octave@bevo.che.wisc.edu.
  
! More information about the GNU-WIN32 project is available via the WWW
  at http://www.cygnus.com/gnu-win32.
  
  John W. Eaton
--- 51,57 ----
  If you know of solutions for any of the problems mentioned above,
  please contact bug-octave@bevo.che.wisc.edu.
  
! More information about the gnu-win32 project is available via the WWW
  at http://www.cygnus.com/gnu-win32.
  
  John W. Eaton
***************
*** 77,80 ****
  University of Wisconsin-Madison
  Department of Chemical Engineering
  
! Thu Jan 15 23:35:03 1998
--- 59,62 ----
  University of Wisconsin-Madison
  Department of Chemical Engineering
  
! Sat Feb 14 13:12:19 1998
diff -cNr octave-2.0.10/acconfig.h octave-2.0.11/acconfig.h
*** octave-2.0.10/acconfig.h	Sat Jan 31 19:29:56 1998
--- octave-2.0.11/acconfig.h	Thu Feb 19 01:30:02 1998
***************
*** 33,45 ****
  /* Define if your gnuplot has mutliplot. */
  #undef GNUPLOT_HAS_MULTIPLOT
  
- #if 0
- /* These are just here to keep autoheader from thinking that they are
-    missing even though they really aren't. */
- #undef HAVE_GAMMA
- #undef HAVE_LGAMMA
- #endif
- 
  /* Define if your system's struct group has a gr_passwd field. */
  #undef HAVE_GR_PASSWD
  
--- 33,38 ----
diff -cNr octave-2.0.10/config.h.in octave-2.0.11/config.h.in
*** octave-2.0.10/config.h.in	Fri Feb  6 13:40:12 1998
--- octave-2.0.11/config.h.in	Fri Feb 20 00:42:00 1998
***************
*** 124,136 ****
  /* Define if your gnuplot has mutliplot. */
  #undef GNUPLOT_HAS_MULTIPLOT
  
- #if 0
- /* These are just here to keep autoheader from thinking that they are
-    missing even though they really aren't. */
- #undef HAVE_GAMMA
- #undef HAVE_LGAMMA
- #endif
- 
  /* Define if your system's struct group has a gr_passwd field. */
  #undef HAVE_GR_PASSWD
  
--- 124,129 ----
***************
*** 274,285 ****
  /* Define if you have the finite function.  */
  #undef HAVE_FINITE
  
  /* Define if you have the fork function.  */
  #undef HAVE_FORK
  
- /* Define if you have the gamma function.  */
- #undef HAVE_GAMMA
- 
  /* Define if you have the getcwd function.  */
  #undef HAVE_GETCWD
  
--- 267,278 ----
  /* Define if you have the finite function.  */
  #undef HAVE_FINITE
  
+ /* Define if you have the fnmatch function.  */
+ #undef HAVE_FNMATCH
+ 
  /* Define if you have the fork function.  */
  #undef HAVE_FORK
  
  /* Define if you have the getcwd function.  */
  #undef HAVE_GETCWD
  
***************
*** 331,336 ****
--- 324,332 ----
  /* Define if you have the getwd function.  */
  #undef HAVE_GETWD
  
+ /* Define if you have the glob function.  */
+ #undef HAVE_GLOB
+ 
  /* Define if you have the infinity function.  */
  #undef HAVE_INFINITY
  
***************
*** 340,348 ****
  /* Define if you have the isnan function.  */
  #undef HAVE_ISNAN
  
- /* Define if you have the lgamma function.  */
- #undef HAVE_LGAMMA
- 
  /* Define if you have the lstat function.  */
  #undef HAVE_LSTAT
  
--- 336,341 ----
***************
*** 439,447 ****
  /* Define if you have the usleep function.  */
  #undef HAVE_USLEEP
  
- /* Define if you have the vfork function.  */
- #undef HAVE_VFORK
- 
  /* Define if you have the vfprintf function.  */
  #undef HAVE_VFPRINTF
  
--- 432,437 ----
***************
*** 472,477 ****
--- 462,473 ----
  /* Define if you have the <floatingpoint.h> header file.  */
  #undef HAVE_FLOATINGPOINT_H
  
+ /* Define if you have the <fnmatch.h> header file.  */
+ #undef HAVE_FNMATCH_H
+ 
+ /* Define if you have the <glob.h> header file.  */
+ #undef HAVE_GLOB_H
+ 
  /* Define if you have the <grp.h> header file.  */
  #undef HAVE_GRP_H
  
***************
*** 555,560 ****
--- 551,559 ----
  
  /* Define if you have the dld library (-ldld).  */
  #undef HAVE_LIBDLD
+ 
+ /* Define if you have the glob library (-lglob).  */
+ #undef HAVE_LIBGLOB
  
  /* Define if you have the m library (-lm).  */
  #undef HAVE_LIBM
diff -cNr octave-2.0.10/configure octave-2.0.11/configure
*** octave-2.0.10/configure	Fri Feb  6 15:20:48 1998
--- octave-2.0.11/configure	Tue Feb 24 16:31:04 1998
***************
*** 810,816 ****
  
  READLINE_DIR=readline
  USE_READLINE=true
! LIBREADLINE='../readline/libreadline.$(LIBEXT)'
  if $USE_READLINE; then
    cat >> confdefs.h <<\EOF
  #define USE_READLINE 1
--- 810,816 ----
  
  READLINE_DIR=readline
  USE_READLINE=true
! LIBREADLINE='$(TOPDIR)/readline/libreadline.$(LIBEXT)'
  if $USE_READLINE; then
    cat >> confdefs.h <<\EOF
  #define USE_READLINE 1
***************
*** 820,825 ****
--- 820,828 ----
  
  
  
+ LIBKPATHSEA='$(TOPDIR)/kpathsea/libkpathsea.$(LIBEXT)'
+ 
+ 
  ### Make it possible to have Octave's array and matrix classes do bounds
  ### checking on element references.  This slows some operations down a
  ### bit, so it is turned off by default.
***************
*** 847,853 ****
  # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:851: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 850,856 ----
  # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:854: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 878,884 ****
  
  
  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
! echo "configure:882: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  
  ac_ext=C
  # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
--- 881,887 ----
  
  
  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
! echo "configure:885: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  
  ac_ext=C
  # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
***************
*** 888,898 ****
  cross_compiling=$ac_cv_prog_cxx_cross
  
  cat > conftest.$ac_ext <<EOF
! #line 892 "configure"
  #include "confdefs.h"
  main(){return(0);}
  EOF
! if { (eval echo configure:896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    ac_cv_prog_cxx_works=yes
    # If we can't run a trivial program, we are probably using a cross compiler.
    if (./conftest; exit) 2>/dev/null; then
--- 891,901 ----
  cross_compiling=$ac_cv_prog_cxx_cross
  
  cat > conftest.$ac_ext <<EOF
! #line 895 "configure"
  #include "confdefs.h"
  main(){return(0);}
  EOF
! if { (eval echo configure:899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    ac_cv_prog_cxx_works=yes
    # If we can't run a trivial program, we are probably using a cross compiler.
    if (./conftest; exit) 2>/dev/null; then
***************
*** 918,929 ****
    { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  fi
  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
! echo "configure:922: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  cross_compiling=$ac_cv_prog_cxx_cross
  
  echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
! echo "configure:927: checking whether we are using GNU C++" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 921,932 ----
    { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  fi
  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
! echo "configure:925: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  cross_compiling=$ac_cv_prog_cxx_cross
  
  echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
! echo "configure:930: checking whether we are using GNU C++" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 932,938 ****
    yes;
  #endif
  EOF
! if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    ac_cv_prog_gxx=yes
  else
    ac_cv_prog_gxx=no
--- 935,941 ----
    yes;
  #endif
  EOF
! if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    ac_cv_prog_gxx=yes
  else
    ac_cv_prog_gxx=no
***************
*** 947,953 ****
    ac_save_CXXFLAGS="$CXXFLAGS"
    CXXFLAGS=
    echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
! echo "configure:951: checking whether ${CXX-g++} accepts -g" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 950,956 ----
    ac_save_CXXFLAGS="$CXXFLAGS"
    CXXFLAGS=
    echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
! echo "configure:954: checking whether ${CXX-g++} accepts -g" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 975,981 ****
  fi
  
  echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
! echo "configure:979: checking how to run the C++ preprocessor" >&5
  if test -z "$CXXCPP"; then
  if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 978,984 ----
  fi
  
  echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
! echo "configure:982: checking how to run the C++ preprocessor" >&5
  if test -z "$CXXCPP"; then
  if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 988,999 ****
  cross_compiling=$ac_cv_prog_cxx_cross
    CXXCPP="${CXX-g++} -E"
    cat > conftest.$ac_ext <<EOF
! #line 992 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    :
--- 991,1002 ----
  cross_compiling=$ac_cv_prog_cxx_cross
    CXXCPP="${CXX-g++} -E"
    cat > conftest.$ac_ext <<EOF
! #line 995 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    :
***************
*** 1038,1044 ****
  
    
    echo $ac_n "checking for C++ support for new friend template declaration""... $ac_c" 1>&6
! echo "configure:1042: checking for C++ support for new friend template declaration" >&5
    if eval "test \"`echo '$''{'octave_cv_cxx_new_friend_template_decl'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1041,1047 ----
  
    
    echo $ac_n "checking for C++ support for new friend template declaration""... $ac_c" 1>&6
! echo "configure:1045: checking for C++ support for new friend template declaration" >&5
    if eval "test \"`echo '$''{'octave_cv_cxx_new_friend_template_decl'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 1065,1071 ****
         }
  EOB
      cat > conftest.$ac_ext <<EOF
! #line 1069 "configure"
  #include "confdefs.h"
  #include "conftest.h"
  int main() {
--- 1068,1074 ----
         }
  EOB
      cat > conftest.$ac_ext <<EOF
! #line 1072 "configure"
  #include "confdefs.h"
  #include "conftest.h"
  int main() {
***************
*** 1075,1081 ****
        
  ; return 0; }
  EOF
! if { (eval echo configure:1079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    octave_cv_cxx_new_friend_template_decl=no
  else
--- 1078,1084 ----
        
  ; return 0; }
  EOF
! if { (eval echo configure:1082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    octave_cv_cxx_new_friend_template_decl=no
  else
***************
*** 1112,1118 ****
  # Extract the first word of "gcc", so it can be a program name with args.
  set dummy gcc; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1116: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1115,1121 ----
  # Extract the first word of "gcc", so it can be a program name with args.
  set dummy gcc; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1119: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 1141,1147 ****
    # Extract the first word of "cc", so it can be a program name with args.
  set dummy cc; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1145: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1144,1150 ----
    # Extract the first word of "cc", so it can be a program name with args.
  set dummy cc; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1148: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 1189,1195 ****
  fi
  
  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
! echo "configure:1193: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  
  ac_ext=c
  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
--- 1192,1198 ----
  fi
  
  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
! echo "configure:1196: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  
  ac_ext=c
  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
***************
*** 1199,1209 ****
  cross_compiling=$ac_cv_prog_cc_cross
  
  cat > conftest.$ac_ext <<EOF
! #line 1203 "configure"
  #include "confdefs.h"
  main(){return(0);}
  EOF
! if { (eval echo configure:1207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    ac_cv_prog_cc_works=yes
    # If we can't run a trivial program, we are probably using a cross compiler.
    if (./conftest; exit) 2>/dev/null; then
--- 1202,1212 ----
  cross_compiling=$ac_cv_prog_cc_cross
  
  cat > conftest.$ac_ext <<EOF
! #line 1206 "configure"
  #include "confdefs.h"
  main(){return(0);}
  EOF
! if { (eval echo configure:1210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    ac_cv_prog_cc_works=yes
    # If we can't run a trivial program, we are probably using a cross compiler.
    if (./conftest; exit) 2>/dev/null; then
***************
*** 1223,1234 ****
    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  fi
  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
! echo "configure:1227: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  cross_compiling=$ac_cv_prog_cc_cross
  
  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
! echo "configure:1232: checking whether we are using GNU C" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1226,1237 ----
    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  fi
  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
! echo "configure:1230: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  cross_compiling=$ac_cv_prog_cc_cross
  
  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
! echo "configure:1235: checking whether we are using GNU C" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 1237,1243 ****
    yes;
  #endif
  EOF
! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    ac_cv_prog_gcc=yes
  else
    ac_cv_prog_gcc=no
--- 1240,1246 ----
    yes;
  #endif
  EOF
! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    ac_cv_prog_gcc=yes
  else
    ac_cv_prog_gcc=no
***************
*** 1252,1258 ****
    ac_save_CFLAGS="$CFLAGS"
    CFLAGS=
    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
! echo "configure:1256: checking whether ${CC-cc} accepts -g" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1255,1261 ----
    ac_save_CFLAGS="$CFLAGS"
    CFLAGS=
    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
! echo "configure:1259: checking whether ${CC-cc} accepts -g" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 1280,1286 ****
  fi
  
  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
! echo "configure:1284: checking how to run the C preprocessor" >&5
  # On Suns, sometimes $CPP names a directory.
  if test -n "$CPP" && test -d "$CPP"; then
    CPP=
--- 1283,1289 ----
  fi
  
  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
! echo "configure:1287: checking how to run the C preprocessor" >&5
  # On Suns, sometimes $CPP names a directory.
  if test -n "$CPP" && test -d "$CPP"; then
    CPP=
***************
*** 1295,1307 ****
    # On the NeXT, cc -E runs the code through the compiler's parser,
    # not just through cpp.
    cat > conftest.$ac_ext <<EOF
! #line 1299 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    :
--- 1298,1310 ----
    # On the NeXT, cc -E runs the code through the compiler's parser,
    # not just through cpp.
    cat > conftest.$ac_ext <<EOF
! #line 1302 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    :
***************
*** 1312,1324 ****
    rm -rf conftest*
    CPP="${CC-cc} -E -traditional-cpp"
    cat > conftest.$ac_ext <<EOF
! #line 1316 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    :
--- 1315,1327 ----
    rm -rf conftest*
    CPP="${CC-cc} -E -traditional-cpp"
    cat > conftest.$ac_ext <<EOF
! #line 1319 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    :
***************
*** 1342,1354 ****
  
  if test $ac_cv_prog_gcc = yes; then
      echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
! echo "configure:1346: checking whether ${CC-cc} needs -traditional" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
      ac_pattern="Autoconf.*'x'"
    cat > conftest.$ac_ext <<EOF
! #line 1352 "configure"
  #include "confdefs.h"
  #include <sgtty.h>
  Autoconf TIOCGETP
--- 1345,1357 ----
  
  if test $ac_cv_prog_gcc = yes; then
      echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
! echo "configure:1349: checking whether ${CC-cc} needs -traditional" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
      ac_pattern="Autoconf.*'x'"
    cat > conftest.$ac_ext <<EOF
! #line 1355 "configure"
  #include "confdefs.h"
  #include <sgtty.h>
  Autoconf TIOCGETP
***************
*** 1366,1372 ****
  
    if test $ac_cv_prog_gcc_traditional = no; then
      cat > conftest.$ac_ext <<EOF
! #line 1370 "configure"
  #include "confdefs.h"
  #include <termio.h>
  Autoconf TCGETA
--- 1369,1375 ----
  
    if test $ac_cv_prog_gcc_traditional = no; then
      cat > conftest.$ac_ext <<EOF
! #line 1373 "configure"
  #include "confdefs.h"
  #include <termio.h>
  Autoconf TCGETA
***************
*** 1423,1429 ****
      
    ac_safe=`echo "-mieee-fp" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CC-cc} accepts -mieee-fp""... $ac_c" 1>&6
! echo "configure:1427: checking whether ${CC-cc} accepts -mieee-fp" >&5
    if eval "test \"`echo '$''{'octave_cv_cc_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1426,1432 ----
      
    ac_safe=`echo "-mieee-fp" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CC-cc} accepts -mieee-fp""... $ac_c" 1>&6
! echo "configure:1430: checking whether ${CC-cc} accepts -mieee-fp" >&5
    if eval "test \"`echo '$''{'octave_cv_cc_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 1439,1452 ****
      XCFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -mieee-fp"
      cat > conftest.$ac_ext <<EOF
! #line 1443 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:1450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cc_flag_$ac_safe=yes"
  else
--- 1442,1455 ----
      XCFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -mieee-fp"
      cat > conftest.$ac_ext <<EOF
! #line 1446 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cc_flag_$ac_safe=yes"
  else
***************
*** 1475,1481 ****
      
    ac_safe=`echo "-mieee-fp" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CXX-c++} accepts -mieee-fp""... $ac_c" 1>&6
! echo "configure:1479: checking whether ${CXX-c++} accepts -mieee-fp" >&5
    if eval "test \"`echo '$''{'octave_cv_cxx_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1478,1484 ----
      
    ac_safe=`echo "-mieee-fp" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CXX-c++} accepts -mieee-fp""... $ac_c" 1>&6
! echo "configure:1482: checking whether ${CXX-c++} accepts -mieee-fp" >&5
    if eval "test \"`echo '$''{'octave_cv_cxx_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 1491,1504 ****
      XCXXFLAGS="$CXXFLAGS"
      CXXFLAGS="$CXXFLAGS -mieee-fp"
      cat > conftest.$ac_ext <<EOF
! #line 1495 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:1502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cxx_flag_$ac_safe=yes"
  else
--- 1494,1507 ----
      XCXXFLAGS="$CXXFLAGS"
      CXXFLAGS="$CXXFLAGS -mieee-fp"
      cat > conftest.$ac_ext <<EOF
! #line 1498 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cxx_flag_$ac_safe=yes"
  else
***************
*** 1532,1540 ****
    ;;
    alpha*-*-*)
      
!   ac_safe=`echo "-mieee" | sed 'y%./+-%__p_%'`
!   echo $ac_n "checking whether ${CC-cc} accepts -mieee""... $ac_c" 1>&6
! echo "configure:1538: checking whether ${CC-cc} accepts -mieee" >&5
    if eval "test \"`echo '$''{'octave_cv_cc_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1535,1543 ----
    ;;
    alpha*-*-*)
      
!   ac_safe=`echo "-mieee-with-inexact" | sed 'y%./+-%__p_%'`
!   echo $ac_n "checking whether ${CC-cc} accepts -mieee-with-inexact""... $ac_c" 1>&6
! echo "configure:1541: checking whether ${CC-cc} accepts -mieee-with-inexact" >&5
    if eval "test \"`echo '$''{'octave_cv_cc_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 1548,1563 ****
  cross_compiling=$ac_cv_prog_cc_cross
  
      XCFLAGS="$CFLAGS"
!     CFLAGS="$CFLAGS -mieee"
      cat > conftest.$ac_ext <<EOF
! #line 1554 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cc_flag_$ac_safe=yes"
  else
--- 1551,1566 ----
  cross_compiling=$ac_cv_prog_cc_cross
  
      XCFLAGS="$CFLAGS"
!     CFLAGS="$CFLAGS -mieee-with-inexact"
      cat > conftest.$ac_ext <<EOF
! #line 1557 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:1564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cc_flag_$ac_safe=yes"
  else
***************
*** 1575,1591 ****
    if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then
      echo "$ac_t""yes" 1>&6
      
!       ieee_fp_flag=-mieee
!       XTRA_CFLAGS="$XTRA_CFLAGS -mieee"
    else
      echo "$ac_t""no" 1>&6
      
    fi
  
      
!   ac_safe=`echo "-mieee" | sed 'y%./+-%__p_%'`
!   echo $ac_n "checking whether ${CXX-c++} accepts -mieee""... $ac_c" 1>&6
! echo "configure:1589: checking whether ${CXX-c++} accepts -mieee" >&5
    if eval "test \"`echo '$''{'octave_cv_cxx_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1578,1594 ----
    if eval "test \"`echo '$octave_cv_cc_flag_'$ac_safe`\" = yes"; then
      echo "$ac_t""yes" 1>&6
      
!       ieee_fp_flag=-mieee-with-inexact
!       XTRA_CFLAGS="$XTRA_CFLAGS -mieee-with-inexact"
    else
      echo "$ac_t""no" 1>&6
      
    fi
  
      
!   ac_safe=`echo "-mieee-with-inexact" | sed 'y%./+-%__p_%'`
!   echo $ac_n "checking whether ${CXX-c++} accepts -mieee-with-inexact""... $ac_c" 1>&6
! echo "configure:1592: checking whether ${CXX-c++} accepts -mieee-with-inexact" >&5
    if eval "test \"`echo '$''{'octave_cv_cxx_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 1599,1614 ****
  cross_compiling=$ac_cv_prog_cxx_cross
  
      XCXXFLAGS="$CXXFLAGS"
!     CXXFLAGS="$CXXFLAGS -mieee"
      cat > conftest.$ac_ext <<EOF
! #line 1605 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:1612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cxx_flag_$ac_safe=yes"
  else
--- 1602,1617 ----
  cross_compiling=$ac_cv_prog_cxx_cross
  
      XCXXFLAGS="$CXXFLAGS"
!     CXXFLAGS="$CXXFLAGS -mieee-with-inexact"
      cat > conftest.$ac_ext <<EOF
! #line 1608 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cxx_flag_$ac_safe=yes"
  else
***************
*** 1632,1639 ****
    if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then
      echo "$ac_t""yes" 1>&6
      
!       ieee_fp_flag=-mieee
!       XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee"
    else
      echo "$ac_t""no" 1>&6
      
--- 1635,1642 ----
    if eval "test \"`echo '$octave_cv_cxx_flag_'$ac_safe`\" = yes"; then
      echo "$ac_t""yes" 1>&6
      
!       ieee_fp_flag=-mieee-with-inexact
!       XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-with-inexact"
    else
      echo "$ac_t""no" 1>&6
      
***************
*** 1648,1654 ****
  
    ac_safe=`echo "-fno-rtti" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CXX-c++} accepts -fno-rtti""... $ac_c" 1>&6
! echo "configure:1652: checking whether ${CXX-c++} accepts -fno-rtti" >&5
    if eval "test \"`echo '$''{'octave_cv_cxx_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1651,1657 ----
  
    ac_safe=`echo "-fno-rtti" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CXX-c++} accepts -fno-rtti""... $ac_c" 1>&6
! echo "configure:1655: checking whether ${CXX-c++} accepts -fno-rtti" >&5
    if eval "test \"`echo '$''{'octave_cv_cxx_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 1664,1677 ****
      XCXXFLAGS="$CXXFLAGS"
      CXXFLAGS="$CXXFLAGS -fno-rtti"
      cat > conftest.$ac_ext <<EOF
! #line 1668 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cxx_flag_$ac_safe=yes"
  else
--- 1667,1680 ----
      XCXXFLAGS="$CXXFLAGS"
      CXXFLAGS="$CXXFLAGS -fno-rtti"
      cat > conftest.$ac_ext <<EOF
! #line 1671 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cxx_flag_$ac_safe=yes"
  else
***************
*** 1704,1710 ****
  
    ac_safe=`echo "-fno-exceptions" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CXX-c++} accepts -fno-exceptions""... $ac_c" 1>&6
! echo "configure:1708: checking whether ${CXX-c++} accepts -fno-exceptions" >&5
    if eval "test \"`echo '$''{'octave_cv_cxx_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1707,1713 ----
  
    ac_safe=`echo "-fno-exceptions" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CXX-c++} accepts -fno-exceptions""... $ac_c" 1>&6
! echo "configure:1711: checking whether ${CXX-c++} accepts -fno-exceptions" >&5
    if eval "test \"`echo '$''{'octave_cv_cxx_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 1720,1733 ****
      XCXXFLAGS="$CXXFLAGS"
      CXXFLAGS="$CXXFLAGS -fno-exceptions"
      cat > conftest.$ac_ext <<EOF
! #line 1724 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cxx_flag_$ac_safe=yes"
  else
--- 1723,1736 ----
      XCXXFLAGS="$CXXFLAGS"
      CXXFLAGS="$CXXFLAGS -fno-exceptions"
      cat > conftest.$ac_ext <<EOF
! #line 1727 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:1734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cxx_flag_$ac_safe=yes"
  else
***************
*** 1762,1768 ****
  
    ac_safe=`echo "-fno-implicit-templates" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CXX-c++} accepts -fno-implicit-templates""... $ac_c" 1>&6
! echo "configure:1766: checking whether ${CXX-c++} accepts -fno-implicit-templates" >&5
    if eval "test \"`echo '$''{'octave_cv_cxx_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1765,1771 ----
  
    ac_safe=`echo "-fno-implicit-templates" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CXX-c++} accepts -fno-implicit-templates""... $ac_c" 1>&6
! echo "configure:1769: checking whether ${CXX-c++} accepts -fno-implicit-templates" >&5
    if eval "test \"`echo '$''{'octave_cv_cxx_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 1778,1791 ****
      XCXXFLAGS="$CXXFLAGS"
      CXXFLAGS="$CXXFLAGS -fno-implicit-templates"
      cat > conftest.$ac_ext <<EOF
! #line 1782 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cxx_flag_$ac_safe=yes"
  else
--- 1781,1794 ----
      XCXXFLAGS="$CXXFLAGS"
      CXXFLAGS="$CXXFLAGS -fno-implicit-templates"
      cat > conftest.$ac_ext <<EOF
! #line 1785 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cxx_flag_$ac_safe=yes"
  else
***************
*** 1844,1850 ****
  # Extract the first word of "ranlib", so it can be a program name with args.
  set dummy ranlib; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1848: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1847,1853 ----
  # Extract the first word of "ranlib", so it can be a program name with args.
  set dummy ranlib; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1851: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 1922,1928 ****
  # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1926: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_F77'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1925,1931 ----
  # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:1929: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_F77'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 1960,1966 ****
  else
    if test -n "$F77"; then
      echo $ac_n "checking for Fortran libraries""... $ac_c" 1>&6
! echo "configure:1964: checking for Fortran libraries" >&5
  
  if eval "test \"`echo '$''{'octave_cv_flibs'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 1963,1969 ----
  else
    if test -n "$F77"; then
      echo $ac_n "checking for Fortran libraries""... $ac_c" 1>&6
! echo "configure:1967: checking for Fortran libraries" >&5
  
  if eval "test \"`echo '$''{'octave_cv_flibs'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 2112,2118 ****
  FLIBS="$octave_cv_flibs"
  echo "$ac_t""$FLIBS" 1>&6
      echo $ac_n "checking whether $F77 uses uppercase external names""... $ac_c" 1>&6
! echo "configure:2116: checking whether $F77 uses uppercase external names" >&5
  if eval "test \"`echo '$''{'octave_cv_f77_uppercase_names'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 2115,2121 ----
  FLIBS="$octave_cv_flibs"
  echo "$ac_t""$FLIBS" 1>&6
      echo $ac_n "checking whether $F77 uses uppercase external names""... $ac_c" 1>&6
! echo "configure:2119: checking whether $F77 uses uppercase external names" >&5
  if eval "test \"`echo '$''{'octave_cv_f77_uppercase_names'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 2137,2143 ****
  
  fi
  echo $ac_n "checking whether $F77 appends underscores to external names""... $ac_c" 1>&6
! echo "configure:2141: checking whether $F77 appends underscores to external names" >&5
  
  if eval "test \"`echo '$''{'octave_cv_f77_append_underscore'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 2140,2146 ----
  
  fi
  echo $ac_n "checking whether $F77 appends underscores to external names""... $ac_c" 1>&6
! echo "configure:2144: checking whether $F77 appends underscores to external names" >&5
  
  if eval "test \"`echo '$''{'octave_cv_f77_append_underscore'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 2169,2175 ****
  
  fi
      echo $ac_n "checking whether ${F77-f77} is the GNU Fortran compiler""... $ac_c" 1>&6
! echo "configure:2173: checking whether ${F77-f77} is the GNU Fortran compiler" >&5
  if eval "test \"`echo '$''{'octave_cv_f77_is_g77'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 2172,2178 ----
  
  fi
      echo $ac_n "checking whether ${F77-f77} is the GNU Fortran compiler""... $ac_c" 1>&6
! echo "configure:2176: checking whether ${F77-f77} is the GNU Fortran compiler" >&5
  if eval "test \"`echo '$''{'octave_cv_f77_is_g77'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 2199,2205 ****
    fi
  else
    echo $ac_n "checking $F77/f2c compatibility""... $ac_c" 1>&6
! echo "configure:2203: checking $F77/f2c compatibility" >&5
  if eval "test \"`echo '$''{'octave_cv_f2c_f77_compat'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 2202,2208 ----
    fi
  else
    echo $ac_n "checking $F77/f2c compatibility""... $ac_c" 1>&6
! echo "configure:2206: checking $F77/f2c compatibility" >&5
  if eval "test \"`echo '$''{'octave_cv_f2c_f77_compat'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 2263,2269 ****
        fi
        case "$canonical_host_type" in
          alpha*-dec-osf*)
!           if test "$f77_is_g77" = yes || test -z "$ieee_fp_flag"; then
              true
  	  else
  	    FFLAGS="-fpe1 $FFLAGS"
--- 2266,2273 ----
        fi
        case "$canonical_host_type" in
          alpha*-dec-osf*)
!           if test "$octave_cv_f77_is_g77" = yes \
! 	      || test -z "$ieee_fp_flag"; then
              true
  	  else
  	    FFLAGS="-fpe1 $FFLAGS"
***************
*** 2281,2287 ****
      # Extract the first word of "f2c", so it can be a program name with args.
  set dummy f2c; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:2285: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_F2C'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 2285,2291 ----
      # Extract the first word of "f2c", so it can be a program name with args.
  set dummy f2c; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:2289: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_F2C'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 2345,2351 ****
    oct_conflib=libconflib.a
    oct_obj_ext=o
  
!   if { (eval echo configure:2349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
      $AR $ARFLAGS $oct_conflib conftest.$oct_obj_ext 1>&5
      if test -n "$RANLIB"; then
        $RANLIB $oct_conflib 1>&5
--- 2349,2355 ----
    oct_conflib=libconflib.a
    oct_obj_ext=o
  
!   if { (eval echo configure:2353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
      $AR $ARFLAGS $oct_conflib conftest.$oct_obj_ext 1>&5
      if test -n "$RANLIB"; then
        $RANLIB $oct_conflib 1>&5
***************
*** 2353,2359 ****
    fi
    rm -f conftest*
    echo $ac_n "checking for f_open in -lf2c""... $ac_c" 1>&6
! echo "configure:2357: checking for f_open in -lf2c" >&5
  ac_lib_var=`echo f2c'_'f_open | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 2357,2363 ----
    fi
    rm -f conftest*
    echo $ac_n "checking for f_open in -lf2c""... $ac_c" 1>&6
! echo "configure:2361: checking for f_open in -lf2c" >&5
  ac_lib_var=`echo f2c'_'f_open | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 2361,2367 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lf2c -L. -lconflib -lm $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2365 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
--- 2365,2371 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lf2c -L. -lconflib -lm $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2369 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
***************
*** 2372,2378 ****
  f_open()
  ; return 0; }
  EOF
! if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
--- 2376,2382 ----
  f_open()
  ; return 0; }
  EOF
! if { (eval echo configure:2380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
***************
*** 2397,2403 ****
  
    if test -z "$FLIBS"; then
      echo $ac_n "checking for d_sin in -lF77""... $ac_c" 1>&6
! echo "configure:2401: checking for d_sin in -lF77" >&5
  ac_lib_var=`echo F77'_'d_sin | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 2401,2407 ----
  
    if test -z "$FLIBS"; then
      echo $ac_n "checking for d_sin in -lF77""... $ac_c" 1>&6
! echo "configure:2405: checking for d_sin in -lF77" >&5
  ac_lib_var=`echo F77'_'d_sin | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 2405,2411 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lF77 -lm $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2409 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
--- 2409,2415 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lF77 -lm $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2413 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
***************
*** 2416,2422 ****
  d_sin()
  ; return 0; }
  EOF
! if { (eval echo configure:2420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
--- 2420,2426 ----
  d_sin()
  ; return 0; }
  EOF
! if { (eval echo configure:2424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
***************
*** 2439,2445 ****
  
      if test -n "$FLIBS"; then
        echo $ac_n "checking for f_rew in -lI77""... $ac_c" 1>&6
! echo "configure:2443: checking for f_rew in -lI77" >&5
  ac_lib_var=`echo I77'_'f_rew | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 2443,2449 ----
  
      if test -n "$FLIBS"; then
        echo $ac_n "checking for f_rew in -lI77""... $ac_c" 1>&6
! echo "configure:2447: checking for f_rew in -lI77" >&5
  ac_lib_var=`echo I77'_'f_rew | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 2447,2453 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lI77 -lF77 $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2451 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
--- 2451,2457 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lI77 -lF77 $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2455 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
***************
*** 2458,2464 ****
  f_rew()
  ; return 0; }
  EOF
! if { (eval echo configure:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
--- 2462,2468 ----
  f_rew()
  ; return 0; }
  EOF
! if { (eval echo configure:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
***************
*** 2565,2570 ****
--- 2569,2587 ----
  
  
  
+ if $SHARED_LIBS; then
+   LIBOCTINTERP=-loctinterp
+   LIBOCTAVE=-loctave
+   LIBCRUFT=-lcruft
+ else
+   LIBOCTINTERP='$(TOPDIR)/src/liboctinterp.$(LIBEXT)'
+   LIBOCTAVE='$(TOPDIR)/liboctave/liboctave.$(LIBEXT)'
+   LIBCRUFT='$(TOPDIR)/libcruft/libcruft.$(LIBEXT)'
+ fi
+ 
+ 
+ 
+ 
  use_rpath=true
  # Check whether --enable-rpath or --disable-rpath was given.
  if test "${enable_rpath+set}" = set; then
***************
*** 2603,2609 ****
      DLFCN_DIR=dlfcn
    ;;
    hppa*-hp-hpux*)
!     if test "$f77_is_g77" = yes; then
        FPICFLAG=-fPIC
      else
        FPICFLAG=+Z
--- 2620,2626 ----
      DLFCN_DIR=dlfcn
    ;;
    hppa*-hp-hpux*)
!     if test "$octave_cv_f77_is_g77" = yes; then
        FPICFLAG=-fPIC
      else
        FPICFLAG=+Z
***************
*** 2619,2625 ****
      RLD_FLAG='-L$(octlibdir)'
    ;;
    sparc-sun-sunos4*)
!     if test "$f77_is_g77" = yes; then
        FPICFLAG=-fPIC
      else
        FPICFLAG=-PIC
--- 2636,2642 ----
      RLD_FLAG='-L$(octlibdir)'
    ;;
    sparc-sun-sunos4*)
!     if test "$octave_cv_f77_is_g77" = yes; then
        FPICFLAG=-fPIC
      else
        FPICFLAG=-PIC
***************
*** 2629,2635 ****
      RLD_FLAG='-L$(octlibdir)'
    ;;
    sparc-sun-solaris2*)
!     if test "$f77_is_g77" = yes; then
        FPICFLAG=-fPIC
      else
        FPICFLAG=-PIC
--- 2646,2652 ----
      RLD_FLAG='-L$(octlibdir)'
    ;;
    sparc-sun-solaris2*)
!     if test "$octave_cv_f77_is_g77" = yes; then
        FPICFLAG=-fPIC
      else
        FPICFLAG=-PIC
***************
*** 2687,2693 ****
  ### functions like gethostname and gettimeofday is in libsocket.
  
  echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
! echo "configure:2691: checking for POSIXized ISC" >&5
  if test -d /etc/conf/kconfig.d &&
    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  then
--- 2704,2710 ----
  ### functions like gethostname and gettimeofday is in libsocket.
  
  echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
! echo "configure:2708: checking for POSIXized ISC" >&5
  if test -d /etc/conf/kconfig.d &&
    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  then
***************
*** 2709,2725 ****
  
  ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
! echo "configure:2713: checking for minix/config.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2718 "configure"
  #include "confdefs.h"
  #include <minix/config.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
--- 2726,2742 ----
  
  ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
! echo "configure:2730: checking for minix/config.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2735 "configure"
  #include "confdefs.h"
  #include <minix/config.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
***************
*** 2757,2765 ****
  fi
  
  echo $ac_n "checking for AIX""... $ac_c" 1>&6
! echo "configure:2761: checking for AIX" >&5
  cat > conftest.$ac_ext <<EOF
! #line 2763 "configure"
  #include "confdefs.h"
  #ifdef _AIX
    yes
--- 2774,2782 ----
  fi
  
  echo $ac_n "checking for AIX""... $ac_c" 1>&6
! echo "configure:2778: checking for AIX" >&5
  cat > conftest.$ac_ext <<EOF
! #line 2780 "configure"
  #include "confdefs.h"
  #ifdef _AIX
    yes
***************
*** 2781,2787 ****
  
  
  echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
! echo "configure:2785: checking for getpwnam in -lsun" >&5
  ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 2798,2804 ----
  
  
  echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
! echo "configure:2802: checking for getpwnam in -lsun" >&5
  ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 2789,2795 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lsun  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2793 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
--- 2806,2812 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lsun  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2810 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
***************
*** 2800,2806 ****
  getpwnam()
  ; return 0; }
  EOF
! if { (eval echo configure:2804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
--- 2817,2823 ----
  getpwnam()
  ; return 0; }
  EOF
! if { (eval echo configure:2821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
***************
*** 2828,2834 ****
  fi
  
  echo $ac_n "checking for gethostname in -lsocket""... $ac_c" 1>&6
! echo "configure:2832: checking for gethostname in -lsocket" >&5
  ac_lib_var=`echo socket'_'gethostname | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 2845,2851 ----
  fi
  
  echo $ac_n "checking for gethostname in -lsocket""... $ac_c" 1>&6
! echo "configure:2849: checking for gethostname in -lsocket" >&5
  ac_lib_var=`echo socket'_'gethostname | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 2836,2842 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lsocket  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2840 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
--- 2853,2859 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lsocket  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2857 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
***************
*** 2847,2853 ****
  gethostname()
  ; return 0; }
  EOF
! if { (eval echo configure:2851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
--- 2864,2870 ----
  gethostname()
  ; return 0; }
  EOF
! if { (eval echo configure:2868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
***************
*** 2878,2884 ****
  case "$canonical_host_type" in
    alpha*-dec-osf*)
      echo $ac_n "checking for dgemm_ in -ldxml""... $ac_c" 1>&6
! echo "configure:2882: checking for dgemm_ in -ldxml" >&5
  ac_lib_var=`echo dxml'_'dgemm_ | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 2895,2901 ----
  case "$canonical_host_type" in
    alpha*-dec-osf*)
      echo $ac_n "checking for dgemm_ in -ldxml""... $ac_c" 1>&6
! echo "configure:2899: checking for dgemm_ in -ldxml" >&5
  ac_lib_var=`echo dxml'_'dgemm_ | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 2886,2892 ****
    ac_save_LIBS="$LIBS"
  LIBS="-ldxml  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2890 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
--- 2903,2909 ----
    ac_save_LIBS="$LIBS"
  LIBS="-ldxml  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 2907 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
***************
*** 2897,2903 ****
  dgemm_()
  ; return 0; }
  EOF
! if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
--- 2914,2920 ----
  dgemm_()
  ; return 0; }
  EOF
! if { (eval echo configure:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
***************
*** 2925,2931 ****
  ### be eliminated in favor of run-time checks.
  
  echo $ac_n "checking size of short""... $ac_c" 1>&6
! echo "configure:2929: checking size of short" >&5
  if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 2942,2948 ----
  ### be eliminated in favor of run-time checks.
  
  echo $ac_n "checking size of short""... $ac_c" 1>&6
! echo "configure:2946: checking size of short" >&5
  if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 2933,2939 ****
    ac_cv_sizeof_short=2
  else
    cat > conftest.$ac_ext <<EOF
! #line 2937 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  main()
--- 2950,2956 ----
    ac_cv_sizeof_short=2
  else
    cat > conftest.$ac_ext <<EOF
! #line 2954 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  main()
***************
*** 2944,2950 ****
    exit(0);
  }
  EOF
! if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    ac_cv_sizeof_short=`cat conftestval`
  else
--- 2961,2967 ----
    exit(0);
  }
  EOF
! if { (eval echo configure:2965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    ac_cv_sizeof_short=`cat conftestval`
  else
***************
*** 2964,2970 ****
  
  
  echo $ac_n "checking size of int""... $ac_c" 1>&6
! echo "configure:2968: checking size of int" >&5
  if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 2981,2987 ----
  
  
  echo $ac_n "checking size of int""... $ac_c" 1>&6
! echo "configure:2985: checking size of int" >&5
  if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 2972,2978 ****
    ac_cv_sizeof_int=4
  else
    cat > conftest.$ac_ext <<EOF
! #line 2976 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  main()
--- 2989,2995 ----
    ac_cv_sizeof_int=4
  else
    cat > conftest.$ac_ext <<EOF
! #line 2993 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  main()
***************
*** 2983,2989 ****
    exit(0);
  }
  EOF
! if { (eval echo configure:2987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    ac_cv_sizeof_int=`cat conftestval`
  else
--- 3000,3006 ----
    exit(0);
  }
  EOF
! if { (eval echo configure:3004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    ac_cv_sizeof_int=`cat conftestval`
  else
***************
*** 3003,3009 ****
  
  
  echo $ac_n "checking size of long""... $ac_c" 1>&6
! echo "configure:3007: checking size of long" >&5
  if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 3020,3026 ----
  
  
  echo $ac_n "checking size of long""... $ac_c" 1>&6
! echo "configure:3024: checking size of long" >&5
  if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 3011,3017 ****
    ac_cv_sizeof_long=4
  else
    cat > conftest.$ac_ext <<EOF
! #line 3015 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  main()
--- 3028,3034 ----
    ac_cv_sizeof_long=4
  else
    cat > conftest.$ac_ext <<EOF
! #line 3032 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  main()
***************
*** 3022,3028 ****
    exit(0);
  }
  EOF
! if { (eval echo configure:3026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    ac_cv_sizeof_long=`cat conftestval`
  else
--- 3039,3045 ----
    exit(0);
  }
  EOF
! if { (eval echo configure:3043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    ac_cv_sizeof_long=`cat conftestval`
  else
***************
*** 3047,3065 ****
  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  # for constant arguments.  Useless!
  echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
! echo "configure:3051: checking for working alloca.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3056 "configure"
  #include "confdefs.h"
  #include <alloca.h>
  int main() {
  char *p = alloca(2 * sizeof(int));
  ; return 0; }
  EOF
! if { (eval echo configure:3063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    ac_cv_header_alloca_h=yes
  else
--- 3064,3082 ----
  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  # for constant arguments.  Useless!
  echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
! echo "configure:3068: checking for working alloca.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3073 "configure"
  #include "confdefs.h"
  #include <alloca.h>
  int main() {
  char *p = alloca(2 * sizeof(int));
  ; return 0; }
  EOF
! if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    ac_cv_header_alloca_h=yes
  else
***************
*** 3080,3091 ****
  fi
  
  echo $ac_n "checking for alloca""... $ac_c" 1>&6
! echo "configure:3084: checking for alloca" >&5
  if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3089 "configure"
  #include "confdefs.h"
  
  #ifdef __GNUC__
--- 3097,3108 ----
  fi
  
  echo $ac_n "checking for alloca""... $ac_c" 1>&6
! echo "configure:3101: checking for alloca" >&5
  if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3106 "configure"
  #include "confdefs.h"
  
  #ifdef __GNUC__
***************
*** 3108,3114 ****
  char *p = (char *) alloca(1);
  ; return 0; }
  EOF
! if { (eval echo configure:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    ac_cv_func_alloca_works=yes
  else
--- 3125,3131 ----
  char *p = (char *) alloca(1);
  ; return 0; }
  EOF
! if { (eval echo configure:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    ac_cv_func_alloca_works=yes
  else
***************
*** 3140,3151 ****
  
  
  echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
! echo "configure:3144: checking whether alloca needs Cray hooks" >&5
  if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3149 "configure"
  #include "confdefs.h"
  #if defined(CRAY) && ! defined(CRAY2)
  webecray
--- 3157,3168 ----
  
  
  echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
! echo "configure:3161: checking whether alloca needs Cray hooks" >&5
  if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3166 "configure"
  #include "confdefs.h"
  #if defined(CRAY) && ! defined(CRAY2)
  webecray
***************
*** 3170,3181 ****
  if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; do
    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:3174: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3179 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 3187,3198 ----
  if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; do
    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:3191: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3196 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 3198,3204 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:3202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
--- 3215,3221 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
***************
*** 3225,3231 ****
  fi
  
  echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
! echo "configure:3229: checking stack direction for C alloca" >&5
  if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 3242,3248 ----
  fi
  
  echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
! echo "configure:3246: checking stack direction for C alloca" >&5
  if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 3233,3239 ****
    ac_cv_c_stack_direction=0
  else
    cat > conftest.$ac_ext <<EOF
! #line 3237 "configure"
  #include "confdefs.h"
  find_stack_direction ()
  {
--- 3250,3256 ----
    ac_cv_c_stack_direction=0
  else
    cat > conftest.$ac_ext <<EOF
! #line 3254 "configure"
  #include "confdefs.h"
  find_stack_direction ()
  {
***************
*** 3252,3258 ****
    exit (find_stack_direction() < 0);
  }
  EOF
! if { (eval echo configure:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    ac_cv_c_stack_direction=1
  else
--- 3269,3275 ----
    exit (find_stack_direction() < 0);
  }
  EOF
! if { (eval echo configure:3273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    ac_cv_c_stack_direction=1
  else
***************
*** 3274,3285 ****
  fi
  
  echo $ac_n "checking for working const""... $ac_c" 1>&6
! echo "configure:3278: checking for working const" >&5
  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3283 "configure"
  #include "confdefs.h"
  
  int main() {
--- 3291,3302 ----
  fi
  
  echo $ac_n "checking for working const""... $ac_c" 1>&6
! echo "configure:3295: checking for working const" >&5
  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3300 "configure"
  #include "confdefs.h"
  
  int main() {
***************
*** 3328,3334 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:3332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_c_const=yes
  else
--- 3345,3351 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_c_const=yes
  else
***************
*** 3352,3358 ****
  ### See if we should define NPOS.
  
  echo $ac_n "checking whether including <string> defines NPOS""... $ac_c" 1>&6
! echo "configure:3356: checking whether including <string> defines NPOS" >&5
  if eval "test \"`echo '$''{'octave_cv_string_npos'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 3369,3375 ----
  ### See if we should define NPOS.
  
  echo $ac_n "checking whether including <string> defines NPOS""... $ac_c" 1>&6
! echo "configure:3373: checking whether including <string> defines NPOS" >&5
  if eval "test \"`echo '$''{'octave_cv_string_npos'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 3365,3378 ****
  cross_compiling=$ac_cv_prog_cxx_cross
  
  cat > conftest.$ac_ext <<EOF
! #line 3369 "configure"
  #include "confdefs.h"
  #include <string>
  int main() {
  size_t foo = NPOS
  ; return 0; }
  EOF
! if { (eval echo configure:3376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    octave_cv_string_npos=yes
  else
--- 3382,3395 ----
  cross_compiling=$ac_cv_prog_cxx_cross
  
  cat > conftest.$ac_ext <<EOF
! #line 3386 "configure"
  #include "confdefs.h"
  #include <string>
  int main() {
  size_t foo = NPOS
  ; return 0; }
  EOF
! if { (eval echo configure:3393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    octave_cv_string_npos=yes
  else
***************
*** 3403,3414 ****
  ### Checks for header files.
  
  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
! echo "configure:3407: checking for ANSI C header files" >&5
  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3412 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  #include <stdarg.h>
--- 3420,3431 ----
  ### Checks for header files.
  
  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
! echo "configure:3424: checking for ANSI C header files" >&5
  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3429 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  #include <stdarg.h>
***************
*** 3416,3422 ****
  #include <float.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:3420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
--- 3433,3439 ----
  #include <float.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:3437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
***************
*** 3433,3439 ****
  if test $ac_cv_header_stdc = yes; then
    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 3437 "configure"
  #include "confdefs.h"
  #include <string.h>
  EOF
--- 3450,3456 ----
  if test $ac_cv_header_stdc = yes; then
    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 3454 "configure"
  #include "confdefs.h"
  #include <string.h>
  EOF
***************
*** 3451,3457 ****
  if test $ac_cv_header_stdc = yes; then
    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 3455 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
--- 3468,3474 ----
  if test $ac_cv_header_stdc = yes; then
    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 3472 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
***************
*** 3472,3478 ****
    :
  else
    cat > conftest.$ac_ext <<EOF
! #line 3476 "configure"
  #include "confdefs.h"
  #include <ctype.h>
  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
--- 3489,3495 ----
    :
  else
    cat > conftest.$ac_ext <<EOF
! #line 3493 "configure"
  #include "confdefs.h"
  #include <ctype.h>
  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
***************
*** 3483,3489 ****
  exit (0); }
  
  EOF
! if { (eval echo configure:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    :
  else
--- 3500,3506 ----
  exit (0); }
  
  EOF
! if { (eval echo configure:3504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    :
  else
***************
*** 3511,3522 ****
  do
  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
! echo "configure:3515: checking for $ac_hdr that defines DIR" >&5
  if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3520 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <$ac_hdr>
--- 3528,3539 ----
  do
  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
! echo "configure:3532: checking for $ac_hdr that defines DIR" >&5
  if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3537 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <$ac_hdr>
***************
*** 3524,3530 ****
  DIR *dirp = 0;
  ; return 0; }
  EOF
! if { (eval echo configure:3528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_header_dirent_$ac_safe=yes"
  else
--- 3541,3547 ----
  DIR *dirp = 0;
  ; return 0; }
  EOF
! if { (eval echo configure:3545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_header_dirent_$ac_safe=yes"
  else
***************
*** 3549,3555 ****
  # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  if test $ac_header_dirent = dirent.h; then
  echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
! echo "configure:3553: checking for opendir in -ldir" >&5
  ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 3566,3572 ----
  # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  if test $ac_header_dirent = dirent.h; then
  echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
! echo "configure:3570: checking for opendir in -ldir" >&5
  ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 3557,3563 ****
    ac_save_LIBS="$LIBS"
  LIBS="-ldir  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3561 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
--- 3574,3580 ----
    ac_save_LIBS="$LIBS"
  LIBS="-ldir  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3578 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
***************
*** 3568,3574 ****
  opendir()
  ; return 0; }
  EOF
! if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
--- 3585,3591 ----
  opendir()
  ; return 0; }
  EOF
! if { (eval echo configure:3589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
***************
*** 3590,3596 ****
  
  else
  echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
! echo "configure:3594: checking for opendir in -lx" >&5
  ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 3607,3613 ----
  
  else
  echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
! echo "configure:3611: checking for opendir in -lx" >&5
  ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 3598,3604 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lx  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3602 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
--- 3615,3621 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lx  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3619 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
***************
*** 3609,3615 ****
  opendir()
  ; return 0; }
  EOF
! if { (eval echo configure:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
--- 3626,3632 ----
  opendir()
  ; return 0; }
  EOF
! if { (eval echo configure:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
***************
*** 3632,3643 ****
  fi
  
  echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
! echo "configure:3636: checking whether time.h and sys/time.h may both be included" >&5
  if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3641 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/time.h>
--- 3649,3660 ----
  fi
  
  echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
! echo "configure:3653: checking whether time.h and sys/time.h may both be included" >&5
  if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3658 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/time.h>
***************
*** 3646,3652 ****
  struct tm *tp;
  ; return 0; }
  EOF
! if { (eval echo configure:3650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_header_time=yes
  else
--- 3663,3669 ----
  struct tm *tp;
  ; return 0; }
  EOF
! if { (eval echo configure:3667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_header_time=yes
  else
***************
*** 3667,3678 ****
  fi
  
  echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
! echo "configure:3671: checking for sys/wait.h that is POSIX.1 compatible" >&5
  if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3676 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/wait.h>
--- 3684,3695 ----
  fi
  
  echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
! echo "configure:3688: checking for sys/wait.h that is POSIX.1 compatible" >&5
  if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3693 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/wait.h>
***************
*** 3688,3694 ****
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  ; return 0; }
  EOF
! if { (eval echo configure:3692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_header_sys_wait_h=yes
  else
--- 3705,3711 ----
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  ; return 0; }
  EOF
! if { (eval echo configure:3709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_header_sys_wait_h=yes
  else
***************
*** 3709,3733 ****
  fi
  
  
! for ac_hdr in assert.h curses.h dlfcn.h fcntl.h float.h floatingpoint.h \
!   grp.h ieeefp.h limits.h memory.h nan.h ncurses.h pwd.h sgtty.h \
!   stdlib.h string.h sys/param.h sys/resource.h sys/select.h sys/stat.h \
!   sys/time.h sys/times.h sys/types.h sys/utsname.h termcap.h termio.h \
    termios.h unistd.h varargs.h
  do
  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! echo "configure:3721: checking for $ac_hdr" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3726 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:3731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
--- 3726,3751 ----
  fi
  
  
! for ac_hdr in assert.h curses.h dlfcn.h fcntl.h float.h \
!   floatingpoint.h fnmatch.h glob.h grp.h ieeefp.h limits.h \
!   memory.h nan.h ncurses.h pwd.h sgtty.h stdlib.h string.h \
!   sys/param.h sys/resource.h sys/select.h sys/stat.h sys/time.h \
!   sys/times.h sys/types.h sys/utsname.h termcap.h termio.h \
    termios.h unistd.h varargs.h
  do
  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! echo "configure:3739: checking for $ac_hdr" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3744 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:3749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
***************
*** 3755,3767 ****
  
  
  if test "$ac_cv_header_termios_h" = yes \
!     || test "$ac_cv_header_termio_h" = yes \
!     || test "$ac_cv_header_sgtty_h" = yes; then
    true
  else
    { echo "configure: error: I couldn't find termios.h, termio.h, or sgtty.h!" 1>&2; exit 1; }
  fi
  
  ### Checks for functions and variables.
  
  for ac_func in atexit bcopy bzero dup2 endgrent endpwent execvp fcntl \
--- 3773,3904 ----
  
  
  if test "$ac_cv_header_termios_h" = yes \
!   || test "$ac_cv_header_termio_h" = yes \
!   || test "$ac_cv_header_sgtty_h" = yes; then
    true
  else
    { echo "configure: error: I couldn't find termios.h, termio.h, or sgtty.h!" 1>&2; exit 1; }
  fi
  
+ GLOB_DIR=glob
+ LIBGLOB='$(TOPDIR)/glob/libglob.$(LIBEXT)'
+ GLOB_INCFLAGS='-I$(top_srcdir)/glob -I$(TOPDIR)/glob'
+ if test "$ac_cv_header_fnmatch.h" = yes \
+   && test "$ac_cv_header_glob.h" = yes; then
+   GLOB_DIR=
+   echo $ac_n "checking for glob in -lglob""... $ac_c" 1>&6
+ echo "configure:3791: checking for glob in -lglob" >&5
+ ac_lib_var=`echo glob'_'glob | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   ac_save_LIBS="$LIBS"
+ LIBS="-lglob  $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 3799 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error.  */
+ /* We use char because int might match the return type of a gcc2
+     builtin and then its argument prototype would still apply.  */
+ char glob();
+ 
+ int main() {
+ glob()
+ ; return 0; }
+ EOF
+ if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+   rm -rf conftest*
+   eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   eval "ac_cv_lib_$ac_lib_var=no"
+ fi
+ rm -f conftest*
+ LIBS="$ac_save_LIBS"
+ 
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+     ac_tr_lib=HAVE_LIB`echo glob | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+   cat >> confdefs.h <<EOF
+ #define $ac_tr_lib 1
+ EOF
+ 
+   LIBS="-lglob $LIBS"
+ 
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+   for ac_func in fnmatch glob
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:3840: checking for $ac_func" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 3845 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+     which can conflict with char $ac_func(); below.  */
+ #include <assert.h>
+ /* Override any gcc2 internal prototype to avoid an error.  */
+ /* We use char because int might match the return type of a gcc2
+     builtin and then its argument prototype would still apply.  */
+ char $ac_func();
+ 
+ int main() {
+ 
+ /* The GNU C library defines this for functions which it implements
+     to always fail with ENOSYS.  Some functions are actually named
+     something starting with __ and the normal name is an alias.  */
+ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ choke me
+ #else
+ $ac_func();
+ #endif
+ 
+ ; return 0; }
+ EOF
+ if { (eval echo configure:3868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+   rm -rf conftest*
+   eval "ac_cv_func_$ac_func=yes"
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   eval "ac_cv_func_$ac_func=no"
+ fi
+ rm -f conftest*
+ fi
+ 
+ if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+   cat >> confdefs.h <<EOF
+ #define $ac_tr_func 1
+ EOF
+  
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ done
+ 
+   if test "$ac_cv_func_fnmatch" = yes \
+     && test "$ac_cv_func_glob" = yes; then
+     GLOB_DIR=
+     LIBGLOB=
+     GLOB_INCFLAGS=
+   fi
+ fi
+ 
+ 
+ 
+ 
  ### Checks for functions and variables.
  
  for ac_func in atexit bcopy bzero dup2 endgrent endpwent execvp fcntl \
***************
*** 3770,3784 ****
    getuid getwd lstat memmove mkdir mkfifo on_exit pipe putenv rename \
    rindex rmdir setgrent setpwent setvbuf sigaction sigpending sigprocmask \
    sigsuspend stat strcasecmp strdup strerror stricmp strncasecmp \
!   strnicmp tempnam umask unlink usleep vfork vfprintf vsprintf waitpid
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:3777: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3782 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 3907,3921 ----
    getuid getwd lstat memmove mkdir mkfifo on_exit pipe putenv rename \
    rindex rmdir setgrent setpwent setvbuf sigaction sigpending sigprocmask \
    sigsuspend stat strcasecmp strdup strerror stricmp strncasecmp \
!   strnicmp tempnam umask unlink usleep vfprintf vsprintf waitpid
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:3914: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3919 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 3801,3807 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:3805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
--- 3938,3944 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
***************
*** 3827,3833 ****
  
  
  echo $ac_n "checking whether putenv uses malloc""... $ac_c" 1>&6
! echo "configure:3831: checking whether putenv uses malloc" >&5
  if eval "test \"`echo '$''{'octave_cv_func_putenv_malloc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 3964,3970 ----
  
  
  echo $ac_n "checking whether putenv uses malloc""... $ac_c" 1>&6
! echo "configure:3968: checking whether putenv uses malloc" >&5
  if eval "test \"`echo '$''{'octave_cv_func_putenv_malloc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 3835,3841 ****
    octave_cv_func_putenv_malloc=no
  else
    cat > conftest.$ac_ext <<EOF
! #line 3839 "configure"
  #include "confdefs.h"
  
  #define VAR	"YOW_VAR"
--- 3972,3978 ----
    octave_cv_func_putenv_malloc=no
  else
    cat > conftest.$ac_ext <<EOF
! #line 3976 "configure"
  #include "confdefs.h"
  
  #define VAR	"YOW_VAR"
***************
*** 3888,3894 ****
    exit (rstr1 == rstr2 ? 0 : 1);
  }
  EOF
! if { (eval echo configure:3892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    octave_cv_func_putenv_malloc=yes
  else
--- 4025,4031 ----
    exit (rstr1 == rstr2 ? 0 : 1);
  }
  EOF
! if { (eval echo configure:4029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    octave_cv_func_putenv_malloc=yes
  else
***************
*** 3909,3927 ****
  
  fi
  echo $ac_n "checking whether program_invocation_name is predefined""... $ac_c" 1>&6
! echo "configure:3913: checking whether program_invocation_name is predefined" >&5
  if eval "test \"`echo '$''{'octave_cv_var_program_inv_name'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 3918 "configure"
  #include "confdefs.h"
  
  int main() {
  extern char *program_invocation_name; program_invocation_name = "love";
  ; return 0; }
  EOF
! if { (eval echo configure:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    octave_cv_var_program_inv_name=yes
  else
--- 4046,4064 ----
  
  fi
  echo $ac_n "checking whether program_invocation_name is predefined""... $ac_c" 1>&6
! echo "configure:4050: checking whether program_invocation_name is predefined" >&5
  if eval "test \"`echo '$''{'octave_cv_var_program_inv_name'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4055 "configure"
  #include "confdefs.h"
  
  int main() {
  extern char *program_invocation_name; program_invocation_name = "love";
  ; return 0; }
  EOF
! if { (eval echo configure:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    octave_cv_var_program_inv_name=yes
  else
***************
*** 3945,3957 ****
  if test "$WITH_DL" = yes || test "$WITH_DL" = maybe; then
    case "$canonical_host_type" in
      rs6000-ibm-aix* | powerpc-ibm-aix*)
!       LIBDLFCN="../dlfcn/libdlfcn.a -ll -lld"
        DLFCN_INCFLAGS='-I$(top_srcdir)/dlfcn -I$(TOPDIR)/dlfcn'
        WITH_DL=true
      ;;
      *)
        echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
! echo "configure:3955: checking for dlopen in -ldl" >&5
  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 4082,4094 ----
  if test "$WITH_DL" = yes || test "$WITH_DL" = maybe; then
    case "$canonical_host_type" in
      rs6000-ibm-aix* | powerpc-ibm-aix*)
!       LIBDLFCN='$(TOPDIR)/dlfcn/libdlfcn.$(LIBEXT) -ll -lld'
        DLFCN_INCFLAGS='-I$(top_srcdir)/dlfcn -I$(TOPDIR)/dlfcn'
        WITH_DL=true
      ;;
      *)
        echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
! echo "configure:4092: checking for dlopen in -ldl" >&5
  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 3959,3965 ****
    ac_save_LIBS="$LIBS"
  LIBS="-ldl  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 3963 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
--- 4096,4102 ----
    ac_save_LIBS="$LIBS"
  LIBS="-ldl  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 4100 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
***************
*** 3970,3976 ****
  dlopen()
  ; return 0; }
  EOF
! if { (eval echo configure:3974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
--- 4107,4113 ----
  dlopen()
  ; return 0; }
  EOF
! if { (eval echo configure:4111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
***************
*** 4000,4011 ****
        for ac_func in dlopen dlsym dlerror dlclose
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:4004: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4009 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 4137,4148 ----
        for ac_func in dlopen dlsym dlerror dlclose
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:4141: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4146 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 4028,4034 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:4032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
--- 4165,4171 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:4169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
***************
*** 4080,4086 ****
  
  if test "$WITH_SHL" = yes || test "$WITH_SHL" = maybe; then
    echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
! echo "configure:4084: checking for shl_load in -ldld" >&5
  ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 4217,4223 ----
  
  if test "$WITH_SHL" = yes || test "$WITH_SHL" = maybe; then
    echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
! echo "configure:4221: checking for shl_load in -ldld" >&5
  ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 4088,4094 ****
    ac_save_LIBS="$LIBS"
  LIBS="-ldld  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 4092 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
--- 4225,4231 ----
    ac_save_LIBS="$LIBS"
  LIBS="-ldld  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 4229 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
***************
*** 4099,4105 ****
  shl_load()
  ; return 0; }
  EOF
! if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
--- 4236,4242 ----
  shl_load()
  ; return 0; }
  EOF
! if { (eval echo configure:4240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
***************
*** 4129,4140 ****
    for ac_func in shl_load shl_findsym
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:4133: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4138 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 4266,4277 ----
    for ac_func in shl_load shl_findsym
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:4270: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4275 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 4157,4163 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
--- 4294,4300 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:4298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
***************
*** 4219,4230 ****
  ### which one (if any) appears in sys/time.h.
  
  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
! echo "configure:4223: checking for gettimeofday" >&5
  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4228 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char gettimeofday(); below.  */
--- 4356,4367 ----
  ### which one (if any) appears in sys/time.h.
  
  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
! echo "configure:4360: checking for gettimeofday" >&5
  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4365 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char gettimeofday(); below.  */
***************
*** 4247,4253 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_gettimeofday=yes"
  else
--- 4384,4390 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_gettimeofday=yes"
  else
***************
*** 4262,4275 ****
  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    cat > conftest.$ac_ext <<EOF
! #line 4266 "configure"
  #include "confdefs.h"
  #include <sys/time.h>
  int main() {
  gettimeofday ((struct timeval *) 0,(struct timezone *) 0);
  ; return 0; }
  EOF
! if { (eval echo configure:4273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    :
  else
    echo "configure: failed program was:" >&5
--- 4399,4412 ----
  if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    cat > conftest.$ac_ext <<EOF
! #line 4403 "configure"
  #include "confdefs.h"
  #include <sys/time.h>
  int main() {
  gettimeofday ((struct timeval *) 0,(struct timezone *) 0);
  ; return 0; }
  EOF
! if { (eval echo configure:4410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    :
  else
    echo "configure: failed program was:" >&5
***************
*** 4294,4300 ****
  ### with functions from the BSD/NET2 math library.
  
  echo $ac_n "checking for quiet_nan in -lsunmath""... $ac_c" 1>&6
! echo "configure:4298: checking for quiet_nan in -lsunmath" >&5
  ac_lib_var=`echo sunmath'_'quiet_nan | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 4431,4437 ----
  ### with functions from the BSD/NET2 math library.
  
  echo $ac_n "checking for quiet_nan in -lsunmath""... $ac_c" 1>&6
! echo "configure:4435: checking for quiet_nan in -lsunmath" >&5
  ac_lib_var=`echo sunmath'_'quiet_nan | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 4302,4308 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lsunmath -lm $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 4306 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
--- 4439,4445 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lsunmath -lm $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 4443 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
***************
*** 4313,4319 ****
  quiet_nan()
  ; return 0; }
  EOF
! if { (eval echo configure:4317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
--- 4450,4456 ----
  quiet_nan()
  ; return 0; }
  EOF
! if { (eval echo configure:4454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
***************
*** 4345,4351 ****
  case "$canonical_host_type" in
    *-*-linux*)
      echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
! echo "configure:4349: checking for sin in -lm" >&5
  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 4482,4488 ----
  case "$canonical_host_type" in
    *-*-linux*)
      echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
! echo "configure:4486: checking for sin in -lm" >&5
  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 4353,4359 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lm -lc $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 4357 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
--- 4490,4496 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lm -lc $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 4494 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
***************
*** 4364,4370 ****
  sin()
  ; return 0; }
  EOF
! if { (eval echo configure:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
--- 4501,4507 ----
  sin()
  ; return 0; }
  EOF
! if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
***************
*** 4394,4400 ****
    ;;
    *)
      echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
! echo "configure:4398: checking for sin in -lm" >&5
  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 4531,4537 ----
    ;;
    *)
      echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
! echo "configure:4535: checking for sin in -lm" >&5
  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 4402,4408 ****
    ac_save_LIBS="$LIBS"
  LIBS="-lm  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 4406 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
--- 4539,4545 ----
    ac_save_LIBS="$LIBS"
  LIBS="-lm  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 4543 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
***************
*** 4413,4419 ****
  sin()
  ; return 0; }
  EOF
! if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
--- 4550,4556 ----
  sin()
  ; return 0; }
  EOF
! if { (eval echo configure:4554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
***************
*** 4471,4482 ****
      for ac_func in finite isnan isinf infinity quiet_nan
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:4475: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4480 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 4608,4619 ----
      for ac_func in finite isnan isinf infinity quiet_nan
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:4612: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4617 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 4499,4505 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:4503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
--- 4636,4642 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
***************
*** 4531,4612 ****
  for ac_func in acosh asinh atanh erf erfc
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:4535: checking for $ac_func" >&5
! if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
!   echo $ac_n "(cached) $ac_c" 1>&6
! else
!   cat > conftest.$ac_ext <<EOF
! #line 4540 "configure"
! #include "confdefs.h"
! /* System header to define __stub macros and hopefully few prototypes,
!     which can conflict with char $ac_func(); below.  */
! #include <assert.h>
! /* Override any gcc2 internal prototype to avoid an error.  */
! /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char $ac_func();
! 
! int main() {
! 
! /* The GNU C library defines this for functions which it implements
!     to always fail with ENOSYS.  Some functions are actually named
!     something starting with __ and the normal name is an alias.  */
! #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! choke me
! #else
! $ac_func();
! #endif
! 
! ; return 0; }
! EOF
! if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
!   rm -rf conftest*
!   eval "ac_cv_func_$ac_func=yes"
! else
!   echo "configure: failed program was:" >&5
!   cat conftest.$ac_ext >&5
!   rm -rf conftest*
!   eval "ac_cv_func_$ac_func=no"
! fi
! rm -f conftest*
! fi
! 
! if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
!   echo "$ac_t""yes" 1>&6
!     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
!   cat >> confdefs.h <<EOF
! #define $ac_tr_func 1
! EOF
!  
! else
!   echo "$ac_t""no" 1>&6
! fi
! done
! 
! 
! case "$canonical_host_type" in
!   *-*-cygwin32)
!     echo "$ac_t""assuming gamma works" 1>&6
!     cat >> confdefs.h <<\EOF
! #define HAVE_GAMMA 1
! EOF
! 
!     echo "$ac_t""assuming lgamma works" 1>&6
!     cat >> confdefs.h <<\EOF
! #define HAVE_LGAMMA 1
! EOF
! 
!   ;;
!   *)
!     for ac_func in gamma lgamma
! do
! echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:4605: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4610 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 4668,4679 ----
  for ac_func in acosh asinh atanh erf erfc
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:4672: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4677 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 4629,4635 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
--- 4696,4702 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:4700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
***************
*** 4653,4670 ****
  fi
  done
  
-   ;;
- esac
  
  ### Checks for OS specific cruft.
  
  echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
! echo "configure:4663: checking for st_blksize in struct stat" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4668 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/stat.h>
--- 4720,4735 ----
  fi
  done
  
  
  ### Checks for OS specific cruft.
  
  echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
! echo "configure:4728: checking for st_blksize in struct stat" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4733 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/stat.h>
***************
*** 4672,4678 ****
  struct stat s; s.st_blksize;
  ; return 0; }
  EOF
! if { (eval echo configure:4676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_st_blksize=yes
  else
--- 4737,4743 ----
  struct stat s; s.st_blksize;
  ; return 0; }
  EOF
! if { (eval echo configure:4741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_st_blksize=yes
  else
***************
*** 4693,4704 ****
  fi
  
  echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
! echo "configure:4697: checking for st_blocks in struct stat" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4702 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/stat.h>
--- 4758,4769 ----
  fi
  
  echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
! echo "configure:4762: checking for st_blocks in struct stat" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4767 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/stat.h>
***************
*** 4706,4712 ****
  struct stat s; s.st_blocks;
  ; return 0; }
  EOF
! if { (eval echo configure:4710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_st_blocks=yes
  else
--- 4771,4777 ----
  struct stat s; s.st_blocks;
  ; return 0; }
  EOF
! if { (eval echo configure:4775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_st_blocks=yes
  else
***************
*** 4729,4740 ****
  fi
  
  echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
! echo "configure:4733: checking for st_rdev in struct stat" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4738 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/stat.h>
--- 4794,4805 ----
  fi
  
  echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
! echo "configure:4798: checking for st_rdev in struct stat" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4803 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/stat.h>
***************
*** 4742,4748 ****
  struct stat s; s.st_rdev;
  ; return 0; }
  EOF
! if { (eval echo configure:4746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_st_rdev=yes
  else
--- 4807,4813 ----
  struct stat s; s.st_rdev;
  ; return 0; }
  EOF
! if { (eval echo configure:4811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_st_rdev=yes
  else
***************
*** 4763,4774 ****
  fi
  
  echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
! echo "configure:4767: checking whether struct tm is in sys/time.h or time.h" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4772 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <time.h>
--- 4828,4839 ----
  fi
  
  echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
! echo "configure:4832: checking whether struct tm is in sys/time.h or time.h" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4837 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <time.h>
***************
*** 4776,4782 ****
  struct tm *tp; tp->tm_sec;
  ; return 0; }
  EOF
! if { (eval echo configure:4780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_tm=time.h
  else
--- 4841,4847 ----
  struct tm *tp; tp->tm_sec;
  ; return 0; }
  EOF
! if { (eval echo configure:4845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_tm=time.h
  else
***************
*** 4797,4808 ****
  fi
  
  echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
! echo "configure:4801: checking for tm_zone in struct tm" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4806 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <$ac_cv_struct_tm>
--- 4862,4873 ----
  fi
  
  echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
! echo "configure:4866: checking for tm_zone in struct tm" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4871 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <$ac_cv_struct_tm>
***************
*** 4810,4816 ****
  struct tm tm; tm.tm_zone;
  ; return 0; }
  EOF
! if { (eval echo configure:4814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_tm_zone=yes
  else
--- 4875,4881 ----
  struct tm tm; tm.tm_zone;
  ; return 0; }
  EOF
! if { (eval echo configure:4879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_tm_zone=yes
  else
***************
*** 4830,4841 ****
  
  else
    echo $ac_n "checking for tzname""... $ac_c" 1>&6
! echo "configure:4834: checking for tzname" >&5
  if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4839 "configure"
  #include "confdefs.h"
  #include <time.h>
  #ifndef tzname /* For SGI.  */
--- 4895,4906 ----
  
  else
    echo $ac_n "checking for tzname""... $ac_c" 1>&6
! echo "configure:4899: checking for tzname" >&5
  if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4904 "configure"
  #include "confdefs.h"
  #include <time.h>
  #ifndef tzname /* For SGI.  */
***************
*** 4845,4851 ****
  atoi(*tzname);
  ; return 0; }
  EOF
! if { (eval echo configure:4849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    ac_cv_var_tzname=yes
  else
--- 4910,4916 ----
  atoi(*tzname);
  ; return 0; }
  EOF
! if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    ac_cv_var_tzname=yes
  else
***************
*** 4867,4873 ****
  fi
  
  echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
! echo "configure:4871: checking whether closedir returns void" >&5
  if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 4932,4938 ----
  fi
  
  echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
! echo "configure:4936: checking whether closedir returns void" >&5
  if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 4875,4887 ****
    ac_cv_func_closedir_void=yes
  else
    cat > conftest.$ac_ext <<EOF
! #line 4879 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <$ac_header_dirent>
  int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  EOF
! if { (eval echo configure:4885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    ac_cv_func_closedir_void=no
  else
--- 4940,4952 ----
    ac_cv_func_closedir_void=yes
  else
    cat > conftest.$ac_ext <<EOF
! #line 4944 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <$ac_header_dirent>
  int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  EOF
! if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    ac_cv_func_closedir_void=no
  else
***************
*** 4905,4916 ****
  
  
  echo $ac_n "checking for gr_passwd in struct group""... $ac_c" 1>&6
! echo "configure:4909: checking for gr_passwd in struct group" >&5
  if eval "test \"`echo '$''{'octave_cv_struct_gr_passwd'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4914 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <grp.h>
--- 4970,4981 ----
  
  
  echo $ac_n "checking for gr_passwd in struct group""... $ac_c" 1>&6
! echo "configure:4974: checking for gr_passwd in struct group" >&5
  if eval "test \"`echo '$''{'octave_cv_struct_gr_passwd'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 4979 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <grp.h>
***************
*** 4918,4924 ****
  struct group s; s.gr_passwd;
  ; return 0; }
  EOF
! if { (eval echo configure:4922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    octave_cv_struct_gr_passwd=yes
  else
--- 4983,4989 ----
  struct group s; s.gr_passwd;
  ; return 0; }
  EOF
! if { (eval echo configure:4987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    octave_cv_struct_gr_passwd=yes
  else
***************
*** 4942,4948 ****
  TERMLIBS=""
  for termlib in ncurses curses termcap terminfo termlib; do
    echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6
! echo "configure:4946: checking for tputs in -l${termlib}" >&5
  ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 5007,5013 ----
  TERMLIBS=""
  for termlib in ncurses curses termcap terminfo termlib; do
    echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6
! echo "configure:5011: checking for tputs in -l${termlib}" >&5
  ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 4950,4956 ****
    ac_save_LIBS="$LIBS"
  LIBS="-l${termlib}  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 4954 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
--- 5015,5021 ----
    ac_save_LIBS="$LIBS"
  LIBS="-l${termlib}  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 5019 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
***************
*** 4961,4967 ****
  tputs()
  ; return 0; }
  EOF
! if { (eval echo configure:4965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
--- 5026,5032 ----
  tputs()
  ; return 0; }
  EOF
! if { (eval echo configure:5030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
***************
*** 4991,5000 ****
  
  
  if test "$ac_cv_lib_termcap_tputs" = yes \
!     || test "$ac_cv_lib_terminfo_tputs" = yes \
!     || test "$ac_cv_lib_ncurses_tputs" = yes \
!     || test "$ac_cv_lib_curses_tputs" = yes \
!     || test "$ac_cv_lib_termlib_tputs" = yes; then
    true
  else
    warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, or -ltermlib!"
--- 5056,5065 ----
  
  
  if test "$ac_cv_lib_termcap_tputs" = yes \
!   || test "$ac_cv_lib_terminfo_tputs" = yes \
!   || test "$ac_cv_lib_ncurses_tputs" = yes \
!   || test "$ac_cv_lib_curses_tputs" = yes \
!   || test "$ac_cv_lib_termlib_tputs" = yes; then
    true
  else
    warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, or -ltermlib!"
***************
*** 5002,5017 ****
  fi
  
  echo $ac_n "checking for struct exception in math.h""... $ac_c" 1>&6
! echo "configure:5006: checking for struct exception in math.h" >&5
  cat > conftest.$ac_ext <<EOF
! #line 5008 "configure"
  #include "confdefs.h"
  #include <math.h>
  int main() {
  struct exception *x; x->type; x->name;
  ; return 0; }
  EOF
! if { (eval echo configure:5015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
--- 5067,5082 ----
  fi
  
  echo $ac_n "checking for struct exception in math.h""... $ac_c" 1>&6
! echo "configure:5071: checking for struct exception in math.h" >&5
  cat > conftest.$ac_ext <<EOF
! #line 5073 "configure"
  #include "confdefs.h"
  #include <math.h>
  int main() {
  struct exception *x; x->type; x->name;
  ; return 0; }
  EOF
! if { (eval echo configure:5080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
***************
*** 5029,5040 ****
  ### Signal stuff.
  
  echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
! echo "configure:5033: checking return type of signal handlers" >&5
  if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5038 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <signal.h>
--- 5094,5105 ----
  ### Signal stuff.
  
  echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
! echo "configure:5098: checking return type of signal handlers" >&5
  if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5103 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <signal.h>
***************
*** 5051,5057 ****
  int i;
  ; return 0; }
  EOF
! if { (eval echo configure:5055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_type_signal=void
  else
--- 5116,5122 ----
  int i;
  ; return 0; }
  EOF
! if { (eval echo configure:5120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_type_signal=void
  else
***************
*** 5070,5081 ****
  
  
  echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
! echo "configure:5074: checking for sys_siglist declaration in signal.h or unistd.h" >&5
  if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5079 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <signal.h>
--- 5135,5146 ----
  
  
  echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
! echo "configure:5139: checking for sys_siglist declaration in signal.h or unistd.h" >&5
  if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5144 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <signal.h>
***************
*** 5087,5093 ****
  char *msg = *(sys_siglist + 1);
  ; return 0; }
  EOF
! if { (eval echo configure:5091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_decl_sys_siglist=yes
  else
--- 5152,5158 ----
  char *msg = *(sys_siglist + 1);
  ; return 0; }
  EOF
! if { (eval echo configure:5156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_decl_sys_siglist=yes
  else
***************
*** 5108,5123 ****
  fi
  
  echo $ac_n "checking for sys_siglist variable""... $ac_c" 1>&6
! echo "configure:5112: checking for sys_siglist variable" >&5
  cat > conftest.$ac_ext <<EOF
! #line 5114 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  int main() {
  extern char *sys_siglist[]; printf ("%s\n", sys_siglist[1]);
  ; return 0; }
  EOF
! if { (eval echo configure:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
--- 5173,5188 ----
  fi
  
  echo $ac_n "checking for sys_siglist variable""... $ac_c" 1>&6
! echo "configure:5177: checking for sys_siglist variable" >&5
  cat > conftest.$ac_ext <<EOF
! #line 5179 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  int main() {
  extern char *sys_siglist[]; printf ("%s\n", sys_siglist[1]);
  ; return 0; }
  EOF
! if { (eval echo configure:5186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
***************
*** 5133,5145 ****
  rm -f conftest*
  
  echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
! echo "configure:5137: checking for type of signal functions" >&5
  if eval "test \"`echo '$''{'octave_cv_signal_vintage'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    
    cat > conftest.$ac_ext <<EOF
! #line 5143 "configure"
  #include "confdefs.h"
  #include <signal.h>
  int main() {
--- 5198,5210 ----
  rm -f conftest*
  
  echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
! echo "configure:5202: checking for type of signal functions" >&5
  if eval "test \"`echo '$''{'octave_cv_signal_vintage'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    
    cat > conftest.$ac_ext <<EOF
! #line 5208 "configure"
  #include "confdefs.h"
  #include <signal.h>
  int main() {
***************
*** 5152,5158 ****
    
  ; return 0; }
  EOF
! if { (eval echo configure:5156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    octave_cv_signal_vintage=posix
  else
--- 5217,5223 ----
    
  ; return 0; }
  EOF
! if { (eval echo configure:5221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    octave_cv_signal_vintage=posix
  else
***************
*** 5161,5167 ****
    rm -rf conftest*
    
      cat > conftest.$ac_ext <<EOF
! #line 5165 "configure"
  #include "confdefs.h"
  #include <signal.h>
  int main() {
--- 5226,5232 ----
    rm -rf conftest*
    
      cat > conftest.$ac_ext <<EOF
! #line 5230 "configure"
  #include "confdefs.h"
  #include <signal.h>
  int main() {
***************
*** 5171,5177 ****
      
  ; return 0; }
  EOF
! if { (eval echo configure:5175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    octave_cv_signal_vintage=4.2bsd
  else
--- 5236,5242 ----
      
  ; return 0; }
  EOF
! if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    octave_cv_signal_vintage=4.2bsd
  else
***************
*** 5180,5186 ****
    rm -rf conftest*
    
        cat > conftest.$ac_ext <<EOF
! #line 5184 "configure"
  #include "confdefs.h"
  
  	#include <signal.h>
--- 5245,5251 ----
    rm -rf conftest*
    
        cat > conftest.$ac_ext <<EOF
! #line 5249 "configure"
  #include "confdefs.h"
  
  	#include <signal.h>
***************
*** 5193,5199 ****
          
  ; return 0; }
  EOF
! if { (eval echo configure:5197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    octave_cv_signal_vintage=svr3
  else
--- 5258,5264 ----
          
  ; return 0; }
  EOF
! if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    octave_cv_signal_vintage=svr3
  else
***************
*** 5234,5240 ****
  
  
  echo $ac_n "checking if signal handlers must be reinstalled when invoked""... $ac_c" 1>&6
! echo "configure:5238: checking if signal handlers must be reinstalled when invoked" >&5
  if eval "test \"`echo '$''{'octave_cv_must_reinstall_sighandlers'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 5299,5305 ----
  
  
  echo $ac_n "checking if signal handlers must be reinstalled when invoked""... $ac_c" 1>&6
! echo "configure:5303: checking if signal handlers must be reinstalled when invoked" >&5
  if eval "test \"`echo '$''{'octave_cv_must_reinstall_sighandlers'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 5246,5252 ****
  fi
  else
    cat > conftest.$ac_ext <<EOF
! #line 5250 "configure"
  #include "confdefs.h"
  
  #include <signal.h>
--- 5311,5317 ----
  fi
  else
    cat > conftest.$ac_ext <<EOF
! #line 5315 "configure"
  #include "confdefs.h"
  
  #include <signal.h>
***************
*** 5288,5294 ****
  }
  
  EOF
! if { (eval echo configure:5292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    octave_cv_must_reinstall_sighandlers=no
  else
--- 5353,5359 ----
  }
  
  EOF
! if { (eval echo configure:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    octave_cv_must_reinstall_sighandlers=no
  else
***************
*** 5318,5329 ****
  ### Type stuff.
  
  echo $ac_n "checking for mode_t""... $ac_c" 1>&6
! echo "configure:5322: checking for mode_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5327 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
--- 5383,5394 ----
  ### Type stuff.
  
  echo $ac_n "checking for mode_t""... $ac_c" 1>&6
! echo "configure:5387: checking for mode_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5392 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
***************
*** 5351,5362 ****
  fi
  
  echo $ac_n "checking for off_t""... $ac_c" 1>&6
! echo "configure:5355: checking for off_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5360 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
--- 5416,5427 ----
  fi
  
  echo $ac_n "checking for off_t""... $ac_c" 1>&6
! echo "configure:5420: checking for off_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5425 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
***************
*** 5384,5395 ****
  fi
  
  echo $ac_n "checking for pid_t""... $ac_c" 1>&6
! echo "configure:5388: checking for pid_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5393 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
--- 5449,5460 ----
  fi
  
  echo $ac_n "checking for pid_t""... $ac_c" 1>&6
! echo "configure:5453: checking for pid_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5458 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
***************
*** 5417,5428 ****
  fi
  
  echo $ac_n "checking for size_t""... $ac_c" 1>&6
! echo "configure:5421: checking for size_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5426 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
--- 5482,5493 ----
  fi
  
  echo $ac_n "checking for size_t""... $ac_c" 1>&6
! echo "configure:5486: checking for size_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5491 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
***************
*** 5450,5461 ****
  fi
  
  echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
! echo "configure:5454: checking for uid_t in sys/types.h" >&5
  if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5459 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  EOF
--- 5515,5526 ----
  fi
  
  echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
! echo "configure:5519: checking for uid_t in sys/types.h" >&5
  if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5524 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  EOF
***************
*** 5484,5495 ****
  fi
  
  echo $ac_n "checking for dev_t""... $ac_c" 1>&6
! echo "configure:5488: checking for dev_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5493 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
--- 5549,5560 ----
  fi
  
  echo $ac_n "checking for dev_t""... $ac_c" 1>&6
! echo "configure:5553: checking for dev_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5558 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
***************
*** 5517,5528 ****
  fi
  
  echo $ac_n "checking for ino_t""... $ac_c" 1>&6
! echo "configure:5521: checking for ino_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5526 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
--- 5582,5593 ----
  fi
  
  echo $ac_n "checking for ino_t""... $ac_c" 1>&6
! echo "configure:5586: checking for ino_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5591 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
***************
*** 5550,5561 ****
  fi
  
  echo $ac_n "checking for nlink_t""... $ac_c" 1>&6
! echo "configure:5554: checking for nlink_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_nlink_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5559 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
--- 5615,5626 ----
  fi
  
  echo $ac_n "checking for nlink_t""... $ac_c" 1>&6
! echo "configure:5619: checking for nlink_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_nlink_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5624 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
***************
*** 5583,5594 ****
  fi
  
  echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
! echo "configure:5587: checking for sigset_t" >&5
  if eval "test \"`echo '$''{'octave_cv_type_sigset_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5592 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
--- 5648,5659 ----
  fi
  
  echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
! echo "configure:5652: checking for sigset_t" >&5
  if eval "test \"`echo '$''{'octave_cv_type_sigset_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5657 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
***************
*** 5636,5647 ****
  for ac_func in getrusage times
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:5640: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5645 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 5701,5712 ----
  for ac_func in getrusage times
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:5705: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5710 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 5664,5670 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:5668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
--- 5729,5735 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:5733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
***************
*** 5735,5741 ****
  # Extract the first word of "flex", so it can be a program name with args.
  set dummy flex; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:5739: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 5800,5806 ----
  # Extract the first word of "flex", so it can be a program name with args.
  set dummy flex; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:5804: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 5768,5774 ****
    *) ac_lib=l ;;
    esac
    echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
! echo "configure:5772: checking for yywrap in -l$ac_lib" >&5
  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 5833,5839 ----
    *) ac_lib=l ;;
    esac
    echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
! echo "configure:5837: checking for yywrap in -l$ac_lib" >&5
  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 5776,5782 ****
    ac_save_LIBS="$LIBS"
  LIBS="-l$ac_lib  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 5780 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
--- 5841,5847 ----
    ac_save_LIBS="$LIBS"
  LIBS="-l$ac_lib  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 5845 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
***************
*** 5787,5793 ****
  yywrap()
  ; return 0; }
  EOF
! if { (eval echo configure:5791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
--- 5852,5858 ----
  yywrap()
  ; return 0; }
  EOF
! if { (eval echo configure:5856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
***************
*** 5829,5835 ****
  # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:5833: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 5894,5900 ----
  # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:5898: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 5868,5874 ****
  esac
  
  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
! echo "configure:5872: checking whether ln -s works" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 5933,5939 ----
  esac
  
  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
! echo "configure:5937: checking whether ln -s works" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 5897,5903 ****
    # Extract the first word of "runtest", so it can be a program name with args.
  set dummy runtest; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:5901: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 5962,5968 ----
    # Extract the first word of "runtest", so it can be a program name with args.
  set dummy runtest; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:5966: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 5941,5947 ****
  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  # ./install, which can be erroneously created by make from ./install.sh.
  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
! echo "configure:5945: checking for a BSD compatible install" >&5
  if test -z "$INSTALL"; then
  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 6006,6012 ----
  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  # ./install, which can be erroneously created by make from ./install.sh.
  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
! echo "configure:6010: checking for a BSD compatible install" >&5
  if test -z "$INSTALL"; then
  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 6011,6017 ****
    # Extract the first word of "gnuplot", so it can be a program name with args.
  set dummy gnuplot; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:6015: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_GNUPLOT_BINARY'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 6076,6082 ----
    # Extract the first word of "gnuplot", so it can be a program name with args.
  set dummy gnuplot; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:6080: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_GNUPLOT_BINARY'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 6038,6044 ****
  
    if test -n "$GNUPLOT_BINARY"; then
      echo $ac_n "checking to see if your gnuplot supports multiplot""... $ac_c" 1>&6
! echo "configure:6042: checking to see if your gnuplot supports multiplot" >&5
      if test -z "`echo 'set term unknown; set multiplot' | \
        $GNUPLOT_BINARY 2>&1`"; then
        echo "$ac_t""yes" 1>&6
--- 6103,6109 ----
  
    if test -n "$GNUPLOT_BINARY"; then
      echo $ac_n "checking to see if your gnuplot supports multiplot""... $ac_c" 1>&6
! echo "configure:6107: checking to see if your gnuplot supports multiplot" >&5
      if test -z "`echo 'set term unknown; set multiplot' | \
        $GNUPLOT_BINARY 2>&1`"; then
        echo "$ac_t""yes" 1>&6
***************
*** 6050,6056 ****
        echo "$ac_t""no" 1>&6
      fi
      echo $ac_n "checking to see if your gnuplot supports multiple plot windows""... $ac_c" 1>&6
! echo "configure:6054: checking to see if your gnuplot supports multiple plot windows" >&5
      if test -z "`echo 'set term x11 2' | $GNUPLOT_BINARY 2>&1`"; then
        echo "$ac_t""yes" 1>&6
        cat >> confdefs.h <<\EOF
--- 6115,6121 ----
        echo "$ac_t""no" 1>&6
      fi
      echo $ac_n "checking to see if your gnuplot supports multiple plot windows""... $ac_c" 1>&6
! echo "configure:6119: checking to see if your gnuplot supports multiple plot windows" >&5
      if test -z "`echo 'set term x11 2' | $GNUPLOT_BINARY 2>&1`"; then
        echo "$ac_t""yes" 1>&6
        cat >> confdefs.h <<\EOF
***************
*** 6096,6102 ****
  # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:6100: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_PAGER'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 6161,6167 ----
  # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! echo "configure:6165: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_PAGER'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 6167,6173 ****
    
    ac_safe=`echo "-Wall" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CC-cc} accepts -Wall""... $ac_c" 1>&6
! echo "configure:6171: checking whether ${CC-cc} accepts -Wall" >&5
    if eval "test \"`echo '$''{'octave_cv_cc_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 6232,6238 ----
    
    ac_safe=`echo "-Wall" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CC-cc} accepts -Wall""... $ac_c" 1>&6
! echo "configure:6236: checking whether ${CC-cc} accepts -Wall" >&5
    if eval "test \"`echo '$''{'octave_cv_cc_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 6183,6196 ****
      XCFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wall"
      cat > conftest.$ac_ext <<EOF
! #line 6187 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cc_flag_$ac_safe=yes"
  else
--- 6248,6261 ----
      XCFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Wall"
      cat > conftest.$ac_ext <<EOF
! #line 6252 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cc_flag_$ac_safe=yes"
  else
***************
*** 6221,6227 ****
    
    ac_safe=`echo "-Wall" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CXX-c++} accepts -Wall""... $ac_c" 1>&6
! echo "configure:6225: checking whether ${CXX-c++} accepts -Wall" >&5
    if eval "test \"`echo '$''{'octave_cv_cxx_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 6286,6292 ----
    
    ac_safe=`echo "-Wall" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CXX-c++} accepts -Wall""... $ac_c" 1>&6
! echo "configure:6290: checking whether ${CXX-c++} accepts -Wall" >&5
    if eval "test \"`echo '$''{'octave_cv_cxx_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 6237,6250 ****
      XCXXFLAGS="$CXXFLAGS"
      CXXFLAGS="$CXXFLAGS -Wall"
      cat > conftest.$ac_ext <<EOF
! #line 6241 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:6248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cxx_flag_$ac_safe=yes"
  else
--- 6302,6315 ----
      XCXXFLAGS="$CXXFLAGS"
      CXXFLAGS="$CXXFLAGS -Wall"
      cat > conftest.$ac_ext <<EOF
! #line 6306 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:6313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cxx_flag_$ac_safe=yes"
  else
***************
*** 6296,6302 ****
  	 
    ac_safe=`echo "$flag" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CC-cc} accepts $flag""... $ac_c" 1>&6
! echo "configure:6300: checking whether ${CC-cc} accepts $flag" >&5
    if eval "test \"`echo '$''{'octave_cv_cc_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 6361,6367 ----
  	 
    ac_safe=`echo "$flag" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CC-cc} accepts $flag""... $ac_c" 1>&6
! echo "configure:6365: checking whether ${CC-cc} accepts $flag" >&5
    if eval "test \"`echo '$''{'octave_cv_cc_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 6312,6325 ****
      XCFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS $flag"
      cat > conftest.$ac_ext <<EOF
! #line 6316 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:6323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cc_flag_$ac_safe=yes"
  else
--- 6377,6390 ----
      XCFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS $flag"
      cat > conftest.$ac_ext <<EOF
! #line 6381 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:6388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cc_flag_$ac_safe=yes"
  else
***************
*** 6351,6357 ****
  	 
    ac_safe=`echo "$flag" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CXX-c++} accepts $flag""... $ac_c" 1>&6
! echo "configure:6355: checking whether ${CXX-c++} accepts $flag" >&5
    if eval "test \"`echo '$''{'octave_cv_cxx_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 6416,6422 ----
  	 
    ac_safe=`echo "$flag" | sed 'y%./+-%__p_%'`
    echo $ac_n "checking whether ${CXX-c++} accepts $flag""... $ac_c" 1>&6
! echo "configure:6420: checking whether ${CXX-c++} accepts $flag" >&5
    if eval "test \"`echo '$''{'octave_cv_cxx_flag_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 6367,6380 ****
      XCXXFLAGS="$CXXFLAGS"
      CXXFLAGS="$CXXFLAGS $flag"
      cat > conftest.$ac_ext <<EOF
! #line 6371 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:6378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cxx_flag_$ac_safe=yes"
  else
--- 6432,6445 ----
      XCXXFLAGS="$CXXFLAGS"
      CXXFLAGS="$CXXFLAGS $flag"
      cat > conftest.$ac_ext <<EOF
! #line 6436 "configure"
  #include "confdefs.h"
  
  int main() {
  
  ; return 0; }
  EOF
! if { (eval echo configure:6443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "octave_cv_cxx_flag_$ac_safe=yes"
  else
***************
*** 6417,6423 ****
  export CXX
  export F77
  
! subdirs="glob kpathsea scripts $INFO_DIR $PLPLOT_DIR $READLINE_DIR"
  
  
  ### Do the substitutions in all the Makefiles.
--- 6482,6489 ----
  export CXX
  export F77
  
! subdirs="$GLOB_DIR kpathsea scripts $INFO_DIR \
!   $PLPLOT_DIR $READLINE_DIR"
  
  
  ### Do the substitutions in all the Makefiles.
***************
*** 6593,6598 ****
--- 6659,6665 ----
  s%@PLPLOT_DIR@%$PLPLOT_DIR%g
  s%@LIBREADLINE@%$LIBREADLINE%g
  s%@READLINE_DIR@%$READLINE_DIR%g
+ s%@LIBKPATHSEA@%$LIBKPATHSEA%g
  s%@CXX@%$CXX%g
  s%@CXXCPP@%$CXXCPP%g
  s%@CXX_VERSION@%$CXX_VERSION%g
***************
*** 6615,6620 ****
--- 6682,6690 ----
  /@f77_rules_frag@/r $f77_rules_frag
  s%@f77_rules_frag@%%g
  s%@SHARED_LIBS@%$SHARED_LIBS%g
+ s%@LIBOCTINTERP@%$LIBOCTINTERP%g
+ s%@LIBOCTAVE@%$LIBOCTAVE%g
+ s%@LIBCRUFT@%$LIBCRUFT%g
  s%@FPICFLAG@%$FPICFLAG%g
  s%@CPICFLAG@%$CPICFLAG%g
  s%@CXXPICFLAG@%$CXXPICFLAG%g
***************
*** 6626,6631 ****
--- 6696,6704 ----
  s%@OCTAVE_LITE@%$OCTAVE_LITE%g
  s%@SPECIAL_MATH_LIB@%$SPECIAL_MATH_LIB%g
  s%@ALLOCA@%$ALLOCA%g
+ s%@GLOB_DIR@%$GLOB_DIR%g
+ s%@LIBGLOB@%$LIBGLOB%g
+ s%@GLOB_INCFLAGS@%$GLOB_INCFLAGS%g
  s%@WITH_DL@%$WITH_DL%g
  s%@LIBDLFCN@%$LIBDLFCN%g
  s%@DLFCN_INCFLAGS@%$DLFCN_INCFLAGS%g
***************
*** 6906,6912 ****
      esac
    done
  
!   for ac_config_dir in glob kpathsea scripts $INFO_DIR $PLPLOT_DIR $READLINE_DIR; do
  
      # Do not complain, so a configure script can configure whichever
      # parts of a large source tree are present.
--- 6979,6986 ----
      esac
    done
  
!   for ac_config_dir in $GLOB_DIR kpathsea scripts $INFO_DIR \
!   $PLPLOT_DIR $READLINE_DIR; do
  
      # Do not complain, so a configure script can configure whichever
      # parts of a large source tree are present.
diff -cNr octave-2.0.10/configure.in octave-2.0.11/configure.in
*** octave-2.0.10/configure.in	Fri Feb  6 13:42:50 1998
--- octave-2.0.11/configure.in	Mon Feb 23 13:09:27 1998
***************
*** 133,139 ****
  dnl 
  dnl # USE_PLPLOT=true
  dnl # PLPLOT_DIR=plplot
! dnl # LIBPLPLOT=../plplot/libplplot.a
  USE_PLPLOT=false
  PLPLOT_DIR=""
  LIBPLPLOT=""
--- 133,139 ----
  dnl 
  dnl # USE_PLPLOT=true
  dnl # PLPLOT_DIR=plplot
! dnl # LIBPLPLOT='$(TOPDIR)/plplot/libplplot.$(LIBEXT)'
  USE_PLPLOT=false
  PLPLOT_DIR=""
  LIBPLPLOT=""
***************
*** 155,161 ****
  
  READLINE_DIR=readline
  USE_READLINE=true
! LIBREADLINE='../readline/libreadline.$(LIBEXT)'
  dnl AC_ARG_ENABLE(readline,
  dnl  [  --enable-readline       use readline library (default is yes)],
  dnl  [if test "$enableval" = no; then
--- 155,161 ----
  
  READLINE_DIR=readline
  USE_READLINE=true
! LIBREADLINE='$(TOPDIR)/readline/libreadline.$(LIBEXT)'
  dnl AC_ARG_ENABLE(readline,
  dnl  [  --enable-readline       use readline library (default is yes)],
  dnl  [if test "$enableval" = no; then
***************
*** 169,174 ****
--- 169,177 ----
  AC_SUBST(LIBREADLINE)
  AC_SUBST(READLINE_DIR)
  
+ LIBKPATHSEA='$(TOPDIR)/kpathsea/libkpathsea.$(LIBEXT)'
+ AC_SUBST(LIBKPATHSEA)
+ 
  ### Make it possible to have Octave's array and matrix classes do bounds
  ### checking on element references.  This slows some operations down a
  ### bit, so it is turned off by default.
***************
*** 260,271 ****
        XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-fp"])
    ;;
    alpha*-*-*)
!     OCTAVE_CC_FLAG(-mieee, [
!       ieee_fp_flag=-mieee
!       XTRA_CFLAGS="$XTRA_CFLAGS -mieee"])
!     OCTAVE_CXX_FLAG(-mieee, [
!       ieee_fp_flag=-mieee
!       XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee"])
    ;;
  esac
  
--- 263,274 ----
        XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-fp"])
    ;;
    alpha*-*-*)
!     OCTAVE_CC_FLAG(-mieee-with-inexact, [
!       ieee_fp_flag=-mieee-with-inexact
!       XTRA_CFLAGS="$XTRA_CFLAGS -mieee-with-inexact"])
!     OCTAVE_CXX_FLAG(-mieee-with-inexact, [
!       ieee_fp_flag=-mieee-with-inexact
!       XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-with-inexact"])
    ;;
  esac
  
***************
*** 369,375 ****
        fi
        case "$canonical_host_type" in
          alpha*-dec-osf*)
!           if test "$f77_is_g77" = yes || test -z "$ieee_fp_flag"; then
              true
  	  else
  	    FFLAGS="-fpe1 $FFLAGS"
--- 372,379 ----
        fi
        case "$canonical_host_type" in
          alpha*-dec-osf*)
!           if test "$octave_cv_f77_is_g77" = yes \
! 	      || test -z "$ieee_fp_flag"; then
              true
  	  else
  	    FFLAGS="-fpe1 $FFLAGS"
***************
*** 501,506 ****
--- 505,523 ----
    SHARED_LIBS=false)
  AC_SUBST(SHARED_LIBS)
  
+ if $SHARED_LIBS; then
+   LIBOCTINTERP=-loctinterp
+   LIBOCTAVE=-loctave
+   LIBCRUFT=-lcruft
+ else
+   LIBOCTINTERP='$(TOPDIR)/src/liboctinterp.$(LIBEXT)'
+   LIBOCTAVE='$(TOPDIR)/liboctave/liboctave.$(LIBEXT)'
+   LIBCRUFT='$(TOPDIR)/libcruft/libcruft.$(LIBEXT)'
+ fi
+ AC_SUBST(LIBOCTINTERP)
+ AC_SUBST(LIBOCTAVE)
+ AC_SUBST(LIBCRUFT)
+ 
  use_rpath=true
  AC_ARG_ENABLE(rpath,
    [  --enable-rpath          add -rpath to link command for shared libraries],
***************
*** 538,544 ****
      DLFCN_DIR=dlfcn
    ;;
    hppa*-hp-hpux*)
!     if test "$f77_is_g77" = yes; then
        FPICFLAG=-fPIC
      else
        FPICFLAG=+Z
--- 555,561 ----
      DLFCN_DIR=dlfcn
    ;;
    hppa*-hp-hpux*)
!     if test "$octave_cv_f77_is_g77" = yes; then
        FPICFLAG=-fPIC
      else
        FPICFLAG=+Z
***************
*** 554,560 ****
      RLD_FLAG='-L$(octlibdir)'
    ;;
    sparc-sun-sunos4*)
!     if test "$f77_is_g77" = yes; then
        FPICFLAG=-fPIC
      else
        FPICFLAG=-PIC
--- 571,577 ----
      RLD_FLAG='-L$(octlibdir)'
    ;;
    sparc-sun-sunos4*)
!     if test "$octave_cv_f77_is_g77" = yes; then
        FPICFLAG=-fPIC
      else
        FPICFLAG=-PIC
***************
*** 564,570 ****
      RLD_FLAG='-L$(octlibdir)'
    ;;
    sparc-sun-solaris2*)
!     if test "$f77_is_g77" = yes; then
        FPICFLAG=-fPIC
      else
        FPICFLAG=-PIC
--- 581,587 ----
      RLD_FLAG='-L$(octlibdir)'
    ;;
    sparc-sun-solaris2*)
!     if test "$octave_cv_f77_is_g77" = yes; then
        FPICFLAG=-fPIC
      else
        FPICFLAG=-PIC
***************
*** 650,669 ****
  AC_HEADER_TIME
  AC_HEADER_SYS_WAIT
  
! AC_CHECK_HEADERS(assert.h curses.h dlfcn.h fcntl.h float.h floatingpoint.h \
!   grp.h ieeefp.h limits.h memory.h nan.h ncurses.h pwd.h sgtty.h \
!   stdlib.h string.h sys/param.h sys/resource.h sys/select.h sys/stat.h \
!   sys/time.h sys/times.h sys/types.h sys/utsname.h termcap.h termio.h \
    termios.h unistd.h varargs.h)
  
  if test "$ac_cv_header_termios_h" = yes \
!     || test "$ac_cv_header_termio_h" = yes \
!     || test "$ac_cv_header_sgtty_h" = yes; then
    true
  else
    AC_MSG_ERROR([I couldn't find termios.h, termio.h, or sgtty.h!])
  fi
  
  ### Checks for functions and variables.
  
  AC_CHECK_FUNCS(atexit bcopy bzero dup2 endgrent endpwent execvp fcntl \
--- 667,706 ----
  AC_HEADER_TIME
  AC_HEADER_SYS_WAIT
  
! AC_CHECK_HEADERS(assert.h curses.h dlfcn.h fcntl.h float.h \
!   floatingpoint.h fnmatch.h glob.h grp.h ieeefp.h limits.h \
!   memory.h nan.h ncurses.h pwd.h sgtty.h stdlib.h string.h \
!   sys/param.h sys/resource.h sys/select.h sys/stat.h sys/time.h \
!   sys/times.h sys/types.h sys/utsname.h termcap.h termio.h \
    termios.h unistd.h varargs.h)
  
  if test "$ac_cv_header_termios_h" = yes \
!   || test "$ac_cv_header_termio_h" = yes \
!   || test "$ac_cv_header_sgtty_h" = yes; then
    true
  else
    AC_MSG_ERROR([I couldn't find termios.h, termio.h, or sgtty.h!])
  fi
  
+ GLOB_DIR=glob
+ LIBGLOB='$(TOPDIR)/glob/libglob.$(LIBEXT)'
+ GLOB_INCFLAGS='-I$(top_srcdir)/glob -I$(TOPDIR)/glob'
+ if test "$ac_cv_header_fnmatch.h" = yes \
+   && test "$ac_cv_header_glob.h" = yes; then
+   GLOB_DIR=
+   AC_CHECK_LIB(glob, glob)
+   AC_CHECK_FUNCS(fnmatch glob)
+   if test "$ac_cv_func_fnmatch" = yes \
+     && test "$ac_cv_func_glob" = yes; then
+     GLOB_DIR=
+     LIBGLOB=
+     GLOB_INCFLAGS=
+   fi
+ fi
+ AC_SUBST(GLOB_DIR)
+ AC_SUBST(LIBGLOB)
+ AC_SUBST(GLOB_INCFLAGS)
+ 
  ### Checks for functions and variables.
  
  AC_CHECK_FUNCS(atexit bcopy bzero dup2 endgrent endpwent execvp fcntl \
***************
*** 672,678 ****
    getuid getwd lstat memmove mkdir mkfifo on_exit pipe putenv rename \
    rindex rmdir setgrent setpwent setvbuf sigaction sigpending sigprocmask \
    sigsuspend stat strcasecmp strdup strerror stricmp strncasecmp \
!   strnicmp tempnam umask unlink usleep vfork vfprintf vsprintf waitpid)
  
  OCTAVE_SMART_PUTENV
  OCTAVE_PROGRAM_INVOCATION_NAME
--- 709,715 ----
    getuid getwd lstat memmove mkdir mkfifo on_exit pipe putenv rename \
    rindex rmdir setgrent setpwent setvbuf sigaction sigpending sigprocmask \
    sigsuspend stat strcasecmp strdup strerror stricmp strncasecmp \
!   strnicmp tempnam umask unlink usleep vfprintf vsprintf waitpid)
  
  OCTAVE_SMART_PUTENV
  OCTAVE_PROGRAM_INVOCATION_NAME
***************
*** 682,688 ****
  if test "$WITH_DL" = yes || test "$WITH_DL" = maybe; then
    case "$canonical_host_type" in
      rs6000-ibm-aix* | powerpc-ibm-aix*)
!       LIBDLFCN="../dlfcn/libdlfcn.a -ll -lld"
        DLFCN_INCFLAGS='-I$(top_srcdir)/dlfcn -I$(TOPDIR)/dlfcn'
        WITH_DL=true
      ;;
--- 719,725 ----
  if test "$WITH_DL" = yes || test "$WITH_DL" = maybe; then
    case "$canonical_host_type" in
      rs6000-ibm-aix* | powerpc-ibm-aix*)
!       LIBDLFCN='$(TOPDIR)/dlfcn/libdlfcn.$(LIBEXT) -ll -lld'
        DLFCN_INCFLAGS='-I$(top_srcdir)/dlfcn -I$(TOPDIR)/dlfcn'
        WITH_DL=true
      ;;
***************
*** 805,822 ****
  
  AC_CHECK_FUNCS(acosh asinh atanh erf erfc)
  
- case "$canonical_host_type" in
-   *-*-cygwin32)
-     AC_MSG_RESULT(assuming gamma works)
-     AC_DEFINE(HAVE_GAMMA, 1)
-     AC_MSG_RESULT(assuming lgamma works)
-     AC_DEFINE(HAVE_LGAMMA, 1)
-   ;;
-   *)
-     AC_CHECK_FUNCS(gamma lgamma)
-   ;;
- esac
- 
  ### Checks for OS specific cruft.
  
  AC_STRUCT_ST_BLKSIZE
--- 842,847 ----
***************
*** 841,850 ****
  AC_SUBST(TERMLIBS)
  
  if test "$ac_cv_lib_termcap_tputs" = yes \
!     || test "$ac_cv_lib_terminfo_tputs" = yes \
!     || test "$ac_cv_lib_ncurses_tputs" = yes \
!     || test "$ac_cv_lib_curses_tputs" = yes \
!     || test "$ac_cv_lib_termlib_tputs" = yes; then
    true
  else
    warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, or -ltermlib!"
--- 866,875 ----
  AC_SUBST(TERMLIBS)
  
  if test "$ac_cv_lib_termcap_tputs" = yes \
!   || test "$ac_cv_lib_terminfo_tputs" = yes \
!   || test "$ac_cv_lib_ncurses_tputs" = yes \
!   || test "$ac_cv_lib_curses_tputs" = yes \
!   || test "$ac_cv_lib_termlib_tputs" = yes; then
    true
  else
    warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, or -ltermlib!"
***************
*** 1035,1041 ****
  export CXX
  export F77
  
! AC_CONFIG_SUBDIRS(glob kpathsea scripts $INFO_DIR $PLPLOT_DIR $READLINE_DIR)
  
  ### Do the substitutions in all the Makefiles.
  
--- 1060,1067 ----
  export CXX
  export F77
  
! AC_CONFIG_SUBDIRS($GLOB_DIR kpathsea scripts $INFO_DIR \
!   $PLPLOT_DIR $READLINE_DIR)
  
  ### Do the substitutions in all the Makefiles.
  
diff -cNr octave-2.0.10/doc/ChangeLog octave-2.0.11/doc/ChangeLog
*** octave-2.0.10/doc/ChangeLog	Wed Jul  9 19:45:06 1997
--- octave-2.0.11/doc/ChangeLog	Tue Feb 24 16:30:28 1998
***************
*** 1,3 ****
--- 1,11 ----
+ Tue Feb 24 16:30:16 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* Version 2.0.11 released.
+ 
+ Fri Feb  6 16:59:13 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* Version 2.0.10 released.
+ 
  Wed Jul  9 19:44:54 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
  
  	* Version 2.0.9 released.
diff -cNr octave-2.0.10/doc/conf.texi octave-2.0.11/doc/conf.texi
*** octave-2.0.10/doc/conf.texi	Wed Jan 28 22:47:34 1998
--- octave-2.0.11/doc/conf.texi	Tue Feb 24 16:31:58 1998
***************
*** 2,7 ****
  @c This is part of the Octave manual.
  @c For copying conditions, see the file gpl.texi.
  
! @set VERSION 2.0.10
  @set OCTAVEHOME /usr/local
  @set TARGETHOSTTYPE i586-pc-linux-gnu
--- 2,7 ----
  @c This is part of the Octave manual.
  @c For copying conditions, see the file gpl.texi.
  
! @set VERSION 2.0.11
  @set OCTAVEHOME /usr/local
  @set TARGETHOSTTYPE i586-pc-linux-gnu
diff -cNr octave-2.0.10/doc/faq/Octave-FAQ.texi octave-2.0.11/doc/faq/Octave-FAQ.texi
*** octave-2.0.10/doc/faq/Octave-FAQ.texi	Tue May 20 15:03:58 1997
--- octave-2.0.11/doc/faq/Octave-FAQ.texi	Sat Feb 14 01:54:44 1998
***************
*** 8,14 ****
  @titlepage
  @title Octave FAQ
  @subtitle Frequently asked questions about Octave
! @subtitle December 14, 1996
  @sp 1
  @author John W. Eaton
  @page
--- 8,14 ----
  @titlepage
  @title Octave FAQ
  @subtitle Frequently asked questions about Octave
! @subtitle February 14, 1998
  @sp 1
  @author John W. Eaton
  @page
***************
*** 90,104 ****
  @node Version 2.0, Octave Features, What is Octave?, Top
  @chapter What's new in version 2.0 of Octave
  
! The long-awaited version 2.0 of Octave has now been released.  Many
! bugs have been fixed and lots of new features added.  Octave is now much
! more compatible with @sc{Matlab}.
! 
! Version 2.0 fixes many bugs, but as with any ``x.y.0'' release there
! will be a few glitches.  There will probably be a 2.0.1 release to fix
! most of these problems.  You can help contribute to the quality of
! Octave by using it and submitting bug reports for the problems you
! encounter.
  
  A list of user-visible changes in recent versions of Octave may be found
  in the file NEWS, distributed in both source and binary releases of
--- 90,99 ----
  @node Version 2.0, Octave Features, What is Octave?, Top
  @chapter What's new in version 2.0 of Octave
  
! Version 2.0.10 of Octave was released February 6, 1998.  Most bugs
! reported since version 2.0 was release have been fixed, and a number of
! new features have been added.  Octave is now much more compatible with
! @sc{Matlab}.
  
  A list of user-visible changes in recent versions of Octave may be found
  in the file NEWS, distributed in both source and binary releases of
***************
*** 458,466 ****
  command to start the GNU info browser directly from the Octave prompt.
  
  It is also possible to use your favorite WWW browser to read the Octave
! manual (or any other Info file) by using Roar Smith's info2www program
! to convert GNU Info files to HTML.  The source for info2www is available
! from @url{ftp://ftp.che.wisc.edu/pub/www}.
  
  @node Getting Octave, Installation, Documentation, Top
  @chapter Obtaining Source Code
--- 453,460 ----
  command to start the GNU info browser directly from the Octave prompt.
  
  It is also possible to use your favorite WWW browser to read the Octave
! manual by converting the Texinfo source to HTML using the
! @code{texi2html} program.
  
  @node Getting Octave, Installation, Documentation, Top
  @chapter Obtaining Source Code
***************
*** 484,509 ****
  
  Octave was not developed by the FSF, but the FSF does distribute Octave,
  and the developers of Octave support the efforts of the FSF by
! encouraging users of Octave to order Octave on tape or CD directly from
  the FSF.
  
  The FSF is a nonprofit organization that distributes software and
! manuals to raise funds for more GNU development.  Buying a tape or CD
! from the FSF contributes directly to paying staff to develop GNU
! software.  CD-ROMs cost $400 if an organization is buying, or $100 if an
! individual is buying.  Tapes cost around $200 depending on media type.
! 
! The FSF only makes new CD releases a few times a year, so if you are
! interested specifically in Octave, I recommend asking for the latest
! release on tape.
  
  @cindex FSF [Free Software Foundation]
  @cindex GNU [GNU's not unix]
  
  For more information about ordering from the FSF, contact
! gnu@@prep.ai.mit.edu, phone (617) 542-5942 or anonymous ftp file
! @file{/pub/gnu/GNUinfo/ORDERS} from prep.ai.mit.edu or one of the sites
! listed below.
  
  @cindex FSF, contact <gnu@@prep.ai.mit.edu>
  @cindex GNUware, anonymous FTP sites
--- 478,498 ----
  
  Octave was not developed by the FSF, but the FSF does distribute Octave,
  and the developers of Octave support the efforts of the FSF by
! encouraging users of Octave to order Octave on CD-ROM directly from
  the FSF.
  
  The FSF is a nonprofit organization that distributes software and
! manuals to raise funds for more GNU development.  Buying a CD-ROM from
! the FSF contributes directly to paying staff to develop GNU software.
! CD-ROMs cost $240 if an organization is buying, or $60 if an individual
! is buying.
  
  @cindex FSF [Free Software Foundation]
  @cindex GNU [GNU's not unix]
  
  For more information about ordering from the FSF, contact
! gnu@@gnu.org, phone (617) 542-5942 or anonymous ftp the file
! @file{/pub/gnu/GNUinfo/ORDERS} from ftp.gnu.org.
  
  @cindex FSF, contact <gnu@@prep.ai.mit.edu>
  @cindex GNUware, anonymous FTP sites
***************
*** 532,566 ****
  @cindex VMS support
  @cindex VAX
  @cindex MS-DOS support
  @cindex DJGPP
  @cindex EMX
  @cindex OS/2 support
  
! Octave currently runs on Unix-like systems only.  It should be possible
! to make Octave work on other systems.  If you are interested in porting
! Octave to other systems, please contact bug-octave@@bevo.che.wisc.edu.
  
  @node latest versions,  , Octave for other platforms, Getting Octave
  @section What is the latest version of Octave
  
  @cindex Octave, version date
  
! The latest version of Octave is 2.0, released December 1996.
  
  @node Installation, Common problems, Getting Octave, Top
  @chapter Installation Issues and Problems
  
  @cindex Octave, building 
  
! Octave requires approximately 50MB of disk storage to unpack and
! install (significantly less if you don't compile with debugging
! symbols).
! 
! Octave has been compiled and tested with g++ and libg++ on a
! SPARCstation 2 running SunOS 4.1.2, an IBM RS/6000 running AIX 3.2.5,
! DEC Alpha systems running OSF/1 1.3 and 3.0, a DECstation 5000/240
! running Ultrix 4.2a, and i486 systems running Linux.  It should work on
! most other Unix systems that have a working port of g++ and libg++.
  
  @menu
  * What else do I need?::        
--- 521,555 ----
  @cindex VMS support
  @cindex VAX
  @cindex MS-DOS support
+ @cindex Windows support
  @cindex DJGPP
  @cindex EMX
  @cindex OS/2 support
  
! Octave currently runs on Unix-like systems, OS/2, and Windows NT/95
! (using the gnu-win32 tools from Cygnus Support).  It should be possible
! to make Octave work on other systems as well.  If you are interested in
! porting Octave to other systems, please contact
! bug-octave@@bevo.che.wisc.edu.
  
  @node latest versions,  , Octave for other platforms, Getting Octave
  @section What is the latest version of Octave
  
  @cindex Octave, version date
  
! The latest version of Octave is 2.0.10, released February 6, 1998.
  
  @node Installation, Common problems, Getting Octave, Top
  @chapter Installation Issues and Problems
  
  @cindex Octave, building 
  
! Octave requires approximately 125MB of disk storage to unpack and
! compile from source (significantly less if you don't compile with
! debugging symbols or create shared libraries).  Once installed, Octave
! requires approximately 65MB of disk space (again, considerably less if
! you don't build shared libraries or the binaries and libraries do not
! include debugging symbols).
  
  @menu
  * What else do I need?::        
***************
*** 577,587 ****
  @cindex Flex
  @cindex GNU Bison
  
!   In order to build Octave, you will need a current version
! of g++, libg++, and GNU make.  If you don't have these tools, you can
! get them from many anonymous ftp archives, including ftp.che.wisc.edu,
! ftp.uu.net, prep.ai.mit.edu, and wuarchive.wustl.edu, or by writing to
! the FSF at 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  
  @node Other C++ compilers?,  , What else do I need?, Installation
  @section Can I compile Octave with another C++ compiler?
--- 566,585 ----
  @cindex Flex
  @cindex GNU Bison
  
! To compile Octave, you will need a recent version of GNU Make.  You
! will also need g++ 2.7.2 or later.  Version 2.8.0 or egcs 1.0.x should
! work.  Later versions may work, but C++ is still evolving, so don't be
! too surprised if you run into some trouble.
! 
! It is no longer necessary to have libg++, but you do need to have the
! GNU implementation of libstdc++.  If you are using g++ 2.7.2,
! libstdc++ is distributed along with libg++, but for later versions,
! libstdc++ is distributed separately.  For egcs, libstdc++ is included
! with the compiler distribution.
! 
! <em>You must have gnu make to compile octave</em>.  Octave's Makefiles
! use features of GNU Make that are not present in other versions of make.
! GNU Make is very portable and easy to install.
  
  @node Other C++ compilers?,  , What else do I need?, Installation
  @section Can I compile Octave with another C++ compiler?
***************
*** 718,739 ****
  
  @example
  @group
!   PS1 = ">> ";
!   PS2 = "";
!   beep_on_error = 1;
!   default_save_format = "mat-binary";
!   define_all_return_values = 1;
!   do_fortran_indexing = 1;
!   empty_list_elements_ok = 1;
!   implicit_str_to_num_ok = 1;
!   ok_to_lose_imaginary_part = 1;
!   page_screen_output = 0;
!   prefer_column_vectors = 0;
!   prefer_zero_one_indexing = 1;
!   print_empty_dimensions = 0;
!   treat_neg_dim_as_zero = 1;
!   warn_function_name_clash = 0;
!   whitespace_in_literal_matrix = "traditional";
  @end group
  @end example
  
--- 716,740 ----
  
  @example
  @group
!   PS1 = ">> "
!   PS2 = ""
!   beep_on_error = 1.0
!   default_eval_print_flag = 0.0
!   default_save_format = "mat-binary"
!   define_all_return_values = 1.0
!   do_fortran_indexing = 1.0
!   empty_list_elements_ok = 1.0
!   fixed_point_format = 1.0
!   implicit_num_to_str_ok = 1.0
!   implicit_str_to_num_ok = 1.0
!   ok_to_lose_imaginary_part = 1.0
!   page_screen_output = 0.0
!   prefer_column_vectors = 0.0
!   prefer_zero_one_indexing = 1.0
!   print_empty_dimensions = 0.0
!   treat_neg_dim_as_zero = 1.0
!   warn_function_name_clash = 0.0
!   whitespace_in_literal_matrix = "traditional"
  @end group
  @end example
  
diff -cNr octave-2.0.10/doc/interpreter/arith.texi octave-2.0.11/doc/interpreter/arith.texi
*** octave-2.0.10/doc/interpreter/arith.texi	Wed Jan 28 21:10:27 1998
--- octave-2.0.11/doc/interpreter/arith.texi	Thu Feb 19 01:50:53 1998
***************
*** 774,779 ****
--- 774,783 ----
  0/0, or @samp{Inf - Inf},
  @end ifinfo
  or any operation with a NaN.
+ 
+ Note that NaN always compares not equal to NaN.  This behavior is
+ specified by the IEEE standard for floating point arithmetic.  To
+ find NaN values, you must use the @code{isnan} function.
  @end defvr
  
  @defvr {Built-in Variable} pi
diff -cNr octave-2.0.10/doc/interpreter/basics.texi octave-2.0.11/doc/interpreter/basics.texi
*** octave-2.0.10/doc/interpreter/basics.texi	Wed Jan 28 20:46:57 1998
--- octave-2.0.11/doc/interpreter/basics.texi	Tue Feb 17 12:31:46 1998
***************
*** 636,642 ****
  
  @item C-s
  Search forward starting at the current line and moving `down' through
! the the history as necessary.
  @end table
  
  On most terminals, you can also use the arrow keys in place of @kbd{C-p}
--- 636,642 ----
  
  @item C-s
  Search forward starting at the current line and moving `down' through
! the history as necessary.
  @end table
  
  On most terminals, you can also use the arrow keys in place of @kbd{C-p}
diff -cNr octave-2.0.10/doc/interpreter/bugs.texi octave-2.0.11/doc/interpreter/bugs.texi
*** octave-2.0.10/doc/interpreter/bugs.texi	Wed Sep 10 16:01:56 1997
--- octave-2.0.11/doc/interpreter/bugs.texi	Tue Feb 17 12:31:42 1998
***************
*** 466,472 ****
  like to join the discussion, please send a short note to
  @email{help-octave@strong{-request}@@bevo.che.wisc.edu}.
  
! @strong{Please do not} send requests to be added or removed from the the
  mailing list, or other administrative trivia to the list itself.
  
  If you think you have found a bug in the installation procedure,
--- 466,472 ----
  like to join the discussion, please send a short note to
  @email{help-octave@strong{-request}@@bevo.che.wisc.edu}.
  
! @strong{Please do not} send requests to be added or removed from the
  mailing list, or other administrative trivia to the list itself.
  
  If you think you have found a bug in the installation procedure,
diff -cNr octave-2.0.10/doc/interpreter/emacs.texi octave-2.0.11/doc/interpreter/emacs.texi
*** octave-2.0.10/doc/interpreter/emacs.texi	Wed Sep 10 16:01:56 1997
--- octave-2.0.11/doc/interpreter/emacs.texi	Thu Feb 12 02:14:23 1998
***************
*** 69,75 ****
  @lisp
  (autoload 'octave-mode "octave-mod" nil t)
  (setq auto-mode-alist
!       (cons '(\"\\\\.m$\" . octave-mode) auto-mode-alist))
  @end lisp
  
  @item
--- 69,75 ----
  @lisp
  (autoload 'octave-mode "octave-mod" nil t)
  (setq auto-mode-alist
!       (cons '("\\.m$" . octave-mode) auto-mode-alist))
  @end lisp
  
  @item
diff -cNr octave-2.0.10/doc/interpreter/errors.texi octave-2.0.11/doc/interpreter/errors.texi
*** octave-2.0.10/doc/interpreter/errors.texi	Wed Sep 10 16:01:56 1997
--- octave-2.0.11/doc/interpreter/errors.texi	Tue Feb 17 12:31:35 1998
***************
*** 65,71 ****
  @end deftypefn
  
  @defvr {Built-in Variable} error_text
! This variable contains the the text of error messages that would have
  been printed in the body of the most recent @code{unwind_protect} or
  @code{try} statement or the @var{try} part of the most recent call to
  the @code{eval} function.  Outside of the @code{unwind_protect} and
--- 65,71 ----
  @end deftypefn
  
  @defvr {Built-in Variable} error_text
! This variable contains the text of error messages that would have
  been printed in the body of the most recent @code{unwind_protect} or
  @code{try} statement or the @var{try} part of the most recent call to
  the @code{eval} function.  Outside of the @code{unwind_protect} and
diff -cNr octave-2.0.10/doc/interpreter/expr.texi octave-2.0.11/doc/interpreter/expr.texi
*** octave-2.0.10/doc/interpreter/expr.texi	Wed Jan 28 22:16:41 1998
--- octave-2.0.11/doc/interpreter/expr.texi	Tue Feb 17 12:31:33 1998
***************
*** 139,145 ****
  @end defvr
  
  Finally, indexing a scalar with a vector of ones can be used to create a
! vector the same size as the the index vector, with each element equal to
  the value of the original scalar.  For example, the following statements
  
  @example
--- 139,145 ----
  @end defvr
  
  Finally, indexing a scalar with a vector of ones can be used to create a
! vector the same size as the index vector, with each element equal to
  the value of the original scalar.  For example, the following statements
  
  @example
diff -cNr octave-2.0.10/doc/interpreter/matrix.texi octave-2.0.11/doc/interpreter/matrix.texi
*** octave-2.0.10/doc/interpreter/matrix.texi	Tue Feb  3 01:58:02 1998
--- octave-2.0.11/doc/interpreter/matrix.texi	Tue Feb 17 12:31:28 1998
***************
*** 177,183 ****
  @end example
  
  If three outputs are requested, @code{find} also returns a vector
! containing the the nonzero values.  For example,
  
  @example
  @group
--- 177,183 ----
  @end example
  
  If three outputs are requested, @code{find} also returns a vector
! containing the nonzero values.  For example,
  
  @example
  @group
diff -cNr octave-2.0.10/doc/interpreter/strings.texi octave-2.0.11/doc/interpreter/strings.texi
*** octave-2.0.10/doc/interpreter/strings.texi	Wed Jan 28 22:39:00 1998
--- octave-2.0.11/doc/interpreter/strings.texi	Tue Feb 17 12:31:23 1998
***************
*** 286,292 ****
  @section String Conversions
  
  @deftypefn {Function File} {} bin2dec (@var{s})
! Return a decimal number corresponding to the the binary number
  represented as a string of zeros and ones.  For example,
  
  @example
--- 286,292 ----
  @section String Conversions
  
  @deftypefn {Function File} {} bin2dec (@var{s})
! Return a decimal number corresponding to the binary number
  represented as a string of zeros and ones.  For example,
  
  @example
***************
*** 296,302 ****
  @end deftypefn
  
  @deftypefn {Function File} {} dec2bin (@var{n})
! Return a binary number corresponding the the nonnegative decimal number
  @var{n}, as a string of ones and zeros.  For example,
  
  @example
--- 296,302 ----
  @end deftypefn
  
  @deftypefn {Function File} {} dec2bin (@var{n})
! Return a binary number corresponding the nonnegative decimal number
  @var{n}, as a string of ones and zeros.  For example,
  
  @example
diff -cNr octave-2.0.10/doc/interpreter/system.texi octave-2.0.11/doc/interpreter/system.texi
*** octave-2.0.10/doc/interpreter/system.texi	Wed Sep 10 16:01:56 1997
--- octave-2.0.11/doc/interpreter/system.texi	Tue Feb 17 12:31:26 1998
***************
*** 783,789 ****
  The variable @code{EXEC_PATH} is a colon separated list of directories
  to search when executing subprograms.  Its initial value is taken from
  the environment variable @code{OCTAVE_EXEC_PATH} (if it exists) or
! @code{PATH}, but that value can be overridden by the the command line
  argument @code{--exec-path PATH}, or by setting the value of
  @code{EXEC_PATH} in a startup script.  If the value of @code{EXEC_PATH}
  begins (ends) with a colon, the directories
--- 783,789 ----
  The variable @code{EXEC_PATH} is a colon separated list of directories
  to search when executing subprograms.  Its initial value is taken from
  the environment variable @code{OCTAVE_EXEC_PATH} (if it exists) or
! @code{PATH}, but that value can be overridden by the command line
  argument @code{--exec-path PATH}, or by setting the value of
  @code{EXEC_PATH} in a startup script.  If the value of @code{EXEC_PATH}
  begins (ends) with a colon, the directories
diff -cNr octave-2.0.10/doc/interpreter/var.texi octave-2.0.11/doc/interpreter/var.texi
*** octave-2.0.10/doc/interpreter/var.texi	Wed Jan 28 22:41:30 1998
--- octave-2.0.11/doc/interpreter/var.texi	Tue Feb 24 01:15:24 1998
***************
*** 154,159 ****
--- 154,185 ----
  The default value of @code{warn_comma_in_global_decl} is nonzero.
  @end defvr
  
+ @defvr initialize_global_variables
+ if the value of @code{initialize_global_variables} is nonzero, global
+ variables are initialized to the value of the built-in variable
+ @code{default_global_variable_value}.
+ 
+ the default value of @code{initialize_global_variables} is zero.
+ @end defvr
+ 
+ @defvr default_global_variable_value
+ if @code{initialize_global_variables} is nonzero, the value of
+ @code{default_glbaol_variable_value} is used as the initial value of
+ global variables that are not explicitly initialized.  for example,
+ 
+ @example
+ @group
+ initialize_global_variables = 1;
+ default_global_variable_value = 13;
+ global foo;
+ foo
+      @result{} 13
+ @end group
+ @end example
+ 
+ the variable @code{default_global_variable_value} is initially undefined.
+ @end defvr
+ 
  @deftypefn {Built-in Function} {} is_global (@var{name})
  Return 1 if @var{name} is globally visible.  Otherwise, return 0.  For
  example,
diff -cNr octave-2.0.10/info/ChangeLog octave-2.0.11/info/ChangeLog
*** octave-2.0.10/info/ChangeLog	Tue Jan 27 18:51:37 1998
--- octave-2.0.11/info/ChangeLog	Fri Feb 20 00:37:30 1998
***************
*** 1,3 ****
--- 1,7 ----
+ Fri Feb 20 00:37:20 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* configure.in: Define SCO for SCO systems.
+ 
  Tue Jan 27 18:51:18 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
  
  	* session.c (info_gather_typeahead): Don't compile O_NDELAY code
diff -cNr octave-2.0.10/info/configure octave-2.0.11/info/configure
*** octave-2.0.10/info/configure	Fri Feb  6 15:20:53 1998
--- octave-2.0.11/info/configure	Tue Feb 24 16:31:09 1998
***************
*** 1076,1085 ****
  fi
  
  
  TERMLIBS=
  for termlib in ncurses curses termcap terminfo termlib ; do
     echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6
! echo "configure:1083: checking for tputs in -l${termlib}" >&5
  ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
--- 1076,1097 ----
  fi
  
  
+ ### I am also told that this is needed on SCO systems.
+ 
+ case "$canonical_host_type" in
+   *-*-sco*)
+     echo "$ac_t""defining SCO to be 1" 1>&6
+     cat >> confdefs.h <<\EOF
+ #define SCO 1
+ EOF
+ 
+   ;;
+ esac
+ 
  TERMLIBS=
  for termlib in ncurses curses termcap terminfo termlib ; do
     echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6
! echo "configure:1095: checking for tputs in -l${termlib}" >&5
  ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
***************
*** 1087,1093 ****
    ac_save_LIBS="$LIBS"
  LIBS="-l${termlib}  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 1091 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
--- 1099,1105 ----
    ac_save_LIBS="$LIBS"
  LIBS="-l${termlib}  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 1103 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
***************
*** 1098,1104 ****
  tputs()
  ; return 0; }
  EOF
! if { (eval echo configure:1102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
--- 1110,1116 ----
  tputs()
  ; return 0; }
  EOF
! if { (eval echo configure:1114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_lib_$ac_lib_var=yes"
  else
***************
*** 1122,1133 ****
  
  
  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
! echo "configure:1126: checking for ANSI C header files" >&5
  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1131 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  #include <stdarg.h>
--- 1134,1145 ----
  
  
  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
! echo "configure:1138: checking for ANSI C header files" >&5
  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1143 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  #include <stdarg.h>
***************
*** 1135,1141 ****
  #include <float.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
--- 1147,1153 ----
  #include <float.h>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
***************
*** 1152,1158 ****
  if test $ac_cv_header_stdc = yes; then
    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1156 "configure"
  #include "confdefs.h"
  #include <string.h>
  EOF
--- 1164,1170 ----
  if test $ac_cv_header_stdc = yes; then
    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1168 "configure"
  #include "confdefs.h"
  #include <string.h>
  EOF
***************
*** 1170,1176 ****
  if test $ac_cv_header_stdc = yes; then
    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1174 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
--- 1182,1188 ----
  if test $ac_cv_header_stdc = yes; then
    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1186 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
***************
*** 1191,1197 ****
    :
  else
    cat > conftest.$ac_ext <<EOF
! #line 1195 "configure"
  #include "confdefs.h"
  #include <ctype.h>
  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
--- 1203,1209 ----
    :
  else
    cat > conftest.$ac_ext <<EOF
! #line 1207 "configure"
  #include "confdefs.h"
  #include <ctype.h>
  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
***************
*** 1202,1208 ****
  exit (0); }
  
  EOF
! if { (eval echo configure:1206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    :
  else
--- 1214,1220 ----
  exit (0); }
  
  EOF
! if { (eval echo configure:1218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    :
  else
***************
*** 1230,1246 ****
  do
  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! echo "configure:1234: checking for $ac_hdr" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1239 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
--- 1242,1258 ----
  do
  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! echo "configure:1246: checking for $ac_hdr" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1251 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
***************
*** 1268,1279 ****
  
  
  echo $ac_n "checking for off_t""... $ac_c" 1>&6
! echo "configure:1272: checking for off_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1277 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
--- 1280,1291 ----
  
  
  echo $ac_n "checking for off_t""... $ac_c" 1>&6
! echo "configure:1284: checking for off_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1289 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
***************
*** 1301,1312 ****
  fi
  
  echo $ac_n "checking for working const""... $ac_c" 1>&6
! echo "configure:1305: checking for working const" >&5
  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1310 "configure"
  #include "confdefs.h"
  
  int main() {
--- 1313,1324 ----
  fi
  
  echo $ac_n "checking for working const""... $ac_c" 1>&6
! echo "configure:1317: checking for working const" >&5
  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1322 "configure"
  #include "confdefs.h"
  
  int main() {
***************
*** 1355,1361 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:1359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_c_const=yes
  else
--- 1367,1373 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:1371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_c_const=yes
  else
***************
*** 1376,1387 ****
  fi
  
  echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
! echo "configure:1380: checking whether struct tm is in sys/time.h or time.h" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1385 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <time.h>
--- 1388,1399 ----
  fi
  
  echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
! echo "configure:1392: checking whether struct tm is in sys/time.h or time.h" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1397 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <time.h>
***************
*** 1389,1395 ****
  struct tm *tp; tp->tm_sec;
  ; return 0; }
  EOF
! if { (eval echo configure:1393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_tm=time.h
  else
--- 1401,1407 ----
  struct tm *tp; tp->tm_sec;
  ; return 0; }
  EOF
! if { (eval echo configure:1405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_tm=time.h
  else
***************
*** 1413,1431 ****
  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  # for constant arguments.  Useless!
  echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
! echo "configure:1417: checking for working alloca.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1422 "configure"
  #include "confdefs.h"
  #include <alloca.h>
  int main() {
  char *p = alloca(2 * sizeof(int));
  ; return 0; }
  EOF
! if { (eval echo configure:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    ac_cv_header_alloca_h=yes
  else
--- 1425,1443 ----
  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  # for constant arguments.  Useless!
  echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
! echo "configure:1429: checking for working alloca.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1434 "configure"
  #include "confdefs.h"
  #include <alloca.h>
  int main() {
  char *p = alloca(2 * sizeof(int));
  ; return 0; }
  EOF
! if { (eval echo configure:1441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    ac_cv_header_alloca_h=yes
  else
***************
*** 1446,1457 ****
  fi
  
  echo $ac_n "checking for alloca""... $ac_c" 1>&6
! echo "configure:1450: checking for alloca" >&5
  if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1455 "configure"
  #include "confdefs.h"
  
  #ifdef __GNUC__
--- 1458,1469 ----
  fi
  
  echo $ac_n "checking for alloca""... $ac_c" 1>&6
! echo "configure:1462: checking for alloca" >&5
  if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1467 "configure"
  #include "confdefs.h"
  
  #ifdef __GNUC__
***************
*** 1474,1480 ****
  char *p = (char *) alloca(1);
  ; return 0; }
  EOF
! if { (eval echo configure:1478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    ac_cv_func_alloca_works=yes
  else
--- 1486,1492 ----
  char *p = (char *) alloca(1);
  ; return 0; }
  EOF
! if { (eval echo configure:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    ac_cv_func_alloca_works=yes
  else
***************
*** 1506,1517 ****
  
  
  echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
! echo "configure:1510: checking whether alloca needs Cray hooks" >&5
  if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1515 "configure"
  #include "confdefs.h"
  #if defined(CRAY) && ! defined(CRAY2)
  webecray
--- 1518,1529 ----
  
  
  echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
! echo "configure:1522: checking whether alloca needs Cray hooks" >&5
  if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1527 "configure"
  #include "confdefs.h"
  #if defined(CRAY) && ! defined(CRAY2)
  webecray
***************
*** 1536,1547 ****
  if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; do
    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:1540: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1545 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 1548,1559 ----
  if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; do
    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:1552: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1557 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 1564,1570 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:1568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
--- 1576,1582 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
***************
*** 1591,1597 ****
  fi
  
  echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
! echo "configure:1595: checking stack direction for C alloca" >&5
  if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1603,1609 ----
  fi
  
  echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
! echo "configure:1607: checking stack direction for C alloca" >&5
  if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 1599,1605 ****
    ac_cv_c_stack_direction=0
  else
    cat > conftest.$ac_ext <<EOF
! #line 1603 "configure"
  #include "confdefs.h"
  find_stack_direction ()
  {
--- 1611,1617 ----
    ac_cv_c_stack_direction=0
  else
    cat > conftest.$ac_ext <<EOF
! #line 1615 "configure"
  #include "confdefs.h"
  find_stack_direction ()
  {
***************
*** 1618,1624 ****
    exit (find_stack_direction() < 0);
  }
  EOF
! if { (eval echo configure:1622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    ac_cv_c_stack_direction=1
  else
--- 1630,1636 ----
    exit (find_stack_direction() < 0);
  }
  EOF
! if { (eval echo configure:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    ac_cv_c_stack_direction=1
  else
***************
*** 1643,1649 ****
    echo "configure: warning: assuming setvbuf args are not reversed" 1>&2
  else
    echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
! echo "configure:1647: checking whether setvbuf arguments are reversed" >&5
  if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1655,1661 ----
    echo "configure: warning: assuming setvbuf args are not reversed" 1>&2
  else
    echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
! echo "configure:1659: checking whether setvbuf arguments are reversed" >&5
  if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 1651,1657 ****
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 1655 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  /* If setvbuf has the reversed format, exit 0. */
--- 1663,1669 ----
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 1667 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  /* If setvbuf has the reversed format, exit 0. */
***************
*** 1665,1671 ****
    exit(0);			/* Non-reversed systems segv here.  */
  }
  EOF
! if { (eval echo configure:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    ac_cv_func_setvbuf_reversed=yes
  else
--- 1677,1683 ----
    exit(0);			/* Non-reversed systems segv here.  */
  }
  EOF
! if { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  then
    ac_cv_func_setvbuf_reversed=yes
  else
***************
*** 1693,1704 ****
    vfprintf vsprintf strerror sigprocmask sigsetmask
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:1697: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1702 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 1705,1716 ----
    vfprintf vsprintf strerror sigprocmask sigsetmask
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:1709: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1714 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 1721,1727 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
--- 1733,1739 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
***************
*** 1748,1759 ****
  for ac_func in memcpy memmove strdup
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:1752: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1757 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
--- 1760,1771 ----
  for ac_func in memcpy memmove strdup
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! echo "configure:1764: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1769 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
***************
*** 1776,1782 ****
  
  ; return 0; }
  EOF
! if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
--- 1788,1794 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
diff -cNr octave-2.0.10/info/configure.in octave-2.0.11/info/configure.in
*** octave-2.0.10/info/configure.in	Thu Jan 22 01:27:28 1998
--- octave-2.0.11/info/configure.in	Fri Feb 20 00:36:17 1998
***************
*** 18,23 ****
--- 18,32 ----
  ### functions like gethostname and gettimeofday is in libsocket.
  AC_CHECK_LIB(socket, gethostname)
  
+ ### I am also told that this is needed on SCO systems.
+ 
+ case "$canonical_host_type" in
+   *-*-sco*)
+     AC_MSG_RESULT([defining SCO to be 1])
+     AC_DEFINE(SCO, 1)
+   ;;
+ esac
+ 
  TERMLIBS=
  for termlib in ncurses curses termcap terminfo termlib ; do
     AC_CHECK_LIB(${termlib}, tputs,
diff -cNr octave-2.0.10/libcruft/ChangeLog octave-2.0.11/libcruft/ChangeLog
*** octave-2.0.10/libcruft/ChangeLog	Mon Feb  2 23:36:27 1998
--- octave-2.0.11/libcruft/ChangeLog	Tue Feb 24 16:30:49 1998
***************
*** 1,3 ****
--- 1,16 ----
+ Tue Feb 24 16:30:16 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* Version 2.0.11 released.
+ 
+ Thu Feb 19 21:00:00 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* specfun/ribesl.f, specfun/rjbesl.f: Compute NSIG correctly.
+ 	Add missing comma in declaration statement.
+ 
+ Fri Feb  6 16:59:13 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* Version 2.0.10 released.
+ 
  Mon Feb  2 22:37:30 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
  
  	* Makefile.in (install, uninstall): Use $(octlibdir), not $(libdir).
diff -cNr octave-2.0.10/libcruft/specfun/ribesl.f octave-2.0.11/libcruft/specfun/ribesl.f
*** octave-2.0.10/libcruft/specfun/ribesl.f	Sun Nov 30 03:37:59 1997
--- octave-2.0.11/libcruft/specfun/ribesl.f	Thu Feb 19 20:25:31 1998
***************
*** 169,175 ****
  C-------------------------------------------------------------------
        LOGICAL FIRST
        INTEGER IZE,K,L,MAGX,N,NB,NBMX,NCALC,NEND,NSIG,NSTART
!       DOUBLE PRECISION DGAMMA, D1MACH
       1 ALPHA,B,CONST,CONV,EM,EMPAL,EMP2AL,EN,ENMTEN,ENSIG,
       2 ENTEN,EXPARG,FUNC,HALF,HALFX,ONE,P,PLAST,POLD,PSAVE,PSAVEL,
       3 RTNSIG,SUM,TEMPA,TEMPB,TEMPC,TEST,TOVER,TWO,X,XLARGE,ZERO
--- 169,175 ----
  C-------------------------------------------------------------------
        LOGICAL FIRST
        INTEGER IZE,K,L,MAGX,N,NB,NBMX,NCALC,NEND,NSIG,NSTART
!       DOUBLE PRECISION DGAMMA, D1MACH,
       1 ALPHA,B,CONST,CONV,EM,EMPAL,EMP2AL,EN,ENMTEN,ENSIG,
       2 ENTEN,EXPARG,FUNC,HALF,HALFX,ONE,P,PLAST,POLD,PSAVE,PSAVEL,
       3 RTNSIG,SUM,TEMPA,TEMPB,TEMPC,TEST,TOVER,TWO,X,XLARGE,ZERO
***************
*** 192,198 ****
  C  Machine-dependent parameters
  C-------------------------------------------------------------------
        IF (FIRST) THEN
!         NSIG = NINT (-LOG (D1MACH (1)))
          ENTEN = 1.0D1 ** (INT (LOG10 (D1MACH (2))))
          ENSIG = 1.0D1 ** NSIG
          RTNSIG = 1.0D1 ** (-NINT (NSIG / 4.0))
--- 192,198 ----
  C  Machine-dependent parameters
  C-------------------------------------------------------------------
        IF (FIRST) THEN
!         NSIG = NINT (-LOG (D1MACH (4)))
          ENTEN = 1.0D1 ** (INT (LOG10 (D1MACH (2))))
          ENSIG = 1.0D1 ** NSIG
          RTNSIG = 1.0D1 ** (-NINT (NSIG / 4.0))
diff -cNr octave-2.0.10/libcruft/specfun/rjbesl.f octave-2.0.11/libcruft/specfun/rjbesl.f
*** octave-2.0.10/libcruft/specfun/rjbesl.f	Sun Nov 30 03:37:59 1997
--- octave-2.0.11/libcruft/specfun/rjbesl.f	Thu Feb 19 20:47:16 1998
***************
*** 139,145 ****
  C---------------------------------------------------------------------
        LOGICAL FIRST
        INTEGER I,J,K,L,M,MAGX,N,NB,NBMX,NCALC,NEND,NSIG,NSTART
!       DOUBLE PRECISION  DGAMMA, D1MACH
       1 ALPHA,ALPEM,ALP2EM,B,CAPP,CAPQ,CONV,EIGHTH,EM,EN,ENMTEN,ENSIG,
       2 ENTEN,FACT,FOUR,FUNC,GNU,HALF,HALFX,ONE,ONE30,P,PI2,PLAST,
       3 POLD,PSAVE,PSAVEL,RTNSIG,S,SUM,T,T1,TEMPA,TEMPB,TEMPC,TEST,
--- 139,145 ----
  C---------------------------------------------------------------------
        LOGICAL FIRST
        INTEGER I,J,K,L,M,MAGX,N,NB,NBMX,NCALC,NEND,NSIG,NSTART
!       DOUBLE PRECISION  DGAMMA, D1MACH,
       1 ALPHA,ALPEM,ALP2EM,B,CAPP,CAPQ,CONV,EIGHTH,EM,EN,ENMTEN,ENSIG,
       2 ENTEN,FACT,FOUR,FUNC,GNU,HALF,HALFX,ONE,ONE30,P,PI2,PLAST,
       3 POLD,PSAVE,PSAVEL,RTNSIG,S,SUM,T,T1,TEMPA,TEMPB,TEMPC,TEST,
***************
*** 183,189 ****
  C  Machine-dependent parameters
  C---------------------------------------------------------------------
        IF (FIRST) THEN
!         NSIG = NINT (-LOG (D1MACH (1)))
          ENTEN = 1.0D1 ** (INT (LOG10 (D1MACH (2))))
          ENSIG = 1.0D1 ** NSIG
          RTNSIG = 1.0D1 ** (-NINT (NSIG / 4.0))
--- 183,189 ----
  C  Machine-dependent parameters
  C---------------------------------------------------------------------
        IF (FIRST) THEN
!         NSIG = NINT (-LOG (D1MACH (4)))
          ENTEN = 1.0D1 ** (INT (LOG10 (D1MACH (2))))
          ENSIG = 1.0D1 ** NSIG
          RTNSIG = 1.0D1 ** (-NINT (NSIG / 4.0))
diff -cNr octave-2.0.10/liboctave/Array-idx.h octave-2.0.11/liboctave/Array-idx.h
*** octave-2.0.10/liboctave/Array-idx.h	Mon May 19 16:13:51 1997
--- octave-2.0.11/liboctave/Array-idx.h	Tue Feb 10 16:24:15 1998
***************
*** 244,253 ****
      }
    else
      {
!       (*current_liboctave_error_handler)
! 	("A([]) = X: X must also be an empty matrix");
  
!       retval = 0;
      }
  
    lhs.clear_index ();
--- 244,256 ----
      }
    else
      {
!       if (rhs_len != 0)
! 	{
! 	  (*current_liboctave_error_handler)
! 	    ("A([]) = X: X must also be an empty matrix");
  
! 	  retval = 0;
! 	}
      }
  
    lhs.clear_index ();
diff -cNr octave-2.0.10/liboctave/ChangeLog octave-2.0.11/liboctave/ChangeLog
*** octave-2.0.10/liboctave/ChangeLog	Mon Feb  2 23:36:16 1998
--- octave-2.0.11/liboctave/ChangeLog	Tue Feb 24 16:30:47 1998
***************
*** 1,3 ****
--- 1,26 ----
+ Tue Feb 24 16:30:16 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* Version 2.0.11 released.
+ 
+ Thu Feb 19 01:16:38 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* lo-specfun.cc (xgamma, xlgamma): Define here.
+ 	* lo-mappers.cc: Not here.
+ 
+ 	* lo-specfun.h: Declare xgamma and xlgamma here.
+ 	* lo-mappers.h: Not here.
+ 
+ 	* lo-specfun.h: Never declare gamma or lgamma.
+ 
+ Tue Feb 10 16:14:36 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* Array-idx.h (assign): Allow A([]) = X to succeed if X is an
+ 	empty matrix of any dimension.
+ 
+ Fri Feb  6 16:59:13 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* Version 2.0.10 released.
+ 
  Mon Feb  2 01:42:56 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
  
  	* Makefile.in (install, uninstall): Use $(octlibdir), not $(libdir).
diff -cNr octave-2.0.10/liboctave/lo-mappers.cc octave-2.0.11/liboctave/lo-mappers.cc
*** octave-2.0.10/liboctave/lo-mappers.cc	Sun Nov 30 18:25:13 1997
--- octave-2.0.11/liboctave/lo-mappers.cc	Thu Feb 19 01:18:45 1998
***************
*** 41,53 ****
  #define finite(x) ((x) < DBL_MAX && (x) > -DBL_MAX)
  #endif
  
- extern "C"
- {
-   int F77_FCN (xdgamma, XDGAMMA) (const double&, double&);
- 
-   int F77_FCN (dlgams, DLGAMS) (const double&, double&, double&);
- }
- 
  #ifndef M_LOG10E
  #define M_LOG10E 0.43429448190325182765
  #endif
--- 41,46 ----
***************
*** 56,65 ****
  #define M_PI 3.14159265358979323846
  #endif
  
- #if defined (HAVE_LGAMMA) && ! defined (SIGNGAM_DECLARED)
- extern int signgam;
- #endif
- 
  // Double -> double mappers.
  
  double
--- 49,54 ----
***************
*** 170,185 ****
  }
  
  double
- xgamma (double x)
- {
-   double result;
- 
-   F77_XFCN (xdgamma, XDGAMMA, (x, result));
- 
-   return result;
- }
- 
- double
  xisinf (double x)
  {
  #if defined (HAVE_ISINF)
--- 159,164 ----
***************
*** 189,205 ****
  #else
    return 0;
  #endif
- }
- 
- double
- xlgamma (double x)
- {
-   double result;
-   double sgngam;
- 
-   F77_XFCN (dlgams, DLGAMS, (x, result, sgngam));
- 
-   return result;
  }
  
  // Complex -> double mappers.
--- 168,173 ----
diff -cNr octave-2.0.10/liboctave/lo-mappers.h octave-2.0.11/liboctave/lo-mappers.h
*** octave-2.0.10/liboctave/lo-mappers.h	Mon May 19 20:45:41 1997
--- octave-2.0.11/liboctave/lo-mappers.h	Thu Feb 19 01:17:21 1998
***************
*** 36,44 ****
  extern double xerfc (double x);
  extern double xisnan (double x);
  extern double xfinite (double x);
- extern double xgamma (double x);
  extern double xisinf (double x);
- extern double xlgamma (double x);
  
  extern double xisnan (const Complex& x);
  extern double xfinite (const Complex& x);
--- 36,42 ----
diff -cNr octave-2.0.10/liboctave/lo-specfun.cc octave-2.0.11/liboctave/lo-specfun.cc
*** octave-2.0.10/liboctave/lo-specfun.cc	Mon Dec  1 03:32:43 1997
--- octave-2.0.11/liboctave/lo-specfun.cc	Thu Feb 19 01:28:15 1998
***************
*** 116,150 ****
  }
  #endif
  
- #if !defined (HAVE_GAMMA)
  double
! gamma (double x)
  {
!   double retval;
!   F77_XFCN (xdgamma, XDGAMMA, (x, retval));
!   return retval;
  }
- #endif
- 
- #if !defined (HAVE_LGAMMA)
- // If the system doesn't have lgamma, assume that it doesn't have
- // signgam either.
- 
- int signgam;
  
  double
! lgamma (double x)
  {
!   double retval;
    double sgngam;
! 
!   F77_XFCN (dlgams, DLGAMS, (x, retval, sgngam));
! 
!   signgam = (int) sgngam;
! 
!   return retval;
  }
- #endif
  
  int
  F77_FCN (ribesl, RIBESL) (const double& x, const double& alpha,
--- 116,137 ----
  }
  #endif
  
  double
! xgamma (double x)
  {
!   double result;
!   F77_XFCN (xdgamma, XDGAMMA, (x, result));
!   return result;
  }
  
  double
! xlgamma (double x)
  {
!   double result;
    double sgngam;
!   F77_XFCN (dlgams, DLGAMS, (x, result, sgngam));
!   return result;
  }
  
  int
  F77_FCN (ribesl, RIBESL) (const double& x, const double& alpha,
diff -cNr octave-2.0.10/liboctave/lo-specfun.h octave-2.0.11/liboctave/lo-specfun.h
*** octave-2.0.10/liboctave/lo-specfun.h	Sun Nov 30 18:23:10 1997
--- octave-2.0.11/liboctave/lo-specfun.h	Thu Feb 19 01:26:10 1998
***************
*** 47,59 ****
  extern double erfc (double);
  #endif
  
! #if !defined (HAVE_GAMMA)
! extern double gamma (double);
! #endif
! 
! #if !defined (HAVE_LGAMMA)
! extern double lgamma (double);
! #endif
  
  extern Matrix besselj (double alpha, const Matrix& x);
  extern Matrix bessely (double alpha, const Matrix& x);
--- 47,54 ----
  extern double erfc (double);
  #endif
  
! extern double xgamma (double x);
! extern double xlgamma (double x);
  
  extern Matrix besselj (double alpha, const Matrix& x);
  extern Matrix bessely (double alpha, const Matrix& x);
diff -cNr octave-2.0.10/octMakefile.in octave-2.0.11/octMakefile.in
*** octave-2.0.10/octMakefile.in	Fri Feb  6 15:50:31 1998
--- octave-2.0.11/octMakefile.in	Fri Feb 20 00:54:07 1998
***************
*** 34,40 ****
  DISTDIRS = glob kpathsea readline # plplot
  
  # Subdirectories in which to run `make all'.
! SUBDIRS = @INFO_DIR@ @PLPLOT_DIR@ @READLINE_DIR@ @DLFCN_DIR@ glob \
  	kpathsea libcruft liboctave src scripts doc examples
  
  # Subdirectories in which to run `make conf-dist'.
--- 34,40 ----
  DISTDIRS = glob kpathsea readline # plplot
  
  # Subdirectories in which to run `make all'.
! SUBDIRS = @INFO_DIR@ @PLPLOT_DIR@ @READLINE_DIR@ @DLFCN_DIR@ @GLOB_DIR@ \
  	kpathsea libcruft liboctave src scripts doc examples
  
  # Subdirectories in which to run `make conf-dist'.
***************
*** 56,62 ****
  BINDISTSUBDIRS = libcruft liboctave src info scripts doc emacs examples
  
  # Subdirectories in which to run clean targets.
! CLEANSUBDIRS = $(DISTSUBDIRS) glob kpathsea
  
  DIRS_TO_MAKE = $(bindir) $(libdir) $(octincludedir) $(fcnfiledir) \
    $(octfiledir) $(archlibdir) $(localarchlibdir) \
--- 56,62 ----
  BINDISTSUBDIRS = libcruft liboctave src info scripts doc emacs examples
  
  # Subdirectories in which to run clean targets.
! CLEANSUBDIRS = $(DISTSUBDIRS) @READLINE_DIR@ @GLOB_DIR@ kpathsea
  
  DIRS_TO_MAKE = $(bindir) $(libdir) $(octincludedir) $(fcnfiledir) \
    $(octfiledir) $(archlibdir) $(localarchlibdir) \
diff -cNr octave-2.0.10/scripts/ChangeLog octave-2.0.11/scripts/ChangeLog
*** octave-2.0.10/scripts/ChangeLog	Fri Feb  6 00:30:13 1998
--- octave-2.0.11/scripts/ChangeLog	Tue Feb 24 16:30:34 1998
***************
*** 1,3 ****
--- 1,18 ----
+ Tue Feb 24 16:30:16 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* Version 2.0.11 released.
+ 
+ Fri Feb 20 01:31:32 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* plot/mplot.m, plot/subplot.m, plot/oneplot.m, plot/multiplot.m,
+ 	plot/subwindow.m: Call clearplot after setting up multiplot mode.
+ 
+ 	* miscellaneous/popen2.m: Undo previous change.
+ 
+ Fri Feb  6 16:59:13 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* Version 2.0.10 released.
+ 
  Fri Feb  6 00:30:09 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
  
  	* miscellaneous/popen2.m: Use vfork instead of fork.
diff -cNr octave-2.0.10/scripts/miscellaneous/popen2.m octave-2.0.11/scripts/miscellaneous/popen2.m
*** octave-2.0.10/scripts/miscellaneous/popen2.m	Fri Feb  6 00:30:08 1998
--- octave-2.0.11/scripts/miscellaneous/popen2.m	Fri Feb 20 01:33:28 1998
***************
*** 59,65 ****
  
        if (stdin_status == 0 && stdout_status == 0)
  
! 	pid = vfork ();
  
  	if (pid == 0)
  
--- 59,65 ----
  
        if (stdin_status == 0 && stdout_status == 0)
  
! 	pid = fork ();
  
  	if (pid == 0)
  
diff -cNr octave-2.0.10/scripts/plot/mplot.m octave-2.0.11/scripts/plot/mplot.m
*** octave-2.0.10/scripts/plot/mplot.m	Wed Nov 19 00:27:00 1997
--- octave-2.0.11/scripts/plot/mplot.m	Fri Feb 20 01:35:53 1998
***************
*** 74,79 ****
--- 74,81 ----
  
      eval (sprintf ("gset origin %g, %g", xo, yo));
  
+     clearplot;
+ 
    endif
  
  endfunction
diff -cNr octave-2.0.10/scripts/plot/multiplot.m octave-2.0.11/scripts/plot/multiplot.m
*** octave-2.0.10/scripts/plot/multiplot.m	Wed Nov 19 00:26:51 1997
--- octave-2.0.11/scripts/plot/multiplot.m	Fri Feb 20 01:36:54 1998
***************
*** 98,103 ****
--- 98,105 ----
      __multiplot_xi__ = 1;
      __multiplot_yi__ = 1;
  
+     clearplot;
+ 
    endif
  
  endfunction
diff -cNr octave-2.0.10/scripts/plot/oneplot.m octave-2.0.11/scripts/plot/oneplot.m
*** octave-2.0.10/scripts/plot/oneplot.m	Wed Nov 19 00:26:40 1997
--- octave-2.0.11/scripts/plot/oneplot.m	Fri Feb 20 01:31:31 1998
***************
*** 40,45 ****
--- 40,46 ----
        gset size 1, 1;
        gset origin 0, 0;
        __multiplot_mode__ = 0;
+       clearplot;
      endif
  
    endif
diff -cNr octave-2.0.10/scripts/plot/subplot.m octave-2.0.11/scripts/plot/subplot.m
*** octave-2.0.10/scripts/plot/subplot.m	Wed Nov 19 00:26:25 1997
--- octave-2.0.11/scripts/plot/subplot.m	Fri Feb 20 01:34:02 1998
***************
*** 150,155 ****
--- 150,157 ----
  
      eval (sprintf ("gset origin %g, %g", xo, yo));
  
+     clearplot;
+ 
    endif
  
  endfunction
diff -cNr octave-2.0.10/scripts/plot/subwindow.m octave-2.0.11/scripts/plot/subwindow.m
*** octave-2.0.10/scripts/plot/subwindow.m	Wed Nov 19 00:26:32 1997
--- octave-2.0.11/scripts/plot/subwindow.m	Fri Feb 20 01:37:32 1998
***************
*** 78,81 ****
--- 78,83 ----
  
    eval (sprintf ("gset origin %g, %g", xo, yo));
  
+   clearplot;
+ 
  endfunction
diff -cNr octave-2.0.10/src/ChangeLog octave-2.0.11/src/ChangeLog
*** octave-2.0.10/src/ChangeLog	Fri Feb  6 10:48:57 1998
--- octave-2.0.11/src/ChangeLog	Tue Feb 24 16:30:43 1998
***************
*** 1,3 ****
--- 1,58 ----
+ Tue Feb 24 16:30:16 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* Version 2.0.11 released.
+ 
+ Tue Feb 24 00:42:59 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* help.cc (simple_help): Put additional help message first.  Add
+ 	information about web site and mailing list.
+ 
+ Fri Feb 20 00:41:06 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* pt-plot.cc (GPLOT_CMD_REPLOT): Clear before replot.
+ 
+ 	* Makefile.in: Better handling of lib flags for linking.
+ 
+ Thu Feb 19 21:14:30 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* pt-misc.cc (Vinitialize_global_values): New static variable.
+ 	(initialize_global_variables): New function.
+ 	(symbols_of_pt_misc): New function.
+ 	DEFVAR Vinitialize_global_values and initialize_global_variables.
+ 	(tree_global::eval): If initialize_global_variables is not true
+ 	and the variable doesn't have an explicit initializer, don't
+ 	initialize it.  If we are giving it a default value, use the value
+ 	of the variable defualt_global_variable_value.
+ 	* octave.cc (maximum_braindamage): Set default_global_variable_value
+ 	and initialize_global_variables to Matlab-compatible values.
+ 	* variables.cc (install_builtin_variables): Call symbols_of_pt_misc.
+ 
+ Wed Feb 18 04:35:31 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* besselj.cc: Rename from bessel.cc.
+ 	* Makefile.in (DLD_SRC): Likewise.
+ 
+ 	* syscalls.cc (Fvfork): Delete.
+ 
+ 	* oct-procbuf.cc: Just use fork.
+ 
+ 	* toplev.cc (feval): Provide version that takes function name
+ 	separate from other args.
+ 	* toplev.h: Add declarations for feval.
+ 
+ 	* oct-procbuf.cc (octave_procbuf::open): Move declaration of
+ 	child_std_end outside of child scope and declare volatile.
+ 	Declare parent_end and child_end volatile.
+ 
+ Thu Feb 12 22:07:00 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* system.c: New file.
+ 	* Makefile.in (SOURCES): Add it to the list.
+ 
+ Fri Feb  6 16:59:13 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* Version 2.0.10 released.
+ 
  Fri Feb  6 01:23:18 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
  
  	* oct-stream.cc (octave_base_stream::file_number): Rename from fileno.
diff -cNr octave-2.0.10/src/Makefile.in octave-2.0.11/src/Makefile.in
*** octave-2.0.10/src/Makefile.in	Mon Feb  2 23:32:48 1998
--- octave-2.0.11/src/Makefile.in	Fri Feb 20 00:32:15 1998
***************
*** 39,45 ****
    endif
  endif
  
! DLD_SRC := balance.cc bessel.cc betainc.cc chol.cc colloc.cc dassl.cc \
  	det.cc eig.cc expm.cc fft.cc fft2.cc filter.cc find.cc fsolve.cc \
  	gammainc.cc getgrent.cc getpwent.cc getrusage.cc givens.cc \
  	hess.cc ifft.cc ifft2.cc inv.cc log.cc lpsolve.cc lsode.cc \
--- 39,45 ----
    endif
  endif
  
! DLD_SRC := balance.cc besselj.cc betainc.cc chol.cc colloc.cc dassl.cc \
  	det.cc eig.cc expm.cc fft.cc fft2.cc filter.cc find.cc fsolve.cc \
  	gammainc.cc getgrent.cc getpwent.cc getrusage.cc givens.cc \
  	hess.cc ifft.cc ifft2.cc inv.cc log.cc lpsolve.cc lsode.cc \
***************
*** 97,105 ****
  	pager.cc parse.y pr-output.cc procstream.cc pt-base.cc \
  	pt-cmd.cc pt-const.cc pt-exp-base.cc pt-exp.cc pt-fcn.cc \
  	pt-fvc-base.cc pt-fvc.cc pt-mat.cc pt-misc.cc pt-mvr-base.cc \
! 	pt-mvr.cc pt-plot.cc pt-pr-code.cc \
! 	sighandlers.cc strcasecmp.c strncase.c strfns.cc strftime.c \
! 	symtab.cc syscalls.cc sysdep.cc token.cc toplev.cc \
  	unwind-prot.cc utils.cc variables.cc xdiv.cc xpow.cc \
  	ov-base.cc ov-ch-mat.cc ov-re-mat.cc ov-cx-mat.cc ov-range.cc \
  	ov-scalar.cc ov-complex.cc ov-str-mat.cc ov-struct.cc \
--- 97,105 ----
  	pager.cc parse.y pr-output.cc procstream.cc pt-base.cc \
  	pt-cmd.cc pt-const.cc pt-exp-base.cc pt-exp.cc pt-fcn.cc \
  	pt-fvc-base.cc pt-fvc.cc pt-mat.cc pt-misc.cc pt-mvr-base.cc \
! 	pt-mvr.cc pt-plot.cc pt-pr-code.cc sighandlers.cc \
! 	strcasecmp.c strncase.c strfns.cc strftime.c symtab.cc \
! 	syscalls.cc sysdep.cc system.c token.cc toplev.cc \
  	unwind-prot.cc utils.cc variables.cc xdiv.cc xpow.cc \
  	ov-base.cc ov-ch-mat.cc ov-re-mat.cc ov-cx-mat.cc ov-range.cc \
  	ov-scalar.cc ov-complex.cc ov-str-mat.cc ov-struct.cc \
***************
*** 138,149 ****
  DEF_FILES_1 := $(patsubst %.l, %.df, $(DEF_FILES_2))
  DEF_FILES := $(patsubst %.cc, %.df, $(DEF_FILES_1))
  
! OCTAVE_LFLAGS = -L../liboctave -L../libcruft -L. $(RLD_FLAG)
  
! OCTAVE_LIBS = -loctinterp -loctave $(SPECIAL_MATH_LIB) -lcruft \
! 	$(LIBPLPLOT) ../readline/libreadline.$(LIBEXT) \
! 	../kpathsea/libkpathsea.$(LIBEXT) \
! 	../glob/libglob.$(LIBEXT) $(LIBDLFCN)
  
  LIBS = @LIBS@
  
--- 138,148 ----
  DEF_FILES_1 := $(patsubst %.l, %.df, $(DEF_FILES_2))
  DEF_FILES := $(patsubst %.cc, %.df, $(DEF_FILES_1))
  
! OCTAVE_LFLAGS = -L$(TOPDIR)/liboctave -L$(TOPDIR)/libcruft \
!   -L$(TOPDIR)/src $(RLD_FLAG)
  
! OCTAVE_LIBS = $(LIBOCTINTERP) $(LIBOCTAVE) $(SPECIAL_MATH_LIB) $(LIBCRUFT) \
!   $(LIBPLPLOT) $(LIBREADLINE) $(LIBKPATHSEA) $(LIBGLOB) $(LIBDLFCN)
  
  LIBS = @LIBS@
  
diff -cNr octave-2.0.10/src/help.cc octave-2.0.11/src/help.cc
*** octave-2.0.10/src/help.cc	Mon Feb  2 03:03:38 1998
--- octave-2.0.11/src/help.cc	Tue Feb 24 01:03:48 1998
***************
*** 327,350 ****
    return keywords;
  }
  
- #if defined (USE_GNU_INFO)
  static void
  additional_help_message (ostream& os)
  {
    if (! Vsuppress_verbose_help_message)
      os << "\n\
  Additional help for builtin functions, operators, and variables\n\
! is available in the on-line version of the manual.\n\
! \n\
! Use the command `help -i <topic>' to search the manual index.\n";
! }
! #else
! static void
! additional_help_message (ostream&)
! {
! }
  #endif
  
  void
  print_usage (const string& nm, int just_usage)
  {
--- 327,352 ----
    return keywords;
  }
  
  static void
  additional_help_message (ostream& os)
  {
+ #if defined (USE_GNU_INFO)
+ 
    if (! Vsuppress_verbose_help_message)
      os << "\n\
  Additional help for builtin functions, operators, and variables\n\
! is available in the on-line version of the manual.  Use the command\n\
! `help -i <topic>' to search the manual index.\n";
! 
  #endif
  
+   if (! Vsuppress_verbose_help_message)
+     os << "\n\
+ Help and information about Octave is also available on the WWW\n\
+ at http://www.che.wisc.edu/pub/octave/octave.html and via the\n\
+ help-octave@bevo.che.wisc.edu mailing list.\n";
+ }
+ 
  void
  print_usage (const string& nm, int just_usage)
  {
***************
*** 465,470 ****
--- 467,476 ----
  static void
  simple_help (void)
  {
+   octave_stdout << "Help is available for the topics listed below.\n";
+ 
+   additional_help_message (octave_stdout);
+ 
    display_names_from_help_list (octave_stdout, operator_help (),
  				"operators");
  
***************
*** 518,525 ****
  	  names.list_in_columns (octave_stdout);
  	}
      }
- 
-   additional_help_message (octave_stdout);
  }
  
  #if defined (USE_GNU_INFO)
--- 524,529 ----
diff -cNr octave-2.0.10/src/mappers.cc octave-2.0.11/src/mappers.cc
*** octave-2.0.10/src/mappers.cc	Wed Jan 14 11:04:41 1998
--- octave-2.0.11/src/mappers.cc	Thu Feb 19 01:55:16 1998
***************
*** 27,32 ****
--- 27,35 ----
  #include <cctype>
  #include <cfloat>
  
+ #include "lo-mappers.h"
+ #include "lo-specfun.h"
+ 
  #include "defun.h"
  #include "error.h"
  #include "mappers.h"
***************
*** 34,136 ****
  // XXX FIXME XXX -- perhaps this could be avoided by determining
  // whether the is* functions are actually functions or just macros.
  
! int
  xisalnum (int c)
  {
    return isalnum (c);
  }
  
! int
  xisalpha (int c)
  {
    return isalpha (c);
  }
  
! int
  xisascii (int c)
  {
    return isascii (c);
  }
  
! int
  xiscntrl (int c)
  {
    return iscntrl (c);
  }
  
! int
  xisdigit (int c)
  {
    return isdigit (c);
  }
  
! int
  xisgraph (int c)
  {
    return isgraph (c);
  }
  
! int
  xislower (int c)
  {
    return islower (c);
  }
  
! int
  xisprint (int c)
  {
    return isprint (c);
  }
  
! int
  xispunct (int c)
  {
    return ispunct (c);
  }
  
! int
  xisspace (int c)
  {
    return isspace (c);
  }
  
! int
  xisupper (int c)
  {
    return isupper (c);
  }
  
! int
  xisxdigit (int c)
  {
    return isxdigit (c);
  }
  
! int
  xtoascii (int c)
  {
    return toascii (c);
  }
  
! int
  xtolower (int c)
  {
    return tolower (c);
  }
  
! int
  xtoupper (int c)
  {
    return toupper (c);
  }
  
! double
  ximag (const Complex& c)
  {
    return imag (c);
  }
  
! double
  xreal (const Complex& c)
  {
    return real (c);
--- 37,139 ----
  // XXX FIXME XXX -- perhaps this could be avoided by determining
  // whether the is* functions are actually functions or just macros.
  
! static int
  xisalnum (int c)
  {
    return isalnum (c);
  }
  
! static int
  xisalpha (int c)
  {
    return isalpha (c);
  }
  
! static int
  xisascii (int c)
  {
    return isascii (c);
  }
  
! static int
  xiscntrl (int c)
  {
    return iscntrl (c);
  }
  
! static int
  xisdigit (int c)
  {
    return isdigit (c);
  }
  
! static int
  xisgraph (int c)
  {
    return isgraph (c);
  }
  
! static int
  xislower (int c)
  {
    return islower (c);
  }
  
! static int
  xisprint (int c)
  {
    return isprint (c);
  }
  
! static int
  xispunct (int c)
  {
    return ispunct (c);
  }
  
! static int
  xisspace (int c)
  {
    return isspace (c);
  }
  
! static int
  xisupper (int c)
  {
    return isupper (c);
  }
  
! static int
  xisxdigit (int c)
  {
    return isxdigit (c);
  }
  
! static int
  xtoascii (int c)
  {
    return toascii (c);
  }
  
! static int
  xtolower (int c)
  {
    return tolower (c);
  }
  
! static int
  xtoupper (int c)
  {
    return toupper (c);
  }
  
! static double
  ximag (const Complex& c)
  {
    return imag (c);
  }
  
! static double
  xreal (const Complex& c)
  {
    return real (c);
diff -cNr octave-2.0.10/src/oct-procbuf.cc octave-2.0.11/src/oct-procbuf.cc
*** octave-2.0.10/src/oct-procbuf.cc	Thu Feb  5 23:56:16 1998
--- octave-2.0.11/src/oct-procbuf.cc	Wed Feb 18 15:04:38 1998
***************
*** 55,61 ****
  
    int pipe_fds[2];
  
!   int parent_end, child_end;
  
    if (is_open ())
      return 0;
--- 55,63 ----
  
    int pipe_fds[2];
  
!   volatile int child_std_end = (mode & ios::in) ? 1 : 0;
! 
!   volatile int parent_end, child_end;
  
    if (is_open ())
      return 0;
***************
*** 74,94 ****
        child_end = pipe_fds[0];
      }
  
! #if defined (HAVE_VFORK)
!   proc_pid = vfork ();
! #else
!   proc_pid = fork ();
! #endif
  
    if (proc_pid == 0)
      {
-       int child_std_end = (mode & ios::in) ? 1 : 0;
- 
        ::close (parent_end);
  
        if (child_end != child_std_end)
  	{
! 	  dup2 (child_end, child_std_end);
  	  ::close (child_end);
  	}
  
--- 76,90 ----
        child_end = pipe_fds[0];
      }
  
!   proc_pid = ::fork ();
  
    if (proc_pid == 0)
      {
        ::close (parent_end);
  
        if (child_end != child_std_end)
  	{
! 	  ::dup2 (child_end, child_std_end);
  	  ::close (child_end);
  	}
  
***************
*** 153,159 ****
  
    do
      {
!       wait_pid = waitpid (proc_pid, &wstatus, 0);
      }
    while (wait_pid == -1 && errno == EINTR);
  
--- 149,155 ----
  
    do
      {
!       wait_pid = ::waitpid (proc_pid, &wstatus, 0);
      }
    while (wait_pid == -1 && errno == EINTR);
  
diff -cNr octave-2.0.10/src/octave.cc octave-2.0.11/src/octave.cc
*** octave-2.0.10/src/octave.cc	Tue Feb  3 01:00:40 1998
--- octave-2.0.11/src/octave.cc	Tue Feb 24 00:31:39 1998
***************
*** 336,342 ****
    FILE                    Execute commands from FILE.\n\
  \n\
  Additional information about Octave is available via the WWW at\n\
! http://www.che.wisc.edu/octave.\n\
  \n\
  Please report bugs to the mailing list `bug-octave@bevo.che.wisc.edu'.\n";
  
--- 336,342 ----
    FILE                    Execute commands from FILE.\n\
  \n\
  Additional information about Octave is available via the WWW at\n\
! http://www.che.wisc.edu/octave/octave.html.\n\
  \n\
  Please report bugs to the mailing list `bug-octave@bevo.che.wisc.edu'.\n";
  
***************
*** 374,379 ****
--- 374,380 ----
    bind_builtin_variable ("PS2", "");
    bind_builtin_variable ("beep_on_error", 1.0);
    bind_builtin_variable ("default_eval_print_flag", 0.0);
+   bind_builtin_variable ("default_global_variable_value", Matrix ());
    bind_builtin_variable ("default_save_format", "mat-binary");
    bind_builtin_variable ("define_all_return_values", 1.0);
    bind_builtin_variable ("do_fortran_indexing", 1.0);
***************
*** 381,386 ****
--- 382,388 ----
    bind_builtin_variable ("fixed_point_format", 1.0);
    bind_builtin_variable ("implicit_num_to_str_ok", 1.0);
    bind_builtin_variable ("implicit_str_to_num_ok", 1.0);
+   bind_builtin_variable ("initialize_global_variables", 1.0);
    bind_builtin_variable ("ok_to_lose_imaginary_part", 1.0);
    bind_builtin_variable ("page_screen_output", 0.0);
    bind_builtin_variable ("prefer_column_vectors", 0.0);
diff -cNr octave-2.0.10/src/pt-fcn.cc octave-2.0.11/src/pt-fcn.cc
*** octave-2.0.10/src/pt-fcn.cc	Mon Jan 26 13:49:15 1998
--- octave-2.0.11/src/pt-fcn.cc	Thu Feb 19 21:21:28 1998
***************
*** 547,555 ****
  symbols_of_pt_fcn (void)
  {
    DEFVAR (default_return_value, Matrix (), 0, 0,
!     "the default for value for unitialized variables returned from\n\
  functions.  Only used if the variable initialize_return_values is\n\
! set to \"true\".");
  
    DEFVAR (define_all_return_values, 0.0, 0, define_all_return_values,
      "control whether values returned from functions should have a\n\
--- 547,555 ----
  symbols_of_pt_fcn (void)
  {
    DEFVAR (default_return_value, Matrix (), 0, 0,
!     "the default for value for uninitialized variables returned from\n\
  functions.  Only used if the variable initialize_return_values is\n\
! nonzero.");
  
    DEFVAR (define_all_return_values, 0.0, 0, define_all_return_values,
      "control whether values returned from functions should have a\n\
diff -cNr octave-2.0.10/src/pt-misc.cc octave-2.0.11/src/pt-misc.cc
*** octave-2.0.10/src/pt-misc.cc	Tue Nov 18 23:55:07 1997
--- octave-2.0.11/src/pt-misc.cc	Thu Feb 19 21:54:06 1998
***************
*** 37,42 ****
--- 37,43 ----
  #include <unistd.h>
  #endif
  
+ #include "defun.h"
  #include "error.h"
  #include "input.h"
  #include "oct-obj.h"
***************
*** 51,58 ****
--- 52,64 ----
  #include "pt-walk.h"
  #include "pt-pr-code.h"
  #include "ov.h"
+ #include "utils.h"
  #include "variables.h"
  
+ // Control whether otherwise uninitialized global variables are
+ // given a default value.
+ static int Vinitialize_global_variables;
+ 
  // Nonzero means we're breaking out of a loop or function body.
  extern int breaking;
  
***************
*** 442,451 ****
      {
        id->link_to_global ();
  
!       octave_value tmp = id->value ();
  
!       if (tmp.is_undefined ())
! 	id->define (new tree_constant (Matrix ()));
      }
    else if (ass_expr)
      {
--- 448,463 ----
      {
        id->link_to_global ();
  
!       octave_value t1 = id->value ();
! 
!       if (t1.is_undefined () && Vinitialize_global_variables)
! 	{
! 	  octave_value t2
! 	    = builtin_any_variable ("default_global_variable_value");
  
! 	  if (t2.is_defined ())
! 	    id->define (new tree_constant (t2));
! 	}
      }
    else if (ass_expr)
      {
***************
*** 628,633 ****
--- 640,666 ----
  tree_switch_case_list::accept (tree_walker& tw)
  {
    tw.visit_switch_case_list (*this);
+ }
+ 
+ static int
+ initialize_global_variables (void)
+ {
+   Vinitialize_global_variables
+     = check_preference ("initialize_global_variables");
+ 
+   return 0;
+ }
+ 
+ void
+ symbols_of_pt_misc (void)
+ {
+   DEFVAR (default_global_variable_value, , 0, 0,
+     "the default for value for otherwise uninitialized global variables.\n\
+ Only used if the variable initialize_global_variables is nonzero.");
+ 
+   DEFVAR (initialize_global_variables, 0.0, 0, initialize_global_variables,
+     "control whether otherwise uninitialized global variables are\n\
+ given a default value.  See also default_global_variable_value");
  }
  
  /*
diff -cNr octave-2.0.10/src/pt-misc.h octave-2.0.11/src/pt-misc.h
*** octave-2.0.10/src/pt-misc.h	Fri Feb 28 15:17:40 1997
--- octave-2.0.11/src/pt-misc.h	Thu Feb 19 21:14:25 1998
***************
*** 441,446 ****
--- 441,448 ----
    void accept (tree_walker& tw);
  };
  
+ extern void symbols_of_pt_misc (void);
+ 
  #endif
  
  /*
diff -cNr octave-2.0.10/src/pt-plot.cc octave-2.0.11/src/pt-plot.cc
*** octave-2.0.10/src/pt-plot.cc	Sat Jan 31 02:30:31 1998
--- octave-2.0.11/src/pt-plot.cc	Fri Feb 20 01:18:32 1998
***************
*** 110,116 ****
  #endif
  
  #ifndef GPLOT_CMD_REPLOT 
! #define GPLOT_CMD_REPLOT "rep"
  #endif
  
  #ifndef GPLOT_CMD_SPLOT 
--- 110,116 ----
  #endif
  
  #ifndef GPLOT_CMD_REPLOT 
! #define GPLOT_CMD_REPLOT "cle;rep"
  #endif
  
  #ifndef GPLOT_CMD_SPLOT 
diff -cNr octave-2.0.10/src/syscalls.cc octave-2.0.11/src/syscalls.cc
*** octave-2.0.10/src/syscalls.cc	Fri Feb  6 10:48:16 1998
--- octave-2.0.11/src/syscalls.cc	Wed Feb 18 15:06:39 1998
***************
*** 312,356 ****
    return retval;
  }
  
- DEFUN (vfork, args, ,
-  "[PID, MSG] = vfork ()\n\
- \n\
- Create a copy of the current process.\n\
- \n\
- If successful, PID is either the process ID and you are in the parent,\n\
- or 0, and you are in the child.  If PID is less than zero, an error\n\
- has occured, and MSG contains a system-dependent error message.")
- {
-   octave_value_list retval;
- 
-   retval(1) = string ();
-   retval(0) = -1.0;
- 
-   int nargin = args.length ();
- 
-   if (nargin == 0)
-     {
- #if defined (HAVE_VFORK) || defined (HAVE_FORK)
- #if defined (HAVE_VFORK)
-       pid_t pid = vfork ();
- #else
-       pid_t pid = fork ();
- #endif
- 
-       retval(0) = (double) pid;
- 
-       if (pid < 0)
- 	retval(1) = strerror (errno);
- #else
-       gripe_not_supported ("vfork");
- #endif
-     }
-   else
-     print_usage ("vfork");
- 
-   return retval;
- }
- 
  DEFUN (getpgrp, args, ,
    "pgid = getpgrp (): return the process group id of the current process")
  {
--- 312,317 ----
diff -cNr octave-2.0.10/src/system.c octave-2.0.11/src/system.c
*** octave-2.0.10/src/system.c	Wed Dec 31 18:00:00 1969
--- octave-2.0.11/src/system.c	Thu Feb 12 22:06:36 1998
***************
*** 0 ****
--- 1,94 ----
+ #if defined (__CYGWIN32__)
+ 
+ #include <sys/types.h>
+ #include <sys/wait.h>
+ #include <errno.h>
+ #include <signal.h>
+ #include <unistd.h>
+ #include <stdio.h>
+ 
+ int
+ system (const char *cmd)
+ {
+   pid_t pid;
+ 
+   int status = 1;
+ 
+   struct sigaction ignore, saved_sigint, saved_sigquit;
+ 
+   sigset_t child_mask, saved_mask;
+ 
+   if (cmd)
+     {
+       ignore.sa_handler = SIG_IGN;
+ 
+       sigemptyset (&ignore.sa_mask);
+ 
+       ignore.sa_flags = 0;
+ 
+       if (sigaction (SIGINT, &ignore, &saved_sigint) < 0)
+ 	return -1;
+ 
+       if (sigaction (SIGQUIT, &ignore, &saved_sigquit) < 0)
+ 	return -1;
+ 
+       sigemptyset (&child_mask);
+ 
+       sigaddset (&child_mask, SIGCHLD);
+ 
+       if (sigprocmask (SIG_BLOCK, &child_mask, &saved_mask) < 0)
+ 	return -1;
+ 
+       if ((pid = fork ()) < 0)
+ 	status = -1;
+       else if (pid == 0)
+ 	{
+ 	  sigaction (SIGINT, &saved_sigint, 0);
+ 	  sigaction (SIGQUIT, &saved_sigquit, 0);
+ 
+ 	  sigprocmask (SIG_SETMASK, &saved_mask, 0);
+ 
+ 	  execl ("/bin/sh", "sh", "-c", cmd, 0);
+ 
+ 	  exit (127);
+ 	}
+       else
+ 	{
+ 	  while (waitpid (pid, &status, 0) < 0)
+ 	    {
+ 	      if (errno != EINTR)
+ 		{
+ 		  status = -1;
+ 		  break;
+ 		}
+ 	    }
+ 	}
+ 
+       if (sigaction (SIGINT, &saved_sigint, 0) < 0)
+ 	return -1;
+ 
+       if (sigaction (SIGQUIT, &saved_sigquit, 0) < 0)
+ 	return -1;
+ 
+       if (sigprocmask (SIG_SETMASK, &saved_mask, 0) < 0)
+ 	return -1;      
+     }
+ 
+   return status;
+ }
+ 
+ #if defined (TEST)
+ int
+ main (void)
+ {
+   system ("info");
+   while (1)
+     {
+       printf ("foo-i-hithere\n");
+       sleep (1);
+     }
+   return 0;
+ }
+ #endif
+ 
+ #endif
diff -cNr octave-2.0.10/src/toplev.cc octave-2.0.11/src/toplev.cc
*** octave-2.0.10/src/toplev.cc	Thu Feb  5 23:45:37 1998
--- octave-2.0.11/src/toplev.cc	Wed Feb 18 14:27:17 1998
***************
*** 492,510 ****
  // XXX FIXME XXX -- this may not be the best place for these...
  
  octave_value_list
! feval (const octave_value_list& args, int nargout)
  {
    octave_value_list retval;
  
!   tree_fvc *fcn = is_valid_function (args(0), "feval", 1);
    if (fcn)
      {
!       int tmp_nargin = args.length () - 1;
!       octave_value_list tmp_args;
!       tmp_args.resize (tmp_nargin);
!       for (int i = 0; i < tmp_nargin; i++)
! 	tmp_args(i) = args(i+1);
!       retval = fcn->eval (0, nargout, tmp_args);
      }
  
    return retval;
--- 492,528 ----
  // XXX FIXME XXX -- this may not be the best place for these...
  
  octave_value_list
! feval (const string& name, const octave_value_list& args, int nargout)
  {
    octave_value_list retval;
  
!   tree_fvc *fcn = is_valid_function (name, "feval", 1);
! 
    if (fcn)
+     retval = fcn->eval (0, nargout, args);
+ 
+   return retval;
+ }
+ 
+ octave_value_list
+ feval (const octave_value_list& args, int nargout)
+ {
+   octave_value_list retval;
+ 
+   if (args.length () > 0)
      {
!       string name = args(0).string_value ();
! 
!       if (! error_state)
! 	{
! 	  int tmp_nargin = args.length () - 1;
! 	  octave_value_list tmp_args;
! 	  tmp_args.resize (tmp_nargin);
! 	  for (int i = 0; i < tmp_nargin; i++)
! 	    tmp_args(i) = args(i+1);
! 
! 	  retval = feval (name, tmp_args, nargout);
! 	}
      }
  
    return retval;
diff -cNr octave-2.0.10/src/toplev.h octave-2.0.11/src/toplev.h
*** octave-2.0.10/src/toplev.h	Mon May 19 21:27:11 1997
--- octave-2.0.11/src/toplev.h	Thu Feb 19 02:00:17 1998
***************
*** 26,31 ****
--- 26,32 ----
  #include <cstdio>
  
  class octave_value;
+ class octave_value_list;
  class tree_function;
  class tree_statement_list;
  class charMatrix;
***************
*** 42,47 ****
--- 43,55 ----
  
  extern octave_value eval_string (const string&, int print,
  				  int& parse_status);
+ 
+ 
+ extern octave_value_list
+ feval (const string& name, const octave_value_list& args, int nargout);
+ 
+ extern octave_value_list
+ feval (const octave_value_list& args, int nargout);
  
  extern int main_loop (void);
  
diff -cNr octave-2.0.10/src/variables.cc octave-2.0.11/src/variables.cc
*** octave-2.0.10/src/variables.cc	Mon Feb  2 14:57:49 1998
--- octave-2.0.11/src/variables.cc	Thu Feb 19 21:14:07 1998
***************
*** 75,80 ****
--- 75,81 ----
  #include "pt-fcn.h"
  #include "pt-fvc.h"
  #include "pt-mat.h"
+ #include "pt-misc.h"
  #include "pt-plot.h"
  #include "pr-output.h"
  #include "syscalls.h"
***************
*** 1730,1735 ****
--- 1731,1737 ----
    symbols_of_pr_output ();
    symbols_of_pt_fcn ();
    symbols_of_pt_mat ();
+   symbols_of_pt_misc ();
    symbols_of_pt_plot ();
    symbols_of_syscalls ();
    symbols_of_toplev ();
diff -cNr octave-2.0.10/src/version.h octave-2.0.11/src/version.h
*** octave-2.0.10/src/version.h	Wed Feb  4 14:09:32 1998
--- octave-2.0.11/src/version.h	Tue Feb 24 00:43:55 1998
***************
*** 20,26 ****
  
  */
  
! #define OCTAVE_VERSION "2.0.10"
  
  #define OCTAVE_COPYRIGHT \
    "Copyright (C) 1996, 1997, 1998 John W. Eaton."
--- 20,26 ----
  
  */
  
! #define OCTAVE_VERSION "2.0.11"
  
  #define OCTAVE_COPYRIGHT \
    "Copyright (C) 1996, 1997, 1998 John W. Eaton."
diff -cNr octave-2.0.10/test/ChangeLog octave-2.0.11/test/ChangeLog
*** octave-2.0.10/test/ChangeLog	Wed Jan 28 22:49:03 1998
--- octave-2.0.11/test/ChangeLog	Tue Feb 24 16:30:27 1998
***************
*** 1,3 ****
--- 1,11 ----
+ Tue Feb 24 16:30:16 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* Version 2.0.11 released.
+ 
+ Fri Feb  6 16:59:13 1998  John W. Eaton  <jwe@bevo.che.wisc.edu>
+ 
+ 	* Version 2.0.10 released.
+ 
  Wed Jul  9 19:44:54 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
  
  	* Version 2.0.9 released.
PATCH_EOF