home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / octave-1.1.1-diffs.lha / GNU / diffs / octave-1.1.1.diffs
Encoding:
Text File  |  1995-04-14  |  197.1 KB  |  7,627 lines

  1. diff -rc --new-file octave-1.1.1-base/configure octave-1.1.1/configure
  2. *** octave-1.1.1-base/configure    Wed Feb 22 20:33:24 1995
  3. --- octave-1.1.1/configure    Sat Mar 25 07:56:58 1995
  4. ***************
  5. *** 11,17 ****
  6.   
  7.   # Defaults:
  8.   ac_help=
  9. ! ac_default_prefix=/usr/local
  10.   # Any additions from configure.in:
  11.   ac_help="$ac_help
  12.     --with-f2c              use f2c even if Fortran compiler is available"
  13. --- 11,17 ----
  14.   
  15.   # Defaults:
  16.   ac_help=
  17. ! ac_default_prefix=/gnu
  18.   # Any additions from configure.in:
  19.   ac_help="$ac_help
  20.     --with-f2c              use f2c even if Fortran compiler is available"
  21. ***************
  22. *** 19,25 ****
  23.     --enable-dld            use DLD for dynamic linking (not all systems)"
  24.   ac_help="$ac_help
  25.     --enable-lite-kernel    compile smaller kernel (requires DLD)"
  26. ! ac_default_prefix=/usr/local
  27.   
  28.   # Initialize some variables set by options.
  29.   # The variables have the same names as the options, with
  30. --- 19,25 ----
  31.     --enable-dld            use DLD for dynamic linking (not all systems)"
  32.   ac_help="$ac_help
  33.     --enable-lite-kernel    compile smaller kernel (requires DLD)"
  34. ! ac_default_prefix=/gnu
  35.   
  36.   # Initialize some variables set by options.
  37.   # The variables have the same names as the options, with
  38. ***************
  39. *** 58,64 ****
  40.     fi
  41.   
  42.     case "$ac_option" in
  43. !   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  44.     *) ac_optarg= ;;
  45.     esac
  46.   
  47. --- 58,64 ----
  48.     fi
  49.   
  50.     case "$ac_option" in
  51. !   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  52.     *) ac_optarg= ;;
  53.     esac
  54.   
  55. ***************
  56. *** 79,99 ****
  57.       cache_file="$ac_optarg" ;;
  58.   
  59.     -disable-* | --disable-*)
  60. !     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  61.       # Reject names that are not valid shell variable names.
  62. !     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  63.         { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  64.       fi
  65. !     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  66.       eval "enable_${ac_feature}=no" ;;
  67.   
  68.     -enable-* | --enable-*)
  69. !     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  70.       # Reject names that are not valid shell variable names.
  71. !     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  72.         { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  73.       fi
  74. !     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  75.       case "$ac_option" in
  76.         *=*) ;;
  77.         *) ac_optarg=yes ;;
  78. --- 79,99 ----
  79.       cache_file="$ac_optarg" ;;
  80.   
  81.     -disable-* | --disable-*)
  82. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  83.       # Reject names that are not valid shell variable names.
  84. !     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  85.         { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  86.       fi
  87. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  88.       eval "enable_${ac_feature}=no" ;;
  89.   
  90.     -enable-* | --enable-*)
  91. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  92.       # Reject names that are not valid shell variable names.
  93. !     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  94.         { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  95.       fi
  96. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  97.       case "$ac_option" in
  98.         *=*) ;;
  99.         *) ac_optarg=yes ;;
  100. ***************
  101. *** 229,240 ****
  102.       exit 0 ;;
  103.   
  104.     -with-* | --with-*)
  105. !     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  106.       # Reject names that are not valid shell variable names.
  107. !     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  108.         { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  109.       fi
  110. !     ac_package=`echo $ac_package| sed 's/-/_/g'`
  111.       case "$ac_option" in
  112.         *=*) ;;
  113.         *) ac_optarg=yes ;;
  114. --- 229,240 ----
  115.       exit 0 ;;
  116.   
  117.     -with-* | --with-*)
  118. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  119.       # Reject names that are not valid shell variable names.
  120. !     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  121.         { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  122.       fi
  123. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  124.       case "$ac_option" in
  125.         *=*) ;;
  126.         *) ac_optarg=yes ;;
  127. ***************
  128. *** 242,253 ****
  129.       eval "with_${ac_package}='$ac_optarg'" ;;
  130.   
  131.     -without-* | --without-*)
  132. !     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  133.       # Reject names that are not valid shell variable names.
  134. !     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  135.         { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  136.       fi
  137. !     ac_package=`echo $ac_package| sed 's/-/_/g'`
  138.       eval "with_${ac_package}=no" ;;
  139.   
  140.     --x)
  141. --- 242,253 ----
  142.       eval "with_${ac_package}='$ac_optarg'" ;;
  143.   
  144.     -without-* | --without-*)
  145. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  146.       # Reject names that are not valid shell variable names.
  147. !     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  148.         { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  149.       fi
  150. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  151.       eval "with_${ac_package}=no" ;;
  152.   
  153.     --x)
  154. ***************
  155. *** 272,278 ****
  156.       ;;
  157.   
  158.     *) 
  159. !     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  160.         echo "configure: warning: $ac_option: invalid host type" 1>&2
  161.       fi
  162.       if test "x$nonopt" != xNONE; then
  163. --- 272,278 ----
  164.       ;;
  165.   
  166.     *) 
  167. !     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  168.         echo "configure: warning: $ac_option: invalid host type" 1>&2
  169.       fi
  170.       if test "x$nonopt" != xNONE; then
  171. ***************
  172. *** 285,291 ****
  173.   done
  174.   
  175.   if test -n "$ac_prev"; then
  176. !   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  177.   fi
  178.   
  179.   trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  180. --- 285,291 ----
  181.   done
  182.   
  183.   if test -n "$ac_prev"; then
  184. !   { echo "configure: error: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  185.   fi
  186.   
  187.   trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  188. ***************
  189. *** 335,341 ****
  190.   # confdefs.h avoids OS command line length limits that DEFS can exceed.
  191.   rm -rf conftest* confdefs.h
  192.   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  193. ! echo > confdefs.h
  194.   
  195.   # A filename unique to this package, relative to the directory that
  196.   # configure is in, which we can look for to find out if srcdir is correct.
  197. --- 335,341 ----
  198.   # confdefs.h avoids OS command line length limits that DEFS can exceed.
  199.   rm -rf conftest* confdefs.h
  200.   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  201. ! /bin/echo > confdefs.h
  202.   
  203.   # A filename unique to this package, relative to the directory that
  204.   # configure is in, which we can look for to find out if srcdir is correct.
  205. ***************
  206. *** 346,352 ****
  207.     ac_srcdir_defaulted=yes
  208.     # Try the directory containing this script, then its parent.
  209.     ac_prog=$0
  210. !   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  211.     test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  212.     srcdir=$ac_confdir
  213.     if test ! -r $srcdir/$ac_unique_file; then
  214. --- 346,352 ----
  215.     ac_srcdir_defaulted=yes
  216.     # Try the directory containing this script, then its parent.
  217.     ac_prog=$0
  218. !   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  219.     test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  220.     srcdir=$ac_confdir
  221.     if test ! -r $srcdir/$ac_unique_file; then
  222. ***************
  223. *** 362,368 ****
  224.       { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  225.     fi
  226.   fi
  227. ! srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  228.   
  229.   # Prefer explicitly selected file to automatically selected ones.
  230.   if test -z "$CONFIG_SITE"; then
  231. --- 362,368 ----
  232.       { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  233.     fi
  234.   fi
  235. ! srcdir=`/bin/echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  236.   
  237.   # Prefer explicitly selected file to automatically selected ones.
  238.   if test -z "$CONFIG_SITE"; then
  239. ***************
  240. *** 438,444 ****
  241.   else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  242.   fi
  243.   
  244. ! echo $ac_n "checking host system type""... $ac_c" 1>&4
  245.   
  246.   host_alias=$host
  247.   case "$host_alias" in
  248. --- 438,444 ----
  249.   else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  250.   fi
  251.   
  252. ! /bin/echo $ac_n "checking host system type""... $ac_c" 1>&4
  253.   
  254.   host_alias=$host
  255.   case "$host_alias" in
  256. ***************
  257. *** 453,462 ****
  258.   esac
  259.   
  260.   host=`$ac_config_sub $host_alias`
  261. ! host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  262. ! host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  263. ! host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  264. ! echo "$ac_t""$host" 1>&4
  265.   
  266.   if test -z "$host"; then
  267.     host=unknown
  268. --- 453,462 ----
  269.   esac
  270.   
  271.   host=`$ac_config_sub $host_alias`
  272. ! host_cpu=`/bin/echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  273. ! host_vendor=`/bin/echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  274. ! host_os=`/bin/echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  275. ! /bin/echo "$ac_t""$host" 1>&4
  276.   
  277.   if test -z "$host"; then
  278.     host=unknown
  279. ***************
  280. *** 470,482 ****
  281.   
  282.   
  283.   ### Allow the user to force us to use f2c.
  284.   
  285.   # Check whether --with-f2c or --without-f2c was given.
  286.   withval="$with_f2c"
  287.   if test -n "$withval"; then
  288.     use_f2c=true
  289.   else
  290. !   use_f2c=false
  291.   fi
  292.   
  293.   
  294. --- 470,483 ----
  295.   
  296.   
  297.   ### Allow the user to force us to use f2c.
  298. + ### Amiga hack -- the GNU f77 compiler won't quite work yet so force this.
  299.   
  300.   # Check whether --with-f2c or --without-f2c was given.
  301.   withval="$with_f2c"
  302.   if test -n "$withval"; then
  303.     use_f2c=true
  304.   else
  305. !   use_f2c=true
  306.   fi
  307.   
  308.   
  309. ***************
  310. *** 533,556 ****
  311.   imagedir='$(datadir)/octave/$(version)/imagelib'
  312.   imagepath='.:$(imagedir)//'
  313.   
  314. ! echo "$ac_t""defining prefix to be $prefix" 1>&4
  315. ! echo "$ac_t""defining exec_prefix to be $exec_prefix" 1>&4
  316. ! echo "$ac_t""defining bindir to be $bindir" 1>&4
  317. ! echo "$ac_t""defining datadir to be $datadir" 1>&4
  318. ! echo "$ac_t""defining libdir to be $libdir" 1>&4
  319. ! echo "$ac_t""defining includedir to be $includedir" 1>&4
  320. ! echo "$ac_t""defining mandir to be $mandir" 1>&4
  321. ! echo "$ac_t""defining infodir to be $infodir" 1>&4
  322. ! echo "$ac_t""defining fcnfiledir to be $fcnfiledir" 1>&4
  323. ! echo "$ac_t""defining localfcnfiledir to be $localfcnfiledir" 1>&4
  324. ! echo "$ac_t""defining localfcnfilepath to be $localfcnfilepath" 1>&4
  325. ! echo "$ac_t""defining archlibdir to be $archlibdir" 1>&4
  326. ! echo "$ac_t""defining octfiledir to be $octfiledir" 1>&4
  327. ! echo "$ac_t""defining localoctfiledir to be $localoctfiledir" 1>&4
  328. ! echo "$ac_t""defining localoctfilepath to be $localoctfilepath" 1>&4
  329. ! echo "$ac_t""defining fcnfilepath to be $fcnfilepath" 1>&4
  330. ! echo "$ac_t""defining imagedir to be $imagedir" 1>&4
  331. ! echo "$ac_t""defining imagepath to be $imagepath" 1>&4
  332.   
  333.   
  334.   
  335. --- 534,557 ----
  336.   imagedir='$(datadir)/octave/$(version)/imagelib'
  337.   imagepath='.:$(imagedir)//'
  338.   
  339. ! /bin/echo "$ac_t""defining prefix to be $prefix" 1>&4
  340. ! /bin/echo "$ac_t""defining exec_prefix to be $exec_prefix" 1>&4
  341. ! /bin/echo "$ac_t""defining bindir to be $bindir" 1>&4
  342. ! /bin/echo "$ac_t""defining datadir to be $datadir" 1>&4
  343. ! /bin/echo "$ac_t""defining libdir to be $libdir" 1>&4
  344. ! /bin/echo "$ac_t""defining includedir to be $includedir" 1>&4
  345. ! /bin/echo "$ac_t""defining mandir to be $mandir" 1>&4
  346. ! /bin/echo "$ac_t""defining infodir to be $infodir" 1>&4
  347. ! /bin/echo "$ac_t""defining fcnfiledir to be $fcnfiledir" 1>&4
  348. ! /bin/echo "$ac_t""defining localfcnfiledir to be $localfcnfiledir" 1>&4
  349. ! /bin/echo "$ac_t""defining localfcnfilepath to be $localfcnfilepath" 1>&4
  350. ! /bin/echo "$ac_t""defining archlibdir to be $archlibdir" 1>&4
  351. ! /bin/echo "$ac_t""defining octfiledir to be $octfiledir" 1>&4
  352. ! /bin/echo "$ac_t""defining localoctfiledir to be $localoctfiledir" 1>&4
  353. ! /bin/echo "$ac_t""defining localoctfilepath to be $localoctfilepath" 1>&4
  354. ! /bin/echo "$ac_t""defining fcnfilepath to be $fcnfilepath" 1>&4
  355. ! /bin/echo "$ac_t""defining imagedir to be $imagedir" 1>&4
  356. ! /bin/echo "$ac_t""defining imagepath to be $imagepath" 1>&4
  357.   
  358.   
  359.   
  360. ***************
  361. *** 610,625 ****
  362.   esac
  363.   
  364.   if test -n "$DLD_DIR"; then
  365. !   echo "$ac_t""defining DLD_DIR to be $DLD_DIR" 1>&4
  366.   fi
  367.   if test -n "$LIBDLD"; then
  368. !   echo "$ac_t""defining LIBDLD to be $LIBDLD" 1>&4
  369.   fi
  370.   if test -n "$LIBOCTDLD"; then
  371. !   echo "$ac_t""defining LIBOCTDLD to be $LIBOCTDLD" 1>&4
  372.   fi
  373.   if test -n "$LD_STATIC_FLAG"; then
  374. !   echo "$ac_t""defining LD_STATIC_FLAG to be $LD_STATIC_FLAG" 1>&4
  375.   fi
  376.   
  377.   
  378. --- 611,626 ----
  379.   esac
  380.   
  381.   if test -n "$DLD_DIR"; then
  382. !   /bin/echo "$ac_t""defining DLD_DIR to be $DLD_DIR" 1>&4
  383.   fi
  384.   if test -n "$LIBDLD"; then
  385. !   /bin/echo "$ac_t""defining LIBDLD to be $LIBDLD" 1>&4
  386.   fi
  387.   if test -n "$LIBOCTDLD"; then
  388. !   /bin/echo "$ac_t""defining LIBOCTDLD to be $LIBOCTDLD" 1>&4
  389.   fi
  390.   if test -n "$LD_STATIC_FLAG"; then
  391. !   /bin/echo "$ac_t""defining LD_STATIC_FLAG to be $LD_STATIC_FLAG" 1>&4
  392.   fi
  393.   
  394.   
  395. ***************
  396. *** 628,660 ****
  397.   
  398.   ### See if the optional nonlinear programming code is present.
  399.   
  400. ! echo $ac_n "checking for npsol""... $ac_c" 1>&4
  401.   if test -f $srcdir/libcruft/npsol/npsol.f; then
  402. !   echo "$ac_t""yes" 1>&4
  403.   else
  404. !   echo "$ac_t""no" 1>&4
  405.     cat >> confdefs.h <<\EOF
  406.   #define NPSOL_MISSING 1
  407.   EOF
  408.   
  409.   fi
  410.   
  411. ! echo $ac_n "checking for qpsol""... $ac_c" 1>&4
  412.   if test -f $srcdir/libcruft/qpsol/qpsol.f; then
  413. !   echo "$ac_t""yes" 1>&4
  414.   else
  415. !   echo "$ac_t""no" 1>&4
  416.     cat >> confdefs.h <<\EOF
  417.   #define QPSOL_MISSING 1
  418.   EOF
  419.   
  420.   fi
  421.   
  422. ! echo $ac_n "checking for fsqp""... $ac_c" 1>&4
  423.   if test -f $srcdir/libcruft/fsqp/fsqpd.f; then
  424. !   echo "$ac_t""yes" 1>&4
  425.   else
  426. !   echo "$ac_t""no" 1>&4
  427.     cat >> confdefs.h <<\EOF
  428.   #define FSQP_MISSING 1
  429.   EOF
  430. --- 629,661 ----
  431.   
  432.   ### See if the optional nonlinear programming code is present.
  433.   
  434. ! /bin/echo $ac_n "checking for npsol""... $ac_c" 1>&4
  435.   if test -f $srcdir/libcruft/npsol/npsol.f; then
  436. !   /bin/echo "$ac_t""yes" 1>&4
  437.   else
  438. !   /bin/echo "$ac_t""no" 1>&4
  439.     cat >> confdefs.h <<\EOF
  440.   #define NPSOL_MISSING 1
  441.   EOF
  442.   
  443.   fi
  444.   
  445. ! /bin/echo $ac_n "checking for qpsol""... $ac_c" 1>&4
  446.   if test -f $srcdir/libcruft/qpsol/qpsol.f; then
  447. !   /bin/echo "$ac_t""yes" 1>&4
  448.   else
  449. !   /bin/echo "$ac_t""no" 1>&4
  450.     cat >> confdefs.h <<\EOF
  451.   #define QPSOL_MISSING 1
  452.   EOF
  453.   
  454.   fi
  455.   
  456. ! /bin/echo $ac_n "checking for fsqp""... $ac_c" 1>&4
  457.   if test -f $srcdir/libcruft/fsqp/fsqpd.f; then
  458. !   /bin/echo "$ac_t""yes" 1>&4
  459.   else
  460. !   /bin/echo "$ac_t""no" 1>&4
  461.     cat >> confdefs.h <<\EOF
  462.   #define FSQP_MISSING 1
  463.   EOF
  464. ***************
  465. *** 667,675 ****
  466.   do
  467.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  468.   set dummy $ac_prog; ac_word=$2
  469. ! echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  470.   if eval "test \"`echo '${'ac_cv_prog_CXX'+set}'`\" = set"; then
  471. !   echo $ac_n "(cached) $ac_c" 1>&4
  472.   else
  473.     if test -n "$CXX"; then
  474.     ac_cv_prog_CXX="$CXX" # Let the user override the test.
  475. --- 668,676 ----
  476.   do
  477.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  478.   set dummy $ac_prog; ac_word=$2
  479. ! /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  480.   if eval "test \"`echo '${'ac_cv_prog_CXX'+set}'`\" = set"; then
  481. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  482.   else
  483.     if test -n "$CXX"; then
  484.     ac_cv_prog_CXX="$CXX" # Let the user override the test.
  485. ***************
  486. *** 687,695 ****
  487.   fi
  488.   CXX="$ac_cv_prog_CXX"
  489.   if test -n "$CXX"; then
  490. !   echo "$ac_t""$CXX" 1>&4
  491.   else
  492. !   echo "$ac_t""no" 1>&4
  493.   fi
  494.   
  495.   test -n "$CXX" && break
  496. --- 688,696 ----
  497.   fi
  498.   CXX="$ac_cv_prog_CXX"
  499.   if test -n "$CXX"; then
  500. !   /bin/echo "$ac_t""$CXX" 1>&4
  501.   else
  502. !   /bin/echo "$ac_t""no" 1>&4
  503.   fi
  504.   
  505.   test -n "$CXX" && break
  506. ***************
  507. *** 697,705 ****
  508.   test -n "$CXX" || CXX="gcc"
  509.   
  510.   
  511. ! echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&4
  512.   if eval "test \"`echo '${'ac_cv_prog_gxx'+set}'`\" = set"; then
  513. !   echo $ac_n "(cached) $ac_c" 1>&4
  514.   else
  515.     cat > conftest.C <<EOF
  516.   #ifdef __GNUC__
  517. --- 698,706 ----
  518.   test -n "$CXX" || CXX="gcc"
  519.   
  520.   
  521. ! /bin/echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&4
  522.   if eval "test \"`echo '${'ac_cv_prog_gxx'+set}'`\" = set"; then
  523. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  524.   else
  525.     cat > conftest.C <<EOF
  526.   #ifdef __GNUC__
  527. ***************
  528. *** 712,724 ****
  529.     ac_cv_prog_gxx=no
  530.   fi
  531.   fi
  532. ! echo "$ac_t""$ac_cv_prog_gxx" 1>&4
  533.   if test $ac_cv_prog_gxx = yes; then
  534.     GXX=yes
  535.     if test "${CXXFLAGS+set}" != set; then
  536. !     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&4
  537.   if eval "test \"`echo '${'ac_cv_prog_gxx_g'+set}'`\" = set"; then
  538. !   echo $ac_n "(cached) $ac_c" 1>&4
  539.   else
  540.     echo 'void f(){}' > conftest.cc
  541.   if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  542. --- 713,725 ----
  543.     ac_cv_prog_gxx=no
  544.   fi
  545.   fi
  546. ! /bin/echo "$ac_t""$ac_cv_prog_gxx" 1>&4
  547.   if test $ac_cv_prog_gxx = yes; then
  548.     GXX=yes
  549.     if test "${CXXFLAGS+set}" != set; then
  550. !     /bin/echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&4
  551.   if eval "test \"`echo '${'ac_cv_prog_gxx_g'+set}'`\" = set"; then
  552. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  553.   else
  554.     echo 'void f(){}' > conftest.cc
  555.   if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  556. ***************
  557. *** 729,739 ****
  558.   rm -f conftest*
  559.   
  560.   fi
  561. !     echo "$ac_t""$ac_cv_prog_gxx_g" 1>&4
  562.       if test $ac_cv_prog_gxx_g = yes; then
  563. !       CXXFLAGS="-g -O"
  564.       else
  565. !       CXXFLAGS="-O"
  566.       fi
  567.     fi
  568.   else
  569. --- 730,742 ----
  570.   rm -f conftest*
  571.   
  572.   fi
  573. !     /bin/echo "$ac_t""$ac_cv_prog_gxx_g" 1>&4
  574.       if test $ac_cv_prog_gxx_g = yes; then
  575. !       # Amiga hack - suppress automatically using -g for now
  576. !       # Also default to using -O2
  577. !       CXXFLAGS="-O2"
  578.       else
  579. !       CXXFLAGS="-O2"
  580.       fi
  581.     fi
  582.   else
  583. ***************
  584. *** 741,750 ****
  585.     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
  586.   fi
  587.   
  588. ! echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&4
  589.   if test -z "$CXXCPP"; then
  590.   if eval "test \"`echo '${'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
  591. !   echo $ac_n "(cached) $ac_c" 1>&4
  592.   else
  593.     ac_ext=C
  594.   # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  595. --- 744,753 ----
  596.     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
  597.   fi
  598.   
  599. ! /bin/echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&4
  600.   if test -z "$CXXCPP"; then
  601.   if eval "test \"`echo '${'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
  602. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  603.   else
  604.     ac_ext=C
  605.   # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  606. ***************
  607. *** 753,759 ****
  608.   ac_link='${CXX-g++} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  609.     CXXCPP="${CXX-g++} -E"
  610.     cat > conftest.$ac_ext <<EOF
  611. ! #line 757 "configure"
  612.   #include "confdefs.h"
  613.   #include <stdlib.h>
  614.   EOF
  615. --- 756,762 ----
  616.   ac_link='${CXX-g++} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  617.     CXXCPP="${CXX-g++} -E"
  618.     cat > conftest.$ac_ext <<EOF
  619. ! #line 759 "configure"
  620.   #include "confdefs.h"
  621.   #include <stdlib.h>
  622.   EOF
  623. ***************
  624. *** 762,768 ****
  625.   if test -z "$ac_err"; then
  626.     :
  627.   else
  628. !   echo "$ac_err" >&5
  629.     rm -rf conftest*
  630.     CXXCPP=/lib/cpp
  631.   fi
  632. --- 765,771 ----
  633.   if test -z "$ac_err"; then
  634.     :
  635.   else
  636. !   /bin/echo "$ac_err" >&5
  637.     rm -rf conftest*
  638.     CXXCPP=/lib/cpp
  639.   fi
  640. ***************
  641. *** 776,782 ****
  642.   fi
  643.   fi
  644.   CXXCPP="$ac_cv_prog_CXXCPP"
  645. ! echo "$ac_t""$CXXCPP" 1>&4
  646.   
  647.   
  648.   ### Do special things for g++.
  649. --- 779,785 ----
  650.   fi
  651.   fi
  652.   CXXCPP="$ac_cv_prog_CXXCPP"
  653. ! /bin/echo "$ac_t""$CXXCPP" 1>&4
  654.   
  655.   
  656.   ### Do special things for g++.
  657. ***************
  658. *** 787,798 ****
  659.   case "$gxx_version" in
  660.     2.[6789].*|2.[123456789][0123456789].*)
  661.       if test -z "$CXXFLAGS"; then
  662. !       CXXFLAGS="-g -O"
  663. !       echo "$ac_t""defining CXXFLAGS to be $CXXFLAGS" 1>&4
  664.         ADD_CXX_WALL=true
  665.       fi
  666.       NO_IMPLICIT_TEMPLATES="-fno-implicit-templates"
  667. !     echo "$ac_t""defining NO_IMPLICIT_TEMPLATES to be $NO_IMPLICIT_TEMPLATES" 1>&4
  668.     ;;
  669.     1.*|2.[012345].*)
  670.       echo "configure: warning: g++ version $gxx_version will not work to compile Octave" 1>&2
  671. --- 790,801 ----
  672.   case "$gxx_version" in
  673.     2.[6789].*|2.[123456789][0123456789].*)
  674.       if test -z "$CXXFLAGS"; then
  675. !       CXXFLAGS="-O"
  676. !       /bin/echo "$ac_t""defining CXXFLAGS to be $CXXFLAGS" 1>&4
  677.         ADD_CXX_WALL=true
  678.       fi
  679.       NO_IMPLICIT_TEMPLATES="-fno-implicit-templates"
  680. !     /bin/echo "$ac_t""defining NO_IMPLICIT_TEMPLATES to be $NO_IMPLICIT_TEMPLATES" 1>&4
  681.     ;;
  682.     1.*|2.[012345].*)
  683.       echo "configure: warning: g++ version $gxx_version will not work to compile Octave" 1>&2
  684. ***************
  685. *** 808,814 ****
  686.       case "$canonical_host_type" in
  687.         rs6000-ibm-aix*)
  688.           HOST_CXXFLAGS="-Wa,-u"
  689. !         echo "$ac_t""defining HOST_CXXFLAGS to be $HOST_CXXFLAGS" 1>&4
  690.         ;;
  691.       esac
  692.     ;;
  693. --- 811,817 ----
  694.       case "$canonical_host_type" in
  695.         rs6000-ibm-aix*)
  696.           HOST_CXXFLAGS="-Wa,-u"
  697. !         /bin/echo "$ac_t""defining HOST_CXXFLAGS to be $HOST_CXXFLAGS" 1>&4
  698.         ;;
  699.       esac
  700.     ;;
  701. ***************
  702. *** 820,826 ****
  703.   ### dynamic linking.
  704.   
  705.   CXXLIBS=`sh $srcdir/cxxlibs.sh`
  706. ! echo "$ac_t""defining CXXLIBS to be $CXXLIBS" 1>&4
  707.   
  708.   
  709.   
  710. --- 823,829 ----
  711.   ### dynamic linking.
  712.   
  713.   CXXLIBS=`sh $srcdir/cxxlibs.sh`
  714. ! /bin/echo "$ac_t""defining CXXLIBS to be $CXXLIBS" 1>&4
  715.   
  716.   
  717.   
  718. ***************
  719. *** 830,838 ****
  720.   
  721.   # Extract the first word of "gcc", so it can be a program name with args.
  722.   set dummy gcc; ac_word=$2
  723. ! echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  724.   if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  725. !   echo $ac_n "(cached) $ac_c" 1>&4
  726.   else
  727.     if test -n "$CC"; then
  728.     ac_cv_prog_CC="$CC" # Let the user override the test.
  729. --- 833,841 ----
  730.   
  731.   # Extract the first word of "gcc", so it can be a program name with args.
  732.   set dummy gcc; ac_word=$2
  733. ! /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  734.   if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  735. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  736.   else
  737.     if test -n "$CC"; then
  738.     ac_cv_prog_CC="$CC" # Let the user override the test.
  739. ***************
  740. *** 851,865 ****
  741.   fi
  742.   CC="$ac_cv_prog_CC"
  743.   if test -n "$CC"; then
  744. !   echo "$ac_t""$CC" 1>&4
  745.   else
  746. !   echo "$ac_t""no" 1>&4
  747.   fi
  748.   
  749.   
  750. ! echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  751.   if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  752. !   echo $ac_n "(cached) $ac_c" 1>&4
  753.   else
  754.     cat > conftest.c <<EOF
  755.   #ifdef __GNUC__
  756. --- 854,868 ----
  757.   fi
  758.   CC="$ac_cv_prog_CC"
  759.   if test -n "$CC"; then
  760. !   /bin/echo "$ac_t""$CC" 1>&4
  761.   else
  762. !   /bin/echo "$ac_t""no" 1>&4
  763.   fi
  764.   
  765.   
  766. ! /bin/echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  767.   if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  768. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  769.   else
  770.     cat > conftest.c <<EOF
  771.   #ifdef __GNUC__
  772. ***************
  773. *** 872,884 ****
  774.     ac_cv_prog_gcc=no
  775.   fi
  776.   fi
  777. ! echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  778.   if test $ac_cv_prog_gcc = yes; then
  779.     GCC=yes
  780.     if test "${CFLAGS+set}" != set; then
  781. !     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  782.   if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  783. !   echo $ac_n "(cached) $ac_c" 1>&4
  784.   else
  785.     echo 'void f(){}' > conftest.c
  786.   if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  787. --- 875,887 ----
  788.     ac_cv_prog_gcc=no
  789.   fi
  790.   fi
  791. ! /bin/echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  792.   if test $ac_cv_prog_gcc = yes; then
  793.     GCC=yes
  794.     if test "${CFLAGS+set}" != set; then
  795. !     /bin/echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  796.   if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  797. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  798.   else
  799.     echo 'void f(){}' > conftest.c
  800.   if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  801. ***************
  802. *** 889,899 ****
  803.   rm -f conftest*
  804.   
  805.   fi
  806. !     echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  807.       if test $ac_cv_prog_gcc_g = yes; then
  808. !       CFLAGS="-g -O"
  809.       else
  810. !       CFLAGS="-O"
  811.       fi
  812.     fi
  813.   else
  814. --- 892,904 ----
  815.   rm -f conftest*
  816.   
  817.   fi
  818. !     /bin/echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  819.       if test $ac_cv_prog_gcc_g = yes; then
  820. !       # Amiga hack - suppress automatically using -g for now
  821. !       # Also default to using -O2
  822. !       CFLAGS="-O2"
  823.       else
  824. !       CFLAGS="-O2"
  825.       fi
  826.     fi
  827.   else
  828. ***************
  829. *** 901,914 ****
  830.     test "${CFLAGS+set}" = set || CFLAGS="-g"
  831.   fi
  832.   
  833. ! echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  834.   # On Suns, sometimes $CPP names a directory.
  835.   if test -n "$CPP" && test -d "$CPP"; then
  836.     CPP=
  837.   fi
  838.   if test -z "$CPP"; then
  839.   if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  840. !   echo $ac_n "(cached) $ac_c" 1>&4
  841.   else
  842.       # This must be in double quotes, not single quotes, because CPP may get
  843.     # substituted into the Makefile and "${CC-cc}" will confuse make.
  844. --- 906,919 ----
  845.     test "${CFLAGS+set}" = set || CFLAGS="-g"
  846.   fi
  847.   
  848. ! /bin/echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  849.   # On Suns, sometimes $CPP names a directory.
  850.   if test -n "$CPP" && test -d "$CPP"; then
  851.     CPP=
  852.   fi
  853.   if test -z "$CPP"; then
  854.   if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  855. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  856.   else
  857.       # This must be in double quotes, not single quotes, because CPP may get
  858.     # substituted into the Makefile and "${CC-cc}" will confuse make.
  859. ***************
  860. *** 916,922 ****
  861.     # On the NeXT, cc -E runs the code through the compiler's parser,
  862.     # not just through cpp.
  863.     cat > conftest.$ac_ext <<EOF
  864. ! #line 920 "configure"
  865.   #include "confdefs.h"
  866.   #include <assert.h>
  867.   Syntax Error
  868. --- 921,927 ----
  869.     # On the NeXT, cc -E runs the code through the compiler's parser,
  870.     # not just through cpp.
  871.     cat > conftest.$ac_ext <<EOF
  872. ! #line 924 "configure"
  873.   #include "confdefs.h"
  874.   #include <assert.h>
  875.   Syntax Error
  876. ***************
  877. *** 926,936 ****
  878.   if test -z "$ac_err"; then
  879.     :
  880.   else
  881. !   echo "$ac_err" >&5
  882.     rm -rf conftest*
  883.     CPP="${CC-cc} -E -traditional-cpp"
  884.     cat > conftest.$ac_ext <<EOF
  885. ! #line 934 "configure"
  886.   #include "confdefs.h"
  887.   #include <assert.h>
  888.   Syntax Error
  889. --- 931,941 ----
  890.   if test -z "$ac_err"; then
  891.     :
  892.   else
  893. !   /bin/echo "$ac_err" >&5
  894.     rm -rf conftest*
  895.     CPP="${CC-cc} -E -traditional-cpp"
  896.     cat > conftest.$ac_ext <<EOF
  897. ! #line 938 "configure"
  898.   #include "confdefs.h"
  899.   #include <assert.h>
  900.   Syntax Error
  901. ***************
  902. *** 940,946 ****
  903.   if test -z "$ac_err"; then
  904.     :
  905.   else
  906. !   echo "$ac_err" >&5
  907.     rm -rf conftest*
  908.     CPP=/lib/cpp
  909.   fi
  910. --- 945,951 ----
  911.   if test -z "$ac_err"; then
  912.     :
  913.   else
  914. !   /bin/echo "$ac_err" >&5
  915.     rm -rf conftest*
  916.     CPP=/lib/cpp
  917.   fi
  918. ***************
  919. *** 951,966 ****
  920.   fi
  921.   fi
  922.   CPP="$ac_cv_prog_CPP"
  923. ! echo "$ac_t""$CPP" 1>&4
  924.   
  925.   if test $ac_cv_prog_gcc = yes; then
  926. !   echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&4
  927.   if eval "test \"`echo '${'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  928. !   echo $ac_n "(cached) $ac_c" 1>&4
  929.   else
  930.       ac_pattern="Autoconf.*'x'"
  931.     cat > conftest.$ac_ext <<EOF
  932. ! #line 964 "configure"
  933.   #include "confdefs.h"
  934.   #include <sgtty.h>
  935.   Autoconf TIOCGETP
  936. --- 956,971 ----
  937.   fi
  938.   fi
  939.   CPP="$ac_cv_prog_CPP"
  940. ! /bin/echo "$ac_t""$CPP" 1>&4
  941.   
  942.   if test $ac_cv_prog_gcc = yes; then
  943. !   /bin/echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&4
  944.   if eval "test \"`echo '${'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  945. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  946.   else
  947.       ac_pattern="Autoconf.*'x'"
  948.     cat > conftest.$ac_ext <<EOF
  949. ! #line 968 "configure"
  950.   #include "confdefs.h"
  951.   #include <sgtty.h>
  952.   Autoconf TIOCGETP
  953. ***************
  954. *** 978,984 ****
  955.   
  956.     if test $ac_cv_prog_gcc_traditional = no; then
  957.       cat > conftest.$ac_ext <<EOF
  958. ! #line 982 "configure"
  959.   #include "confdefs.h"
  960.   #include <termio.h>
  961.   Autoconf TCGETA
  962. --- 983,989 ----
  963.   
  964.     if test $ac_cv_prog_gcc_traditional = no; then
  965.       cat > conftest.$ac_ext <<EOF
  966. ! #line 986 "configure"
  967.   #include "confdefs.h"
  968.   #include <termio.h>
  969.   Autoconf TCGETA
  970. ***************
  971. *** 992,998 ****
  972.   
  973.     fi
  974.   fi
  975. !   echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&4
  976.     if test $ac_cv_prog_gcc_traditional = yes; then
  977.       CC="$CC -traditional"
  978.     fi
  979. --- 997,1003 ----
  980.   
  981.     fi
  982.   fi
  983. !   /bin/echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&4
  984.     if test $ac_cv_prog_gcc_traditional = yes; then
  985.       CC="$CC -traditional"
  986.     fi
  987. ***************
  988. *** 1006,1018 ****
  989.   case "$gcc_version" in
  990.     2.*)
  991.       if test -z "$CFLAGS"; then
  992. !       CFLAGS="-g -O"
  993. !       echo "$ac_t""defining CFLAGS to be $CFLAGS" 1>&4
  994.         ADD_CC_WALL=true
  995.       fi
  996.       if test -z "$LDFLAGS"; then
  997. !       LDFLAGS="-g"
  998. !       echo "$ac_t""defining LDFLAGS to be $LDFLAGS" 1>&4
  999.       fi
  1000.     ;;
  1001.     1.*)
  1002. --- 1011,1023 ----
  1003.   case "$gcc_version" in
  1004.     2.*)
  1005.       if test -z "$CFLAGS"; then
  1006. !       CFLAGS="-O"
  1007. !       /bin/echo "$ac_t""defining CFLAGS to be $CFLAGS" 1>&4
  1008.         ADD_CC_WALL=true
  1009.       fi
  1010.       if test -z "$LDFLAGS"; then
  1011. !       LDFLAGS="-s"    # Amiga version won't run if not stripped -FIXME!
  1012. !       /bin/echo "$ac_t""defining LDFLAGS to be $LDFLAGS" 1>&4
  1013.       fi
  1014.     ;;
  1015.     1.*)
  1016. ***************
  1017. *** 1032,1038 ****
  1018.   case "$canonical_host_type" in
  1019.     i386-*-linux | i486-*-linux | i586-*-linux)
  1020.       GCC_IEEE_FP_FLAG="-mieee-fp"
  1021. !     echo "$ac_t""defining GCC_IEEE_FP_FLAG to be $GCC_IEEE_FP_FLAG" 1>&4
  1022.     ;;
  1023.   esac
  1024.   
  1025. --- 1037,1043 ----
  1026.   case "$canonical_host_type" in
  1027.     i386-*-linux | i486-*-linux | i586-*-linux)
  1028.       GCC_IEEE_FP_FLAG="-mieee-fp"
  1029. !     /bin/echo "$ac_t""defining GCC_IEEE_FP_FLAG to be $GCC_IEEE_FP_FLAG" 1>&4
  1030.     ;;
  1031.   esac
  1032.   
  1033. ***************
  1034. *** 1040,1050 ****
  1035.   
  1036.   ### Special checks for odd OS specific things.
  1037.   
  1038. ! echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&4
  1039. ! if test -d /etc/conf/kconfig.d &&
  1040. !   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1041.   then
  1042. !   echo "$ac_t""yes" 1>&4
  1043.     ISC=yes # If later tests want to check for ISC.
  1044.     cat >> confdefs.h <<\EOF
  1045.   #define _POSIX_SOURCE 1
  1046. --- 1045,1055 ----
  1047.   
  1048.   ### Special checks for odd OS specific things.
  1049.   
  1050. ! /bin/echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&4
  1051. ! if test -d /gnu/etc/conf/kconfig.d &&
  1052. !   grep _POSIX_VERSION /gnu/include/sys/unistd.h >/dev/null 2>&1
  1053.   then
  1054. !   /bin/echo "$ac_t""yes" 1>&4
  1055.     ISC=yes # If later tests want to check for ISC.
  1056.     cat >> confdefs.h <<\EOF
  1057.   #define _POSIX_SOURCE 1
  1058. ***************
  1059. *** 1056,1072 ****
  1060.       CC="$CC -Xp"
  1061.     fi
  1062.   else
  1063. !   echo "$ac_t""no" 1>&4
  1064.     ISC=
  1065.   fi
  1066.   
  1067. ! ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  1068. ! echo $ac_n "checking for minix/config.h""... $ac_c" 1>&4
  1069.   if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1070. !   echo $ac_n "(cached) $ac_c" 1>&4
  1071.   else
  1072.     cat > conftest.$ac_ext <<EOF
  1073. ! #line 1070 "configure"
  1074.   #include "confdefs.h"
  1075.   #include <minix/config.h>
  1076.   EOF
  1077. --- 1061,1077 ----
  1078.       CC="$CC -Xp"
  1079.     fi
  1080.   else
  1081. !   /bin/echo "$ac_t""no" 1>&4
  1082.     ISC=
  1083.   fi
  1084.   
  1085. ! ac_safe=`/bin/echo "minix/config.h" | tr './\055' '___'`
  1086. ! /bin/echo $ac_n "checking for minix/config.h""... $ac_c" 1>&4
  1087.   if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1088. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1089.   else
  1090.     cat > conftest.$ac_ext <<EOF
  1091. ! #line 1074 "configure"
  1092.   #include "confdefs.h"
  1093.   #include <minix/config.h>
  1094.   EOF
  1095. ***************
  1096. *** 1076,1092 ****
  1097.     rm -rf conftest*
  1098.     eval "ac_cv_header_$ac_safe=yes"
  1099.   else
  1100. !   echo "$ac_err" >&5
  1101.     rm -rf conftest*
  1102.     eval "ac_cv_header_$ac_safe=no"
  1103.   fi
  1104.   rm -f conftest*
  1105.   fi
  1106.   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1107. !   echo "$ac_t""yes" 1>&4
  1108.     MINIX=yes
  1109.   else
  1110. !   echo "$ac_t""no" 1>&4
  1111.   MINIX=
  1112.   fi
  1113.   
  1114. --- 1081,1097 ----
  1115.     rm -rf conftest*
  1116.     eval "ac_cv_header_$ac_safe=yes"
  1117.   else
  1118. !   /bin/echo "$ac_err" >&5
  1119.     rm -rf conftest*
  1120.     eval "ac_cv_header_$ac_safe=no"
  1121.   fi
  1122.   rm -f conftest*
  1123.   fi
  1124.   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1125. !   /bin/echo "$ac_t""yes" 1>&4
  1126.     MINIX=yes
  1127.   else
  1128. !   /bin/echo "$ac_t""no" 1>&4
  1129.   MINIX=
  1130.   fi
  1131.   
  1132. ***************
  1133. *** 1105,1113 ****
  1134.   
  1135.   fi
  1136.   
  1137. ! echo $ac_n "checking for AIX""... $ac_c" 1>&4
  1138.   cat > conftest.$ac_ext <<EOF
  1139. ! #line 1111 "configure"
  1140.   #include "confdefs.h"
  1141.   #ifdef _AIX
  1142.     yes
  1143. --- 1110,1118 ----
  1144.   
  1145.   fi
  1146.   
  1147. ! /bin/echo $ac_n "checking for AIX""... $ac_c" 1>&4
  1148.   cat > conftest.$ac_ext <<EOF
  1149. ! #line 1115 "configure"
  1150.   #include "confdefs.h"
  1151.   #ifdef _AIX
  1152.     yes
  1153. ***************
  1154. *** 1117,1142 ****
  1155.   if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1156.     egrep "yes" >/dev/null 2>&1; then
  1157.     rm -rf conftest*
  1158. !   echo "$ac_t""yes" 1>&4; cat >> confdefs.h <<\EOF
  1159.   #define _ALL_SOURCE 1
  1160.   EOF
  1161.   
  1162.   else
  1163.     rm -rf conftest*
  1164. !   echo "$ac_t""no" 1>&4
  1165.   fi
  1166.   rm -f conftest*
  1167.   
  1168.   
  1169.   # strftime is in -lintl on SCO UNIX.
  1170. ! echo $ac_n "checking for -lintl""... $ac_c" 1>&4
  1171.   if eval "test \"`echo '${'ac_cv_lib_intl'+set}'`\" = set"; then
  1172. !   echo $ac_n "(cached) $ac_c" 1>&4
  1173.   else
  1174.     ac_save_LIBS="$LIBS"
  1175.   LIBS="$LIBS -lintl "
  1176.   cat > conftest.$ac_ext <<EOF
  1177. ! #line 1140 "configure"
  1178.   #include "confdefs.h"
  1179.   
  1180.   int main() { return 0; }
  1181. --- 1122,1147 ----
  1182.   if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1183.     egrep "yes" >/dev/null 2>&1; then
  1184.     rm -rf conftest*
  1185. !   /bin/echo "$ac_t""yes" 1>&4; cat >> confdefs.h <<\EOF
  1186.   #define _ALL_SOURCE 1
  1187.   EOF
  1188.   
  1189.   else
  1190.     rm -rf conftest*
  1191. !   /bin/echo "$ac_t""no" 1>&4
  1192.   fi
  1193.   rm -f conftest*
  1194.   
  1195.   
  1196.   # strftime is in -lintl on SCO UNIX.
  1197. ! /bin/echo $ac_n "checking for -lintl""... $ac_c" 1>&4
  1198.   if eval "test \"`echo '${'ac_cv_lib_intl'+set}'`\" = set"; then
  1199. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1200.   else
  1201.     ac_save_LIBS="$LIBS"
  1202.   LIBS="$LIBS -lintl "
  1203.   cat > conftest.$ac_ext <<EOF
  1204. ! #line 1144 "configure"
  1205.   #include "confdefs.h"
  1206.   
  1207.   int main() { return 0; }
  1208. ***************
  1209. *** 1156,1173 ****
  1210.   
  1211.   fi
  1212.   if eval "test \"`echo '$ac_cv_lib_'intl`\" = yes"; then
  1213. !   echo "$ac_t""yes" 1>&4
  1214.     LIBS="$LIBS -lintl"
  1215.   else
  1216. !   echo "$ac_t""no" 1>&4
  1217.   fi
  1218.   
  1219. ! echo $ac_n "checking for strftime""... $ac_c" 1>&4
  1220.   if eval "test \"`echo '${'ac_cv_func_strftime'+set}'`\" = set"; then
  1221. !   echo $ac_n "(cached) $ac_c" 1>&4
  1222.   else
  1223.     cat > conftest.$ac_ext <<EOF
  1224. ! #line 1171 "configure"
  1225.   #include "confdefs.h"
  1226.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1227.   /* Override any gcc2 internal prototype to avoid an error.  */
  1228. --- 1161,1178 ----
  1229.   
  1230.   fi
  1231.   if eval "test \"`echo '$ac_cv_lib_'intl`\" = yes"; then
  1232. !   /bin/echo "$ac_t""yes" 1>&4
  1233.     LIBS="$LIBS -lintl"
  1234.   else
  1235. !   /bin/echo "$ac_t""no" 1>&4
  1236.   fi
  1237.   
  1238. ! /bin/echo $ac_n "checking for strftime""... $ac_c" 1>&4
  1239.   if eval "test \"`echo '${'ac_cv_func_strftime'+set}'`\" = set"; then
  1240. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1241.   else
  1242.     cat > conftest.$ac_ext <<EOF
  1243. ! #line 1175 "configure"
  1244.   #include "confdefs.h"
  1245.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1246.   /* Override any gcc2 internal prototype to avoid an error.  */
  1247. ***************
  1248. *** 1198,1220 ****
  1249.   
  1250.   fi
  1251.   if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
  1252. !   echo "$ac_t""yes" 1>&4
  1253.     cat >> confdefs.h <<\EOF
  1254.   #define HAVE_STRFTIME 1
  1255.   EOF
  1256.   
  1257.   else
  1258. !   echo "$ac_t""no" 1>&4
  1259.   fi
  1260.   
  1261. ! echo $ac_n "checking for -lsun""... $ac_c" 1>&4
  1262.   if eval "test \"`echo '${'ac_cv_lib_sun'+set}'`\" = set"; then
  1263. !   echo $ac_n "(cached) $ac_c" 1>&4
  1264.   else
  1265.     ac_save_LIBS="$LIBS"
  1266.   LIBS="$LIBS -lsun "
  1267.   cat > conftest.$ac_ext <<EOF
  1268. ! #line 1218 "configure"
  1269.   #include "confdefs.h"
  1270.   
  1271.   int main() { return 0; }
  1272. --- 1203,1225 ----
  1273.   
  1274.   fi
  1275.   if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
  1276. !   /bin/echo "$ac_t""yes" 1>&4
  1277.     cat >> confdefs.h <<\EOF
  1278.   #define HAVE_STRFTIME 1
  1279.   EOF
  1280.   
  1281.   else
  1282. !   /bin/echo "$ac_t""no" 1>&4
  1283.   fi
  1284.   
  1285. ! /bin/echo $ac_n "checking for -lsun""... $ac_c" 1>&4
  1286.   if eval "test \"`echo '${'ac_cv_lib_sun'+set}'`\" = set"; then
  1287. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1288.   else
  1289.     ac_save_LIBS="$LIBS"
  1290.   LIBS="$LIBS -lsun "
  1291.   cat > conftest.$ac_ext <<EOF
  1292. ! #line 1222 "configure"
  1293.   #include "confdefs.h"
  1294.   
  1295.   int main() { return 0; }
  1296. ***************
  1297. *** 1234,1241 ****
  1298.   
  1299.   fi
  1300.   if eval "test \"`echo '$ac_cv_lib_'sun`\" = yes"; then
  1301. !   echo "$ac_t""yes" 1>&4
  1302. !     ac_tr_lib=HAVE_LIB`echo sun | tr '[a-z]' '[A-Z]'`
  1303.     cat >> confdefs.h <<EOF
  1304.   #define $ac_tr_lib 1
  1305.   EOF
  1306. --- 1239,1246 ----
  1307.   
  1308.   fi
  1309.   if eval "test \"`echo '$ac_cv_lib_'sun`\" = yes"; then
  1310. !   /bin/echo "$ac_t""yes" 1>&4
  1311. !     ac_tr_lib=HAVE_LIB`/bin/echo sun | tr '[a-z]' '[A-Z]'`
  1312.     cat >> confdefs.h <<EOF
  1313.   #define $ac_tr_lib 1
  1314.   EOF
  1315. ***************
  1316. *** 1243,1249 ****
  1317.     LIBS="$LIBS -lsun"
  1318.   
  1319.   else
  1320. !   echo "$ac_t""no" 1>&4
  1321.   fi
  1322.   
  1323.   
  1324. --- 1248,1254 ----
  1325.     LIBS="$LIBS -lsun"
  1326.   
  1327.   else
  1328. !   /bin/echo "$ac_t""no" 1>&4
  1329.   fi
  1330.   
  1331.   
  1332. ***************
  1333. *** 1251,1265 ****
  1334.   ### be eliminated in favor of run-time checks.
  1335.   
  1336.   # If we cannot run a trivial program, we must be cross compiling.
  1337. ! echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  1338.   if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  1339. !   echo $ac_n "(cached) $ac_c" 1>&4
  1340.   else
  1341.     if test "$cross_compiling" = yes; then
  1342.     ac_cv_cross=yes
  1343.   else
  1344.   cat > conftest.$ac_ext <<EOF
  1345. ! #line 1263 "configure"
  1346.   #include "confdefs.h"
  1347.   main(){return(0);}
  1348.   EOF
  1349. --- 1256,1270 ----
  1350.   ### be eliminated in favor of run-time checks.
  1351.   
  1352.   # If we cannot run a trivial program, we must be cross compiling.
  1353. ! /bin/echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  1354.   if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  1355. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1356.   else
  1357.     if test "$cross_compiling" = yes; then
  1358.     ac_cv_cross=yes
  1359.   else
  1360.   cat > conftest.$ac_ext <<EOF
  1361. ! #line 1267 "configure"
  1362.   #include "confdefs.h"
  1363.   main(){return(0);}
  1364.   EOF
  1365. ***************
  1366. *** 1273,1289 ****
  1367.   rm -fr conftest*
  1368.   fi
  1369.   cross_compiling=$ac_cv_c_cross
  1370. ! echo "$ac_t""$ac_cv_c_cross" 1>&4
  1371.   
  1372. ! echo $ac_n "checking size of short""... $ac_c" 1>&4
  1373.   if eval "test \"`echo '${'ac_cv_sizeof_short'+set}'`\" = set"; then
  1374. !   echo $ac_n "(cached) $ac_c" 1>&4
  1375.   else
  1376.     if test "$cross_compiling" = yes; then
  1377.       { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1378.   else
  1379.   cat > conftest.$ac_ext <<EOF
  1380. ! #line 1287 "configure"
  1381.   #include "confdefs.h"
  1382.   #include <stdio.h>
  1383.   main()
  1384. --- 1278,1294 ----
  1385.   rm -fr conftest*
  1386.   fi
  1387.   cross_compiling=$ac_cv_c_cross
  1388. ! /bin/echo "$ac_t""$ac_cv_c_cross" 1>&4
  1389.   
  1390. ! /bin/echo $ac_n "checking size of short""... $ac_c" 1>&4
  1391.   if eval "test \"`echo '${'ac_cv_sizeof_short'+set}'`\" = set"; then
  1392. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1393.   else
  1394.     if test "$cross_compiling" = yes; then
  1395.       { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1396.   else
  1397.   cat > conftest.$ac_ext <<EOF
  1398. ! #line 1291 "configure"
  1399.   #include "confdefs.h"
  1400.   #include <stdio.h>
  1401.   main()
  1402. ***************
  1403. *** 1301,1321 ****
  1404.   fi
  1405.   rm -fr conftest*
  1406.   fi
  1407. ! echo "$ac_t""$ac_cv_sizeof_short" 1>&4
  1408.   cat >> confdefs.h <<EOF
  1409.   #define SIZEOF_SHORT $ac_cv_sizeof_short
  1410.   EOF
  1411.   
  1412.   
  1413. ! echo $ac_n "checking size of int""... $ac_c" 1>&4
  1414.   if eval "test \"`echo '${'ac_cv_sizeof_int'+set}'`\" = set"; then
  1415. !   echo $ac_n "(cached) $ac_c" 1>&4
  1416.   else
  1417.     if test "$cross_compiling" = yes; then
  1418.       { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1419.   else
  1420.   cat > conftest.$ac_ext <<EOF
  1421. ! #line 1319 "configure"
  1422.   #include "confdefs.h"
  1423.   #include <stdio.h>
  1424.   main()
  1425. --- 1306,1326 ----
  1426.   fi
  1427.   rm -fr conftest*
  1428.   fi
  1429. ! /bin/echo "$ac_t""$ac_cv_sizeof_short" 1>&4
  1430.   cat >> confdefs.h <<EOF
  1431.   #define SIZEOF_SHORT $ac_cv_sizeof_short
  1432.   EOF
  1433.   
  1434.   
  1435. ! /bin/echo $ac_n "checking size of int""... $ac_c" 1>&4
  1436.   if eval "test \"`echo '${'ac_cv_sizeof_int'+set}'`\" = set"; then
  1437. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1438.   else
  1439.     if test "$cross_compiling" = yes; then
  1440.       { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1441.   else
  1442.   cat > conftest.$ac_ext <<EOF
  1443. ! #line 1323 "configure"
  1444.   #include "confdefs.h"
  1445.   #include <stdio.h>
  1446.   main()
  1447. ***************
  1448. *** 1333,1353 ****
  1449.   fi
  1450.   rm -fr conftest*
  1451.   fi
  1452. ! echo "$ac_t""$ac_cv_sizeof_int" 1>&4
  1453.   cat >> confdefs.h <<EOF
  1454.   #define SIZEOF_INT $ac_cv_sizeof_int
  1455.   EOF
  1456.   
  1457.   
  1458. ! echo $ac_n "checking size of long""... $ac_c" 1>&4
  1459.   if eval "test \"`echo '${'ac_cv_sizeof_long'+set}'`\" = set"; then
  1460. !   echo $ac_n "(cached) $ac_c" 1>&4
  1461.   else
  1462.     if test "$cross_compiling" = yes; then
  1463.       { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1464.   else
  1465.   cat > conftest.$ac_ext <<EOF
  1466. ! #line 1351 "configure"
  1467.   #include "confdefs.h"
  1468.   #include <stdio.h>
  1469.   main()
  1470. --- 1338,1358 ----
  1471.   fi
  1472.   rm -fr conftest*
  1473.   fi
  1474. ! /bin/echo "$ac_t""$ac_cv_sizeof_int" 1>&4
  1475.   cat >> confdefs.h <<EOF
  1476.   #define SIZEOF_INT $ac_cv_sizeof_int
  1477.   EOF
  1478.   
  1479.   
  1480. ! /bin/echo $ac_n "checking size of long""... $ac_c" 1>&4
  1481.   if eval "test \"`echo '${'ac_cv_sizeof_long'+set}'`\" = set"; then
  1482. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1483.   else
  1484.     if test "$cross_compiling" = yes; then
  1485.       { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1486.   else
  1487.   cat > conftest.$ac_ext <<EOF
  1488. ! #line 1355 "configure"
  1489.   #include "confdefs.h"
  1490.   #include <stdio.h>
  1491.   main()
  1492. ***************
  1493. *** 1365,1385 ****
  1494.   fi
  1495.   rm -fr conftest*
  1496.   fi
  1497. ! echo "$ac_t""$ac_cv_sizeof_long" 1>&4
  1498.   cat >> confdefs.h <<EOF
  1499.   #define SIZEOF_LONG $ac_cv_sizeof_long
  1500.   EOF
  1501.   
  1502.   
  1503. ! echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&4
  1504.   if eval "test \"`echo '${'ac_cv_c_bigendian'+set}'`\" = set"; then
  1505. !   echo $ac_n "(cached) $ac_c" 1>&4
  1506.   else
  1507.     if test "$cross_compiling" = yes; then
  1508.       { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1509.   else
  1510.   cat > conftest.$ac_ext <<EOF
  1511. ! #line 1383 "configure"
  1512.   #include "confdefs.h"
  1513.   main () {
  1514.     /* Are we little or big endian?  From Harbison&Steele.  */
  1515. --- 1370,1390 ----
  1516.   fi
  1517.   rm -fr conftest*
  1518.   fi
  1519. ! /bin/echo "$ac_t""$ac_cv_sizeof_long" 1>&4
  1520.   cat >> confdefs.h <<EOF
  1521.   #define SIZEOF_LONG $ac_cv_sizeof_long
  1522.   EOF
  1523.   
  1524.   
  1525. ! /bin/echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&4
  1526.   if eval "test \"`echo '${'ac_cv_c_bigendian'+set}'`\" = set"; then
  1527. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1528.   else
  1529.     if test "$cross_compiling" = yes; then
  1530.       { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1531.   else
  1532.   cat > conftest.$ac_ext <<EOF
  1533. ! #line 1387 "configure"
  1534.   #include "confdefs.h"
  1535.   main () {
  1536.     /* Are we little or big endian?  From Harbison&Steele.  */
  1537. ***************
  1538. *** 1401,1407 ****
  1539.   fi
  1540.   rm -fr conftest*
  1541.   fi
  1542. ! echo "$ac_t""$ac_cv_c_bigendian" 1>&4
  1543.   if test $ac_cv_c_bigendian = yes; then
  1544.     cat >> confdefs.h <<\EOF
  1545.   #define WORDS_BIGENDIAN 1
  1546. --- 1406,1412 ----
  1547.   fi
  1548.   rm -fr conftest*
  1549.   fi
  1550. ! /bin/echo "$ac_t""$ac_cv_c_bigendian" 1>&4
  1551.   if test $ac_cv_c_bigendian = yes; then
  1552.     cat >> confdefs.h <<\EOF
  1553.   #define WORDS_BIGENDIAN 1
  1554. ***************
  1555. *** 1413,1453 ****
  1556.   ### Try to determine the floating point format.  This could probably
  1557.   ### be eliminated in favor of run-time checks.
  1558.   
  1559. ! echo $ac_n "checking floating point format""... $ac_c" 1>&4
  1560.   XCFLAGS=`echo $CFLAGS | sed 's/-O[^ \t]*//'`
  1561.   ${CC-cc} -DDP $XCFLAGS $LDFLAGS $srcdir/float-type.c -o conftest >/dev/null 2>&1
  1562.   FLOAT_FORMAT=`./conftest`
  1563.   case "$FLOAT_FORMAT" in
  1564.     IEEE_BIG_ENDIAN)
  1565. !     echo "$ac_t""IEEE big endian" 1>&4
  1566.       cat >> confdefs.h <<\EOF
  1567.   #define IEEE_BIG_ENDIAN 1
  1568.   EOF
  1569.   
  1570.     ;;
  1571.     IEEE_LITTLE_ENDIAN)
  1572. !     echo "$ac_t""IEEE little endian" 1>&4
  1573.       cat >> confdefs.h <<\EOF
  1574.   #define IEEE_LITTLE_ENDIAN 1
  1575.   EOF
  1576.   
  1577.     ;;
  1578.     VAX_D_FLOAT)
  1579. !     echo "$ac_t""VAX D floating" 1>&4
  1580.       cat >> confdefs.h <<\EOF
  1581.   #define VAX_D_FLOAT 1
  1582.   EOF
  1583.   
  1584.     ;;
  1585.     VAX_G_FLOAT)
  1586. !     echo "$ac_t""VAX G floating" 1>&4
  1587.       cat >> confdefs.h <<\EOF
  1588.   #define VAX_G_FLOAT 1
  1589.   EOF
  1590.   
  1591.     ;;
  1592.     *)
  1593. !     echo "$ac_t""" 1>&4
  1594.       echo "configure: warning: "unrecognized floating point format!"" 1>&2
  1595.     ;;
  1596.   esac
  1597. --- 1418,1458 ----
  1598.   ### Try to determine the floating point format.  This could probably
  1599.   ### be eliminated in favor of run-time checks.
  1600.   
  1601. ! /bin/echo $ac_n "checking floating point format""... $ac_c" 1>&4
  1602.   XCFLAGS=`echo $CFLAGS | sed 's/-O[^ \t]*//'`
  1603.   ${CC-cc} -DDP $XCFLAGS $LDFLAGS $srcdir/float-type.c -o conftest >/dev/null 2>&1
  1604.   FLOAT_FORMAT=`./conftest`
  1605.   case "$FLOAT_FORMAT" in
  1606.     IEEE_BIG_ENDIAN)
  1607. !     /bin/echo "$ac_t""IEEE big endian" 1>&4
  1608.       cat >> confdefs.h <<\EOF
  1609.   #define IEEE_BIG_ENDIAN 1
  1610.   EOF
  1611.   
  1612.     ;;
  1613.     IEEE_LITTLE_ENDIAN)
  1614. !     /bin/echo "$ac_t""IEEE little endian" 1>&4
  1615.       cat >> confdefs.h <<\EOF
  1616.   #define IEEE_LITTLE_ENDIAN 1
  1617.   EOF
  1618.   
  1619.     ;;
  1620.     VAX_D_FLOAT)
  1621. !     /bin/echo "$ac_t""VAX D floating" 1>&4
  1622.       cat >> confdefs.h <<\EOF
  1623.   #define VAX_D_FLOAT 1
  1624.   EOF
  1625.   
  1626.     ;;
  1627.     VAX_G_FLOAT)
  1628. !     /bin/echo "$ac_t""VAX G floating" 1>&4
  1629.       cat >> confdefs.h <<\EOF
  1630.   #define VAX_G_FLOAT 1
  1631.   EOF
  1632.   
  1633.     ;;
  1634.     *)
  1635. !     /bin/echo "$ac_t""" 1>&4
  1636.       echo "configure: warning: "unrecognized floating point format!"" 1>&2
  1637.     ;;
  1638.   esac
  1639. ***************
  1640. *** 1456,1467 ****
  1641.   
  1642.   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1643.   # for constant arguments.  Useless!
  1644. ! echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
  1645.   if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1646. !   echo $ac_n "(cached) $ac_c" 1>&4
  1647.   else
  1648.     cat > conftest.$ac_ext <<EOF
  1649. ! #line 1465 "configure"
  1650.   #include "confdefs.h"
  1651.   #include <alloca.h>
  1652.   int main() { return 0; }
  1653. --- 1461,1472 ----
  1654.   
  1655.   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1656.   # for constant arguments.  Useless!
  1657. ! /bin/echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
  1658.   if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1659. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1660.   else
  1661.     cat > conftest.$ac_ext <<EOF
  1662. ! #line 1469 "configure"
  1663.   #include "confdefs.h"
  1664.   #include <alloca.h>
  1665.   int main() { return 0; }
  1666. ***************
  1667. *** 1479,1485 ****
  1668.   rm -f conftest*
  1669.   
  1670.   fi
  1671. ! echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
  1672.   if test $ac_cv_header_alloca_h = yes; then
  1673.     cat >> confdefs.h <<\EOF
  1674.   #define HAVE_ALLOCA_H 1
  1675. --- 1484,1490 ----
  1676.   rm -f conftest*
  1677.   
  1678.   fi
  1679. ! /bin/echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
  1680.   if test $ac_cv_header_alloca_h = yes; then
  1681.     cat >> confdefs.h <<\EOF
  1682.   #define HAVE_ALLOCA_H 1
  1683. ***************
  1684. *** 1487,1498 ****
  1685.   
  1686.   fi
  1687.   
  1688. ! echo $ac_n "checking for alloca""... $ac_c" 1>&4
  1689.   if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
  1690. !   echo $ac_n "(cached) $ac_c" 1>&4
  1691.   else
  1692.     cat > conftest.$ac_ext <<EOF
  1693. ! #line 1496 "configure"
  1694.   #include "confdefs.h"
  1695.   
  1696.   #ifdef __GNUC__
  1697. --- 1492,1503 ----
  1698.   
  1699.   fi
  1700.   
  1701. ! /bin/echo $ac_n "checking for alloca""... $ac_c" 1>&4
  1702.   if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
  1703. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1704.   else
  1705.     cat > conftest.$ac_ext <<EOF
  1706. ! #line 1500 "configure"
  1707.   #include "confdefs.h"
  1708.   
  1709.   #ifdef __GNUC__
  1710. ***************
  1711. *** 1526,1532 ****
  1712.   rm -f conftest*
  1713.   
  1714.   fi
  1715. ! echo "$ac_t""$ac_cv_func_alloca" 1>&4
  1716.   if test $ac_cv_func_alloca = yes; then
  1717.     cat >> confdefs.h <<\EOF
  1718.   #define HAVE_ALLOCA 1
  1719. --- 1531,1537 ----
  1720.   rm -f conftest*
  1721.   
  1722.   fi
  1723. ! /bin/echo "$ac_t""$ac_cv_func_alloca" 1>&4
  1724.   if test $ac_cv_func_alloca = yes; then
  1725.     cat >> confdefs.h <<\EOF
  1726.   #define HAVE_ALLOCA 1
  1727. ***************
  1728. *** 1545,1556 ****
  1729.   EOF
  1730.   
  1731.   
  1732. ! echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
  1733.   if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
  1734. !   echo $ac_n "(cached) $ac_c" 1>&4
  1735.   else
  1736.     cat > conftest.$ac_ext <<EOF
  1737. ! #line 1554 "configure"
  1738.   #include "confdefs.h"
  1739.   #if defined(CRAY) && ! defined(CRAY2)
  1740.   webecray
  1741. --- 1550,1561 ----
  1742.   EOF
  1743.   
  1744.   
  1745. ! /bin/echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
  1746.   if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
  1747. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1748.   else
  1749.     cat > conftest.$ac_ext <<EOF
  1750. ! #line 1558 "configure"
  1751.   #include "confdefs.h"
  1752.   #if defined(CRAY) && ! defined(CRAY2)
  1753.   webecray
  1754. ***************
  1755. *** 1570,1583 ****
  1756.   rm -f conftest*
  1757.   
  1758.   fi
  1759. ! echo "$ac_t""$ac_cv_os_cray" 1>&4
  1760.   if test $ac_cv_os_cray = yes; then
  1761. ! echo $ac_n "checking for _getb67""... $ac_c" 1>&4
  1762.   if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
  1763. !   echo $ac_n "(cached) $ac_c" 1>&4
  1764.   else
  1765.     cat > conftest.$ac_ext <<EOF
  1766. ! #line 1581 "configure"
  1767.   #include "confdefs.h"
  1768.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1769.   /* Override any gcc2 internal prototype to avoid an error.  */
  1770. --- 1575,1588 ----
  1771.   rm -f conftest*
  1772.   
  1773.   fi
  1774. ! /bin/echo "$ac_t""$ac_cv_os_cray" 1>&4
  1775.   if test $ac_cv_os_cray = yes; then
  1776. ! /bin/echo $ac_n "checking for _getb67""... $ac_c" 1>&4
  1777.   if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
  1778. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1779.   else
  1780.     cat > conftest.$ac_ext <<EOF
  1781. ! #line 1585 "configure"
  1782.   #include "confdefs.h"
  1783.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1784.   /* Override any gcc2 internal prototype to avoid an error.  */
  1785. ***************
  1786. *** 1608,1626 ****
  1787.   
  1788.   fi
  1789.   if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
  1790. !   echo "$ac_t""yes" 1>&4
  1791.     cat >> confdefs.h <<\EOF
  1792.   #define CRAY_STACKSEG_END _getb67
  1793.   EOF
  1794.   
  1795.   else
  1796. !   echo "$ac_t""no" 1>&4
  1797. ! echo $ac_n "checking for GETB67""... $ac_c" 1>&4
  1798.   if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
  1799. !   echo $ac_n "(cached) $ac_c" 1>&4
  1800.   else
  1801.     cat > conftest.$ac_ext <<EOF
  1802. ! #line 1624 "configure"
  1803.   #include "confdefs.h"
  1804.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1805.   /* Override any gcc2 internal prototype to avoid an error.  */
  1806. --- 1613,1631 ----
  1807.   
  1808.   fi
  1809.   if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
  1810. !   /bin/echo "$ac_t""yes" 1>&4
  1811.     cat >> confdefs.h <<\EOF
  1812.   #define CRAY_STACKSEG_END _getb67
  1813.   EOF
  1814.   
  1815.   else
  1816. !   /bin/echo "$ac_t""no" 1>&4
  1817. ! /bin/echo $ac_n "checking for GETB67""... $ac_c" 1>&4
  1818.   if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
  1819. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1820.   else
  1821.     cat > conftest.$ac_ext <<EOF
  1822. ! #line 1628 "configure"
  1823.   #include "confdefs.h"
  1824.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1825.   /* Override any gcc2 internal prototype to avoid an error.  */
  1826. ***************
  1827. *** 1651,1669 ****
  1828.   
  1829.   fi
  1830.   if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
  1831. !   echo "$ac_t""yes" 1>&4
  1832.     cat >> confdefs.h <<\EOF
  1833.   #define CRAY_STACKSEG_END GETB67
  1834.   EOF
  1835.   
  1836.   else
  1837. !   echo "$ac_t""no" 1>&4
  1838. ! echo $ac_n "checking for getb67""... $ac_c" 1>&4
  1839.   if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
  1840. !   echo $ac_n "(cached) $ac_c" 1>&4
  1841.   else
  1842.     cat > conftest.$ac_ext <<EOF
  1843. ! #line 1667 "configure"
  1844.   #include "confdefs.h"
  1845.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1846.   /* Override any gcc2 internal prototype to avoid an error.  */
  1847. --- 1656,1674 ----
  1848.   
  1849.   fi
  1850.   if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
  1851. !   /bin/echo "$ac_t""yes" 1>&4
  1852.     cat >> confdefs.h <<\EOF
  1853.   #define CRAY_STACKSEG_END GETB67
  1854.   EOF
  1855.   
  1856.   else
  1857. !   /bin/echo "$ac_t""no" 1>&4
  1858. ! /bin/echo $ac_n "checking for getb67""... $ac_c" 1>&4
  1859.   if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
  1860. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1861.   else
  1862.     cat > conftest.$ac_ext <<EOF
  1863. ! #line 1671 "configure"
  1864.   #include "confdefs.h"
  1865.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1866.   /* Override any gcc2 internal prototype to avoid an error.  */
  1867. ***************
  1868. *** 1694,1706 ****
  1869.   
  1870.   fi
  1871.   if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
  1872. !   echo "$ac_t""yes" 1>&4
  1873.     cat >> confdefs.h <<\EOF
  1874.   #define CRAY_STACKSEG_END getb67
  1875.   EOF
  1876.   
  1877.   else
  1878. !   echo "$ac_t""no" 1>&4
  1879.   fi
  1880.   
  1881.   fi
  1882. --- 1699,1711 ----
  1883.   
  1884.   fi
  1885.   if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
  1886. !   /bin/echo "$ac_t""yes" 1>&4
  1887.     cat >> confdefs.h <<\EOF
  1888.   #define CRAY_STACKSEG_END getb67
  1889.   EOF
  1890.   
  1891.   else
  1892. !   /bin/echo "$ac_t""no" 1>&4
  1893.   fi
  1894.   
  1895.   fi
  1896. ***************
  1897. *** 1709,1723 ****
  1898.   
  1899.   fi
  1900.   
  1901. ! echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
  1902.   if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1903. !   echo $ac_n "(cached) $ac_c" 1>&4
  1904.   else
  1905.     if test "$cross_compiling" = yes; then
  1906.     ac_cv_c_stack_direction=0
  1907.   else
  1908.   cat > conftest.$ac_ext <<EOF
  1909. ! #line 1721 "configure"
  1910.   #include "confdefs.h"
  1911.   find_stack_direction ()
  1912.   {
  1913. --- 1714,1728 ----
  1914.   
  1915.   fi
  1916.   
  1917. ! /bin/echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
  1918.   if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1919. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1920.   else
  1921.     if test "$cross_compiling" = yes; then
  1922.     ac_cv_c_stack_direction=0
  1923.   else
  1924.   cat > conftest.$ac_ext <<EOF
  1925. ! #line 1725 "configure"
  1926.   #include "confdefs.h"
  1927.   find_stack_direction ()
  1928.   {
  1929. ***************
  1930. *** 1745,1751 ****
  1931.   fi
  1932.   rm -fr conftest*
  1933.   fi
  1934. ! echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
  1935.   cat >> confdefs.h <<EOF
  1936.   #define STACK_DIRECTION $ac_cv_c_stack_direction
  1937.   EOF
  1938. --- 1750,1756 ----
  1939.   fi
  1940.   rm -fr conftest*
  1941.   fi
  1942. ! /bin/echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
  1943.   cat >> confdefs.h <<EOF
  1944.   #define STACK_DIRECTION $ac_cv_c_stack_direction
  1945.   EOF
  1946. ***************
  1947. *** 1766,1777 ****
  1948.   
  1949.   fi
  1950.   
  1951. ! echo $ac_n "checking for working const""... $ac_c" 1>&4
  1952.   if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
  1953. !   echo $ac_n "(cached) $ac_c" 1>&4
  1954.   else
  1955.     cat > conftest.$ac_ext <<EOF
  1956. ! #line 1775 "configure"
  1957.   #include "confdefs.h"
  1958.   
  1959.   int main() { return 0; }
  1960. --- 1771,1782 ----
  1961.   
  1962.   fi
  1963.   
  1964. ! /bin/echo $ac_n "checking for working const""... $ac_c" 1>&4
  1965.   if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
  1966. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  1967.   else
  1968.     cat > conftest.$ac_ext <<EOF
  1969. ! #line 1779 "configure"
  1970.   #include "confdefs.h"
  1971.   
  1972.   int main() { return 0; }
  1973. ***************
  1974. *** 1831,1837 ****
  1975.   rm -f conftest*
  1976.   
  1977.   fi
  1978. ! echo "$ac_t""$ac_cv_c_const" 1>&4
  1979.   if test $ac_cv_c_const = no; then
  1980.     cat >> confdefs.h <<\EOF
  1981.   #define const 
  1982. --- 1836,1842 ----
  1983.   rm -f conftest*
  1984.   
  1985.   fi
  1986. ! /bin/echo "$ac_t""$ac_cv_c_const" 1>&4
  1987.   if test $ac_cv_c_const = no; then
  1988.     cat >> confdefs.h <<\EOF
  1989.   #define const 
  1990. ***************
  1991. *** 1859,1867 ****
  1992.   do
  1993.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  1994.   set dummy $ac_prog; ac_word=$2
  1995. ! echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  1996.   if eval "test \"`echo '${'ac_cv_prog_F77'+set}'`\" = set"; then
  1997. !   echo $ac_n "(cached) $ac_c" 1>&4
  1998.   else
  1999.     if test -n "$F77"; then
  2000.     ac_cv_prog_F77="$F77" # Let the user override the test.
  2001. --- 1864,1872 ----
  2002.   do
  2003.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2004.   set dummy $ac_prog; ac_word=$2
  2005. ! /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  2006.   if eval "test \"`echo '${'ac_cv_prog_F77'+set}'`\" = set"; then
  2007. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2008.   else
  2009.     if test -n "$F77"; then
  2010.     ac_cv_prog_F77="$F77" # Let the user override the test.
  2011. ***************
  2012. *** 1879,1887 ****
  2013.   fi
  2014.   F77="$ac_cv_prog_F77"
  2015.   if test -n "$F77"; then
  2016. !   echo "$ac_t""$F77" 1>&4
  2017.   else
  2018. !   echo "$ac_t""no" 1>&4
  2019.   fi
  2020.   
  2021.   test -n "$F77" && break
  2022. --- 1884,1892 ----
  2023.   fi
  2024.   F77="$ac_cv_prog_F77"
  2025.   if test -n "$F77"; then
  2026. !   /bin/echo "$ac_t""$F77" 1>&4
  2027.   else
  2028. !   /bin/echo "$ac_t""no" 1>&4
  2029.   fi
  2030.   
  2031.   test -n "$F77" && break
  2032. ***************
  2033. *** 1892,1904 ****
  2034.     # whether it might be compatible with f2c.
  2035.   
  2036.     if test -n "$F77"; then
  2037. !     echo $ac_n "checking $F77/f2c compatibility""... $ac_c" 1>&4
  2038.       export F77
  2039.       export CC
  2040.       tmpdef=`sh $srcdir/f2c-compat.sh $srcdir/flibs.sh`
  2041.       status=$?
  2042.       if test $status -eq 0; then
  2043. !       echo "$ac_t""yes" 1>&4
  2044.         if test "$tmpdef" = '-DF77_APPEND_UNDERSCORE=1'; then
  2045.           cat >> confdefs.h <<\EOF
  2046.   #define F77_APPEND_UNDERSCORE 1
  2047. --- 1897,1909 ----
  2048.     # whether it might be compatible with f2c.
  2049.   
  2050.     if test -n "$F77"; then
  2051. !     /bin/echo $ac_n "checking $F77/f2c compatibility""... $ac_c" 1>&4
  2052.       export F77
  2053.       export CC
  2054.       tmpdef=`sh $srcdir/f2c-compat.sh $srcdir/flibs.sh`
  2055.       status=$?
  2056.       if test $status -eq 0; then
  2057. !       /bin/echo "$ac_t""yes" 1>&4
  2058.         if test "$tmpdef" = '-DF77_APPEND_UNDERSCORE=1'; then
  2059.           cat >> confdefs.h <<\EOF
  2060.   #define F77_APPEND_UNDERSCORE 1
  2061. ***************
  2062. *** 1906,1912 ****
  2063.   
  2064.         fi
  2065.       else
  2066. !       echo "$ac_t""no" 1>&4
  2067.         F77=
  2068.       fi
  2069.     fi
  2070. --- 1911,1917 ----
  2071.   
  2072.         fi
  2073.       else
  2074. !       /bin/echo "$ac_t""no" 1>&4
  2075.         F77=
  2076.       fi
  2077.     fi
  2078. ***************
  2079. *** 1918,1926 ****
  2080.   if test -z "$F77"; then
  2081.     # Extract the first word of "f2c", so it can be a program name with args.
  2082.   set dummy f2c; ac_word=$2
  2083. ! echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  2084.   if eval "test \"`echo '${'ac_cv_prog_F2C'+set}'`\" = set"; then
  2085. !   echo $ac_n "(cached) $ac_c" 1>&4
  2086.   else
  2087.     if test -n "$F2C"; then
  2088.     ac_cv_prog_F2C="$F2C" # Let the user override the test.
  2089. --- 1923,1931 ----
  2090.   if test -z "$F77"; then
  2091.     # Extract the first word of "f2c", so it can be a program name with args.
  2092.   set dummy f2c; ac_word=$2
  2093. ! /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  2094.   if eval "test \"`echo '${'ac_cv_prog_F2C'+set}'`\" = set"; then
  2095. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2096.   else
  2097.     if test -n "$F2C"; then
  2098.     ac_cv_prog_F2C="$F2C" # Let the user override the test.
  2099. ***************
  2100. *** 1938,1946 ****
  2101.   fi
  2102.   F2C="$ac_cv_prog_F2C"
  2103.   if test -n "$F2C"; then
  2104. !   echo "$ac_t""$F2C" 1>&4
  2105.   else
  2106. !   echo "$ac_t""no" 1>&4
  2107.   fi
  2108.   
  2109.   fi
  2110. --- 1943,1951 ----
  2111.   fi
  2112.   F2C="$ac_cv_prog_F2C"
  2113.   if test -n "$F2C"; then
  2114. !   /bin/echo "$ac_t""$F2C" 1>&4
  2115.   else
  2116. !   /bin/echo "$ac_t""no" 1>&4
  2117.   fi
  2118.   
  2119.   fi
  2120. ***************
  2121. *** 1951,1974 ****
  2122.   
  2123.   if test -z "$FFLAGS"; then
  2124.     FFLAGS="-O"
  2125. !   echo "$ac_t""defining FFLAGS to be $FFLAGS" 1>&4
  2126.   fi
  2127.   
  2128.   if test -n "$F77"; then
  2129.     export F77
  2130.     FLIBS=`sh $srcdir/flibs.sh`
  2131. !   echo "$ac_t""defining FLIBS to be $FLIBS" 1>&4
  2132.     DOT_C_FROM_DOT_F_CMD=
  2133.     DOT_O_FROM_DOT_F_PAT=
  2134.   elif test -n "$F2C" || $use_f2c; then
  2135. !   echo $ac_n "checking for -lf2c""... $ac_c" 1>&4
  2136.   if eval "test \"`echo '${'ac_cv_lib_f2c'+set}'`\" = set"; then
  2137. !   echo $ac_n "(cached) $ac_c" 1>&4
  2138.   else
  2139.     ac_save_LIBS="$LIBS"
  2140.   LIBS="$LIBS -lf2c "
  2141.   cat > conftest.$ac_ext <<EOF
  2142. ! #line 1972 "configure"
  2143.   #include "confdefs.h"
  2144.   
  2145.   int main() { return 0; }
  2146. --- 1956,1979 ----
  2147.   
  2148.   if test -z "$FFLAGS"; then
  2149.     FFLAGS="-O"
  2150. !   /bin/echo "$ac_t""defining FFLAGS to be $FFLAGS" 1>&4
  2151.   fi
  2152.   
  2153.   if test -n "$F77"; then
  2154.     export F77
  2155.     FLIBS=`sh $srcdir/flibs.sh`
  2156. !   /bin/echo "$ac_t""defining FLIBS to be $FLIBS" 1>&4
  2157.     DOT_C_FROM_DOT_F_CMD=
  2158.     DOT_O_FROM_DOT_F_PAT=
  2159.   elif test -n "$F2C" || $use_f2c; then
  2160. !   /bin/echo $ac_n "checking for -lf2c""... $ac_c" 1>&4
  2161.   if eval "test \"`echo '${'ac_cv_lib_f2c'+set}'`\" = set"; then
  2162. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2163.   else
  2164.     ac_save_LIBS="$LIBS"
  2165.   LIBS="$LIBS -lf2c "
  2166.   cat > conftest.$ac_ext <<EOF
  2167. ! #line 1976 "configure"
  2168.   #include "confdefs.h"
  2169.   
  2170.   int main() { return 0; }
  2171. ***************
  2172. *** 1988,2008 ****
  2173.   
  2174.   fi
  2175.   if eval "test \"`echo '$ac_cv_lib_'f2c`\" = yes"; then
  2176. !   echo "$ac_t""yes" 1>&4
  2177.     FLIBS=-lf2c
  2178.   else
  2179. !   echo "$ac_t""no" 1>&4
  2180.   fi
  2181.   
  2182.     if test -z "$FLIBS" ; then
  2183. !     echo $ac_n "checking for -lF77""... $ac_c" 1>&4
  2184.   if eval "test \"`echo '${'ac_cv_lib_F77'+set}'`\" = set"; then
  2185. !   echo $ac_n "(cached) $ac_c" 1>&4
  2186.   else
  2187.     ac_save_LIBS="$LIBS"
  2188.   LIBS="$LIBS -lF77 "
  2189.   cat > conftest.$ac_ext <<EOF
  2190. ! #line 2006 "configure"
  2191.   #include "confdefs.h"
  2192.   
  2193.   int main() { return 0; }
  2194. --- 1993,2013 ----
  2195.   
  2196.   fi
  2197.   if eval "test \"`echo '$ac_cv_lib_'f2c`\" = yes"; then
  2198. !   /bin/echo "$ac_t""yes" 1>&4
  2199.     FLIBS=-lf2c
  2200.   else
  2201. !   /bin/echo "$ac_t""no" 1>&4
  2202.   fi
  2203.   
  2204.     if test -z "$FLIBS" ; then
  2205. !     /bin/echo $ac_n "checking for -lF77""... $ac_c" 1>&4
  2206.   if eval "test \"`echo '${'ac_cv_lib_F77'+set}'`\" = set"; then
  2207. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2208.   else
  2209.     ac_save_LIBS="$LIBS"
  2210.   LIBS="$LIBS -lF77 "
  2211.   cat > conftest.$ac_ext <<EOF
  2212. ! #line 2010 "configure"
  2213.   #include "confdefs.h"
  2214.   
  2215.   int main() { return 0; }
  2216. ***************
  2217. *** 2022,2042 ****
  2218.   
  2219.   fi
  2220.   if eval "test \"`echo '$ac_cv_lib_'F77`\" = yes"; then
  2221. !   echo "$ac_t""yes" 1>&4
  2222.     FLIBS=-lF77
  2223.   else
  2224. !   echo "$ac_t""no" 1>&4
  2225.   fi
  2226.   
  2227.       if test -n "$FLIBS" ; then
  2228. !       echo $ac_n "checking for -lI77""... $ac_c" 1>&4
  2229.   if eval "test \"`echo '${'ac_cv_lib_I77'+set}'`\" = set"; then
  2230. !   echo $ac_n "(cached) $ac_c" 1>&4
  2231.   else
  2232.     ac_save_LIBS="$LIBS"
  2233.   LIBS="$LIBS -lI77 "
  2234.   cat > conftest.$ac_ext <<EOF
  2235. ! #line 2040 "configure"
  2236.   #include "confdefs.h"
  2237.   
  2238.   int main() { return 0; }
  2239. --- 2027,2047 ----
  2240.   
  2241.   fi
  2242.   if eval "test \"`echo '$ac_cv_lib_'F77`\" = yes"; then
  2243. !   /bin/echo "$ac_t""yes" 1>&4
  2244.     FLIBS=-lF77
  2245.   else
  2246. !   /bin/echo "$ac_t""no" 1>&4
  2247.   fi
  2248.   
  2249.       if test -n "$FLIBS" ; then
  2250. !       /bin/echo $ac_n "checking for -lI77""... $ac_c" 1>&4
  2251.   if eval "test \"`echo '${'ac_cv_lib_I77'+set}'`\" = set"; then
  2252. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2253.   else
  2254.     ac_save_LIBS="$LIBS"
  2255.   LIBS="$LIBS -lI77 "
  2256.   cat > conftest.$ac_ext <<EOF
  2257. ! #line 2044 "configure"
  2258.   #include "confdefs.h"
  2259.   
  2260.   int main() { return 0; }
  2261. ***************
  2262. *** 2056,2065 ****
  2263.   
  2264.   fi
  2265.   if eval "test \"`echo '$ac_cv_lib_'I77`\" = yes"; then
  2266. !   echo "$ac_t""yes" 1>&4
  2267.     FLIBS="$FLIBS -lI77"
  2268.   else
  2269. !   echo "$ac_t""no" 1>&4
  2270.   fi
  2271.   
  2272.       fi
  2273. --- 2061,2070 ----
  2274.   
  2275.   fi
  2276.   if eval "test \"`echo '$ac_cv_lib_'I77`\" = yes"; then
  2277. !   /bin/echo "$ac_t""yes" 1>&4
  2278.     FLIBS="$FLIBS -lI77"
  2279.   else
  2280. !   /bin/echo "$ac_t""no" 1>&4
  2281.   fi
  2282.   
  2283.       fi
  2284. ***************
  2285. *** 2068,2076 ****
  2286.       echo "configure: warning: I found f2c but not libf2c.a, or libF77.a and libI77.a" 1>&2
  2287.     fi
  2288.     DOT_C_FROM_DOT_F_CMD='    cat $< | $(F2C) $(F2CFLAGS) > $(@F)'
  2289. !   echo "$ac_t""defining DOT_C_FROM_DOT_F_CMD to be $DOT_C_FROM_DOT_F_CMD" 1>&4
  2290.     DOT_O_FROM_DOT_F_PAT='%.o : %.f'
  2291. !   echo "$ac_t""defining DOT_O_FROM_DOT_F_PAT to be $DOT_O_FROM_DOT_F_PAT" 1>&4
  2292.     cat >> confdefs.h <<\EOF
  2293.   #define F77_APPEND_UNDERSCORE 1
  2294.   EOF
  2295. --- 2073,2081 ----
  2296.       echo "configure: warning: I found f2c but not libf2c.a, or libF77.a and libI77.a" 1>&2
  2297.     fi
  2298.     DOT_C_FROM_DOT_F_CMD='    cat $< | $(F2C) $(F2CFLAGS) > $(@F)'
  2299. !   /bin/echo "$ac_t""defining DOT_C_FROM_DOT_F_CMD to be $DOT_C_FROM_DOT_F_CMD" 1>&4
  2300.     DOT_O_FROM_DOT_F_PAT='%.o : %.f'
  2301. !   /bin/echo "$ac_t""defining DOT_O_FROM_DOT_F_PAT to be $DOT_O_FROM_DOT_F_PAT" 1>&4
  2302.     cat >> confdefs.h <<\EOF
  2303.   #define F77_APPEND_UNDERSCORE 1
  2304.   EOF
  2305. ***************
  2306. *** 2122,2132 ****
  2307.       -e 's/ [^ ]*\.o//g' \
  2308.       -e 's/^ *//' -e 's/ *$//' -e 's/  */:/g'`
  2309.   
  2310. ! echo "$ac_t""defining FLIB_LIST to be $FLIB_LIST" 1>&4
  2311. ! echo "$ac_t""defining FLIB_PATH to be $FLIB_PATH" 1>&4
  2312.   
  2313. ! echo "$ac_t""defining CXXLIB_LIST to be $CXXLIB_LIST" 1>&4
  2314. ! echo "$ac_t""defining CXXLIB_PATH to be $CXXLIB_PATH" 1>&4
  2315.   
  2316.   
  2317.   
  2318. --- 2127,2137 ----
  2319.       -e 's/ [^ ]*\.o//g' \
  2320.       -e 's/^ *//' -e 's/ *$//' -e 's/  */:/g'`
  2321.   
  2322. ! /bin/echo "$ac_t""defining FLIB_LIST to be $FLIB_LIST" 1>&4
  2323. ! /bin/echo "$ac_t""defining FLIB_PATH to be $FLIB_PATH" 1>&4
  2324.   
  2325. ! /bin/echo "$ac_t""defining CXXLIB_LIST to be $CXXLIB_LIST" 1>&4
  2326. ! /bin/echo "$ac_t""defining CXXLIB_PATH to be $CXXLIB_PATH" 1>&4
  2327.   
  2328.   
  2329.   
  2330. ***************
  2331. *** 2136,2147 ****
  2332.   
  2333.   ### Checks for header files.
  2334.   
  2335. ! echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  2336.   if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  2337. !   echo $ac_n "(cached) $ac_c" 1>&4
  2338.   else
  2339.     cat > conftest.$ac_ext <<EOF
  2340. ! #line 2145 "configure"
  2341.   #include "confdefs.h"
  2342.   #include <stdlib.h>
  2343.   #include <stdarg.h>
  2344. --- 2141,2152 ----
  2345.   
  2346.   ### Checks for header files.
  2347.   
  2348. ! /bin/echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  2349.   if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  2350. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2351.   else
  2352.     cat > conftest.$ac_ext <<EOF
  2353. ! #line 2149 "configure"
  2354.   #include "confdefs.h"
  2355.   #include <stdlib.h>
  2356.   #include <stdarg.h>
  2357. ***************
  2358. *** 2154,2160 ****
  2359.     rm -rf conftest*
  2360.     ac_cv_header_stdc=yes
  2361.   else
  2362. !   echo "$ac_err" >&5
  2363.     rm -rf conftest*
  2364.     ac_cv_header_stdc=no
  2365.   fi
  2366. --- 2159,2165 ----
  2367.     rm -rf conftest*
  2368.     ac_cv_header_stdc=yes
  2369.   else
  2370. !   /bin/echo "$ac_err" >&5
  2371.     rm -rf conftest*
  2372.     ac_cv_header_stdc=no
  2373.   fi
  2374. ***************
  2375. *** 2163,2169 ****
  2376.   if test $ac_cv_header_stdc = yes; then
  2377.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2378.   cat > conftest.$ac_ext <<EOF
  2379. ! #line 2167 "configure"
  2380.   #include "confdefs.h"
  2381.   #include <string.h>
  2382.   EOF
  2383. --- 2168,2174 ----
  2384.   if test $ac_cv_header_stdc = yes; then
  2385.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2386.   cat > conftest.$ac_ext <<EOF
  2387. ! #line 2171 "configure"
  2388.   #include "confdefs.h"
  2389.   #include <string.h>
  2390.   EOF
  2391. ***************
  2392. *** 2181,2187 ****
  2393.   if test $ac_cv_header_stdc = yes; then
  2394.     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2395.   cat > conftest.$ac_ext <<EOF
  2396. ! #line 2185 "configure"
  2397.   #include "confdefs.h"
  2398.   #include <stdlib.h>
  2399.   EOF
  2400. --- 2186,2192 ----
  2401.   if test $ac_cv_header_stdc = yes; then
  2402.     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2403.   cat > conftest.$ac_ext <<EOF
  2404. ! #line 2189 "configure"
  2405.   #include "confdefs.h"
  2406.   #include <stdlib.h>
  2407.   EOF
  2408. ***************
  2409. *** 2202,2208 ****
  2410.     ac_cv_header_stdc=no
  2411.   else
  2412.   cat > conftest.$ac_ext <<EOF
  2413. ! #line 2206 "configure"
  2414.   #include "confdefs.h"
  2415.   #include <ctype.h>
  2416.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2417. --- 2207,2213 ----
  2418.     ac_cv_header_stdc=no
  2419.   else
  2420.   cat > conftest.$ac_ext <<EOF
  2421. ! #line 2210 "configure"
  2422.   #include "confdefs.h"
  2423.   #include <ctype.h>
  2424.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2425. ***************
  2426. *** 2223,2229 ****
  2427.   rm -fr conftest*
  2428.   fi
  2429.   fi
  2430. ! echo "$ac_t""$ac_cv_header_stdc" 1>&4
  2431.   if test $ac_cv_header_stdc = yes; then
  2432.     cat >> confdefs.h <<\EOF
  2433.   #define STDC_HEADERS 1
  2434. --- 2228,2234 ----
  2435.   rm -fr conftest*
  2436.   fi
  2437.   fi
  2438. ! /bin/echo "$ac_t""$ac_cv_header_stdc" 1>&4
  2439.   if test $ac_cv_header_stdc = yes; then
  2440.     cat >> confdefs.h <<\EOF
  2441.   #define STDC_HEADERS 1
  2442. ***************
  2443. *** 2233,2245 ****
  2444.   
  2445.   for ac_hdr in assert.h float.h limits.h memory.h pwd.h stdlib.h
  2446.   do
  2447. ! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2448. ! echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  2449.   if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2450. !   echo $ac_n "(cached) $ac_c" 1>&4
  2451.   else
  2452.     cat > conftest.$ac_ext <<EOF
  2453. ! #line 2243 "configure"
  2454.   #include "confdefs.h"
  2455.   #include <$ac_hdr>
  2456.   EOF
  2457. --- 2238,2250 ----
  2458.   
  2459.   for ac_hdr in assert.h float.h limits.h memory.h pwd.h stdlib.h
  2460.   do
  2461. ! ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  2462. ! /bin/echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  2463.   if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2464. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2465.   else
  2466.     cat > conftest.$ac_ext <<EOF
  2467. ! #line 2247 "configure"
  2468.   #include "confdefs.h"
  2469.   #include <$ac_hdr>
  2470.   EOF
  2471. ***************
  2472. *** 2249,2281 ****
  2473.     rm -rf conftest*
  2474.     eval "ac_cv_header_$ac_safe=yes"
  2475.   else
  2476. !   echo "$ac_err" >&5
  2477.     rm -rf conftest*
  2478.     eval "ac_cv_header_$ac_safe=no"
  2479.   fi
  2480.   rm -f conftest*
  2481.   fi
  2482.   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2483. !   echo "$ac_t""yes" 1>&4
  2484. !     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  2485.     cat >> confdefs.h <<EOF
  2486.   #define $ac_tr_hdr 1
  2487.   EOF
  2488.    
  2489.   else
  2490. !   echo "$ac_t""no" 1>&4
  2491.   fi
  2492.   done
  2493.   
  2494.   for ac_hdr in string.h varargs.h unistd.h floatingpoint.h
  2495.   do
  2496. ! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2497. ! echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  2498.   if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2499. !   echo $ac_n "(cached) $ac_c" 1>&4
  2500.   else
  2501.     cat > conftest.$ac_ext <<EOF
  2502. ! #line 2279 "configure"
  2503.   #include "confdefs.h"
  2504.   #include <$ac_hdr>
  2505.   EOF
  2506. --- 2254,2286 ----
  2507.     rm -rf conftest*
  2508.     eval "ac_cv_header_$ac_safe=yes"
  2509.   else
  2510. !   /bin/echo "$ac_err" >&5
  2511.     rm -rf conftest*
  2512.     eval "ac_cv_header_$ac_safe=no"
  2513.   fi
  2514.   rm -f conftest*
  2515.   fi
  2516.   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2517. !   /bin/echo "$ac_t""yes" 1>&4
  2518. !     ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  2519.     cat >> confdefs.h <<EOF
  2520.   #define $ac_tr_hdr 1
  2521.   EOF
  2522.    
  2523.   else
  2524. !   /bin/echo "$ac_t""no" 1>&4
  2525.   fi
  2526.   done
  2527.   
  2528.   for ac_hdr in string.h varargs.h unistd.h floatingpoint.h
  2529.   do
  2530. ! ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  2531. ! /bin/echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  2532.   if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2533. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2534.   else
  2535.     cat > conftest.$ac_ext <<EOF
  2536. ! #line 2283 "configure"
  2537.   #include "confdefs.h"
  2538.   #include <$ac_hdr>
  2539.   EOF
  2540. ***************
  2541. *** 2285,2317 ****
  2542.     rm -rf conftest*
  2543.     eval "ac_cv_header_$ac_safe=yes"
  2544.   else
  2545. !   echo "$ac_err" >&5
  2546.     rm -rf conftest*
  2547.     eval "ac_cv_header_$ac_safe=no"
  2548.   fi
  2549.   rm -f conftest*
  2550.   fi
  2551.   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2552. !   echo "$ac_t""yes" 1>&4
  2553. !     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  2554.     cat >> confdefs.h <<EOF
  2555.   #define $ac_tr_hdr 1
  2556.   EOF
  2557.    
  2558.   else
  2559. !   echo "$ac_t""no" 1>&4
  2560.   fi
  2561.   done
  2562.   
  2563.   for ac_hdr in sys/utsname.h sys/time.h sys/fcntl.h
  2564.   do
  2565. ! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2566. ! echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  2567.   if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2568. !   echo $ac_n "(cached) $ac_c" 1>&4
  2569.   else
  2570.     cat > conftest.$ac_ext <<EOF
  2571. ! #line 2315 "configure"
  2572.   #include "confdefs.h"
  2573.   #include <$ac_hdr>
  2574.   EOF
  2575. --- 2290,2322 ----
  2576.     rm -rf conftest*
  2577.     eval "ac_cv_header_$ac_safe=yes"
  2578.   else
  2579. !   /bin/echo "$ac_err" >&5
  2580.     rm -rf conftest*
  2581.     eval "ac_cv_header_$ac_safe=no"
  2582.   fi
  2583.   rm -f conftest*
  2584.   fi
  2585.   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2586. !   /bin/echo "$ac_t""yes" 1>&4
  2587. !     ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  2588.     cat >> confdefs.h <<EOF
  2589.   #define $ac_tr_hdr 1
  2590.   EOF
  2591.    
  2592.   else
  2593. !   /bin/echo "$ac_t""no" 1>&4
  2594.   fi
  2595.   done
  2596.   
  2597.   for ac_hdr in sys/utsname.h sys/time.h sys/fcntl.h
  2598.   do
  2599. ! ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  2600. ! /bin/echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  2601.   if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2602. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2603.   else
  2604.     cat > conftest.$ac_ext <<EOF
  2605. ! #line 2319 "configure"
  2606.   #include "confdefs.h"
  2607.   #include <$ac_hdr>
  2608.   EOF
  2609. ***************
  2610. *** 2321,2353 ****
  2611.     rm -rf conftest*
  2612.     eval "ac_cv_header_$ac_safe=yes"
  2613.   else
  2614. !   echo "$ac_err" >&5
  2615.     rm -rf conftest*
  2616.     eval "ac_cv_header_$ac_safe=no"
  2617.   fi
  2618.   rm -f conftest*
  2619.   fi
  2620.   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2621. !   echo "$ac_t""yes" 1>&4
  2622. !     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  2623.     cat >> confdefs.h <<EOF
  2624.   #define $ac_tr_hdr 1
  2625.   EOF
  2626.    
  2627.   else
  2628. !   echo "$ac_t""no" 1>&4
  2629.   fi
  2630.   done
  2631.   
  2632.   for ac_hdr in sys/ttold.h sys/ptem.h sys/select.h sys/resource.h
  2633.   do
  2634. ! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2635. ! echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  2636.   if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2637. !   echo $ac_n "(cached) $ac_c" 1>&4
  2638.   else
  2639.     cat > conftest.$ac_ext <<EOF
  2640. ! #line 2351 "configure"
  2641.   #include "confdefs.h"
  2642.   #include <$ac_hdr>
  2643.   EOF
  2644. --- 2326,2358 ----
  2645.     rm -rf conftest*
  2646.     eval "ac_cv_header_$ac_safe=yes"
  2647.   else
  2648. !   /bin/echo "$ac_err" >&5
  2649.     rm -rf conftest*
  2650.     eval "ac_cv_header_$ac_safe=no"
  2651.   fi
  2652.   rm -f conftest*
  2653.   fi
  2654.   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2655. !   /bin/echo "$ac_t""yes" 1>&4
  2656. !     ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  2657.     cat >> confdefs.h <<EOF
  2658.   #define $ac_tr_hdr 1
  2659.   EOF
  2660.    
  2661.   else
  2662. !   /bin/echo "$ac_t""no" 1>&4
  2663.   fi
  2664.   done
  2665.   
  2666.   for ac_hdr in sys/ttold.h sys/ptem.h sys/select.h sys/resource.h
  2667.   do
  2668. ! ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  2669. ! /bin/echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  2670.   if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2671. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2672.   else
  2673.     cat > conftest.$ac_ext <<EOF
  2674. ! #line 2355 "configure"
  2675.   #include "confdefs.h"
  2676.   #include <$ac_hdr>
  2677.   EOF
  2678. ***************
  2679. *** 2357,2390 ****
  2680.     rm -rf conftest*
  2681.     eval "ac_cv_header_$ac_safe=yes"
  2682.   else
  2683. !   echo "$ac_err" >&5
  2684.     rm -rf conftest*
  2685.     eval "ac_cv_header_$ac_safe=no"
  2686.   fi
  2687.   rm -f conftest*
  2688.   fi
  2689.   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2690. !   echo "$ac_t""yes" 1>&4
  2691. !     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  2692.     cat >> confdefs.h <<EOF
  2693.   #define $ac_tr_hdr 1
  2694.   EOF
  2695.    
  2696.   else
  2697. !   echo "$ac_t""no" 1>&4
  2698.   fi
  2699.   done
  2700.   
  2701.   ac_header_dirent=no
  2702.   for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  2703.   do
  2704. ! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2705. ! echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&4
  2706.   if eval "test \"`echo '${'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  2707. !   echo $ac_n "(cached) $ac_c" 1>&4
  2708.   else
  2709.     cat > conftest.$ac_ext <<EOF
  2710. ! #line 2388 "configure"
  2711.   #include "confdefs.h"
  2712.   #include <sys/types.h>
  2713.   #include <$ac_hdr>
  2714. --- 2362,2395 ----
  2715.     rm -rf conftest*
  2716.     eval "ac_cv_header_$ac_safe=yes"
  2717.   else
  2718. !   /bin/echo "$ac_err" >&5
  2719.     rm -rf conftest*
  2720.     eval "ac_cv_header_$ac_safe=no"
  2721.   fi
  2722.   rm -f conftest*
  2723.   fi
  2724.   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2725. !   /bin/echo "$ac_t""yes" 1>&4
  2726. !     ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  2727.     cat >> confdefs.h <<EOF
  2728.   #define $ac_tr_hdr 1
  2729.   EOF
  2730.    
  2731.   else
  2732. !   /bin/echo "$ac_t""no" 1>&4
  2733.   fi
  2734.   done
  2735.   
  2736.   ac_header_dirent=no
  2737.   for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  2738.   do
  2739. ! ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  2740. ! /bin/echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&4
  2741.   if eval "test \"`echo '${'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  2742. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2743.   else
  2744.     cat > conftest.$ac_ext <<EOF
  2745. ! #line 2392 "configure"
  2746.   #include "confdefs.h"
  2747.   #include <sys/types.h>
  2748.   #include <$ac_hdr>
  2749. ***************
  2750. *** 2403,2429 ****
  2751.   rm -f conftest*
  2752.   
  2753.   fi
  2754. ! if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  2755. !   echo "$ac_t""yes" 1>&4
  2756. !     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  2757.     cat >> confdefs.h <<EOF
  2758.   #define $ac_tr_hdr 1
  2759.   EOF
  2760.    ac_header_dirent=$ac_hdr; break
  2761.   else
  2762. !   echo "$ac_t""no" 1>&4
  2763.   fi
  2764.   done
  2765.   # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  2766.   if test $ac_header_dirent = dirent.h; then
  2767. ! echo $ac_n "checking for -ldir""... $ac_c" 1>&4
  2768.   if eval "test \"`echo '${'ac_cv_lib_dir'+set}'`\" = set"; then
  2769. !   echo $ac_n "(cached) $ac_c" 1>&4
  2770.   else
  2771.     ac_save_LIBS="$LIBS"
  2772.   LIBS="$LIBS -ldir "
  2773.   cat > conftest.$ac_ext <<EOF
  2774. ! #line 2427 "configure"
  2775.   #include "confdefs.h"
  2776.   
  2777.   int main() { return 0; }
  2778. --- 2408,2434 ----
  2779.   rm -f conftest*
  2780.   
  2781.   fi
  2782. ! if eval "test \"`/bin/echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  2783. !   /bin/echo "$ac_t""yes" 1>&4
  2784. !     ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  2785.     cat >> confdefs.h <<EOF
  2786.   #define $ac_tr_hdr 1
  2787.   EOF
  2788.    ac_header_dirent=$ac_hdr; break
  2789.   else
  2790. !   /bin/echo "$ac_t""no" 1>&4
  2791.   fi
  2792.   done
  2793.   # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  2794.   if test $ac_header_dirent = dirent.h; then
  2795. ! /bin/echo $ac_n "checking for -ldir""... $ac_c" 1>&4
  2796.   if eval "test \"`echo '${'ac_cv_lib_dir'+set}'`\" = set"; then
  2797. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2798.   else
  2799.     ac_save_LIBS="$LIBS"
  2800.   LIBS="$LIBS -ldir "
  2801.   cat > conftest.$ac_ext <<EOF
  2802. ! #line 2431 "configure"
  2803.   #include "confdefs.h"
  2804.   
  2805.   int main() { return 0; }
  2806. ***************
  2807. *** 2443,2463 ****
  2808.   
  2809.   fi
  2810.   if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
  2811. !   echo "$ac_t""yes" 1>&4
  2812.     LIBS="$LIBS -ldir"
  2813.   else
  2814. !   echo "$ac_t""no" 1>&4
  2815.   fi
  2816.   
  2817.   else
  2818. ! echo $ac_n "checking for -lx""... $ac_c" 1>&4
  2819.   if eval "test \"`echo '${'ac_cv_lib_x'+set}'`\" = set"; then
  2820. !   echo $ac_n "(cached) $ac_c" 1>&4
  2821.   else
  2822.     ac_save_LIBS="$LIBS"
  2823.   LIBS="$LIBS -lx "
  2824.   cat > conftest.$ac_ext <<EOF
  2825. ! #line 2461 "configure"
  2826.   #include "confdefs.h"
  2827.   
  2828.   int main() { return 0; }
  2829. --- 2448,2468 ----
  2830.   
  2831.   fi
  2832.   if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
  2833. !   /bin/echo "$ac_t""yes" 1>&4
  2834.     LIBS="$LIBS -ldir"
  2835.   else
  2836. !   /bin/echo "$ac_t""no" 1>&4
  2837.   fi
  2838.   
  2839.   else
  2840. ! /bin/echo $ac_n "checking for -lx""... $ac_c" 1>&4
  2841.   if eval "test \"`echo '${'ac_cv_lib_x'+set}'`\" = set"; then
  2842. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2843.   else
  2844.     ac_save_LIBS="$LIBS"
  2845.   LIBS="$LIBS -lx "
  2846.   cat > conftest.$ac_ext <<EOF
  2847. ! #line 2465 "configure"
  2848.   #include "confdefs.h"
  2849.   
  2850.   int main() { return 0; }
  2851. ***************
  2852. *** 2477,2496 ****
  2853.   
  2854.   fi
  2855.   if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
  2856. !   echo "$ac_t""yes" 1>&4
  2857.     LIBS="$LIBS -lx"
  2858.   else
  2859. !   echo "$ac_t""no" 1>&4
  2860.   fi
  2861.   
  2862.   fi
  2863.   
  2864. ! echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&4
  2865.   if eval "test \"`echo '${'ac_cv_header_time'+set}'`\" = set"; then
  2866. !   echo $ac_n "(cached) $ac_c" 1>&4
  2867.   else
  2868.     cat > conftest.$ac_ext <<EOF
  2869. ! #line 2494 "configure"
  2870.   #include "confdefs.h"
  2871.   #include <sys/types.h>
  2872.   #include <sys/time.h>
  2873. --- 2482,2501 ----
  2874.   
  2875.   fi
  2876.   if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
  2877. !   /bin/echo "$ac_t""yes" 1>&4
  2878.     LIBS="$LIBS -lx"
  2879.   else
  2880. !   /bin/echo "$ac_t""no" 1>&4
  2881.   fi
  2882.   
  2883.   fi
  2884.   
  2885. ! /bin/echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&4
  2886.   if eval "test \"`echo '${'ac_cv_header_time'+set}'`\" = set"; then
  2887. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2888.   else
  2889.     cat > conftest.$ac_ext <<EOF
  2890. ! #line 2498 "configure"
  2891.   #include "confdefs.h"
  2892.   #include <sys/types.h>
  2893.   #include <sys/time.h>
  2894. ***************
  2895. *** 2510,2516 ****
  2896.   rm -f conftest*
  2897.   
  2898.   fi
  2899. ! echo "$ac_t""$ac_cv_header_time" 1>&4
  2900.   if test $ac_cv_header_time = yes; then
  2901.     cat >> confdefs.h <<\EOF
  2902.   #define TIME_WITH_SYS_TIME 1
  2903. --- 2515,2521 ----
  2904.   rm -f conftest*
  2905.   
  2906.   fi
  2907. ! /bin/echo "$ac_t""$ac_cv_header_time" 1>&4
  2908.   if test $ac_cv_header_time = yes; then
  2909.     cat >> confdefs.h <<\EOF
  2910.   #define TIME_WITH_SYS_TIME 1
  2911. ***************
  2912. *** 2525,2537 ****
  2913.   
  2914.   case "$canonical_host_type" in
  2915.     mips-dec-ultrix* | alpha-dec-osf*)
  2916. !     ac_safe=`echo "sgtty.h" | tr './\055' '___'`
  2917. ! echo $ac_n "checking for sgtty.h""... $ac_c" 1>&4
  2918.   if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2919. !   echo $ac_n "(cached) $ac_c" 1>&4
  2920.   else
  2921.     cat > conftest.$ac_ext <<EOF
  2922. ! #line 2535 "configure"
  2923.   #include "confdefs.h"
  2924.   #include <sgtty.h>
  2925.   EOF
  2926. --- 2530,2542 ----
  2927.   
  2928.   case "$canonical_host_type" in
  2929.     mips-dec-ultrix* | alpha-dec-osf*)
  2930. !     ac_safe=`/bin/echo "sgtty.h" | tr './\055' '___'`
  2931. ! /bin/echo $ac_n "checking for sgtty.h""... $ac_c" 1>&4
  2932.   if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2933. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  2934.   else
  2935.     cat > conftest.$ac_ext <<EOF
  2936. ! #line 2539 "configure"
  2937.   #include "confdefs.h"
  2938.   #include <sgtty.h>
  2939.   EOF
  2940. ***************
  2941. *** 2541,2573 ****
  2942.     rm -rf conftest*
  2943.     eval "ac_cv_header_$ac_safe=yes"
  2944.   else
  2945. !   echo "$ac_err" >&5
  2946.     rm -rf conftest*
  2947.     eval "ac_cv_header_$ac_safe=no"
  2948.   fi
  2949.   rm -f conftest*
  2950.   fi
  2951.   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2952. !   echo "$ac_t""yes" 1>&4
  2953.     cat >> confdefs.h <<\EOF
  2954.   #define HAVE_SGTTY_H 1
  2955.   EOF
  2956.   
  2957.   else
  2958. !   echo "$ac_t""no" 1>&4
  2959.   fi
  2960.   
  2961.   
  2962.       if test "$ac_cv_header_sgtty_h" = no; then
  2963.         for ac_hdr in termios.h termio.h sgtty.h
  2964.   do
  2965. ! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2966. ! echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  2967.   if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2968. !   echo $ac_n "(cached) $ac_c" 1>&4
  2969.   else
  2970.     cat > conftest.$ac_ext <<EOF
  2971. ! #line 2571 "configure"
  2972.   #include "confdefs.h"
  2973.   #include <$ac_hdr>
  2974.   EOF
  2975. --- 2546,2578 ----
  2976.     rm -rf conftest*
  2977.     eval "ac_cv_header_$ac_safe=yes"
  2978.   else
  2979. !   /bin/echo "$ac_err" >&5
  2980.     rm -rf conftest*
  2981.     eval "ac_cv_header_$ac_safe=no"
  2982.   fi
  2983.   rm -f conftest*
  2984.   fi
  2985.   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2986. !   /bin/echo "$ac_t""yes" 1>&4
  2987.     cat >> confdefs.h <<\EOF
  2988.   #define HAVE_SGTTY_H 1
  2989.   EOF
  2990.   
  2991.   else
  2992. !   /bin/echo "$ac_t""no" 1>&4
  2993.   fi
  2994.   
  2995.   
  2996.       if test "$ac_cv_header_sgtty_h" = no; then
  2997.         for ac_hdr in termios.h termio.h sgtty.h
  2998.   do
  2999. ! ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  3000. ! /bin/echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  3001.   if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3002. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3003.   else
  3004.     cat > conftest.$ac_ext <<EOF
  3005. ! #line 2575 "configure"
  3006.   #include "confdefs.h"
  3007.   #include <$ac_hdr>
  3008.   EOF
  3009. ***************
  3010. *** 2577,2597 ****
  3011.     rm -rf conftest*
  3012.     eval "ac_cv_header_$ac_safe=yes"
  3013.   else
  3014. !   echo "$ac_err" >&5
  3015.     rm -rf conftest*
  3016.     eval "ac_cv_header_$ac_safe=no"
  3017.   fi
  3018.   rm -f conftest*
  3019.   fi
  3020.   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3021. !   echo "$ac_t""yes" 1>&4
  3022. !     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  3023.     cat >> confdefs.h <<EOF
  3024.   #define $ac_tr_hdr 1
  3025.   EOF
  3026.    break
  3027.   else
  3028. !   echo "$ac_t""no" 1>&4
  3029.   fi
  3030.   done
  3031.   
  3032. --- 2582,2602 ----
  3033.     rm -rf conftest*
  3034.     eval "ac_cv_header_$ac_safe=yes"
  3035.   else
  3036. !   /bin/echo "$ac_err" >&5
  3037.     rm -rf conftest*
  3038.     eval "ac_cv_header_$ac_safe=no"
  3039.   fi
  3040.   rm -f conftest*
  3041.   fi
  3042.   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3043. !   /bin/echo "$ac_t""yes" 1>&4
  3044. !     ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  3045.     cat >> confdefs.h <<EOF
  3046.   #define $ac_tr_hdr 1
  3047.   EOF
  3048.    break
  3049.   else
  3050. !   /bin/echo "$ac_t""no" 1>&4
  3051.   fi
  3052.   done
  3053.   
  3054. ***************
  3055. *** 2600,2612 ****
  3056.     *)
  3057.       for ac_hdr in termios.h termio.h sgtty.h
  3058.   do
  3059. ! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  3060. ! echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  3061.   if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3062. !   echo $ac_n "(cached) $ac_c" 1>&4
  3063.   else
  3064.     cat > conftest.$ac_ext <<EOF
  3065. ! #line 2610 "configure"
  3066.   #include "confdefs.h"
  3067.   #include <$ac_hdr>
  3068.   EOF
  3069. --- 2605,2617 ----
  3070.     *)
  3071.       for ac_hdr in termios.h termio.h sgtty.h
  3072.   do
  3073. ! ac_safe=`/bin/echo "$ac_hdr" | tr './\055' '___'`
  3074. ! /bin/echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  3075.   if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3076. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3077.   else
  3078.     cat > conftest.$ac_ext <<EOF
  3079. ! #line 2614 "configure"
  3080.   #include "confdefs.h"
  3081.   #include <$ac_hdr>
  3082.   EOF
  3083. ***************
  3084. *** 2616,2636 ****
  3085.     rm -rf conftest*
  3086.     eval "ac_cv_header_$ac_safe=yes"
  3087.   else
  3088. !   echo "$ac_err" >&5
  3089.     rm -rf conftest*
  3090.     eval "ac_cv_header_$ac_safe=no"
  3091.   fi
  3092.   rm -f conftest*
  3093.   fi
  3094.   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3095. !   echo "$ac_t""yes" 1>&4
  3096. !     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  3097.     cat >> confdefs.h <<EOF
  3098.   #define $ac_tr_hdr 1
  3099.   EOF
  3100.    break
  3101.   else
  3102. !   echo "$ac_t""no" 1>&4
  3103.   fi
  3104.   done
  3105.   
  3106. --- 2621,2641 ----
  3107.     rm -rf conftest*
  3108.     eval "ac_cv_header_$ac_safe=yes"
  3109.   else
  3110. !   /bin/echo "$ac_err" >&5
  3111.     rm -rf conftest*
  3112.     eval "ac_cv_header_$ac_safe=no"
  3113.   fi
  3114.   rm -f conftest*
  3115.   fi
  3116.   if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3117. !   /bin/echo "$ac_t""yes" 1>&4
  3118. !     ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  3119.     cat >> confdefs.h <<EOF
  3120.   #define $ac_tr_hdr 1
  3121.   EOF
  3122.    break
  3123.   else
  3124. !   /bin/echo "$ac_t""no" 1>&4
  3125.   fi
  3126.   done
  3127.   
  3128. ***************
  3129. *** 2649,2660 ****
  3130.   
  3131.   for ac_func in setvbuf getcwd gethostname bzero bcopy rindex vfprintf vsprintf
  3132.   do
  3133. ! echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  3134.   if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3135. !   echo $ac_n "(cached) $ac_c" 1>&4
  3136.   else
  3137.     cat > conftest.$ac_ext <<EOF
  3138. ! #line 2658 "configure"
  3139.   #include "confdefs.h"
  3140.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  3141.   /* Override any gcc2 internal prototype to avoid an error.  */
  3142. --- 2654,2665 ----
  3143.   
  3144.   for ac_func in setvbuf getcwd gethostname bzero bcopy rindex vfprintf vsprintf
  3145.   do
  3146. ! /bin/echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  3147.   if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3148. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3149.   else
  3150.     cat > conftest.$ac_ext <<EOF
  3151. ! #line 2662 "configure"
  3152.   #include "confdefs.h"
  3153.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  3154.   /* Override any gcc2 internal prototype to avoid an error.  */
  3155. ***************
  3156. *** 2685,2709 ****
  3157.   
  3158.   fi
  3159.   if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3160. !   echo "$ac_t""yes" 1>&4
  3161. !     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  3162.     cat >> confdefs.h <<EOF
  3163.   #define $ac_tr_func 1
  3164.   EOF
  3165.    
  3166.   else
  3167. !   echo "$ac_t""no" 1>&4
  3168.   fi
  3169.   done
  3170.   
  3171.   for ac_func in stricmp strnicmp strcasecmp strncasecmp strerror atexit
  3172.   do
  3173. ! echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  3174.   if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3175. !   echo $ac_n "(cached) $ac_c" 1>&4
  3176.   else
  3177.     cat > conftest.$ac_ext <<EOF
  3178. ! #line 2707 "configure"
  3179.   #include "confdefs.h"
  3180.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  3181.   /* Override any gcc2 internal prototype to avoid an error.  */
  3182. --- 2690,2714 ----
  3183.   
  3184.   fi
  3185.   if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3186. !   /bin/echo "$ac_t""yes" 1>&4
  3187. !     ac_tr_func=HAVE_`/bin/echo $ac_func | tr '[a-z]' '[A-Z]'`
  3188.     cat >> confdefs.h <<EOF
  3189.   #define $ac_tr_func 1
  3190.   EOF
  3191.    
  3192.   else
  3193. !   /bin/echo "$ac_t""no" 1>&4
  3194.   fi
  3195.   done
  3196.   
  3197.   for ac_func in stricmp strnicmp strcasecmp strncasecmp strerror atexit
  3198.   do
  3199. ! /bin/echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  3200.   if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3201. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3202.   else
  3203.     cat > conftest.$ac_ext <<EOF
  3204. ! #line 2711 "configure"
  3205.   #include "confdefs.h"
  3206.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  3207.   /* Override any gcc2 internal prototype to avoid an error.  */
  3208. ***************
  3209. *** 2734,2758 ****
  3210.   
  3211.   fi
  3212.   if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3213. !   echo "$ac_t""yes" 1>&4
  3214. !     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  3215.     cat >> confdefs.h <<EOF
  3216.   #define $ac_tr_func 1
  3217.   EOF
  3218.    
  3219.   else
  3220. !   echo "$ac_t""no" 1>&4
  3221.   fi
  3222.   done
  3223.   
  3224.   for ac_func in on_exit tempnam memmove putenv gettimeofday getrusage
  3225.   do
  3226. ! echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  3227.   if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3228. !   echo $ac_n "(cached) $ac_c" 1>&4
  3229.   else
  3230.     cat > conftest.$ac_ext <<EOF
  3231. ! #line 2756 "configure"
  3232.   #include "confdefs.h"
  3233.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  3234.   /* Override any gcc2 internal prototype to avoid an error.  */
  3235. --- 2739,2763 ----
  3236.   
  3237.   fi
  3238.   if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3239. !   /bin/echo "$ac_t""yes" 1>&4
  3240. !     ac_tr_func=HAVE_`/bin/echo $ac_func | tr '[a-z]' '[A-Z]'`
  3241.     cat >> confdefs.h <<EOF
  3242.   #define $ac_tr_func 1
  3243.   EOF
  3244.    
  3245.   else
  3246. !   /bin/echo "$ac_t""no" 1>&4
  3247.   fi
  3248.   done
  3249.   
  3250.   for ac_func in on_exit tempnam memmove putenv gettimeofday getrusage
  3251.   do
  3252. ! /bin/echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  3253.   if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3254. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3255.   else
  3256.     cat > conftest.$ac_ext <<EOF
  3257. ! #line 2760 "configure"
  3258.   #include "confdefs.h"
  3259.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  3260.   /* Override any gcc2 internal prototype to avoid an error.  */
  3261. ***************
  3262. *** 2783,2796 ****
  3263.   
  3264.   fi
  3265.   if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3266. !   echo "$ac_t""yes" 1>&4
  3267. !     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  3268.     cat >> confdefs.h <<EOF
  3269.   #define $ac_tr_func 1
  3270.   EOF
  3271.    
  3272.   else
  3273. !   echo "$ac_t""no" 1>&4
  3274.   fi
  3275.   done
  3276.   
  3277. --- 2788,2801 ----
  3278.   
  3279.   fi
  3280.   if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3281. !   /bin/echo "$ac_t""yes" 1>&4
  3282. !     ac_tr_func=HAVE_`/bin/echo $ac_func | tr '[a-z]' '[A-Z]'`
  3283.     cat >> confdefs.h <<EOF
  3284.   #define $ac_tr_func 1
  3285.   EOF
  3286.    
  3287.   else
  3288. !   /bin/echo "$ac_t""no" 1>&4
  3289.   fi
  3290.   done
  3291.   
  3292. ***************
  3293. *** 2805,2818 ****
  3294.   ### are often available.  If they are missing, we try to replace them
  3295.   ### with functions from the BSD/NET2 math library.
  3296.   
  3297. ! echo $ac_n "checking for -lsunmath""... $ac_c" 1>&4
  3298.   if eval "test \"`echo '${'ac_cv_lib_sunmath'+set}'`\" = set"; then
  3299. !   echo $ac_n "(cached) $ac_c" 1>&4
  3300.   else
  3301.     ac_save_LIBS="$LIBS"
  3302.   LIBS="$LIBS -lsunmath "
  3303.   cat > conftest.$ac_ext <<EOF
  3304. ! #line 2816 "configure"
  3305.   #include "confdefs.h"
  3306.   
  3307.   int main() { return 0; }
  3308. --- 2810,2823 ----
  3309.   ### are often available.  If they are missing, we try to replace them
  3310.   ### with functions from the BSD/NET2 math library.
  3311.   
  3312. ! /bin/echo $ac_n "checking for -lsunmath""... $ac_c" 1>&4
  3313.   if eval "test \"`echo '${'ac_cv_lib_sunmath'+set}'`\" = set"; then
  3314. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3315.   else
  3316.     ac_save_LIBS="$LIBS"
  3317.   LIBS="$LIBS -lsunmath "
  3318.   cat > conftest.$ac_ext <<EOF
  3319. ! #line 2820 "configure"
  3320.   #include "confdefs.h"
  3321.   
  3322.   int main() { return 0; }
  3323. ***************
  3324. *** 2832,2839 ****
  3325.   
  3326.   fi
  3327.   if eval "test \"`echo '$ac_cv_lib_'sunmath`\" = yes"; then
  3328. !   echo "$ac_t""yes" 1>&4
  3329. !     ac_tr_lib=HAVE_LIB`echo sunmath | tr '[a-z]' '[A-Z]'`
  3330.     cat >> confdefs.h <<EOF
  3331.   #define $ac_tr_lib 1
  3332.   EOF
  3333. --- 2837,2844 ----
  3334.   
  3335.   fi
  3336.   if eval "test \"`echo '$ac_cv_lib_'sunmath`\" = yes"; then
  3337. !   /bin/echo "$ac_t""yes" 1>&4
  3338. !     ac_tr_lib=HAVE_LIB`/bin/echo sunmath | tr '[a-z]' '[A-Z]'`
  3339.     cat >> confdefs.h <<EOF
  3340.   #define $ac_tr_lib 1
  3341.   EOF
  3342. ***************
  3343. *** 2841,2861 ****
  3344.     LIBS="$LIBS -lsunmath"
  3345.   
  3346.   else
  3347. !   echo "$ac_t""no" 1>&4
  3348.   fi
  3349.   
  3350.   
  3351.   
  3352.   case "$canonical_host_type" in
  3353.     *-*-linux*)
  3354. !     echo $ac_n "checking for -lm""... $ac_c" 1>&4
  3355.   if eval "test \"`echo '${'ac_cv_lib_m'+set}'`\" = set"; then
  3356. !   echo $ac_n "(cached) $ac_c" 1>&4
  3357.   else
  3358.     ac_save_LIBS="$LIBS"
  3359.   LIBS="$LIBS -lm -lc"
  3360.   cat > conftest.$ac_ext <<EOF
  3361. ! #line 2859 "configure"
  3362.   #include "confdefs.h"
  3363.   
  3364.   int main() { return 0; }
  3365. --- 2846,2866 ----
  3366.     LIBS="$LIBS -lsunmath"
  3367.   
  3368.   else
  3369. !   /bin/echo "$ac_t""no" 1>&4
  3370.   fi
  3371.   
  3372.   
  3373.   
  3374.   case "$canonical_host_type" in
  3375.     *-*-linux*)
  3376. !     /bin/echo $ac_n "checking for -lm""... $ac_c" 1>&4
  3377.   if eval "test \"`echo '${'ac_cv_lib_m'+set}'`\" = set"; then
  3378. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3379.   else
  3380.     ac_save_LIBS="$LIBS"
  3381.   LIBS="$LIBS -lm -lc"
  3382.   cat > conftest.$ac_ext <<EOF
  3383. ! #line 2863 "configure"
  3384.   #include "confdefs.h"
  3385.   
  3386.   int main() { return 0; }
  3387. ***************
  3388. *** 2875,2882 ****
  3389.   
  3390.   fi
  3391.   if eval "test \"`echo '$ac_cv_lib_'m`\" = yes"; then
  3392. !   echo "$ac_t""yes" 1>&4
  3393. !     ac_tr_lib=HAVE_LIB`echo m | tr '[a-z]' '[A-Z]'`
  3394.     cat >> confdefs.h <<EOF
  3395.   #define $ac_tr_lib 1
  3396.   EOF
  3397. --- 2880,2887 ----
  3398.   
  3399.   fi
  3400.   if eval "test \"`echo '$ac_cv_lib_'m`\" = yes"; then
  3401. !   /bin/echo "$ac_t""yes" 1>&4
  3402. !     ac_tr_lib=HAVE_LIB`/bin/echo m | tr '[a-z]' '[A-Z]'`
  3403.     cat >> confdefs.h <<EOF
  3404.   #define $ac_tr_lib 1
  3405.   EOF
  3406. ***************
  3407. *** 2884,2902 ****
  3408.     LIBS="$LIBS -lm"
  3409.   
  3410.   else
  3411. !   echo "$ac_t""no" 1>&4
  3412.   fi
  3413.   
  3414.     ;;
  3415.     *)
  3416. !     echo $ac_n "checking for -lm""... $ac_c" 1>&4
  3417.   if eval "test \"`echo '${'ac_cv_lib_m'+set}'`\" = set"; then
  3418. !   echo $ac_n "(cached) $ac_c" 1>&4
  3419.   else
  3420.     ac_save_LIBS="$LIBS"
  3421.   LIBS="$LIBS -lm "
  3422.   cat > conftest.$ac_ext <<EOF
  3423. ! #line 2900 "configure"
  3424.   #include "confdefs.h"
  3425.   
  3426.   int main() { return 0; }
  3427. --- 2889,2907 ----
  3428.     LIBS="$LIBS -lm"
  3429.   
  3430.   else
  3431. !   /bin/echo "$ac_t""no" 1>&4
  3432.   fi
  3433.   
  3434.     ;;
  3435.     *)
  3436. !     /bin/echo $ac_n "checking for -lm""... $ac_c" 1>&4
  3437.   if eval "test \"`echo '${'ac_cv_lib_m'+set}'`\" = set"; then
  3438. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3439.   else
  3440.     ac_save_LIBS="$LIBS"
  3441.   LIBS="$LIBS -lm "
  3442.   cat > conftest.$ac_ext <<EOF
  3443. ! #line 2904 "configure"
  3444.   #include "confdefs.h"
  3445.   
  3446.   int main() { return 0; }
  3447. ***************
  3448. *** 2916,2923 ****
  3449.   
  3450.   fi
  3451.   if eval "test \"`echo '$ac_cv_lib_'m`\" = yes"; then
  3452. !   echo "$ac_t""yes" 1>&4
  3453. !     ac_tr_lib=HAVE_LIB`echo m | tr '[a-z]' '[A-Z]'`
  3454.     cat >> confdefs.h <<EOF
  3455.   #define $ac_tr_lib 1
  3456.   EOF
  3457. --- 2921,2928 ----
  3458.   
  3459.   fi
  3460.   if eval "test \"`echo '$ac_cv_lib_'m`\" = yes"; then
  3461. !   /bin/echo "$ac_t""yes" 1>&4
  3462. !     ac_tr_lib=HAVE_LIB`/bin/echo m | tr '[a-z]' '[A-Z]'`
  3463.     cat >> confdefs.h <<EOF
  3464.   #define $ac_tr_lib 1
  3465.   EOF
  3466. ***************
  3467. *** 2925,2931 ****
  3468.     LIBS="$LIBS -lm"
  3469.   
  3470.   else
  3471. !   echo "$ac_t""no" 1>&4
  3472.   fi
  3473.   
  3474.     ;;
  3475. --- 2930,2936 ----
  3476.     LIBS="$LIBS -lm"
  3477.   
  3478.   else
  3479. !   /bin/echo "$ac_t""no" 1>&4
  3480.   fi
  3481.   
  3482.     ;;
  3483. ***************
  3484. *** 2943,2954 ****
  3485.     *)
  3486.       for ac_func in finite isnan isinf infinity quiet_nan
  3487.   do
  3488. ! echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  3489.   if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3490. !   echo $ac_n "(cached) $ac_c" 1>&4
  3491.   else
  3492.     cat > conftest.$ac_ext <<EOF
  3493. ! #line 2952 "configure"
  3494.   #include "confdefs.h"
  3495.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  3496.   /* Override any gcc2 internal prototype to avoid an error.  */
  3497. --- 2948,2959 ----
  3498.     *)
  3499.       for ac_func in finite isnan isinf infinity quiet_nan
  3500.   do
  3501. ! /bin/echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  3502.   if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3503. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3504.   else
  3505.     cat > conftest.$ac_ext <<EOF
  3506. ! #line 2956 "configure"
  3507.   #include "confdefs.h"
  3508.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  3509.   /* Override any gcc2 internal prototype to avoid an error.  */
  3510. ***************
  3511. *** 2979,2992 ****
  3512.   
  3513.   fi
  3514.   if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3515. !   echo "$ac_t""yes" 1>&4
  3516. !     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  3517.     cat >> confdefs.h <<EOF
  3518.   #define $ac_tr_func 1
  3519.   EOF
  3520.    
  3521.   else
  3522. !   echo "$ac_t""no" 1>&4
  3523.   fi
  3524.   done
  3525.   
  3526. --- 2984,2997 ----
  3527.   
  3528.   fi
  3529.   if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3530. !   /bin/echo "$ac_t""yes" 1>&4
  3531. !     ac_tr_func=HAVE_`/bin/echo $ac_func | tr '[a-z]' '[A-Z]'`
  3532.     cat >> confdefs.h <<EOF
  3533.   #define $ac_tr_func 1
  3534.   EOF
  3535.    
  3536.   else
  3537. !   /bin/echo "$ac_t""no" 1>&4
  3538.   fi
  3539.   done
  3540.   
  3541. ***************
  3542. *** 2997,3008 ****
  3543.   
  3544.   for ac_func in acosh asinh atanh erf erfc lgamma
  3545.   do
  3546. ! echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  3547.   if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3548. !   echo $ac_n "(cached) $ac_c" 1>&4
  3549.   else
  3550.     cat > conftest.$ac_ext <<EOF
  3551. ! #line 3006 "configure"
  3552.   #include "confdefs.h"
  3553.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  3554.   /* Override any gcc2 internal prototype to avoid an error.  */
  3555. --- 3002,3013 ----
  3556.   
  3557.   for ac_func in acosh asinh atanh erf erfc lgamma
  3558.   do
  3559. ! /bin/echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  3560.   if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3561. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3562.   else
  3563.     cat > conftest.$ac_ext <<EOF
  3564. ! #line 3010 "configure"
  3565.   #include "confdefs.h"
  3566.   #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  3567.   /* Override any gcc2 internal prototype to avoid an error.  */
  3568. ***************
  3569. *** 3033,3053 ****
  3570.   
  3571.   fi
  3572.   if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3573. !   echo "$ac_t""yes" 1>&4
  3574. !     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  3575.     cat >> confdefs.h <<EOF
  3576.   #define $ac_tr_func 1
  3577.   EOF
  3578.    
  3579.   else
  3580. !   echo "$ac_t""no" 1>&4
  3581.   fi
  3582.   done
  3583.   
  3584.   
  3585. ! echo $ac_n "checking for signgam declaration in math.h""... $ac_c" 1>&4
  3586.   cat > conftest.$ac_ext <<EOF
  3587. ! #line 3051 "configure"
  3588.   #include "confdefs.h"
  3589.   #include <math.h>
  3590.   int main() { return 0; }
  3591. --- 3038,3058 ----
  3592.   
  3593.   fi
  3594.   if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3595. !   /bin/echo "$ac_t""yes" 1>&4
  3596. !     ac_tr_func=HAVE_`/bin/echo $ac_func | tr '[a-z]' '[A-Z]'`
  3597.     cat >> confdefs.h <<EOF
  3598.   #define $ac_tr_func 1
  3599.   EOF
  3600.    
  3601.   else
  3602. !   /bin/echo "$ac_t""no" 1>&4
  3603.   fi
  3604.   done
  3605.   
  3606.   
  3607. ! /bin/echo $ac_n "checking for signgam declaration in math.h""... $ac_c" 1>&4
  3608.   cat > conftest.$ac_ext <<EOF
  3609. ! #line 3055 "configure"
  3610.   #include "confdefs.h"
  3611.   #include <math.h>
  3612.   int main() { return 0; }
  3613. ***************
  3614. *** 3057,3070 ****
  3615.   EOF
  3616.   if eval $ac_link; then
  3617.     rm -rf conftest*
  3618. !   echo "$ac_t""yes" 1>&4
  3619.     cat >> confdefs.h <<\EOF
  3620.   #define SIGNGAM_DECLARED 1
  3621.   EOF
  3622.   
  3623.   else
  3624.     rm -rf conftest*
  3625. !   echo "$ac_t""no" 1>&4
  3626.   fi
  3627.   rm -f conftest*
  3628.   
  3629. --- 3062,3075 ----
  3630.   EOF
  3631.   if eval $ac_link; then
  3632.     rm -rf conftest*
  3633. !   /bin/echo "$ac_t""yes" 1>&4
  3634.     cat >> confdefs.h <<\EOF
  3635.   #define SIGNGAM_DECLARED 1
  3636.   EOF
  3637.   
  3638.   else
  3639.     rm -rf conftest*
  3640. !   /bin/echo "$ac_t""no" 1>&4
  3641.   fi
  3642.   rm -f conftest*
  3643.   
  3644. ***************
  3645. *** 3073,3084 ****
  3646.   
  3647.   ### Checks for OS specific cruft.
  3648.   
  3649. ! echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&4
  3650.   if eval "test \"`echo '${'ac_cv_struct_tm'+set}'`\" = set"; then
  3651. !   echo $ac_n "(cached) $ac_c" 1>&4
  3652.   else
  3653.     cat > conftest.$ac_ext <<EOF
  3654. ! #line 3082 "configure"
  3655.   #include "confdefs.h"
  3656.   #include <sys/types.h>
  3657.   #include <time.h>
  3658. --- 3078,3089 ----
  3659.   
  3660.   ### Checks for OS specific cruft.
  3661.   
  3662. ! /bin/echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&4
  3663.   if eval "test \"`echo '${'ac_cv_struct_tm'+set}'`\" = set"; then
  3664. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3665.   else
  3666.     cat > conftest.$ac_ext <<EOF
  3667. ! #line 3086 "configure"
  3668.   #include "confdefs.h"
  3669.   #include <sys/types.h>
  3670.   #include <time.h>
  3671. ***************
  3672. *** 3097,3103 ****
  3673.   rm -f conftest*
  3674.   
  3675.   fi
  3676. ! echo "$ac_t""$ac_cv_struct_tm" 1>&4
  3677.   if test $ac_cv_struct_tm = sys/time.h; then
  3678.     cat >> confdefs.h <<\EOF
  3679.   #define TM_IN_SYS_TIME 1
  3680. --- 3102,3108 ----
  3681.   rm -f conftest*
  3682.   
  3683.   fi
  3684. ! /bin/echo "$ac_t""$ac_cv_struct_tm" 1>&4
  3685.   if test $ac_cv_struct_tm = sys/time.h; then
  3686.     cat >> confdefs.h <<\EOF
  3687.   #define TM_IN_SYS_TIME 1
  3688. ***************
  3689. *** 3105,3123 ****
  3690.   
  3691.   fi
  3692.   
  3693. ! echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&4
  3694.   if eval "test \"`echo '${'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
  3695. !   echo $ac_n "(cached) $ac_c" 1>&4
  3696.   else
  3697.     if test "$cross_compiling" = yes; then
  3698.       { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3699.   else
  3700.   cat > conftest.$ac_ext <<EOF
  3701. ! #line 3117 "configure"
  3702.   #include "confdefs.h"
  3703.   #include <stdio.h>
  3704.   /* If setvbuf has the reversed format, exit 0. */
  3705.   main () {
  3706.     /* This call has the arguments reversed.
  3707.        A reversed system may check and see that the address of main
  3708.        is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
  3709. --- 3110,3135 ----
  3710.   
  3711.   fi
  3712.   
  3713. ! /bin/echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&4
  3714.   if eval "test \"`echo '${'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
  3715. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3716.   else
  3717.     if test "$cross_compiling" = yes; then
  3718.       { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3719.   else
  3720.   cat > conftest.$ac_ext <<EOF
  3721. ! #line 3121 "configure"
  3722.   #include "confdefs.h"
  3723.   #include <stdio.h>
  3724.   /* If setvbuf has the reversed format, exit 0. */
  3725.   main () {
  3726. + #ifdef __amigados__
  3727. +   /* AmigaDOS is a non-reversed system.  Instead of the test program
  3728. +      getting a segfault (no memory protection), it causes enforcer hits
  3729. +      or other nastiness, so don't run the test program, just exit with
  3730. +      status 1 to indicate that it is non-reversed.  -fnf */
  3731. +   exit(1);
  3732. + #endif
  3733.     /* This call has the arguments reversed.
  3734.        A reversed system may check and see that the address of main
  3735.        is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
  3736. ***************
  3737. *** 3137,3143 ****
  3738.   rm -fr conftest*
  3739.   rm -f core
  3740.   fi
  3741. ! echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&4
  3742.   if test $ac_cv_func_setvbuf_reversed = yes; then
  3743.     cat >> confdefs.h <<\EOF
  3744.   #define SETVBUF_REVERSED 1
  3745. --- 3149,3155 ----
  3746.   rm -fr conftest*
  3747.   rm -f core
  3748.   fi
  3749. ! /bin/echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&4
  3750.   if test $ac_cv_func_setvbuf_reversed = yes; then
  3751.     cat >> confdefs.h <<\EOF
  3752.   #define SETVBUF_REVERSED 1
  3753. ***************
  3754. *** 3147,3160 ****
  3755.   
  3756.   TERMLIBS=""
  3757.   for termlib in termcap terminfo curses termlib ; do
  3758. !   echo $ac_n "checking for -l${termlib}""... $ac_c" 1>&4
  3759.   if eval "test \"`echo '${'ac_cv_lib_${termlib}'+set}'`\" = set"; then
  3760. !   echo $ac_n "(cached) $ac_c" 1>&4
  3761.   else
  3762.     ac_save_LIBS="$LIBS"
  3763.   LIBS="$LIBS -l${termlib} "
  3764.   cat > conftest.$ac_ext <<EOF
  3765. ! #line 3158 "configure"
  3766.   #include "confdefs.h"
  3767.   
  3768.   int main() { return 0; }
  3769. --- 3159,3172 ----
  3770.   
  3771.   TERMLIBS=""
  3772.   for termlib in termcap terminfo curses termlib ; do
  3773. !   /bin/echo $ac_n "checking for -l${termlib}""... $ac_c" 1>&4
  3774.   if eval "test \"`echo '${'ac_cv_lib_${termlib}'+set}'`\" = set"; then
  3775. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3776.   else
  3777.     ac_save_LIBS="$LIBS"
  3778.   LIBS="$LIBS -l${termlib} "
  3779.   cat > conftest.$ac_ext <<EOF
  3780. ! #line 3169 "configure"
  3781.   #include "confdefs.h"
  3782.   
  3783.   int main() { return 0; }
  3784. ***************
  3785. *** 3174,3196 ****
  3786.   
  3787.   fi
  3788.   if eval "test \"`echo '$ac_cv_lib_'${termlib}`\" = yes"; then
  3789. !   echo "$ac_t""yes" 1>&4
  3790.     TERMLIBS="${TERMLIBS} -l${termlib}"
  3791.   else
  3792. !   echo "$ac_t""no" 1>&4
  3793.   fi
  3794.   
  3795.     case "${TERMLIBS}" in
  3796.       *-l${termlib}*)
  3797. !       echo "$ac_t""defining TERMLIBS to be $TERMLIBS" 1>&4
  3798.         break
  3799.       ;;
  3800.     esac
  3801.   done
  3802.   
  3803. ! echo $ac_n "checking for struct exception in math.h""... $ac_c" 1>&4
  3804.   cat > conftest.$ac_ext <<EOF
  3805. ! #line 3194 "configure"
  3806.   #include "confdefs.h"
  3807.   #include <math.h>
  3808.   int main() { return 0; }
  3809. --- 3186,3208 ----
  3810.   
  3811.   fi
  3812.   if eval "test \"`echo '$ac_cv_lib_'${termlib}`\" = yes"; then
  3813. !   /bin/echo "$ac_t""yes" 1>&4
  3814.     TERMLIBS="${TERMLIBS} -l${termlib}"
  3815.   else
  3816. !   /bin/echo "$ac_t""no" 1>&4
  3817.   fi
  3818.   
  3819.     case "${TERMLIBS}" in
  3820.       *-l${termlib}*)
  3821. !       /bin/echo "$ac_t""defining TERMLIBS to be $TERMLIBS" 1>&4
  3822.         break
  3823.       ;;
  3824.     esac
  3825.   done
  3826.   
  3827. ! /bin/echo $ac_n "checking for struct exception in math.h""... $ac_c" 1>&4
  3828.   cat > conftest.$ac_ext <<EOF
  3829. ! #line 3205 "configure"
  3830.   #include "confdefs.h"
  3831.   #include <math.h>
  3832.   int main() { return 0; }
  3833. ***************
  3834. *** 3200,3213 ****
  3835.   EOF
  3836.   if eval $ac_link; then
  3837.     rm -rf conftest*
  3838. !   echo "$ac_t""yes" 1>&4
  3839.     cat >> confdefs.h <<\EOF
  3840.   #define EXCEPTION_IN_MATH 1
  3841.   EOF
  3842.   
  3843.   else
  3844.     rm -rf conftest*
  3845. !   echo "$ac_t""no" 1>&4
  3846.   fi
  3847.   rm -f conftest*
  3848.   
  3849. --- 3212,3225 ----
  3850.   EOF
  3851.   if eval $ac_link; then
  3852.     rm -rf conftest*
  3853. !   /bin/echo "$ac_t""yes" 1>&4
  3854.     cat >> confdefs.h <<\EOF
  3855.   #define EXCEPTION_IN_MATH 1
  3856.   EOF
  3857.   
  3858.   else
  3859.     rm -rf conftest*
  3860. !   /bin/echo "$ac_t""no" 1>&4
  3861.   fi
  3862.   rm -f conftest*
  3863.   
  3864. ***************
  3865. *** 3216,3227 ****
  3866.   
  3867.   ### Signal stuff.
  3868.   
  3869. ! echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&4
  3870.   if eval "test \"`echo '${'ac_cv_type_signal'+set}'`\" = set"; then
  3871. !   echo $ac_n "(cached) $ac_c" 1>&4
  3872.   else
  3873.     cat > conftest.$ac_ext <<EOF
  3874. ! #line 3225 "configure"
  3875.   #include "confdefs.h"
  3876.   #include <sys/types.h>
  3877.   #include <signal.h>
  3878. --- 3228,3239 ----
  3879.   
  3880.   ### Signal stuff.
  3881.   
  3882. ! /bin/echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&4
  3883.   if eval "test \"`echo '${'ac_cv_type_signal'+set}'`\" = set"; then
  3884. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3885.   else
  3886.     cat > conftest.$ac_ext <<EOF
  3887. ! #line 3236 "configure"
  3888.   #include "confdefs.h"
  3889.   #include <sys/types.h>
  3890.   #include <signal.h>
  3891. ***************
  3892. *** 3244,3261 ****
  3893.   rm -f conftest*
  3894.   
  3895.   fi
  3896. ! echo "$ac_t""$ac_cv_type_signal" 1>&4
  3897.   cat >> confdefs.h <<EOF
  3898.   #define RETSIGTYPE $ac_cv_type_signal
  3899.   EOF
  3900.   
  3901.   
  3902. ! echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&4
  3903.   if eval "test \"`echo '${'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
  3904. !   echo $ac_n "(cached) $ac_c" 1>&4
  3905.   else
  3906.     cat > conftest.$ac_ext <<EOF
  3907. ! #line 3259 "configure"
  3908.   #include "confdefs.h"
  3909.   #include <sys/types.h>
  3910.   #include <signal.h>
  3911. --- 3256,3273 ----
  3912.   rm -f conftest*
  3913.   
  3914.   fi
  3915. ! /bin/echo "$ac_t""$ac_cv_type_signal" 1>&4
  3916.   cat >> confdefs.h <<EOF
  3917.   #define RETSIGTYPE $ac_cv_type_signal
  3918.   EOF
  3919.   
  3920.   
  3921. ! /bin/echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&4
  3922.   if eval "test \"`echo '${'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
  3923. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  3924.   else
  3925.     cat > conftest.$ac_ext <<EOF
  3926. ! #line 3270 "configure"
  3927.   #include "confdefs.h"
  3928.   #include <sys/types.h>
  3929.   #include <signal.h>
  3930. ***************
  3931. *** 3278,3284 ****
  3932.   rm -f conftest*
  3933.   
  3934.   fi
  3935. ! echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&4
  3936.   if test $ac_cv_decl_sys_siglist = yes; then
  3937.     cat >> confdefs.h <<\EOF
  3938.   #define SYS_SIGLIST_DECLARED 1
  3939. --- 3290,3296 ----
  3940.   rm -f conftest*
  3941.   
  3942.   fi
  3943. ! /bin/echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&4
  3944.   if test $ac_cv_decl_sys_siglist = yes; then
  3945.     cat >> confdefs.h <<\EOF
  3946.   #define SYS_SIGLIST_DECLARED 1
  3947. ***************
  3948. *** 3286,3294 ****
  3949.   
  3950.   fi
  3951.   
  3952. ! echo $ac_n "checking for sys_siglist variable""... $ac_c" 1>&4
  3953.   cat > conftest.$ac_ext <<EOF
  3954. ! #line 3292 "configure"
  3955.   #include "confdefs.h"
  3956.   #include <stdio.h>
  3957.   int main() { return 0; }
  3958. --- 3298,3306 ----
  3959.   
  3960.   fi
  3961.   
  3962. ! /bin/echo $ac_n "checking for sys_siglist variable""... $ac_c" 1>&4
  3963.   cat > conftest.$ac_ext <<EOF
  3964. ! #line 3303 "configure"
  3965.   #include "confdefs.h"
  3966.   #include <stdio.h>
  3967.   int main() { return 0; }
  3968. ***************
  3969. *** 3298,3311 ****
  3970.   EOF
  3971.   if eval $ac_link; then
  3972.     rm -rf conftest*
  3973. !   echo "$ac_t""yes" 1>&4
  3974.     cat >> confdefs.h <<\EOF
  3975.   #define HAVE_SYS_SIGLIST 1
  3976.   EOF
  3977.   
  3978.   else
  3979.     rm -rf conftest*
  3980. !   echo "$ac_t""no" 1>&4
  3981.   fi
  3982.   rm -f conftest*
  3983.   
  3984. --- 3310,3323 ----
  3985.   EOF
  3986.   if eval $ac_link; then
  3987.     rm -rf conftest*
  3988. !   /bin/echo "$ac_t""yes" 1>&4
  3989.     cat >> confdefs.h <<\EOF
  3990.   #define HAVE_SYS_SIGLIST 1
  3991.   EOF
  3992.   
  3993.   else
  3994.     rm -rf conftest*
  3995. !   /bin/echo "$ac_t""no" 1>&4
  3996.   fi
  3997.   rm -f conftest*
  3998.   
  3999. ***************
  4000. *** 3317,3323 ****
  4001.     ;;
  4002.     *)
  4003.       VOID_SIGHANDLER="-DVOID_SIGHANDLER=1"
  4004. !     echo "$ac_t""defining VOID_SIGHANDLER to be 1" 1>&4
  4005.     ;;
  4006.   esac
  4007.   
  4008. --- 3329,3335 ----
  4009.     ;;
  4010.     *)
  4011.       VOID_SIGHANDLER="-DVOID_SIGHANDLER=1"
  4012. !     /bin/echo "$ac_t""defining VOID_SIGHANDLER to be 1" 1>&4
  4013.     ;;
  4014.   esac
  4015.   
  4016. ***************
  4017. *** 3333,3341 ****
  4018.   
  4019.   # Extract the first word of "flex", so it can be a program name with args.
  4020.   set dummy flex; ac_word=$2
  4021. ! echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  4022.   if eval "test \"`echo '${'ac_cv_prog_LEX'+set}'`\" = set"; then
  4023. !   echo $ac_n "(cached) $ac_c" 1>&4
  4024.   else
  4025.     if test -n "$LEX"; then
  4026.     ac_cv_prog_LEX="$LEX" # Let the user override the test.
  4027. --- 3345,3353 ----
  4028.   
  4029.   # Extract the first word of "flex", so it can be a program name with args.
  4030.   set dummy flex; ac_word=$2
  4031. ! /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  4032.   if eval "test \"`echo '${'ac_cv_prog_LEX'+set}'`\" = set"; then
  4033. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4034.   else
  4035.     if test -n "$LEX"; then
  4036.     ac_cv_prog_LEX="$LEX" # Let the user override the test.
  4037. ***************
  4038. *** 3354,3362 ****
  4039.   fi
  4040.   LEX="$ac_cv_prog_LEX"
  4041.   if test -n "$LEX"; then
  4042. !   echo "$ac_t""$LEX" 1>&4
  4043.   else
  4044. !   echo "$ac_t""no" 1>&4
  4045.   fi
  4046.   
  4047.   if test -z "$LEXLIB"
  4048. --- 3366,3374 ----
  4049.   fi
  4050.   LEX="$ac_cv_prog_LEX"
  4051.   if test -n "$LEX"; then
  4052. !   /bin/echo "$ac_t""$LEX" 1>&4
  4053.   else
  4054. !   /bin/echo "$ac_t""no" 1>&4
  4055.   fi
  4056.   
  4057.   if test -z "$LEXLIB"
  4058. ***************
  4059. *** 3365,3378 ****
  4060.     flex*) ac_lib=fl ;;
  4061.     *) ac_lib=l ;;
  4062.     esac
  4063. !   echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&4
  4064.   if eval "test \"`echo '${'ac_cv_lib_$ac_lib'+set}'`\" = set"; then
  4065. !   echo $ac_n "(cached) $ac_c" 1>&4
  4066.   else
  4067.     ac_save_LIBS="$LIBS"
  4068.   LIBS="$LIBS -l$ac_lib "
  4069.   cat > conftest.$ac_ext <<EOF
  4070. ! #line 3376 "configure"
  4071.   #include "confdefs.h"
  4072.   
  4073.   int main() { return 0; }
  4074. --- 3377,3390 ----
  4075.     flex*) ac_lib=fl ;;
  4076.     *) ac_lib=l ;;
  4077.     esac
  4078. !   /bin/echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&4
  4079.   if eval "test \"`echo '${'ac_cv_lib_$ac_lib'+set}'`\" = set"; then
  4080. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4081.   else
  4082.     ac_save_LIBS="$LIBS"
  4083.   LIBS="$LIBS -l$ac_lib "
  4084.   cat > conftest.$ac_ext <<EOF
  4085. ! #line 3387 "configure"
  4086.   #include "confdefs.h"
  4087.   
  4088.   int main() { return 0; }
  4089. ***************
  4090. *** 3392,3401 ****
  4091.   
  4092.   fi
  4093.   if eval "test \"`echo '$ac_cv_lib_'$ac_lib`\" = yes"; then
  4094. !   echo "$ac_t""yes" 1>&4
  4095.     LEXLIB="-l$ac_lib"
  4096.   else
  4097. !   echo "$ac_t""no" 1>&4
  4098.   fi
  4099.   
  4100.   fi
  4101. --- 3404,3413 ----
  4102.   
  4103.   fi
  4104.   if eval "test \"`echo '$ac_cv_lib_'$ac_lib`\" = yes"; then
  4105. !   /bin/echo "$ac_t""yes" 1>&4
  4106.     LEXLIB="-l$ac_lib"
  4107.   else
  4108. !   /bin/echo "$ac_t""no" 1>&4
  4109.   fi
  4110.   
  4111.   fi
  4112. ***************
  4113. *** 3403,3414 ****
  4114.   case "$LEX" in
  4115.     flex*)
  4116.       LFLAGS="-t -I"
  4117. !     echo "$ac_t""defining LFLAGS to be $LFLAGS" 1>&4
  4118.       LEXLIB=
  4119.     ;;
  4120.     *)
  4121.       LFLAGS="-t"
  4122. !     echo "$ac_t""defining LFLAGS to be $LFLAGS" 1>&4
  4123.       echo "configure: warning: I didn't find flex, but that's only a problem" 1>&2
  4124.       echo "configure: warning: if you need to reconstruct lex.cc" 1>&2
  4125.     ;;
  4126. --- 3415,3426 ----
  4127.   case "$LEX" in
  4128.     flex*)
  4129.       LFLAGS="-t -I"
  4130. !     /bin/echo "$ac_t""defining LFLAGS to be $LFLAGS" 1>&4
  4131.       LEXLIB=
  4132.     ;;
  4133.     *)
  4134.       LFLAGS="-t"
  4135. !     /bin/echo "$ac_t""defining LFLAGS to be $LFLAGS" 1>&4
  4136.       echo "configure: warning: I didn't find flex, but that's only a problem" 1>&2
  4137.       echo "configure: warning: if you need to reconstruct lex.cc" 1>&2
  4138.     ;;
  4139. ***************
  4140. *** 3419,3427 ****
  4141.   do
  4142.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4143.   set dummy $ac_prog; ac_word=$2
  4144. ! echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  4145.   if eval "test \"`echo '${'ac_cv_prog_YACC'+set}'`\" = set"; then
  4146. !   echo $ac_n "(cached) $ac_c" 1>&4
  4147.   else
  4148.     if test -n "$YACC"; then
  4149.     ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4150. --- 3431,3439 ----
  4151.   do
  4152.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4153.   set dummy $ac_prog; ac_word=$2
  4154. ! /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  4155.   if eval "test \"`echo '${'ac_cv_prog_YACC'+set}'`\" = set"; then
  4156. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4157.   else
  4158.     if test -n "$YACC"; then
  4159.     ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4160. ***************
  4161. *** 3439,3447 ****
  4162.   fi
  4163.   YACC="$ac_cv_prog_YACC"
  4164.   if test -n "$YACC"; then
  4165. !   echo "$ac_t""$YACC" 1>&4
  4166.   else
  4167. !   echo "$ac_t""no" 1>&4
  4168.   fi
  4169.   
  4170.   test -n "$YACC" && break
  4171. --- 3451,3459 ----
  4172.   fi
  4173.   YACC="$ac_cv_prog_YACC"
  4174.   if test -n "$YACC"; then
  4175. !   /bin/echo "$ac_t""$YACC" 1>&4
  4176.   else
  4177. !   /bin/echo "$ac_t""no" 1>&4
  4178.   fi
  4179.   
  4180.   test -n "$YACC" && break
  4181. ***************
  4182. *** 3459,3467 ****
  4183.   
  4184.   # Extract the first word of "ranlib", so it can be a program name with args.
  4185.   set dummy ranlib; ac_word=$2
  4186. ! echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  4187.   if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  4188. !   echo $ac_n "(cached) $ac_c" 1>&4
  4189.   else
  4190.     if test -n "$RANLIB"; then
  4191.     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4192. --- 3471,3479 ----
  4193.   
  4194.   # Extract the first word of "ranlib", so it can be a program name with args.
  4195.   set dummy ranlib; ac_word=$2
  4196. ! /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  4197.   if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  4198. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4199.   else
  4200.     if test -n "$RANLIB"; then
  4201.     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4202. ***************
  4203. *** 3480,3496 ****
  4204.   fi
  4205.   RANLIB="$ac_cv_prog_RANLIB"
  4206.   if test -n "$RANLIB"; then
  4207. !   echo "$ac_t""$RANLIB" 1>&4
  4208.   else
  4209. !   echo "$ac_t""no" 1>&4
  4210.   fi
  4211.   
  4212.   
  4213.   # Extract the first word of "runtest", so it can be a program name with args.
  4214.   set dummy runtest; ac_word=$2
  4215. ! echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  4216.   if eval "test \"`echo '${'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
  4217. !   echo $ac_n "(cached) $ac_c" 1>&4
  4218.   else
  4219.     if test -n "$RUNTEST"; then
  4220.     ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
  4221. --- 3492,3508 ----
  4222.   fi
  4223.   RANLIB="$ac_cv_prog_RANLIB"
  4224.   if test -n "$RANLIB"; then
  4225. !   /bin/echo "$ac_t""$RANLIB" 1>&4
  4226.   else
  4227. !   /bin/echo "$ac_t""no" 1>&4
  4228.   fi
  4229.   
  4230.   
  4231.   # Extract the first word of "runtest", so it can be a program name with args.
  4232.   set dummy runtest; ac_word=$2
  4233. ! /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  4234.   if eval "test \"`echo '${'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
  4235. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4236.   else
  4237.     if test -n "$RUNTEST"; then
  4238.     ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
  4239. ***************
  4240. *** 3508,3523 ****
  4241.   fi
  4242.   RUNTEST="$ac_cv_prog_RUNTEST"
  4243.   if test -n "$RUNTEST"; then
  4244. !   echo "$ac_t""$RUNTEST" 1>&4
  4245.   else
  4246. !   echo "$ac_t""no" 1>&4
  4247.   fi
  4248.   
  4249.   # Extract the first word of "expect", so it can be a program name with args.
  4250.   set dummy expect; ac_word=$2
  4251. ! echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  4252.   if eval "test \"`echo '${'ac_cv_prog_EXPECT'+set}'`\" = set"; then
  4253. !   echo $ac_n "(cached) $ac_c" 1>&4
  4254.   else
  4255.     if test -n "$EXPECT"; then
  4256.     ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
  4257. --- 3520,3535 ----
  4258.   fi
  4259.   RUNTEST="$ac_cv_prog_RUNTEST"
  4260.   if test -n "$RUNTEST"; then
  4261. !   /bin/echo "$ac_t""$RUNTEST" 1>&4
  4262.   else
  4263. !   /bin/echo "$ac_t""no" 1>&4
  4264.   fi
  4265.   
  4266.   # Extract the first word of "expect", so it can be a program name with args.
  4267.   set dummy expect; ac_word=$2
  4268. ! /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  4269.   if eval "test \"`echo '${'ac_cv_prog_EXPECT'+set}'`\" = set"; then
  4270. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4271.   else
  4272.     if test -n "$EXPECT"; then
  4273.     ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
  4274. ***************
  4275. *** 3535,3543 ****
  4276.   fi
  4277.   EXPECT="$ac_cv_prog_EXPECT"
  4278.   if test -n "$EXPECT"; then
  4279. !   echo "$ac_t""$EXPECT" 1>&4
  4280.   else
  4281. !   echo "$ac_t""no" 1>&4
  4282.   fi
  4283.   
  4284.   if test -z "$EXPECT" ; then
  4285. --- 3547,3555 ----
  4286.   fi
  4287.   EXPECT="$ac_cv_prog_EXPECT"
  4288.   if test -n "$EXPECT"; then
  4289. !   /bin/echo "$ac_t""$EXPECT" 1>&4
  4290.   else
  4291. !   /bin/echo "$ac_t""no" 1>&4
  4292.   fi
  4293.   
  4294.   if test -z "$EXPECT" ; then
  4295. ***************
  4296. *** 3555,3569 ****
  4297.   # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4298.   # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4299.   # ./install, which can be erroneously created by make from ./install.sh.
  4300. ! echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  4301.   if test -z "$INSTALL"; then
  4302.   if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  4303. !   echo $ac_n "(cached) $ac_c" 1>&4
  4304.   else
  4305.       IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  4306.     for ac_dir in $PATH; do
  4307.       case "$ac_dir" in
  4308. !     ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
  4309.       *)
  4310.         # OSF1 and SCO ODT 3.0 have their own names for install.
  4311.         for ac_prog in ginstall installbsd scoinst install; do
  4312. --- 3567,3581 ----
  4313.   # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4314.   # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4315.   # ./install, which can be erroneously created by make from ./install.sh.
  4316. ! /bin/echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  4317.   if test -z "$INSTALL"; then
  4318.   if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  4319. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4320.   else
  4321.       IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  4322.     for ac_dir in $PATH; do
  4323.       case "$ac_dir" in
  4324. !     ''|.|/gnu/etc) ;;
  4325.       *)
  4326.         # OSF1 and SCO ODT 3.0 have their own names for install.
  4327.         for ac_prog in ginstall installbsd scoinst install; do
  4328. ***************
  4329. *** 3588,3594 ****
  4330.   fi
  4331.     INSTALL="$ac_cv_path_install"
  4332.   fi
  4333. ! echo "$ac_t""$INSTALL" 1>&4
  4334.   
  4335.   # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4336.   # It thinks the first close brace ends the variable substitution.
  4337. --- 3600,3606 ----
  4338.   fi
  4339.     INSTALL="$ac_cv_path_install"
  4340.   fi
  4341. ! /bin/echo "$ac_t""$INSTALL" 1>&4
  4342.   
  4343.   # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4344.   # It thinks the first close brace ends the variable substitution.
  4345. ***************
  4346. *** 3599,3607 ****
  4347.   
  4348.   # Extract the first word of "gnuplot", so it can be a program name with args.
  4349.   set dummy gnuplot; ac_word=$2
  4350. ! echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  4351.   if eval "test \"`echo '${'ac_cv_prog_GNUPLOT_BINARY'+set}'`\" = set"; then
  4352. !   echo $ac_n "(cached) $ac_c" 1>&4
  4353.   else
  4354.     if test -n "$GNUPLOT_BINARY"; then
  4355.     ac_cv_prog_GNUPLOT_BINARY="$GNUPLOT_BINARY" # Let the user override the test.
  4356. --- 3611,3619 ----
  4357.   
  4358.   # Extract the first word of "gnuplot", so it can be a program name with args.
  4359.   set dummy gnuplot; ac_word=$2
  4360. ! /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  4361.   if eval "test \"`echo '${'ac_cv_prog_GNUPLOT_BINARY'+set}'`\" = set"; then
  4362. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4363.   else
  4364.     if test -n "$GNUPLOT_BINARY"; then
  4365.     ac_cv_prog_GNUPLOT_BINARY="$GNUPLOT_BINARY" # Let the user override the test.
  4366. ***************
  4367. *** 3619,3627 ****
  4368.   fi
  4369.   GNUPLOT_BINARY="$ac_cv_prog_GNUPLOT_BINARY"
  4370.   if test -n "$GNUPLOT_BINARY"; then
  4371. !   echo "$ac_t""$GNUPLOT_BINARY" 1>&4
  4372.   else
  4373. !   echo "$ac_t""no" 1>&4
  4374.   fi
  4375.   
  4376.   if test -z "$GNUPLOT_BINARY"; then
  4377. --- 3631,3639 ----
  4378.   fi
  4379.   GNUPLOT_BINARY="$ac_cv_prog_GNUPLOT_BINARY"
  4380.   if test -n "$GNUPLOT_BINARY"; then
  4381. !   /bin/echo "$ac_t""$GNUPLOT_BINARY" 1>&4
  4382.   else
  4383. !   /bin/echo "$ac_t""no" 1>&4
  4384.   fi
  4385.   
  4386.   if test -z "$GNUPLOT_BINARY"; then
  4387. ***************
  4388. *** 3641,3649 ****
  4389.   do
  4390.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4391.   set dummy $ac_prog; ac_word=$2
  4392. ! echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  4393.   if eval "test \"`echo '${'ac_cv_prog_DEFAULT_PAGER'+set}'`\" = set"; then
  4394. !   echo $ac_n "(cached) $ac_c" 1>&4
  4395.   else
  4396.     if test -n "$DEFAULT_PAGER"; then
  4397.     ac_cv_prog_DEFAULT_PAGER="$DEFAULT_PAGER" # Let the user override the test.
  4398. --- 3653,3661 ----
  4399.   do
  4400.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4401.   set dummy $ac_prog; ac_word=$2
  4402. ! /bin/echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  4403.   if eval "test \"`echo '${'ac_cv_prog_DEFAULT_PAGER'+set}'`\" = set"; then
  4404. !   /bin/echo $ac_n "(cached) $ac_c" 1>&4
  4405.   else
  4406.     if test -n "$DEFAULT_PAGER"; then
  4407.     ac_cv_prog_DEFAULT_PAGER="$DEFAULT_PAGER" # Let the user override the test.
  4408. ***************
  4409. *** 3661,3669 ****
  4410.   fi
  4411.   DEFAULT_PAGER="$ac_cv_prog_DEFAULT_PAGER"
  4412.   if test -n "$DEFAULT_PAGER"; then
  4413. !   echo "$ac_t""$DEFAULT_PAGER" 1>&4
  4414.   else
  4415. !   echo "$ac_t""no" 1>&4
  4416.   fi
  4417.   
  4418.   test -n "$DEFAULT_PAGER" && break
  4419. --- 3673,3681 ----
  4420.   fi
  4421.   DEFAULT_PAGER="$ac_cv_prog_DEFAULT_PAGER"
  4422.   if test -n "$DEFAULT_PAGER"; then
  4423. !   /bin/echo "$ac_t""$DEFAULT_PAGER" 1>&4
  4424.   else
  4425. !   /bin/echo "$ac_t""no" 1>&4
  4426.   fi
  4427.   
  4428.   test -n "$DEFAULT_PAGER" && break
  4429. ***************
  4430. *** 3673,3679 ****
  4431.     echo "configure: warning: I couldn't find `less', `more', `page', or `pg'" 1>&2
  4432.   elif test "$DEFAULT_PAGER" = less; then
  4433.     DEFAULT_PAGER="less -e"
  4434. !   echo "$ac_t""defining DEFAULT_PAGER to be $DEFAULT_PAGER" 1>&4
  4435.   fi
  4436.   
  4437.   ### Even though we include config.h in most files, some need to be
  4438. --- 3685,3691 ----
  4439.     echo "configure: warning: I couldn't find `less', `more', `page', or `pg'" 1>&2
  4440.   elif test "$DEFAULT_PAGER" = less; then
  4441.     DEFAULT_PAGER="less -e"
  4442. !   /bin/echo "$ac_t""defining DEFAULT_PAGER to be $DEFAULT_PAGER" 1>&4
  4443.   fi
  4444.   
  4445.   ### Even though we include config.h in most files, some need to be
  4446. ***************
  4447. *** 3694,3700 ****
  4448.   rm -f conftest.defs
  4449.   
  4450.   UGLY_DEFS="$DEFS"
  4451. ! echo "$ac_t""defining UGLY_DEFS to be $UGLY_DEFS" 1>&4
  4452.   
  4453.   
  4454.   ### Maybe add -Wall to compiler flags now that we're done feature
  4455. --- 3706,3712 ----
  4456.   rm -f conftest.defs
  4457.   
  4458.   UGLY_DEFS="$DEFS"
  4459. ! /bin/echo "$ac_t""defining UGLY_DEFS to be $UGLY_DEFS" 1>&4
  4460.   
  4461.   
  4462.   ### Maybe add -Wall to compiler flags now that we're done feature
  4463. ***************
  4464. *** 3722,3732 ****
  4465.   
  4466.   if $ADD_CXX_WALL; then
  4467.     CXXFLAGS="$CXXFLAGS -Wall"
  4468. !   echo "$ac_t""adding -Wall to CXXFLAGS" 1>&4
  4469.   fi
  4470.   if $ADD_CC_WALL; then
  4471.     CFLAGS="$CFLAGS -Wall"
  4472. !   echo "$ac_t""adding -Wall to CFLAGS" 1>&4
  4473.   fi
  4474.   
  4475.   ### Do the substitutions in all the Makefiles.
  4476. --- 3734,3744 ----
  4477.   
  4478.   if $ADD_CXX_WALL; then
  4479.     CXXFLAGS="$CXXFLAGS -Wall"
  4480. !   /bin/echo "$ac_t""adding -Wall to CXXFLAGS" 1>&4
  4481.   fi
  4482.   if $ADD_CC_WALL; then
  4483.     CFLAGS="$CFLAGS -Wall"
  4484. !   /bin/echo "$ac_t""adding -Wall to CFLAGS" 1>&4
  4485.   fi
  4486.   
  4487.   ### Do the substitutions in all the Makefiles.
  4488. ***************
  4489. *** 3783,3789 ****
  4490.   : ${CONFIG_STATUS=./config.status}
  4491.   
  4492.   echo creating $CONFIG_STATUS
  4493. ! rm -f $CONFIG_STATUS
  4494.   cat > $CONFIG_STATUS <<EOF
  4495.   #!/bin/sh
  4496.   # Generated automatically by configure.
  4497. --- 3795,3803 ----
  4498.   : ${CONFIG_STATUS=./config.status}
  4499.   
  4500.   echo creating $CONFIG_STATUS
  4501. ! # Some systems, like AmigaDOS, won't allow you to remove a script that is
  4502. ! # being executed, so just move it out of the way instead.
  4503. ! if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  4504.   cat > $CONFIG_STATUS <<EOF
  4505.   #!/bin/sh
  4506.   # Generated automatically by configure.
  4507. ***************
  4508. *** 3804,3810 ****
  4509.       echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  4510.       exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  4511.     -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  4512. !     echo "$CONFIG_STATUS generated by autoconf version 2.1"
  4513.       exit 0 ;;
  4514.     -help | --help | --hel | --he | --h)
  4515.       echo "\$ac_cs_usage"; exit 0 ;;
  4516. --- 3818,3824 ----
  4517.       echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  4518.       exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  4519.     -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  4520. !     /bin/echo "$CONFIG_STATUS generated by autoconf version 2.1"
  4521.       exit 0 ;;
  4522.     -help | --help | --hel | --he | --h)
  4523.       echo "\$ac_cs_usage"; exit 0 ;;
  4524. ***************
  4525. *** 3904,3924 ****
  4526.   for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  4527.     # Support "outfile[:infile]", defaulting infile="outfile.in".
  4528.     case "$ac_file" in
  4529. !   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  4530. !        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  4531.     *) ac_file_in="${ac_file}.in" ;;
  4532.     esac
  4533.   
  4534.     # Adjust relative srcdir, etc. for subdirectories.
  4535.   
  4536.     # Remove last slash and all that follows it.  Not all systems have dirname.
  4537. !   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4538.     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  4539.       # The file is in a subdirectory.
  4540.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  4541.       ac_dir_suffix="/$ac_dir"
  4542.       # A "../" for each directory in $ac_dir_suffix.
  4543. !     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  4544.     else
  4545.       ac_dir_suffix= ac_dots=
  4546.     fi
  4547. --- 3918,3938 ----
  4548.   for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  4549.     # Support "outfile[:infile]", defaulting infile="outfile.in".
  4550.     case "$ac_file" in
  4551. !   *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
  4552. !        ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
  4553.     *) ac_file_in="${ac_file}.in" ;;
  4554.     esac
  4555.   
  4556.     # Adjust relative srcdir, etc. for subdirectories.
  4557.   
  4558.     # Remove last slash and all that follows it.  Not all systems have dirname.
  4559. !   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4560.     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  4561.       # The file is in a subdirectory.
  4562.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  4563.       ac_dir_suffix="/$ac_dir"
  4564.       # A "../" for each directory in $ac_dir_suffix.
  4565. !     ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  4566.     else
  4567.       ac_dir_suffix= ac_dots=
  4568.     fi
  4569. ***************
  4570. *** 3926,3932 ****
  4571.     case "$ac_given_srcdir" in
  4572.     .)  srcdir=.
  4573.         if test -z "$ac_dots"; then top_srcdir=.
  4574. !       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  4575.     /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  4576.     *) # Relative path.
  4577.       srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  4578. --- 3940,3946 ----
  4579.     case "$ac_given_srcdir" in
  4580.     .)  srcdir=.
  4581.         if test -z "$ac_dots"; then top_srcdir=.
  4582. !       else top_srcdir=`/bin/echo $ac_dots|sed 's%/$%%'`; fi ;;
  4583.     /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  4584.     *) # Relative path.
  4585.       srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  4586. ***************
  4587. *** 3939,3945 ****
  4588.     esac
  4589.     echo creating "$ac_file"
  4590.     rm -f "$ac_file"
  4591. !   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  4592.     case "$ac_file" in
  4593.     *Makefile*) ac_comsub="1i\\
  4594.   # $configure_input" ;;
  4595. --- 3953,3959 ----
  4596.     esac
  4597.     echo creating "$ac_file"
  4598.     rm -f "$ac_file"
  4599. !   configure_input="Generated automatically from `/bin/echo $ac_file_in|sed 's%.*/%%'` by configure."
  4600.     case "$ac_file" in
  4601.     *Makefile*) ac_comsub="1i\\
  4602.   # $configure_input" ;;
  4603. ***************
  4604. *** 3977,3984 ****
  4605.   for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  4606.     # Support "outfile[:infile]", defaulting infile="outfile.in".
  4607.     case "$ac_file" in
  4608. !   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  4609. !        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  4610.     *) ac_file_in="${ac_file}.in" ;;
  4611.     esac
  4612.   
  4613. --- 3991,3998 ----
  4614.   for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  4615.     # Support "outfile[:infile]", defaulting infile="outfile.in".
  4616.     case "$ac_file" in
  4617. !   *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
  4618. !        ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
  4619.     *) ac_file_in="${ac_file}.in" ;;
  4620.     esac
  4621.   
  4622. ***************
  4623. *** 4042,4048 ****
  4624.     cat conftest.in >> conftest.h
  4625.     rm -f conftest.in
  4626.     if cmp -s $ac_file conftest.h 2>/dev/null; then
  4627. !     echo "$ac_file is unchanged"
  4628.       rm -f conftest.h
  4629.     else
  4630.       rm -f $ac_file
  4631. --- 4056,4062 ----
  4632.     cat conftest.in >> conftest.h
  4633.     rm -f conftest.in
  4634.     if cmp -s $ac_file conftest.h 2>/dev/null; then
  4635. !     /bin/echo "$ac_file is unchanged"
  4636.       rm -f conftest.h
  4637.     else
  4638.       rm -f $ac_file
  4639. diff -rc --new-file octave-1.1.1-base/configure.in octave-1.1.1/configure.in
  4640. *** octave-1.1.1-base/configure.in    Tue Feb 14 22:12:35 1995
  4641. --- octave-1.1.1/configure.in    Sat Mar 25 07:56:36 1995
  4642. ***************
  4643. *** 41,50 ****
  4644.   AC_SUBST(target_host_type)
  4645.   
  4646.   ### Allow the user to force us to use f2c.
  4647.   
  4648.   AC_ARG_WITH(f2c,
  4649.     [  --with-f2c              use f2c even if Fortran compiler is available],
  4650. !   use_f2c=true, use_f2c=false)
  4651.   
  4652.   ### Allow the user to experiment with dynamic linking using GNU dld.
  4653.   
  4654. --- 41,51 ----
  4655.   AC_SUBST(target_host_type)
  4656.   
  4657.   ### Allow the user to force us to use f2c.
  4658. + ### Amiga hack -- the GNU f77 compiler won't quite work yet so force this.
  4659.   
  4660.   AC_ARG_WITH(f2c,
  4661.     [  --with-f2c              use f2c even if Fortran compiler is available],
  4662. !   use_f2c=true, use_f2c=true)
  4663.   
  4664.   ### Allow the user to experiment with dynamic linking using GNU dld.
  4665.   
  4666. ***************
  4667. *** 66,72 ****
  4668.   
  4669.   ### some defaults
  4670.   
  4671. ! AC_PREFIX_DEFAULT(/usr/local)
  4672.   
  4673.   exec_prefix='$(prefix)'
  4674.   bindir='$(exec_prefix)/bin'
  4675. --- 67,73 ----
  4676.   
  4677.   ### some defaults
  4678.   
  4679. ! AC_PREFIX_DEFAULT(/gnu)
  4680.   
  4681.   exec_prefix='$(prefix)'
  4682.   bindir='$(exec_prefix)/bin'
  4683. ***************
  4684. *** 211,217 ****
  4685.     2.[6789].*|2.[123456789][0123456789].*)
  4686.   changequote([,])dnl
  4687.       if test -z "$CXXFLAGS"; then
  4688. !       CXXFLAGS="-g -O"
  4689.         AC_MSG_RESULT([defining CXXFLAGS to be $CXXFLAGS])
  4690.         ADD_CXX_WALL=true
  4691.       fi
  4692. --- 212,218 ----
  4693.     2.[6789].*|2.[123456789][0123456789].*)
  4694.   changequote([,])dnl
  4695.       if test -z "$CXXFLAGS"; then
  4696. !       CXXFLAGS="-O"
  4697.         AC_MSG_RESULT([defining CXXFLAGS to be $CXXFLAGS])
  4698.         ADD_CXX_WALL=true
  4699.       fi
  4700. ***************
  4701. *** 265,276 ****
  4702.   case "$gcc_version" in
  4703.     2.*)
  4704.       if test -z "$CFLAGS"; then
  4705. !       CFLAGS="-g -O"
  4706.         AC_MSG_RESULT([defining CFLAGS to be $CFLAGS])
  4707.         ADD_CC_WALL=true
  4708.       fi
  4709.       if test -z "$LDFLAGS"; then
  4710. !       LDFLAGS="-g"
  4711.         AC_MSG_RESULT([defining LDFLAGS to be $LDFLAGS])
  4712.       fi
  4713.     ;;
  4714. --- 266,277 ----
  4715.   case "$gcc_version" in
  4716.     2.*)
  4717.       if test -z "$CFLAGS"; then
  4718. !       CFLAGS="-O"
  4719.         AC_MSG_RESULT([defining CFLAGS to be $CFLAGS])
  4720.         ADD_CC_WALL=true
  4721.       fi
  4722.       if test -z "$LDFLAGS"; then
  4723. !       LDFLAGS="-s"    # Amiga version won't run if not stripped -FIXME!
  4724.         AC_MSG_RESULT([defining LDFLAGS to be $LDFLAGS])
  4725.       fi
  4726.     ;;
  4727. diff -rc --new-file octave-1.1.1-base/doc/Makefile.in octave-1.1.1/doc/Makefile.in
  4728. *** octave-1.1.1-base/doc/Makefile.in    Tue Jan 24 21:05:45 1995
  4729. --- octave-1.1.1/doc/Makefile.in    Fri Mar 24 09:51:20 1995
  4730. ***************
  4731. *** 64,70 ****
  4732.       -makeinfo -I$(srcdir) octave.texi
  4733.   
  4734.   octave.dvi: $(TEXINFO) conf.texi
  4735. !     texi2dvi $(srcdir)/octave.texi
  4736.   
  4737.   octave.ps: octave.dvi
  4738.       dvips -o octave.ps octave.dvi
  4739. --- 64,70 ----
  4740.       -makeinfo -I$(srcdir) octave.texi
  4741.   
  4742.   octave.dvi: $(TEXINFO) conf.texi
  4743. !     -texi2dvi $(srcdir)/octave.texi
  4744.   
  4745.   octave.ps: octave.dvi
  4746.       dvips -o octave.ps octave.dvi
  4747. ***************
  4748. *** 73,79 ****
  4749.       -makeinfo -I$(srcdir) FAQ.texi
  4750.   
  4751.   FAQ.dvi: FAQ.texi
  4752. !     texi2dvi $(srcdir)/FAQ.texi
  4753.   
  4754.   FAQ.ps: FAQ.dvi
  4755.       dvips -o FAQ.ps FAQ.dvi
  4756. --- 73,79 ----
  4757.       -makeinfo -I$(srcdir) FAQ.texi
  4758.   
  4759.   FAQ.dvi: FAQ.texi
  4760. !     -texi2dvi $(srcdir)/FAQ.texi
  4761.   
  4762.   FAQ.ps: FAQ.dvi
  4763.       dvips -o FAQ.ps FAQ.dvi
  4764. ***************
  4765. *** 82,88 ****
  4766.       -makeinfo -I$(srcdir) liboctave.texi
  4767.   
  4768.   liboctave.dvi: $(LIB_TEXINFO) conf.texi
  4769. !     texi2dvi $(srcdir)/liboctave.texi
  4770.   
  4771.   liboctave.ps: liboctave.dvi
  4772.       dvips -o liboctave.ps liboctave.dvi
  4773. --- 82,88 ----
  4774.       -makeinfo -I$(srcdir) liboctave.texi
  4775.   
  4776.   liboctave.dvi: $(LIB_TEXINFO) conf.texi
  4777. !     -texi2dvi $(srcdir)/liboctave.texi
  4778.   
  4779.   liboctave.ps: liboctave.dvi
  4780.       dvips -o liboctave.ps liboctave.dvi
  4781. diff -rc --new-file octave-1.1.1-base/f2c-compat.sh octave-1.1.1/f2c-compat.sh
  4782. *** octave-1.1.1-base/f2c-compat.sh    Wed Jan  5 17:48:06 1994
  4783. --- octave-1.1.1/f2c-compat.sh    Fri Mar 24 15:28:52 1995
  4784. ***************
  4785. *** 62,72 ****
  4786.   }
  4787.   EOF
  4788.   
  4789. ! ${CC-cc} -c ctest.c > /dev/null 2>&1
  4790.   
  4791.   FLIBS=`F77="${F77-f77}" $FLIBS_SH`
  4792.   
  4793. ! ${CC-cc} -o ctest ctest.o ftest.o $FLIBS -lm > /dev/null 2>&1
  4794.   
  4795.   ctest_output=`./ctest 2>&1`
  4796.   status=$?
  4797. --- 62,72 ----
  4798.   }
  4799.   EOF
  4800.   
  4801. ! ${CC-gcc} -c ctest.c > /dev/null 2>&1
  4802.   
  4803.   FLIBS=`F77="${F77-f77}" $FLIBS_SH`
  4804.   
  4805. ! ${CC-gcc} -o ctest ctest.o ftest.o $FLIBS -lm > /dev/null 2>&1
  4806.   
  4807.   ctest_output=`./ctest 2>&1`
  4808.   status=$?
  4809. ***************
  4810. *** 100,108 ****
  4811.   }
  4812.   EOF
  4813.   
  4814. !   ${CC-cc} -c ctest.c > /dev/null 2>&1
  4815.   
  4816. !   ${CC-cc} -o ctest ctest.o ftest.o $FLIBS -lm > /dev/null 2>&1
  4817.   
  4818.     ctest_output=`./ctest 2>&1`
  4819.     status=$?
  4820. --- 100,108 ----
  4821.   }
  4822.   EOF
  4823.   
  4824. !   ${CC-gcc} -c ctest.c > /dev/null 2>&1
  4825.   
  4826. !   ${CC-gcc} -o ctest ctest.o ftest.o $FLIBS -lm > /dev/null 2>&1
  4827.   
  4828.     ctest_output=`./ctest 2>&1`
  4829.     status=$?
  4830. diff -rc --new-file octave-1.1.1-base/flibs.sh octave-1.1.1/flibs.sh
  4831. *** octave-1.1.1-base/flibs.sh    Wed Jan 25 15:44:19 1995
  4832. --- octave-1.1.1/flibs.sh    Fri Mar 24 15:29:18 1995
  4833. ***************
  4834. *** 32,40 ****
  4835.     foutput=`echo $foutput | sed 's/,/ /g'`
  4836.   fi
  4837.   
  4838. ! ld_run_path=`echo $foutput | \
  4839. !   sed -n -e 's/.*\(LD_RUN_PATH *= *[^ ]*\).*/\1/p' | \
  4840. !   sed -e 's/LD_RUN_PATH *= *//'`
  4841.   
  4842.   # We are only supposed to find this on Solaris systems, and this
  4843.   # substitution is probably only going to work with gcc on those
  4844. --- 32,42 ----
  4845.     foutput=`echo $foutput | sed 's/,/ /g'`
  4846.   fi
  4847.   
  4848. ! #Begin amiga hack - sed command crashes amiga
  4849. ! #ld_run_path=`echo $foutput | \
  4850. ! #  sed -n -e 's/.*\(LD_RUN_PATH *= *[^ ]*\).*/\1/p' | \
  4851. ! #  sed -e 's/LD_RUN_PATH *= *//'`
  4852. ! #End amiga hack
  4853.   
  4854.   # We are only supposed to find this on Solaris systems, and this
  4855.   # substitution is probably only going to work with gcc on those
  4856. diff -rc --new-file octave-1.1.1-base/info/Makefile.in octave-1.1.1/info/Makefile.in
  4857. *** octave-1.1.1-base/info/Makefile.in    Tue Nov 15 21:49:10 1994
  4858. --- octave-1.1.1/info/Makefile.in    Sun Mar  5 12:19:02 1995
  4859. ***************
  4860. *** 23,29 ****
  4861.   
  4862.   srcdir = @srcdir@
  4863.   top_srcdir = @top_srcdir@
  4864. ! VPATH  = @srcdir@:@srcdir@/../src
  4865.   
  4866.   include $(TOPDIR)/Makeconf
  4867.   
  4868. --- 23,29 ----
  4869.   
  4870.   srcdir = @srcdir@
  4871.   top_srcdir = @top_srcdir@
  4872. ! VPATH  = @srcdir@;@srcdir@/../src
  4873.   
  4874.   include $(TOPDIR)/Makeconf
  4875.   
  4876. diff -rc --new-file octave-1.1.1-base/info/general.h octave-1.1.1/info/general.h
  4877. *** octave-1.1.1-base/info/general.h    Mon Feb  1 18:44:09 1993
  4878. --- octave-1.1.1/info/general.h    Sun Mar  5 09:57:24 1995
  4879. ***************
  4880. *** 31,37 ****
  4881.   #endif /* HAVE_UNISTD_H */
  4882.   
  4883.   #if defined (HAVE_STRING_H)
  4884. ! #  include <string.h>
  4885.   #else
  4886.   #  include <strings.h>
  4887.   #endif /* !HAVE_STRING_H */
  4888. --- 31,37 ----
  4889.   #endif /* HAVE_UNISTD_H */
  4890.   
  4891.   #if defined (HAVE_STRING_H)
  4892. ! #  include </gnu/include/string.h>
  4893.   #else
  4894.   #  include <strings.h>
  4895.   #endif /* !HAVE_STRING_H */
  4896. diff -rc --new-file octave-1.1.1-base/info/termdep.h octave-1.1.1/info/termdep.h
  4897. *** octave-1.1.1-base/info/termdep.h    Wed Oct 20 21:55:53 1993
  4898. --- octave-1.1.1/info/termdep.h    Sun Mar  5 09:57:24 1995
  4899. ***************
  4900. *** 30,36 ****
  4901.   #if defined (HAVE_TERMIOS_H)
  4902.   
  4903.   #include <termios.h>
  4904. ! #include <string.h>
  4905.   #if defined (HAVE_SYS_PTEM_H)
  4906.   #if !defined (M_XENIX)
  4907.   #include <sys/stream.h>
  4908. --- 30,36 ----
  4909.   #if defined (HAVE_TERMIOS_H)
  4910.   
  4911.   #include <termios.h>
  4912. ! #include </gnu/include/string.h>
  4913.   #if defined (HAVE_SYS_PTEM_H)
  4914.   #if !defined (M_XENIX)
  4915.   #include <sys/stream.h>
  4916. ***************
  4917. *** 44,50 ****
  4918.   #elif defined (HAVE_TERMIO_H)
  4919.   
  4920.   #include <termio.h>
  4921. ! #include <string.h>
  4922.   #if defined (HAVE_SYS_PTEM_H)
  4923.   #if !defined (M_XENIX)
  4924.   #include <sys/stream.h>
  4925. --- 44,50 ----
  4926.   #elif defined (HAVE_TERMIO_H)
  4927.   
  4928.   #include <termio.h>
  4929. ! #include </gnu/include/string.h>
  4930.   #if defined (HAVE_SYS_PTEM_H)
  4931.   #if !defined (M_XENIX)
  4932.   #include <sys/stream.h>
  4933. diff -rc --new-file octave-1.1.1-base/kpathsea/Makefile octave-1.1.1/kpathsea/Makefile
  4934. *** octave-1.1.1-base/kpathsea/Makefile    Thu Feb 23 20:27:11 1995
  4935. --- octave-1.1.1/kpathsea/Makefile    Sun Mar  5 09:57:26 1995
  4936. ***************
  4937. *** 120,126 ****
  4938.   RANLIB = ranlib
  4939.   
  4940.   # Installation.
  4941. ! INSTALL = /usr/local/gnu/bin/install -c
  4942.   INSTALL_PROGRAM = ${INSTALL}
  4943.   INSTALL_DATA = ${INSTALL} -m 644
  4944.   
  4945. --- 120,126 ----
  4946.   RANLIB = ranlib
  4947.   
  4948.   # Installation.
  4949. ! INSTALL = /bin/install -c
  4950.   INSTALL_PROGRAM = ${INSTALL}
  4951.   INSTALL_DATA = ${INSTALL} -m 644
  4952.   
  4953. diff -rc --new-file octave-1.1.1-base/kpathsea/c-auto.h octave-1.1.1/kpathsea/c-auto.h
  4954. *** octave-1.1.1-base/kpathsea/c-auto.h    Fri Jan 27 17:19:32 1995
  4955. --- octave-1.1.1/kpathsea/c-auto.h    Sun Mar  5 10:00:34 1995
  4956. ***************
  4957. *** 183,189 ****
  4958.   #define HAVE_LGAMMA 1
  4959.   
  4960.   /* Define if you have the memmove function.  */
  4961. ! /* #undef HAVE_MEMMOVE */
  4962.   
  4963.   /* Define if you have the on_exit function.  */
  4964.   #define HAVE_ON_EXIT 1
  4965. --- 183,189 ----
  4966.   #define HAVE_LGAMMA 1
  4967.   
  4968.   /* Define if you have the memmove function.  */
  4969. ! #define HAVE_MEMMOVE 1
  4970.   
  4971.   /* Define if you have the on_exit function.  */
  4972.   #define HAVE_ON_EXIT 1
  4973. diff -rc --new-file octave-1.1.1-base/kpathsea/c-std.h octave-1.1.1/kpathsea/c-std.h
  4974. *** octave-1.1.1-base/kpathsea/c-std.h    Tue Feb  1 18:38:39 1994
  4975. --- octave-1.1.1/kpathsea/c-std.h    Thu Mar 23 20:01:10 1995
  4976. ***************
  4977. *** 101,106 ****
  4978.   #endif
  4979.   
  4980.   /* hypot appears not to have made it into POSIX.2, even.  */
  4981. ! extern double hypot ();
  4982.   
  4983.   #endif /* not KPATHSEA_C_STD_H */
  4984. --- 101,108 ----
  4985.   #endif
  4986.   
  4987.   /* hypot appears not to have made it into POSIX.2, even.  */
  4988. ! #ifndef __amigados__
  4989. ! extern const double hypot ();
  4990. ! #endif
  4991.   
  4992.   #endif /* not KPATHSEA_C_STD_H */
  4993. diff -rc --new-file octave-1.1.1-base/readline/chardefs.h octave-1.1.1/readline/chardefs.h
  4994. *** octave-1.1.1-base/readline/chardefs.h    Wed Jan 26 20:17:39 1994
  4995. --- octave-1.1.1/readline/chardefs.h    Sun Mar  5 09:57:30 1995
  4996. ***************
  4997. *** 5,11 ****
  4998.   #include <ctype.h>
  4999.   
  5000.   #if defined (HAVE_STRING_H)
  5001. ! #  include <string.h>
  5002.   #else
  5003.   #  include <strings.h>
  5004.   #endif /* HAVE_STRING_H */
  5005. --- 5,11 ----
  5006.   #include <ctype.h>
  5007.   
  5008.   #if defined (HAVE_STRING_H)
  5009. ! #  include </gnu/include/string.h>
  5010.   #else
  5011.   #  include <strings.h>
  5012.   #endif /* HAVE_STRING_H */
  5013. diff -rc --new-file octave-1.1.1-base/readline/complete.c octave-1.1.1/readline/complete.c
  5014. *** octave-1.1.1-base/readline/complete.c    Wed Jan 26 20:17:39 1994
  5015. --- octave-1.1.1/readline/complete.c    Sun Mar  5 15:39:56 1995
  5016. ***************
  5017. *** 906,911 ****
  5018. --- 906,914 ----
  5019.        int state;
  5020.        char *text;
  5021.   {
  5022. + #ifdef __amigados__
  5023. +   return ((char *) NULL);
  5024. + #else
  5025.   #if defined (_GO32_)
  5026.     return (char *)NULL;
  5027.   #else /* !_GO32_ */
  5028. ***************
  5029. *** 955,960 ****
  5030. --- 958,964 ----
  5031.         return (value);
  5032.       }
  5033.   #endif /* !_GO32_ */
  5034. + #endif /* __amigados__ */
  5035.   }
  5036.   
  5037.   /* **************************************************************** */
  5038. diff -rc --new-file octave-1.1.1-base/readline/history.c octave-1.1.1/readline/history.c
  5039. *** octave-1.1.1-base/readline/history.c    Wed Jan 26 20:17:39 1994
  5040. --- octave-1.1.1/readline/history.c    Sun Mar  5 09:57:32 1995
  5041. ***************
  5042. *** 44,50 ****
  5043.   #  include <unistd.h>
  5044.   #endif
  5045.   #if defined (HAVE_STRING_H)
  5046. ! #  include <string.h>
  5047.   #else
  5048.   #  include <strings.h>
  5049.   #endif /* !HAVE_STRING_H */
  5050. --- 44,50 ----
  5051.   #  include <unistd.h>
  5052.   #endif
  5053.   #if defined (HAVE_STRING_H)
  5054. ! #  include </gnu/include/string.h>
  5055.   #else
  5056.   #  include <strings.h>
  5057.   #endif /* !HAVE_STRING_H */
  5058. diff -rc --new-file octave-1.1.1-base/readline/rldefs.h octave-1.1.1/readline/rldefs.h
  5059. *** octave-1.1.1-base/readline/rldefs.h    Sun Jan 15 23:02:22 1995
  5060. --- octave-1.1.1/readline/rldefs.h    Sun Mar  5 09:57:32 1995
  5061. ***************
  5062. *** 136,142 ****
  5063.      string functions to include and include it. */
  5064.   
  5065.   #if defined (STDC_HEADERS) || defined (HAVE_STRING_H)
  5066. ! #  include <string.h>
  5067.   /* An ANSI string.h and pre-ANSI memory.h might conflict.  */
  5068.   #  if !defined (STDC_HEADERS) && defined (HAVE_MEMORY_H)
  5069.   #    include <memory.h>
  5070. --- 136,142 ----
  5071.      string functions to include and include it. */
  5072.   
  5073.   #if defined (STDC_HEADERS) || defined (HAVE_STRING_H)
  5074. ! #  include </gnu/include/string.h>
  5075.   /* An ANSI string.h and pre-ANSI memory.h might conflict.  */
  5076.   #  if !defined (STDC_HEADERS) && defined (HAVE_MEMORY_H)
  5077.   #    include <memory.h>
  5078. diff -rc --new-file octave-1.1.1-base/readline/tilde.c octave-1.1.1/readline/tilde.c
  5079. *** octave-1.1.1-base/readline/tilde.c    Wed Apr 20 06:52:22 1994
  5080. --- octave-1.1.1/readline/tilde.c    Sun Mar  5 09:57:34 1995
  5081. ***************
  5082. *** 33,39 ****
  5083.   #endif /* !__GNUC__ */
  5084.   
  5085.   #if defined (HAVE_STRING_H)
  5086. ! #  include <string.h>
  5087.   #else /* !HAVE_STRING_H */
  5088.   #  include <strings.h>
  5089.   #endif /* !HAVE_STRING_H */  
  5090. --- 33,39 ----
  5091.   #endif /* !__GNUC__ */
  5092.   
  5093.   #if defined (HAVE_STRING_H)
  5094. ! #  include </gnu/include/string.h>
  5095.   #else /* !HAVE_STRING_H */
  5096.   #  include <strings.h>
  5097.   #endif /* !HAVE_STRING_H */  
  5098. diff -rc --new-file octave-1.1.1-base/src/Makefile.in octave-1.1.1/src/Makefile.in
  5099. *** octave-1.1.1-base/src/Makefile.in    Wed Feb 22 20:47:47 1995
  5100. --- octave-1.1.1/src/Makefile.in    Fri Mar 24 10:21:14 1995
  5101. ***************
  5102. *** 17,23 ****
  5103.   INSTALL = @INSTALL@
  5104.   INSTALL_PROGRAM = @INSTALL_PROGRAM@
  5105.   INSTALL_DATA = @INSTALL_DATA@
  5106.   # Cancel default rule for .c from .y and make .cc from .y instead.
  5107.   
  5108.   %.c : %.y
  5109. --- 17,25 ----
  5110.   INSTALL = @INSTALL@
  5111.   INSTALL_PROGRAM = @INSTALL_PROGRAM@
  5112.   INSTALL_DATA = @INSTALL_DATA@
  5113. ! # Amiga hack - we have 'ln' and 'ln -s', but they seem to cause
  5114. ! # more problems than they solve.
  5115. ! LN = cp
  5116.   # Cancel default rule for .c from .y and make .cc from .y instead.
  5117.   
  5118.   %.c : %.y
  5119. ***************
  5120. *** 153,161 ****
  5121.       $(top_srcdir)/mkinstalldirs $(bindir) $(libdir)
  5122.       rm -f $(bindir)/octave
  5123.       $(INSTALL) octave $(bindir)/octave-$(version)
  5124. !     ln $(bindir)/octave-$(version) $(bindir)/octave
  5125.       if $(OCTAVE_LITE) && $(WITH_DLD) ; then \
  5126.         $(INSTALL_DATA) liboctdld.a $(libdir)/liboctdld.a ; \
  5127.       fi
  5128.   .PHONY: install
  5129.   
  5130. --- 155,165 ----
  5131.       $(top_srcdir)/mkinstalldirs $(bindir) $(libdir)
  5132.       rm -f $(bindir)/octave
  5133.       $(INSTALL) octave $(bindir)/octave-$(version)
  5134. !     $(LN) $(bindir)/octave-$(version) $(bindir)/octave
  5135.       if $(OCTAVE_LITE) && $(WITH_DLD) ; then \
  5136.         $(INSTALL_DATA) liboctdld.a $(libdir)/liboctdld.a ; \
  5137. +     else \
  5138. +       true ; \
  5139.       fi
  5140.   .PHONY: install
  5141.   
  5142. ***************
  5143. *** 187,199 ****
  5144.   .PHONY: realclean
  5145.   
  5146.   local-dist: parse.cc lex.cc
  5147. !     ln $(DISTFILES) ../`cat ../.fname`/src
  5148.       rm -f parse.cc lex.cc y.tab.h y.output yy.lex.c
  5149.       rm -f lex.cc parse.cc defaults.h *.d *.def
  5150.   .PHONY: local-dist
  5151.   
  5152.   dist: parse.cc lex.cc
  5153. !     ln $(DISTFILES) ../`cat ../.fname`/src
  5154.       rm -f parse.cc lex.cc y.tab.h y.output yy.lex.c
  5155.       rm -f lex.cc parse.cc defaults.h *.d *.def builtins.cc
  5156.   .PHONY: dist
  5157. --- 191,203 ----
  5158.   .PHONY: realclean
  5159.   
  5160.   local-dist: parse.cc lex.cc
  5161. !     $(LN) $(DISTFILES) ../`cat ../.fname`/src
  5162.       rm -f parse.cc lex.cc y.tab.h y.output yy.lex.c
  5163.       rm -f lex.cc parse.cc defaults.h *.d *.def
  5164.   .PHONY: local-dist
  5165.   
  5166.   dist: parse.cc lex.cc
  5167. !     $(LN) $(DISTFILES) ../`cat ../.fname`/src
  5168.       rm -f parse.cc lex.cc y.tab.h y.output yy.lex.c
  5169.       rm -f lex.cc parse.cc defaults.h *.d *.def builtins.cc
  5170.   .PHONY: dist
  5171. diff -rc --new-file octave-1.1.1-base/src/dirfns.cc octave-1.1.1/src/dirfns.cc
  5172. *** octave-1.1.1-base/src/dirfns.cc    Wed Feb 15 04:11:01 1995
  5173. --- octave-1.1.1/src/dirfns.cc    Sun Mar  5 09:57:36 1995
  5174. ***************
  5175. *** 46,52 ****
  5176.   #include <stdio.h>
  5177.   #include <stddef.h>
  5178.   #include <stdlib.h>
  5179. ! #include <string.h>
  5180.   #include <strstream.h>
  5181.   #include <sys/param.h>
  5182.   
  5183. --- 46,52 ----
  5184.   #include <stdio.h>
  5185.   #include <stddef.h>
  5186.   #include <stdlib.h>
  5187. ! #include </gnu/include/string.h>
  5188.   #include <strstream.h>
  5189.   #include <sys/param.h>
  5190.   
  5191. diff -rc --new-file octave-1.1.1-base/src/file-io.cc octave-1.1.1/src/file-io.cc
  5192. *** octave-1.1.1-base/src/file-io.cc    Mon Jan 30 21:19:47 1995
  5193. --- octave-1.1.1/src/file-io.cc    Sun Mar  5 09:57:38 1995
  5194. ***************
  5195. *** 29,35 ****
  5196.   
  5197.   #include <DLList.h>
  5198.   #include <unistd.h>
  5199. ! #include <string.h>
  5200.   #include <stdio.h>
  5201.   #include <errno.h>
  5202.   #include <stdlib.h>
  5203. --- 29,35 ----
  5204.   
  5205.   #include <DLList.h>
  5206.   #include <unistd.h>
  5207. ! #include </gnu/include/string.h>
  5208.   #include <stdio.h>
  5209.   #include <errno.h>
  5210.   #include <stdlib.h>
  5211. diff -rc --new-file octave-1.1.1-base/src/getopt.c octave-1.1.1/src/getopt.c
  5212. *** octave-1.1.1-base/src/getopt.c    Wed Sep 29 23:01:48 1993
  5213. --- octave-1.1.1/src/getopt.c    Sun Mar  5 09:57:40 1995
  5214. ***************
  5215. *** 178,184 ****
  5216.      because there are many ways it can cause trouble.
  5217.      On some systems, it contains special magic macros that don't work
  5218.      in GCC.  */
  5219. ! #include <string.h>
  5220.   #define    my_index    strchr
  5221.   #define    my_bcopy(src, dst, n)    memcpy ((dst), (src), (n))
  5222.   #else
  5223. --- 178,184 ----
  5224.      because there are many ways it can cause trouble.
  5225.      On some systems, it contains special magic macros that don't work
  5226.      in GCC.  */
  5227. ! #include </gnu/include/string.h>
  5228.   #define    my_index    strchr
  5229.   #define    my_bcopy(src, dst, n)    memcpy ((dst), (src), (n))
  5230.   #else
  5231. diff -rc --new-file octave-1.1.1-base/src/input.cc octave-1.1.1/src/input.cc
  5232. *** octave-1.1.1-base/src/input.cc    Wed Feb 22 00:40:02 1995
  5233. --- octave-1.1.1/src/input.cc    Sun Mar  5 10:01:36 1995
  5234. ***************
  5235. *** 46,52 ****
  5236.   #include <stdlib.h>
  5237.   #include <iostream.h>
  5238.   #include <strstream.h>
  5239. ! #include <string.h>
  5240.   #include <assert.h>
  5241.   #include <signal.h>
  5242.   
  5243. --- 46,52 ----
  5244.   #include <stdlib.h>
  5245.   #include <iostream.h>
  5246.   #include <strstream.h>
  5247. ! #include </gnu/include/string.h>
  5248.   #include <assert.h>
  5249.   #include <signal.h>
  5250.   
  5251. diff -rc --new-file octave-1.1.1-base/src/lex.cc octave-1.1.1/src/lex.cc
  5252. *** octave-1.1.1-base/src/lex.cc    Fri Feb 24 01:17:43 1995
  5253. --- octave-1.1.1/src/lex.cc    Sun Mar  5 10:02:44 1995
  5254. ***************
  5255. *** 518,524 ****
  5256.   
  5257.   #include <strstream.h>
  5258.   #include <ctype.h>
  5259. ! #include <string.h>
  5260.   
  5261.   #include "input.h"
  5262.   #include "token.h"
  5263. --- 518,524 ----
  5264.   
  5265.   #include <strstream.h>
  5266.   #include <ctype.h>
  5267. ! #include </gnu/include/string.h>
  5268.   
  5269.   #include "input.h"
  5270.   #include "token.h"
  5271. diff -rc --new-file octave-1.1.1-base/src/lex.l octave-1.1.1/src/lex.l
  5272. *** octave-1.1.1-base/src/lex.l    Wed Feb  1 23:59:47 1995
  5273. --- octave-1.1.1/src/lex.l    Sun Mar  5 10:02:16 1995
  5274. ***************
  5275. *** 33,39 ****
  5276.   
  5277.   #include <strstream.h>
  5278.   #include <ctype.h>
  5279. ! #include <string.h>
  5280.   
  5281.   #include "input.h"
  5282.   #include "token.h"
  5283. --- 33,39 ----
  5284.   
  5285.   #include <strstream.h>
  5286.   #include <ctype.h>
  5287. ! #include </gnu/include/string.h>
  5288.   
  5289.   #include "input.h"
  5290.   #include "token.h"
  5291. diff -rc --new-file octave-1.1.1-base/src/load-save.cc octave-1.1.1/src/load-save.cc
  5292. *** octave-1.1.1-base/src/load-save.cc    Mon Feb 13 03:22:26 1995
  5293. --- octave-1.1.1/src/load-save.cc    Sun Mar  5 09:57:52 1995
  5294. ***************
  5295. *** 27,33 ****
  5296.   
  5297.   #include <float.h>
  5298.   #include <limits.h>
  5299. ! #include <string.h>
  5300.   #include <iostream.h>
  5301.   #include <fstream.h>
  5302.   #include <strstream.h>
  5303. --- 27,33 ----
  5304.   
  5305.   #include <float.h>
  5306.   #include <limits.h>
  5307. ! #include </gnu/include/string.h>
  5308.   #include <iostream.h>
  5309.   #include <fstream.h>
  5310.   #include <strstream.h>
  5311. diff -rc --new-file octave-1.1.1-base/src/missing-math.h octave-1.1.1/src/missing-math.h
  5312. *** octave-1.1.1-base/src/missing-math.h    Fri Jan 27 15:01:25 1995
  5313. --- octave-1.1.1/src/missing-math.h    Thu Mar 23 20:47:42 1995
  5314. ***************
  5315. *** 32,38 ****
  5316.   {
  5317.   extern double acosh ();
  5318.   extern double asinh ();
  5319. ! extern double atanh ();
  5320.   extern double erf ();
  5321.   extern double erfc ();
  5322.   extern double lgamma ();
  5323. --- 32,40 ----
  5324.   {
  5325.   extern double acosh ();
  5326.   extern double asinh ();
  5327. ! #ifndef __amigados__    /* Conflicts with <math.h> */
  5328. ! extern double const atanh ();
  5329. ! #endif
  5330.   extern double erf ();
  5331.   extern double erfc ();
  5332.   extern double lgamma ();
  5333. diff -rc --new-file octave-1.1.1-base/src/octave-hist.cc octave-1.1.1/src/octave-hist.cc
  5334. *** octave-1.1.1-base/src/octave-hist.cc    Wed Jan  4 04:03:30 1995
  5335. --- octave-1.1.1/src/octave-hist.cc    Sun Mar  5 09:57:54 1995
  5336. ***************
  5337. *** 38,44 ****
  5338.   #endif
  5339.   #include <fcntl.h>
  5340.   #include <stdlib.h>
  5341. ! #include <string.h>
  5342.   #include <signal.h>
  5343.   #include <fstream.h>
  5344.   #include <strstream.h>
  5345. --- 38,44 ----
  5346.   #endif
  5347.   #include <fcntl.h>
  5348.   #include <stdlib.h>
  5349. ! #include </gnu/include/string.h>
  5350.   #include <signal.h>
  5351.   #include <fstream.h>
  5352.   #include <strstream.h>
  5353. diff -rc --new-file octave-1.1.1-base/src/octave.cc octave-1.1.1/src/octave.cc
  5354. *** octave-1.1.1-base/src/octave.cc    Thu Feb 23 20:09:45 1995
  5355. --- octave-1.1.1/src/octave.cc    Thu Mar  9 07:46:48 1995
  5356. ***************
  5357. *** 35,46 ****
  5358.   #include <time.h>
  5359.   #include <pwd.h>
  5360.   #include <stdlib.h>
  5361. ! #include <string.h>
  5362.   #include <signal.h>
  5363.   #include <assert.h>
  5364.   #include <iostream.h>
  5365.   #include <strstream.h>
  5366.   #include <fstream.h>
  5367.   
  5368.   extern "C"
  5369.   {
  5370. --- 35,47 ----
  5371.   #include <time.h>
  5372.   #include <pwd.h>
  5373.   #include <stdlib.h>
  5374. ! #include </gnu/include/string.h>
  5375.   #include <signal.h>
  5376.   #include <assert.h>
  5377.   #include <iostream.h>
  5378.   #include <strstream.h>
  5379.   #include <fstream.h>
  5380. + #include <stdio.h>
  5381.   
  5382.   extern "C"
  5383.   {
  5384. ***************
  5385. *** 457,462 ****
  5386. --- 458,464 ----
  5387.   // come before the options are processed because some command line
  5388.   // options override defaults.
  5389.   
  5390. +   printf ("Hi, I'm octave!\n"); fflush (stdout);
  5391.     init_user_prefs ();
  5392.   
  5393.     initialize_pager ();
  5394. ***************
  5395. *** 973,975 ****
  5396. --- 975,978 ----
  5397.   ;;; page-delimiter: "^/\\*" ***
  5398.   ;;; End: ***
  5399.   */
  5400. diff -rc --new-file octave-1.1.1-base/src/octave.cc.new octave-1.1.1/src/octave.cc.new
  5401. *** octave-1.1.1-base/src/octave.cc.new    Thu Jan  1 00:00:00 1970
  5402. --- octave-1.1.1/src/octave.cc.new    Thu Mar  9 07:46:22 1995
  5403. ***************
  5404. *** 0 ****
  5405. --- 1,978 ----
  5406. + // octave.cc                                            -*- C++ -*-
  5407. + /*
  5408. + Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton
  5409. + This file is part of Octave.
  5410. + Octave is free software; you can redistribute it and/or modify it
  5411. + under the terms of the GNU General Public License as published by the
  5412. + Free Software Foundation; either version 2, or (at your option) any
  5413. + later version.
  5414. + Octave is distributed in the hope that it will be useful, but WITHOUT
  5415. + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  5416. + FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  5417. + for more details.
  5418. + You should have received a copy of the GNU General Public License
  5419. + along with Octave; see the file COPYING.  If not, write to the Free
  5420. + Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  5421. + */
  5422. + // Born February 20, 1992.
  5423. + #ifdef HAVE_CONFIG_H
  5424. + #include "config.h"
  5425. + #endif
  5426. + #include <sys/types.h>
  5427. + #ifdef HAVE_UNISTD_H
  5428. + #include <unistd.h>
  5429. + #endif
  5430. + #include <sys/stat.h>
  5431. + #include <time.h>
  5432. + #include <pwd.h>
  5433. + #include <stdlib.h>
  5434. + #include </gnu/include/string.h>
  5435. + #include <signal.h>
  5436. + #include <assert.h>
  5437. + #include <iostream.h>
  5438. + #include <strstream.h>
  5439. + #include <fstream.h>
  5440. + #include <stdio.h>
  5441. + extern "C"
  5442. + {
  5443. + #include <setjmp.h>
  5444. + }
  5445. + #include "getopt.h"
  5446. + #include "lo-error.h"
  5447. + #include "sighandlers.h"
  5448. + #include "variables.h"
  5449. + #include "error.h"
  5450. + #include "dynamic-ld.h"
  5451. + #include "tree-misc.h"
  5452. + #include "tree-const.h"
  5453. + #include "tree-plot.h"
  5454. + #include "utils.h"
  5455. + #include "input.h"
  5456. + #include "pager.h"
  5457. + #include "lex.h"
  5458. + #include "help.h"
  5459. + #include "octave.h"
  5460. + #include "parse.h"
  5461. + #include "defaults.h"
  5462. + #include "user-prefs.h"
  5463. + #include "procstream.h"
  5464. + #include "unwind-prot.h"
  5465. + #include "octave-hist.h"
  5466. + #include "builtins.h"
  5467. + #include "version.h"
  5468. + #include "file-io.h"
  5469. + #include "sysdep.h"
  5470. + #include "defun.h"
  5471. + #if !defined (HAVE_ATEXIT) && defined (HAVE_ON_EXIT)
  5472. + extern "C" { int on_exit (); }
  5473. + #define atexit on_exit
  5474. + #endif
  5475. + // argv[0] for this program.
  5476. + char *raw_prog_name = 0;
  5477. + // Cleaned-up name of this program, not including path information.
  5478. + char *prog_name = 0;
  5479. + // Login name for user running this program.
  5480. + char *user_name = 0;
  5481. + // Name of the host we are running on.
  5482. + char *host_name = 0;
  5483. + // User's home directory.
  5484. + char *home_directory = 0;
  5485. + // Guess what?
  5486. + char *the_current_working_directory = 0;
  5487. + // Load path specified on command line.  (--path path; -p path)
  5488. + char *load_path = 0;
  5489. + // Name of the info file specified on command line.
  5490. + // (--info-file file; -i file)
  5491. + char *info_file = 0;
  5492. + // Name of the editor to be invoked by the edit_history command.
  5493. + char *editor = 0;
  5494. + // If nonzero, don't do fancy line editing.
  5495. + int no_line_editing = 0;
  5496. + // If nonzero, print verbose info in some cases.
  5497. + // (--verbose; -V)
  5498. + int verbose_flag = 0;
  5499. + // Command number, counting from the beginning of this session.
  5500. + int current_command_number = 1;
  5501. + // Nonzero means we are exiting via the builtin exit or quit functions.
  5502. + int quitting_gracefully = 0;
  5503. + // Current command to execute.
  5504. + tree_statement_list *global_command = 0;
  5505. + // Pointer to function that is currently being evaluated.
  5506. + tree_function *curr_function = 0;
  5507. + // Nonzero means input is coming from startup file.
  5508. + int input_from_startup_file = 0;
  5509. + // Top level context (?)
  5510. + jmp_buf toplevel;
  5511. + // This is not really the right place to do this...
  5512. + typedef void (*one_arg_error_handler_t) (const char*);
  5513. + extern one_arg_error_handler_t set_Complex_error_handler
  5514. +   (one_arg_error_handler_t f);
  5515. + // This is from readline's paren.c:
  5516. + extern int rl_blink_matching_paren;
  5517. + static void
  5518. + octave_Complex_error_handler (const char* msg)
  5519. + {
  5520. +   warning (msg);
  5521. + }
  5522. + // Nonzero means we read ~/.octaverc and ./.octaverc.
  5523. + // (--norc; --ignore-init-file; -f)
  5524. + static int read_init_files = 1;
  5525. + // Nonzero means we printed messages about reading startup files.
  5526. + static int reading_startup_message_printed = 0;
  5527. + // Nonzero means we don\'t print the usual startup message.
  5528. + // (--quiet; --silent; -q)
  5529. + static int inhibit_startup_message = 0;
  5530. + // Usage message
  5531. + static const char *usage_string = 
  5532. +   "octave [-?Vdfhiqvx] [-p path] [--debug] [--help] [--ignore-init-file]\n\
  5533. +        [--info-file file] [--interactive] [--path path] [--silent]\n\
  5534. +        [--verbose] [--version] [--echo-commands] [file]";
  5535. + // This is here so that it\'s more likely that the usage message and
  5536. + // the real set of options will agree.
  5537. + static const char *short_opts = "?Vdfhip:qvx";
  5538. + // Long options.  See the comments in getopt.h for the meanings of the
  5539. + // fields in this structure.
  5540. + #define INFO_FILE_OPTION 1
  5541. + static struct option long_opts[] =
  5542. +   {
  5543. +     { "debug",            no_argument,       0, 'd' },
  5544. +     { "help",             no_argument,       0, 'h' },
  5545. +     { "interactive",      no_argument,       0, 'i' },
  5546. +     { "info-file",        required_argument, 0, INFO_FILE_OPTION },
  5547. +     { "norc",             no_argument,       0, 'f' },
  5548. +     { "ignore-init-file", no_argument,       0, 'f' },
  5549. +     { "path",             required_argument, 0, 'p' },
  5550. +     { "quiet",            no_argument,       0, 'q' },
  5551. +     { "silent",           no_argument,       0, 'q' },
  5552. +     { "verbose",          no_argument,       0, 'V' },
  5553. +     { "version",          no_argument,       0, 'v' },
  5554. +     { "echo-commands",    no_argument,       0, 'x' },
  5555. +     { 0,                  0,                 0, 0 }
  5556. +   };
  5557. + // Initialize some global variables for later use.
  5558. + static void
  5559. + initialize_globals (char *name)
  5560. + {
  5561. +   struct passwd *entry = getpwuid (getuid ());
  5562. +   if (entry)
  5563. +     user_name = strsave (entry->pw_name);
  5564. +   else
  5565. +     user_name = strsave ("I have no name!");
  5566. +   endpwent ();
  5567. +   char hostname[256];
  5568. +   if (gethostname (hostname, 255) < 0)
  5569. +     host_name = strsave ("I have no host!");
  5570. +   else
  5571. +     host_name = strsave (hostname);
  5572. +   char *hd = getenv ("HOME");
  5573. +   if (hd)
  5574. +     home_directory = strsave (hd);
  5575. +   else
  5576. +     home_directory = strsave ("I have no home!");
  5577. +   char *shell_path = getenv ("PATH");
  5578. +   char *arch_dir = octave_arch_lib_dir ();
  5579. +   char *bin_dir = octave_bin_dir ();
  5580. +   int len = strlen (arch_dir) + strlen (bin_dir) + 7;
  5581. +   char *putenv_cmd = 0;
  5582. +   if (shell_path)
  5583. +     {
  5584. +       len += strlen (shell_path) + 1;
  5585. +       putenv_cmd = new char [len];
  5586. +       sprintf (putenv_cmd,
  5587. +            "PATH=%s" SEPCHAR_STR "%s" SEPCHAR_STR "%s",
  5588. +            shell_path, arch_dir, bin_dir);
  5589. +     }
  5590. +   else
  5591. +     {
  5592. +       putenv_cmd = new char [len];
  5593. +       sprintf (putenv_cmd, "PATH=%s" SEPCHAR_STR "%s", arch_dir, bin_dir);
  5594. +     }
  5595. +   putenv (putenv_cmd);
  5596. +   raw_prog_name = strsave (name);
  5597. +   prog_name = strsave ("octave");
  5598. +   load_path = default_path ();
  5599. +   info_file = default_info_file ();
  5600. +   editor = default_editor ();
  5601. + }
  5602. + void
  5603. + parse_and_execute (FILE *f, int print)
  5604. + {
  5605. +   begin_unwind_frame ("parse_and_execute");
  5606. +   
  5607. +   YY_BUFFER_STATE old_buf = current_buffer ();
  5608. +   YY_BUFFER_STATE new_buf = create_buffer (f);
  5609. +   add_unwind_protect (restore_input_buffer, (void *) old_buf);
  5610. +   add_unwind_protect (delete_input_buffer, (void *) new_buf);
  5611. +   switch_to_buffer (new_buf);
  5612. +   unwind_protect_int (echo_input);
  5613. +   unwind_protect_int (using_readline);
  5614. +   unwind_protect_int (saving_history);
  5615. +   echo_input = 0;
  5616. +   using_readline = 0;
  5617. +   saving_history = 0;
  5618. +   unwind_protect_ptr (curr_sym_tab);
  5619. +   int retval;
  5620. +   do
  5621. +     {
  5622. +       reset_parser ();
  5623. +       retval = yyparse ();
  5624. +       if (retval == 0 && global_command)
  5625. +     {
  5626. +       global_command->eval (print);
  5627. +       delete global_command;
  5628. +     }
  5629. +     }
  5630. +   while (retval == 0);
  5631. +   run_unwind_frame ("parse_and_execute");
  5632. + }
  5633. + void
  5634. + parse_and_execute (char *s, int print, int verbose)
  5635. + {
  5636. +   begin_unwind_frame ("parse_and_execute_2");
  5637. +   unwind_protect_int (reading_script_file);
  5638. +   reading_script_file = 1;
  5639. +   FILE *f = get_input_from_file (s, 0);
  5640. +   if (f)
  5641. +     {
  5642. +       unwind_protect_int (input_line_number);
  5643. +       unwind_protect_int (current_input_column);
  5644. +       unwind_protect_int (echo_input);
  5645. +       input_line_number = 0;
  5646. +       current_input_column = 1;
  5647. +       echo_input = 0;
  5648. +       if (verbose)
  5649. +     {
  5650. +       cout << "reading commands from " << s << " ... ";
  5651. +       reading_startup_message_printed = 1;
  5652. +       cout.flush ();
  5653. +     }
  5654. +       parse_and_execute (f, print);
  5655. +       fclose (f);
  5656. +       if (verbose)
  5657. +     cout << "done." << endl;
  5658. +     }
  5659. +   run_unwind_frame ("parse_and_execute_2");
  5660. + }
  5661. + // Initialize by reading startup files.
  5662. + static void
  5663. + execute_startup_files (void)
  5664. + {
  5665. +   begin_unwind_frame ("execute_startup_files");
  5666. +   unwind_protect_int (input_from_startup_file);
  5667. +   input_from_startup_file = 1;
  5668. +   int verbose = (verbose_flag && ! inhibit_startup_message);
  5669. + // Execute commands from the site-wide configuration file.
  5670. +   char *sd = get_site_defaults ();
  5671. +   parse_and_execute (sd, 0, verbose);
  5672. + // Try to execute commands from $HOME/.octaverc and ./.octaverc.
  5673. +   char *home_rc = 0;
  5674. +   if (home_directory)
  5675. +     {
  5676. +       home_rc = strconcat (home_directory, "/.octaverc");
  5677. +       parse_and_execute (home_rc, 0, verbose);
  5678. +     }
  5679. + // Names alone are not enough.
  5680. +   struct stat home_rc_statbuf;
  5681. +   stat (home_rc, &home_rc_statbuf);
  5682. +   delete [] home_rc;
  5683. +   struct stat dot_rc_statbuf;
  5684. +   stat ("./.octaverc", &dot_rc_statbuf);
  5685. +   if (home_rc_statbuf.st_ino != dot_rc_statbuf.st_ino)
  5686. +     parse_and_execute ("./.octaverc", 0, verbose);
  5687. +   run_unwind_frame ("execute_startup_files");
  5688. + }
  5689. + // Usage message with extra help.
  5690. + static void
  5691. + verbose_usage (void)
  5692. + {
  5693. +   cout << "\n" OCTAVE_NAME_VERSION_AND_COPYRIGHT "\n\n\
  5694. + Usage: " << usage_string << "\n\
  5695. + \n\
  5696. +   -d, --debug             enter parser debugging mode\n\
  5697. +   -f, --ignore-init-file  don't read any initialization files\n\
  5698. +   -h, -?, --help          print short help message and exit\n\
  5699. +   -i, --interactive       force interactive behavior\n\
  5700. +   --info-file FILE        use top-level info file FILE\n\
  5701. +   -p PATH, --path PATH    set initial LOADPATH to PATH\n\
  5702. +   -q, --silent            don't print message at startup\n\
  5703. +   -V, --verbose           enable verbose output in some cases\n\
  5704. +   -v, --version           print version number and exit\n\
  5705. +   -x, --echo-commands     echo commands as they are executed\n\
  5706. + \n\
  5707. +   FILE                    execute commands from FILE\n\
  5708. + \n";
  5709. +   exit (0);
  5710. + }
  5711. + // Terse usage messsage.
  5712. + static void
  5713. + usage (void)
  5714. + {
  5715. +   cerr << "usage: " << usage_string << "\n";
  5716. +   exit (1);
  5717. + }
  5718. + // Fix up things before exiting.
  5719. + void
  5720. + clean_up_and_exit (int retval)
  5721. + {
  5722. +   raw_mode (0);
  5723. +   clean_up_history ();
  5724. +   close_plot_stream ();
  5725. +   close_diary_file ();
  5726. +   close_files ();
  5727. +   cleanup_tmp_files ();
  5728. +   if (!quitting_gracefully && (interactive || forced_interactive))
  5729. +     cout << "\n";
  5730. +   if (retval == EOF)
  5731. +     retval = 0;
  5732. +   exit (retval);
  5733. + // This is bogus but should prevent g++ from giving a warning saying
  5734. + // that this volatile function does return.
  5735. +   panic_impossible ();
  5736. + }
  5737. + static void
  5738. + print_version_and_exit (void)
  5739. + {
  5740. +   cout << OCTAVE_NAME_AND_VERSION << "\n";
  5741. +   exit (0);
  5742. + }
  5743. + static void
  5744. + initialize_error_handlers ()
  5745. + {
  5746. +   set_Complex_error_handler (octave_Complex_error_handler);
  5747. +   set_liboctave_error_handler (error);
  5748. + }
  5749. + // You guessed it.
  5750. + int
  5751. + main (int argc, char **argv)
  5752. + {
  5753. + // The order of these calls is important, and initialize globals must
  5754. + // come before the options are processed because some command line
  5755. + // options override defaults.
  5756. +   printf ("Hi, I'm octave!\n"); fflush (stdout);
  5757. +   init_user_prefs ();
  5758. +   initialize_pager ();
  5759. +   sysdep_init ();
  5760. +   initialize_error_handlers ();
  5761. +   initialize_globals (argv[0]);
  5762. +   int optc;
  5763. +   while ((optc = getopt_long (argc, argv, short_opts, long_opts, 0)) != EOF)
  5764. +     {
  5765. +       switch (optc)
  5766. +     {
  5767. +     case 'V':
  5768. +       verbose_flag++;
  5769. +       break;
  5770. +     case 'd':
  5771. +       yydebug++;
  5772. +       break;
  5773. +     case 'f':
  5774. +       read_init_files = 0;
  5775. +       break;
  5776. +     case 'h':
  5777. +     case '?':
  5778. +       verbose_usage ();
  5779. +       break;
  5780. +     case 'i':
  5781. +       forced_interactive = 1;
  5782. +       break;
  5783. +     case 'p':
  5784. +       if (optarg)
  5785. +         load_path = strsave (optarg);
  5786. +       break;
  5787. +     case 'q':
  5788. +       inhibit_startup_message = 1;
  5789. +       break;
  5790. +     case 'x':
  5791. +       echo_input = 1;
  5792. +       break;
  5793. +     case 'v':
  5794. +       print_version_and_exit ();
  5795. +       break;
  5796. +     case INFO_FILE_OPTION:
  5797. +       if (optarg)
  5798. +         info_file = strsave (optarg);
  5799. +       break;
  5800. +     default:
  5801. +       usage ();
  5802. +       break;
  5803. +     }
  5804. +     }
  5805. + #if defined (HAVE_ATEXIT) || (HAVE_ON_EXIT)
  5806. + // Make sure we clean up when we exit.  If we don't have atexit or
  5807. + // on_exit, we're going to leave some junk files around if we exit
  5808. + // abnormally.
  5809. +   atexit (cleanup_tmp_files);
  5810. + #endif
  5811. + // These can come after command line args since none of them set any
  5812. + // defaults that might be changed by command line options.
  5813. +   install_signal_handlers ();
  5814. +   initialize_history ();
  5815. +   initialize_file_io ();
  5816. +   initialize_symbol_tables ();  
  5817. +   install_builtins ();
  5818. +   initialize_readline ();
  5819. +   init_dynamic_linker ();
  5820. +   if (! inhibit_startup_message)
  5821. +     cout << OCTAVE_STARTUP_MESSAGE "\n" << endl;
  5822. +   if (read_init_files)
  5823. +     {
  5824. +       saving_history = 0;
  5825. +       execute_startup_files ();
  5826. +       saving_history = 1;
  5827. +     }
  5828. +   if (! inhibit_startup_message && reading_startup_message_printed)
  5829. +     cout << endl;
  5830. + // Avoid counting commands executed from startup files.
  5831. +   current_command_number = 1;
  5832. + // If there is an extra argument, see if it names a file to read.
  5833. +   int remaining_args = argc - optind;
  5834. +   if (remaining_args > 1)
  5835. +     {
  5836. +       usage ();
  5837. +     }
  5838. +   else if (remaining_args == 1)
  5839. +     {
  5840. +       reading_script_file = 1;
  5841. +       curr_fcn_file_name = argv[optind];
  5842. +       FILE *infile = get_input_from_file (curr_fcn_file_name);
  5843. +       if (infile)
  5844. +     {
  5845. +       rl_blink_matching_paren = 0;
  5846. +       switch_to_buffer (create_buffer (infile));
  5847. +     }
  5848. +       else
  5849. +     clean_up_and_exit (1);
  5850. +     }
  5851. +   else
  5852. +     {
  5853. +       switch_to_buffer (create_buffer (get_input_from_stdin ()));
  5854. + // Is input coming from a terminal?  If so, we are probably
  5855. + // interactive.
  5856. +       interactive = (isatty (fileno (stdin)) && isatty (fileno (stdout)));
  5857. +     }
  5858. + // Force input to be echoed if not really interactive, but the user
  5859. + // has forced interactive behavior.
  5860. +   if (!interactive && forced_interactive)
  5861. +     {
  5862. +       rl_blink_matching_paren = 0;
  5863. +       echo_input = 1;
  5864. +     }
  5865. +   if (! (interactive || forced_interactive))
  5866. +     using_readline = 0;
  5867. + // Allow the user to interrupt us without exiting.
  5868. +   volatile sig_handler *saved_sigint_handler = signal (SIGINT, SIG_IGN);
  5869. +   if (setjmp (toplevel) != 0)
  5870. +     {
  5871. +       raw_mode (0);
  5872. +       cout << "\n";
  5873. +     }
  5874. +   can_interrupt = 1;
  5875. +   signal (SIGINT, saved_sigint_handler);
  5876. + // The big loop.
  5877. +   int retval;
  5878. +   do
  5879. +     {
  5880. +       curr_sym_tab = top_level_sym_tab;
  5881. +       reset_parser ();
  5882. +       retval = yyparse ();
  5883. +       if (retval == 0 && global_command)
  5884. +     {
  5885. +       global_command->eval (1);
  5886. +       delete global_command;
  5887. +       current_command_number++;
  5888. +     }
  5889. +     }
  5890. +   while (retval == 0);
  5891. +   if (retval == 1 && ! error_state)
  5892. +     retval = 0;
  5893. +   clean_up_and_exit (retval);
  5894. + }
  5895. + DEFUN_TEXT ("casesen", Fcasesen, Scasesen, 2, 1,
  5896. +   "casesen [on|off]")
  5897. + {
  5898. +   Octave_object retval;
  5899. +   DEFINE_ARGV("casesen");
  5900. +   if (argc == 1 || (argc > 1 && strcmp (argv[1], "off") == 0))
  5901. +     warning ("casesen: sorry, Octave is always case sensitive");
  5902. +   else if (argc > 1 && strcmp (argv[1], "on") == 0)
  5903. +     ; // ok.
  5904. +   else
  5905. +     print_usage ("casesen");
  5906. +   DELETE_ARGV;
  5907. +   return retval;
  5908. + }
  5909. + DEFUN ("computer", Fcomputer, Scomputer, 1, 0,
  5910. +   "computer ():\n\
  5911. + \n\
  5912. + Have Octave ask the system, \"What kind of computer are you?\"")
  5913. + {
  5914. +   Octave_object retval;
  5915. +   int nargin = args.length ();
  5916. +   if (nargin != 0)
  5917. +     warning ("computer: ignoring extra arguments");
  5918. +   ostrstream output_buf;
  5919. +   if (strcmp (TARGET_HOST_TYPE, "unknown") == 0)
  5920. +     output_buf << "Hi Dave, I'm a HAL-9000";
  5921. +   else
  5922. +     output_buf << TARGET_HOST_TYPE;
  5923. +   if (nargout == 0)
  5924. +     {
  5925. +       output_buf << "\n" << ends;
  5926. +       maybe_page_output (output_buf);
  5927. +     }
  5928. +   else
  5929. +     {
  5930. +       output_buf << ends;
  5931. +       char *msg = output_buf.str ();
  5932. +       retval = msg;
  5933. +       delete [] msg;
  5934. +     }
  5935. +   return retval;
  5936. + }
  5937. + DEFUN ("flops", Fflops, Sflops, 0, 1,
  5938. +   "flops (): count floating point operations")
  5939. + {
  5940. +   int nargin = args.length ();
  5941. +   if (nargin > 0)
  5942. +     print_usage ("flops");
  5943. +   warning ("flops is a flop, always returning zero");
  5944. +   return 0.0;
  5945. + }
  5946. + DEFUN ("quit", Fquit, Squit, 0, 0,
  5947. +   "quit (): exit Octave gracefully")
  5948. + {
  5949. +   Octave_object retval;
  5950. +   quitting_gracefully = 1;
  5951. +   clean_up_and_exit (0);
  5952. +   return retval;
  5953. + }
  5954. + DEFALIAS (exit, quit);
  5955. + DEFUN ("warranty", Fwarranty, Swarranty, 0, 0,
  5956. +   "warranty (): describe copying conditions")
  5957. + {
  5958. +   Octave_object retval;
  5959. +   ostrstream output_buf;
  5960. +   output_buf << "\n" OCTAVE_NAME_VERSION_AND_COPYRIGHT "\n\n\
  5961. + This program is free software; you can redistribute it and/or modify\n\
  5962. + it under the terms of the GNU General Public License as published by\n\
  5963. + the Free Software Foundation; either version 2 of the License, or\n\
  5964. + (at your option) any later version.\n\
  5965. + \n\
  5966. + This program is distributed in the hope that it will be useful,\n\
  5967. + but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
  5968. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n\
  5969. + GNU General Public License for more details.\n\
  5970. + \n\
  5971. + You should have received a copy of the GNU General Public License\n\
  5972. + along with this program. If not, write to the Free Software\n\
  5973. + Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.\n\
  5974. + \n";
  5975. +   output_buf << ends;
  5976. +   maybe_page_output (output_buf);
  5977. +   return retval;
  5978. + }
  5979. + // XXX FIXME XXX -- this may not be the best place for these...
  5980. + Octave_object
  5981. + feval (const Octave_object& args, int nargout)
  5982. + {
  5983. +   Octave_object retval;
  5984. +   tree_fvc *fcn = is_valid_function (args(0), "feval", 1);
  5985. +   if (fcn)
  5986. +     {
  5987. +       int tmp_nargin = args.length () - 1;
  5988. +       Octave_object tmp_args;
  5989. +       tmp_args.resize (tmp_nargin);
  5990. +       for (int i = 0; i < tmp_nargin; i++)
  5991. +     tmp_args(i) = args(i+1);
  5992. +       retval = fcn->eval (0, nargout, tmp_args);
  5993. +     }
  5994. +   return retval;
  5995. + }
  5996. + DEFUN ("feval", Ffeval, Sfeval, -1, 1,
  5997. +   "feval (NAME, ARGS, ...)\n\
  5998. + \n\
  5999. + evaluate NAME as a function, passing ARGS as its arguments")
  6000. + {
  6001. +   Octave_object retval;
  6002. +   int nargin = args.length ();
  6003. +   if (nargin > 0)
  6004. +     retval = feval (args, nargout);
  6005. +   else
  6006. +     print_usage ("feval");
  6007. +   return retval;
  6008. + }
  6009. + static Octave_object
  6010. + eval_string (const char *string, int print, int ans_assign,
  6011. +          int& parse_status, int nargout)
  6012. + {
  6013. +   begin_unwind_frame ("eval_string");
  6014. +   unwind_protect_int (get_input_from_eval_string);
  6015. +   unwind_protect_ptr (global_command);
  6016. +   unwind_protect_ptr (current_eval_string);
  6017. +   get_input_from_eval_string = 1;
  6018. +   current_eval_string = string;
  6019. +   YY_BUFFER_STATE old_buf = current_buffer ();
  6020. +   YY_BUFFER_STATE new_buf = create_buffer (0);
  6021. +   add_unwind_protect (restore_input_buffer, (void *) old_buf);
  6022. +   add_unwind_protect (delete_input_buffer, (void *) new_buf);
  6023. +   switch_to_buffer (new_buf);
  6024. +   unwind_protect_ptr (curr_sym_tab);
  6025. +   reset_parser ();
  6026. +   parse_status = yyparse ();
  6027. + // Important to reset the idea of where input is coming from before
  6028. + // trying to eval the command we just parsed -- it might contain the
  6029. + // name of an function file that still needs to be parsed!
  6030. +   tree_statement_list *command = global_command;
  6031. +   run_unwind_frame ("eval_string");
  6032. +   Octave_object retval;
  6033. +   if (parse_status == 0 && command)
  6034. +     {
  6035. +       retval = command->eval (print, nargout);
  6036. +       delete command;
  6037. +     }
  6038. +   return retval;
  6039. + }
  6040. + tree_constant
  6041. + eval_string (const char *string, int print, int ans_assign,
  6042. +          int& parse_status)
  6043. + {
  6044. +   tree_constant retval;
  6045. +   Octave_object tmp = eval_string (string, print, ans_assign,
  6046. +                    parse_status, 1);
  6047. +   retval = tmp(0);
  6048. +   return retval;
  6049. + }
  6050. + static Octave_object
  6051. + eval_string (const tree_constant& arg, int& parse_status, int nargout)
  6052. + {
  6053. +   char *string = arg.string_value ();
  6054. +   if (error_state)
  6055. +     {
  6056. +       error ("eval: expecting string argument");
  6057. +       return -1.0;
  6058. +     }
  6059. + // Yes Virginia, we always print here...
  6060. +   return eval_string (string, 1, 1, parse_status, nargout);
  6061. + }
  6062. + DEFUN ("eval", Feval, Seval, 2, 1,
  6063. +   "eval (TRY, CATCH)\n\
  6064. + \n\
  6065. + Evaluate the string TRY as octave code.  If that fails, evaluate the\n\
  6066. + string CATCH.")
  6067. + {
  6068. +   Octave_object retval;
  6069. +   int nargin = args.length ();
  6070. +   if (nargin > 0)
  6071. +     {
  6072. +       begin_unwind_frame ("Feval");
  6073. +       if (nargin > 1)
  6074. +     {
  6075. +       unwind_protect_int (suppress_octave_error_messages);
  6076. +       suppress_octave_error_messages = 1;
  6077. +     }
  6078. +       int parse_status = 0;
  6079. +       retval = eval_string (args(0), parse_status, nargout);
  6080. +       if (nargin > 1 && (parse_status != 0 || error_state))
  6081. +     {
  6082. +       error_state = 0;
  6083. +       eval_string (args(1), parse_status, nargout);
  6084. +       retval = Octave_object ();
  6085. +     }
  6086. +       run_unwind_frame ("Feval");
  6087. +     }
  6088. +   else
  6089. +     print_usage ("eval");
  6090. +   return retval;
  6091. + }
  6092. + // Execute a shell command.
  6093. + DEFUN ("system", Fsystem, Ssystem, 2, 1,
  6094. +   "system (string [, return_output]): execute shell commands")
  6095. + {
  6096. +   Octave_object retval;
  6097. +   int nargin = args.length ();
  6098. +   if (nargin < 1 || nargin > 2)
  6099. +     {
  6100. +       print_usage ("system");
  6101. +       return retval;
  6102. +     }
  6103. +   tree_constant tc_command = args(0);
  6104. +   char *tmp_str = tc_command.string_value ();
  6105. +   if (error_state)
  6106. +     {
  6107. +       error ("system: expecting string as first argument");
  6108. +     }
  6109. +   else
  6110. +     {
  6111. +       iprocstream cmd (tmp_str);
  6112. +       ostrstream output_buf;
  6113. +       char ch;
  6114. +       while (cmd.get (ch))
  6115. +     output_buf.put (ch);
  6116. +       output_buf << ends;
  6117. +       int status = cmd.close ();
  6118. + // The value in status is as returned by waitpid.  If the process
  6119. + // exited normally, extract the actual exit status of the command.
  6120. + // Otherwise, return 127 as a failure code.
  6121. +       if ((status & 0xff) == 0)
  6122. +     status = (status & 0xff00) >> 8;
  6123. +       else
  6124. +     status = 127;
  6125. +       if (nargout > 0 || nargin > 1)
  6126. +     {
  6127. +       char *msg = output_buf.str ();
  6128. +       retval(1) = (double) status;
  6129. +       retval(0) = msg;
  6130. +       delete [] msg;
  6131. +     }
  6132. +       else
  6133. +     maybe_page_output (output_buf);
  6134. +     }
  6135. +   return retval;
  6136. + }
  6137. + DEFALIAS (shell_cmd, system);
  6138. + /*
  6139. + ;;; Local Variables: ***
  6140. + ;;; mode: C++ ***
  6141. + ;;; page-delimiter: "^/\\*" ***
  6142. + ;;; End: ***
  6143. + */
  6144. diff -rc --new-file octave-1.1.1-base/src/octave.cc.old octave-1.1.1/src/octave.cc.old
  6145. *** octave-1.1.1-base/src/octave.cc.old    Thu Jan  1 00:00:00 1970
  6146. --- octave-1.1.1/src/octave.cc.old    Sun Mar  5 09:57:56 1995
  6147. ***************
  6148. *** 0 ****
  6149. --- 1,975 ----
  6150. + // octave.cc                                            -*- C++ -*-
  6151. + /*
  6152. + Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton
  6153. + This file is part of Octave.
  6154. + Octave is free software; you can redistribute it and/or modify it
  6155. + under the terms of the GNU General Public License as published by the
  6156. + Free Software Foundation; either version 2, or (at your option) any
  6157. + later version.
  6158. + Octave is distributed in the hope that it will be useful, but WITHOUT
  6159. + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  6160. + FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  6161. + for more details.
  6162. + You should have received a copy of the GNU General Public License
  6163. + along with Octave; see the file COPYING.  If not, write to the Free
  6164. + Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  6165. + */
  6166. + // Born February 20, 1992.
  6167. + #ifdef HAVE_CONFIG_H
  6168. + #include "config.h"
  6169. + #endif
  6170. + #include <sys/types.h>
  6171. + #ifdef HAVE_UNISTD_H
  6172. + #include <unistd.h>
  6173. + #endif
  6174. + #include <sys/stat.h>
  6175. + #include <time.h>
  6176. + #include <pwd.h>
  6177. + #include <stdlib.h>
  6178. + #include </gnu/include/string.h>
  6179. + #include <signal.h>
  6180. + #include <assert.h>
  6181. + #include <iostream.h>
  6182. + #include <strstream.h>
  6183. + #include <fstream.h>
  6184. + extern "C"
  6185. + {
  6186. + #include <setjmp.h>
  6187. + }
  6188. + #include "getopt.h"
  6189. + #include "lo-error.h"
  6190. + #include "sighandlers.h"
  6191. + #include "variables.h"
  6192. + #include "error.h"
  6193. + #include "dynamic-ld.h"
  6194. + #include "tree-misc.h"
  6195. + #include "tree-const.h"
  6196. + #include "tree-plot.h"
  6197. + #include "utils.h"
  6198. + #include "input.h"
  6199. + #include "pager.h"
  6200. + #include "lex.h"
  6201. + #include "help.h"
  6202. + #include "octave.h"
  6203. + #include "parse.h"
  6204. + #include "defaults.h"
  6205. + #include "user-prefs.h"
  6206. + #include "procstream.h"
  6207. + #include "unwind-prot.h"
  6208. + #include "octave-hist.h"
  6209. + #include "builtins.h"
  6210. + #include "version.h"
  6211. + #include "file-io.h"
  6212. + #include "sysdep.h"
  6213. + #include "defun.h"
  6214. + #if !defined (HAVE_ATEXIT) && defined (HAVE_ON_EXIT)
  6215. + extern "C" { int on_exit (); }
  6216. + #define atexit on_exit
  6217. + #endif
  6218. + // argv[0] for this program.
  6219. + char *raw_prog_name = 0;
  6220. + // Cleaned-up name of this program, not including path information.
  6221. + char *prog_name = 0;
  6222. + // Login name for user running this program.
  6223. + char *user_name = 0;
  6224. + // Name of the host we are running on.
  6225. + char *host_name = 0;
  6226. + // User's home directory.
  6227. + char *home_directory = 0;
  6228. + // Guess what?
  6229. + char *the_current_working_directory = 0;
  6230. + // Load path specified on command line.  (--path path; -p path)
  6231. + char *load_path = 0;
  6232. + // Name of the info file specified on command line.
  6233. + // (--info-file file; -i file)
  6234. + char *info_file = 0;
  6235. + // Name of the editor to be invoked by the edit_history command.
  6236. + char *editor = 0;
  6237. + // If nonzero, don't do fancy line editing.
  6238. + int no_line_editing = 0;
  6239. + // If nonzero, print verbose info in some cases.
  6240. + // (--verbose; -V)
  6241. + int verbose_flag = 0;
  6242. + // Command number, counting from the beginning of this session.
  6243. + int current_command_number = 1;
  6244. + // Nonzero means we are exiting via the builtin exit or quit functions.
  6245. + int quitting_gracefully = 0;
  6246. + // Current command to execute.
  6247. + tree_statement_list *global_command = 0;
  6248. + // Pointer to function that is currently being evaluated.
  6249. + tree_function *curr_function = 0;
  6250. + // Nonzero means input is coming from startup file.
  6251. + int input_from_startup_file = 0;
  6252. + // Top level context (?)
  6253. + jmp_buf toplevel;
  6254. + // This is not really the right place to do this...
  6255. + typedef void (*one_arg_error_handler_t) (const char*);
  6256. + extern one_arg_error_handler_t set_Complex_error_handler
  6257. +   (one_arg_error_handler_t f);
  6258. + // This is from readline's paren.c:
  6259. + extern int rl_blink_matching_paren;
  6260. + static void
  6261. + octave_Complex_error_handler (const char* msg)
  6262. + {
  6263. +   warning (msg);
  6264. + }
  6265. + // Nonzero means we read ~/.octaverc and ./.octaverc.
  6266. + // (--norc; --ignore-init-file; -f)
  6267. + static int read_init_files = 1;
  6268. + // Nonzero means we printed messages about reading startup files.
  6269. + static int reading_startup_message_printed = 0;
  6270. + // Nonzero means we don\'t print the usual startup message.
  6271. + // (--quiet; --silent; -q)
  6272. + static int inhibit_startup_message = 0;
  6273. + // Usage message
  6274. + static const char *usage_string = 
  6275. +   "octave [-?Vdfhiqvx] [-p path] [--debug] [--help] [--ignore-init-file]\n\
  6276. +        [--info-file file] [--interactive] [--path path] [--silent]\n\
  6277. +        [--verbose] [--version] [--echo-commands] [file]";
  6278. + // This is here so that it\'s more likely that the usage message and
  6279. + // the real set of options will agree.
  6280. + static const char *short_opts = "?Vdfhip:qvx";
  6281. + // Long options.  See the comments in getopt.h for the meanings of the
  6282. + // fields in this structure.
  6283. + #define INFO_FILE_OPTION 1
  6284. + static struct option long_opts[] =
  6285. +   {
  6286. +     { "debug",            no_argument,       0, 'd' },
  6287. +     { "help",             no_argument,       0, 'h' },
  6288. +     { "interactive",      no_argument,       0, 'i' },
  6289. +     { "info-file",        required_argument, 0, INFO_FILE_OPTION },
  6290. +     { "norc",             no_argument,       0, 'f' },
  6291. +     { "ignore-init-file", no_argument,       0, 'f' },
  6292. +     { "path",             required_argument, 0, 'p' },
  6293. +     { "quiet",            no_argument,       0, 'q' },
  6294. +     { "silent",           no_argument,       0, 'q' },
  6295. +     { "verbose",          no_argument,       0, 'V' },
  6296. +     { "version",          no_argument,       0, 'v' },
  6297. +     { "echo-commands",    no_argument,       0, 'x' },
  6298. +     { 0,                  0,                 0, 0 }
  6299. +   };
  6300. + // Initialize some global variables for later use.
  6301. + static void
  6302. + initialize_globals (char *name)
  6303. + {
  6304. +   struct passwd *entry = getpwuid (getuid ());
  6305. +   if (entry)
  6306. +     user_name = strsave (entry->pw_name);
  6307. +   else
  6308. +     user_name = strsave ("I have no name!");
  6309. +   endpwent ();
  6310. +   char hostname[256];
  6311. +   if (gethostname (hostname, 255) < 0)
  6312. +     host_name = strsave ("I have no host!");
  6313. +   else
  6314. +     host_name = strsave (hostname);
  6315. +   char *hd = getenv ("HOME");
  6316. +   if (hd)
  6317. +     home_directory = strsave (hd);
  6318. +   else
  6319. +     home_directory = strsave ("I have no home!");
  6320. +   char *shell_path = getenv ("PATH");
  6321. +   char *arch_dir = octave_arch_lib_dir ();
  6322. +   char *bin_dir = octave_bin_dir ();
  6323. +   int len = strlen (arch_dir) + strlen (bin_dir) + 7;
  6324. +   char *putenv_cmd = 0;
  6325. +   if (shell_path)
  6326. +     {
  6327. +       len += strlen (shell_path) + 1;
  6328. +       putenv_cmd = new char [len];
  6329. +       sprintf (putenv_cmd,
  6330. +            "PATH=%s" SEPCHAR_STR "%s" SEPCHAR_STR "%s",
  6331. +            shell_path, arch_dir, bin_dir);
  6332. +     }
  6333. +   else
  6334. +     {
  6335. +       putenv_cmd = new char [len];
  6336. +       sprintf (putenv_cmd, "PATH=%s" SEPCHAR_STR "%s", arch_dir, bin_dir);
  6337. +     }
  6338. +   putenv (putenv_cmd);
  6339. +   raw_prog_name = strsave (name);
  6340. +   prog_name = strsave ("octave");
  6341. +   load_path = default_path ();
  6342. +   info_file = default_info_file ();
  6343. +   editor = default_editor ();
  6344. + }
  6345. + void
  6346. + parse_and_execute (FILE *f, int print)
  6347. + {
  6348. +   begin_unwind_frame ("parse_and_execute");
  6349. +   
  6350. +   YY_BUFFER_STATE old_buf = current_buffer ();
  6351. +   YY_BUFFER_STATE new_buf = create_buffer (f);
  6352. +   add_unwind_protect (restore_input_buffer, (void *) old_buf);
  6353. +   add_unwind_protect (delete_input_buffer, (void *) new_buf);
  6354. +   switch_to_buffer (new_buf);
  6355. +   unwind_protect_int (echo_input);
  6356. +   unwind_protect_int (using_readline);
  6357. +   unwind_protect_int (saving_history);
  6358. +   echo_input = 0;
  6359. +   using_readline = 0;
  6360. +   saving_history = 0;
  6361. +   unwind_protect_ptr (curr_sym_tab);
  6362. +   int retval;
  6363. +   do
  6364. +     {
  6365. +       reset_parser ();
  6366. +       retval = yyparse ();
  6367. +       if (retval == 0 && global_command)
  6368. +     {
  6369. +       global_command->eval (print);
  6370. +       delete global_command;
  6371. +     }
  6372. +     }
  6373. +   while (retval == 0);
  6374. +   run_unwind_frame ("parse_and_execute");
  6375. + }
  6376. + void
  6377. + parse_and_execute (char *s, int print, int verbose)
  6378. + {
  6379. +   begin_unwind_frame ("parse_and_execute_2");
  6380. +   unwind_protect_int (reading_script_file);
  6381. +   reading_script_file = 1;
  6382. +   FILE *f = get_input_from_file (s, 0);
  6383. +   if (f)
  6384. +     {
  6385. +       unwind_protect_int (input_line_number);
  6386. +       unwind_protect_int (current_input_column);
  6387. +       unwind_protect_int (echo_input);
  6388. +       input_line_number = 0;
  6389. +       current_input_column = 1;
  6390. +       echo_input = 0;
  6391. +       if (verbose)
  6392. +     {
  6393. +       cout << "reading commands from " << s << " ... ";
  6394. +       reading_startup_message_printed = 1;
  6395. +       cout.flush ();
  6396. +     }
  6397. +       parse_and_execute (f, print);
  6398. +       fclose (f);
  6399. +       if (verbose)
  6400. +     cout << "done." << endl;
  6401. +     }
  6402. +   run_unwind_frame ("parse_and_execute_2");
  6403. + }
  6404. + // Initialize by reading startup files.
  6405. + static void
  6406. + execute_startup_files (void)
  6407. + {
  6408. +   begin_unwind_frame ("execute_startup_files");
  6409. +   unwind_protect_int (input_from_startup_file);
  6410. +   input_from_startup_file = 1;
  6411. +   int verbose = (verbose_flag && ! inhibit_startup_message);
  6412. + // Execute commands from the site-wide configuration file.
  6413. +   char *sd = get_site_defaults ();
  6414. +   parse_and_execute (sd, 0, verbose);
  6415. + // Try to execute commands from $HOME/.octaverc and ./.octaverc.
  6416. +   char *home_rc = 0;
  6417. +   if (home_directory)
  6418. +     {
  6419. +       home_rc = strconcat (home_directory, "/.octaverc");
  6420. +       parse_and_execute (home_rc, 0, verbose);
  6421. +     }
  6422. + // Names alone are not enough.
  6423. +   struct stat home_rc_statbuf;
  6424. +   stat (home_rc, &home_rc_statbuf);
  6425. +   delete [] home_rc;
  6426. +   struct stat dot_rc_statbuf;
  6427. +   stat ("./.octaverc", &dot_rc_statbuf);
  6428. +   if (home_rc_statbuf.st_ino != dot_rc_statbuf.st_ino)
  6429. +     parse_and_execute ("./.octaverc", 0, verbose);
  6430. +   run_unwind_frame ("execute_startup_files");
  6431. + }
  6432. + // Usage message with extra help.
  6433. + static void
  6434. + verbose_usage (void)
  6435. + {
  6436. +   cout << "\n" OCTAVE_NAME_VERSION_AND_COPYRIGHT "\n\n\
  6437. + Usage: " << usage_string << "\n\
  6438. + \n\
  6439. +   -d, --debug             enter parser debugging mode\n\
  6440. +   -f, --ignore-init-file  don't read any initialization files\n\
  6441. +   -h, -?, --help          print short help message and exit\n\
  6442. +   -i, --interactive       force interactive behavior\n\
  6443. +   --info-file FILE        use top-level info file FILE\n\
  6444. +   -p PATH, --path PATH    set initial LOADPATH to PATH\n\
  6445. +   -q, --silent            don't print message at startup\n\
  6446. +   -V, --verbose           enable verbose output in some cases\n\
  6447. +   -v, --version           print version number and exit\n\
  6448. +   -x, --echo-commands     echo commands as they are executed\n\
  6449. + \n\
  6450. +   FILE                    execute commands from FILE\n\
  6451. + \n";
  6452. +   exit (0);
  6453. + }
  6454. + // Terse usage messsage.
  6455. + static void
  6456. + usage (void)
  6457. + {
  6458. +   cerr << "usage: " << usage_string << "\n";
  6459. +   exit (1);
  6460. + }
  6461. + // Fix up things before exiting.
  6462. + void
  6463. + clean_up_and_exit (int retval)
  6464. + {
  6465. +   raw_mode (0);
  6466. +   clean_up_history ();
  6467. +   close_plot_stream ();
  6468. +   close_diary_file ();
  6469. +   close_files ();
  6470. +   cleanup_tmp_files ();
  6471. +   if (!quitting_gracefully && (interactive || forced_interactive))
  6472. +     cout << "\n";
  6473. +   if (retval == EOF)
  6474. +     retval = 0;
  6475. +   exit (retval);
  6476. + // This is bogus but should prevent g++ from giving a warning saying
  6477. + // that this volatile function does return.
  6478. +   panic_impossible ();
  6479. + }
  6480. + static void
  6481. + print_version_and_exit (void)
  6482. + {
  6483. +   cout << OCTAVE_NAME_AND_VERSION << "\n";
  6484. +   exit (0);
  6485. + }
  6486. + static void
  6487. + initialize_error_handlers ()
  6488. + {
  6489. +   set_Complex_error_handler (octave_Complex_error_handler);
  6490. +   set_liboctave_error_handler (error);
  6491. + }
  6492. + // You guessed it.
  6493. + int
  6494. + main (int argc, char **argv)
  6495. + {
  6496. + // The order of these calls is important, and initialize globals must
  6497. + // come before the options are processed because some command line
  6498. + // options override defaults.
  6499. +   init_user_prefs ();
  6500. +   initialize_pager ();
  6501. +   sysdep_init ();
  6502. +   initialize_error_handlers ();
  6503. +   initialize_globals (argv[0]);
  6504. +   int optc;
  6505. +   while ((optc = getopt_long (argc, argv, short_opts, long_opts, 0)) != EOF)
  6506. +     {
  6507. +       switch (optc)
  6508. +     {
  6509. +     case 'V':
  6510. +       verbose_flag++;
  6511. +       break;
  6512. +     case 'd':
  6513. +       yydebug++;
  6514. +       break;
  6515. +     case 'f':
  6516. +       read_init_files = 0;
  6517. +       break;
  6518. +     case 'h':
  6519. +     case '?':
  6520. +       verbose_usage ();
  6521. +       break;
  6522. +     case 'i':
  6523. +       forced_interactive = 1;
  6524. +       break;
  6525. +     case 'p':
  6526. +       if (optarg)
  6527. +         load_path = strsave (optarg);
  6528. +       break;
  6529. +     case 'q':
  6530. +       inhibit_startup_message = 1;
  6531. +       break;
  6532. +     case 'x':
  6533. +       echo_input = 1;
  6534. +       break;
  6535. +     case 'v':
  6536. +       print_version_and_exit ();
  6537. +       break;
  6538. +     case INFO_FILE_OPTION:
  6539. +       if (optarg)
  6540. +         info_file = strsave (optarg);
  6541. +       break;
  6542. +     default:
  6543. +       usage ();
  6544. +       break;
  6545. +     }
  6546. +     }
  6547. + #if defined (HAVE_ATEXIT) || (HAVE_ON_EXIT)
  6548. + // Make sure we clean up when we exit.  If we don't have atexit or
  6549. + // on_exit, we're going to leave some junk files around if we exit
  6550. + // abnormally.
  6551. +   atexit (cleanup_tmp_files);
  6552. + #endif
  6553. + // These can come after command line args since none of them set any
  6554. + // defaults that might be changed by command line options.
  6555. +   install_signal_handlers ();
  6556. +   initialize_history ();
  6557. +   initialize_file_io ();
  6558. +   initialize_symbol_tables ();  
  6559. +   install_builtins ();
  6560. +   initialize_readline ();
  6561. +   init_dynamic_linker ();
  6562. +   if (! inhibit_startup_message)
  6563. +     cout << OCTAVE_STARTUP_MESSAGE "\n" << endl;
  6564. +   if (read_init_files)
  6565. +     {
  6566. +       saving_history = 0;
  6567. +       execute_startup_files ();
  6568. +       saving_history = 1;
  6569. +     }
  6570. +   if (! inhibit_startup_message && reading_startup_message_printed)
  6571. +     cout << endl;
  6572. + // Avoid counting commands executed from startup files.
  6573. +   current_command_number = 1;
  6574. + // If there is an extra argument, see if it names a file to read.
  6575. +   int remaining_args = argc - optind;
  6576. +   if (remaining_args > 1)
  6577. +     {
  6578. +       usage ();
  6579. +     }
  6580. +   else if (remaining_args == 1)
  6581. +     {
  6582. +       reading_script_file = 1;
  6583. +       curr_fcn_file_name = argv[optind];
  6584. +       FILE *infile = get_input_from_file (curr_fcn_file_name);
  6585. +       if (infile)
  6586. +     {
  6587. +       rl_blink_matching_paren = 0;
  6588. +       switch_to_buffer (create_buffer (infile));
  6589. +     }
  6590. +       else
  6591. +     clean_up_and_exit (1);
  6592. +     }
  6593. +   else
  6594. +     {
  6595. +       switch_to_buffer (create_buffer (get_input_from_stdin ()));
  6596. + // Is input coming from a terminal?  If so, we are probably
  6597. + // interactive.
  6598. +       interactive = (isatty (fileno (stdin)) && isatty (fileno (stdout)));
  6599. +     }
  6600. + // Force input to be echoed if not really interactive, but the user
  6601. + // has forced interactive behavior.
  6602. +   if (!interactive && forced_interactive)
  6603. +     {
  6604. +       rl_blink_matching_paren = 0;
  6605. +       echo_input = 1;
  6606. +     }
  6607. +   if (! (interactive || forced_interactive))
  6608. +     using_readline = 0;
  6609. + // Allow the user to interrupt us without exiting.
  6610. +   volatile sig_handler *saved_sigint_handler = signal (SIGINT, SIG_IGN);
  6611. +   if (setjmp (toplevel) != 0)
  6612. +     {
  6613. +       raw_mode (0);
  6614. +       cout << "\n";
  6615. +     }
  6616. +   can_interrupt = 1;
  6617. +   signal (SIGINT, saved_sigint_handler);
  6618. + // The big loop.
  6619. +   int retval;
  6620. +   do
  6621. +     {
  6622. +       curr_sym_tab = top_level_sym_tab;
  6623. +       reset_parser ();
  6624. +       retval = yyparse ();
  6625. +       if (retval == 0 && global_command)
  6626. +     {
  6627. +       global_command->eval (1);
  6628. +       delete global_command;
  6629. +       current_command_number++;
  6630. +     }
  6631. +     }
  6632. +   while (retval == 0);
  6633. +   if (retval == 1 && ! error_state)
  6634. +     retval = 0;
  6635. +   clean_up_and_exit (retval);
  6636. + }
  6637. + DEFUN_TEXT ("casesen", Fcasesen, Scasesen, 2, 1,
  6638. +   "casesen [on|off]")
  6639. + {
  6640. +   Octave_object retval;
  6641. +   DEFINE_ARGV("casesen");
  6642. +   if (argc == 1 || (argc > 1 && strcmp (argv[1], "off") == 0))
  6643. +     warning ("casesen: sorry, Octave is always case sensitive");
  6644. +   else if (argc > 1 && strcmp (argv[1], "on") == 0)
  6645. +     ; // ok.
  6646. +   else
  6647. +     print_usage ("casesen");
  6648. +   DELETE_ARGV;
  6649. +   return retval;
  6650. + }
  6651. + DEFUN ("computer", Fcomputer, Scomputer, 1, 0,
  6652. +   "computer ():\n\
  6653. + \n\
  6654. + Have Octave ask the system, \"What kind of computer are you?\"")
  6655. + {
  6656. +   Octave_object retval;
  6657. +   int nargin = args.length ();
  6658. +   if (nargin != 0)
  6659. +     warning ("computer: ignoring extra arguments");
  6660. +   ostrstream output_buf;
  6661. +   if (strcmp (TARGET_HOST_TYPE, "unknown") == 0)
  6662. +     output_buf << "Hi Dave, I'm a HAL-9000";
  6663. +   else
  6664. +     output_buf << TARGET_HOST_TYPE;
  6665. +   if (nargout == 0)
  6666. +     {
  6667. +       output_buf << "\n" << ends;
  6668. +       maybe_page_output (output_buf);
  6669. +     }
  6670. +   else
  6671. +     {
  6672. +       output_buf << ends;
  6673. +       char *msg = output_buf.str ();
  6674. +       retval = msg;
  6675. +       delete [] msg;
  6676. +     }
  6677. +   return retval;
  6678. + }
  6679. + DEFUN ("flops", Fflops, Sflops, 0, 1,
  6680. +   "flops (): count floating point operations")
  6681. + {
  6682. +   int nargin = args.length ();
  6683. +   if (nargin > 0)
  6684. +     print_usage ("flops");
  6685. +   warning ("flops is a flop, always returning zero");
  6686. +   return 0.0;
  6687. + }
  6688. + DEFUN ("quit", Fquit, Squit, 0, 0,
  6689. +   "quit (): exit Octave gracefully")
  6690. + {
  6691. +   Octave_object retval;
  6692. +   quitting_gracefully = 1;
  6693. +   clean_up_and_exit (0);
  6694. +   return retval;
  6695. + }
  6696. + DEFALIAS (exit, quit);
  6697. + DEFUN ("warranty", Fwarranty, Swarranty, 0, 0,
  6698. +   "warranty (): describe copying conditions")
  6699. + {
  6700. +   Octave_object retval;
  6701. +   ostrstream output_buf;
  6702. +   output_buf << "\n" OCTAVE_NAME_VERSION_AND_COPYRIGHT "\n\n\
  6703. + This program is free software; you can redistribute it and/or modify\n\
  6704. + it under the terms of the GNU General Public License as published by\n\
  6705. + the Free Software Foundation; either version 2 of the License, or\n\
  6706. + (at your option) any later version.\n\
  6707. + \n\
  6708. + This program is distributed in the hope that it will be useful,\n\
  6709. + but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
  6710. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n\
  6711. + GNU General Public License for more details.\n\
  6712. + \n\
  6713. + You should have received a copy of the GNU General Public License\n\
  6714. + along with this program. If not, write to the Free Software\n\
  6715. + Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.\n\
  6716. + \n";
  6717. +   output_buf << ends;
  6718. +   maybe_page_output (output_buf);
  6719. +   return retval;
  6720. + }
  6721. + // XXX FIXME XXX -- this may not be the best place for these...
  6722. + Octave_object
  6723. + feval (const Octave_object& args, int nargout)
  6724. + {
  6725. +   Octave_object retval;
  6726. +   tree_fvc *fcn = is_valid_function (args(0), "feval", 1);
  6727. +   if (fcn)
  6728. +     {
  6729. +       int tmp_nargin = args.length () - 1;
  6730. +       Octave_object tmp_args;
  6731. +       tmp_args.resize (tmp_nargin);
  6732. +       for (int i = 0; i < tmp_nargin; i++)
  6733. +     tmp_args(i) = args(i+1);
  6734. +       retval = fcn->eval (0, nargout, tmp_args);
  6735. +     }
  6736. +   return retval;
  6737. + }
  6738. + DEFUN ("feval", Ffeval, Sfeval, -1, 1,
  6739. +   "feval (NAME, ARGS, ...)\n\
  6740. + \n\
  6741. + evaluate NAME as a function, passing ARGS as its arguments")
  6742. + {
  6743. +   Octave_object retval;
  6744. +   int nargin = args.length ();
  6745. +   if (nargin > 0)
  6746. +     retval = feval (args, nargout);
  6747. +   else
  6748. +     print_usage ("feval");
  6749. +   return retval;
  6750. + }
  6751. + static Octave_object
  6752. + eval_string (const char *string, int print, int ans_assign,
  6753. +          int& parse_status, int nargout)
  6754. + {
  6755. +   begin_unwind_frame ("eval_string");
  6756. +   unwind_protect_int (get_input_from_eval_string);
  6757. +   unwind_protect_ptr (global_command);
  6758. +   unwind_protect_ptr (current_eval_string);
  6759. +   get_input_from_eval_string = 1;
  6760. +   current_eval_string = string;
  6761. +   YY_BUFFER_STATE old_buf = current_buffer ();
  6762. +   YY_BUFFER_STATE new_buf = create_buffer (0);
  6763. +   add_unwind_protect (restore_input_buffer, (void *) old_buf);
  6764. +   add_unwind_protect (delete_input_buffer, (void *) new_buf);
  6765. +   switch_to_buffer (new_buf);
  6766. +   unwind_protect_ptr (curr_sym_tab);
  6767. +   reset_parser ();
  6768. +   parse_status = yyparse ();
  6769. + // Important to reset the idea of where input is coming from before
  6770. + // trying to eval the command we just parsed -- it might contain the
  6771. + // name of an function file that still needs to be parsed!
  6772. +   tree_statement_list *command = global_command;
  6773. +   run_unwind_frame ("eval_string");
  6774. +   Octave_object retval;
  6775. +   if (parse_status == 0 && command)
  6776. +     {
  6777. +       retval = command->eval (print, nargout);
  6778. +       delete command;
  6779. +     }
  6780. +   return retval;
  6781. + }
  6782. + tree_constant
  6783. + eval_string (const char *string, int print, int ans_assign,
  6784. +          int& parse_status)
  6785. + {
  6786. +   tree_constant retval;
  6787. +   Octave_object tmp = eval_string (string, print, ans_assign,
  6788. +                    parse_status, 1);
  6789. +   retval = tmp(0);
  6790. +   return retval;
  6791. + }
  6792. + static Octave_object
  6793. + eval_string (const tree_constant& arg, int& parse_status, int nargout)
  6794. + {
  6795. +   char *string = arg.string_value ();
  6796. +   if (error_state)
  6797. +     {
  6798. +       error ("eval: expecting string argument");
  6799. +       return -1.0;
  6800. +     }
  6801. + // Yes Virginia, we always print here...
  6802. +   return eval_string (string, 1, 1, parse_status, nargout);
  6803. + }
  6804. + DEFUN ("eval", Feval, Seval, 2, 1,
  6805. +   "eval (TRY, CATCH)\n\
  6806. + \n\
  6807. + Evaluate the string TRY as octave code.  If that fails, evaluate the\n\
  6808. + string CATCH.")
  6809. + {
  6810. +   Octave_object retval;
  6811. +   int nargin = args.length ();
  6812. +   if (nargin > 0)
  6813. +     {
  6814. +       begin_unwind_frame ("Feval");
  6815. +       if (nargin > 1)
  6816. +     {
  6817. +       unwind_protect_int (suppress_octave_error_messages);
  6818. +       suppress_octave_error_messages = 1;
  6819. +     }
  6820. +       int parse_status = 0;
  6821. +       retval = eval_string (args(0), parse_status, nargout);
  6822. +       if (nargin > 1 && (parse_status != 0 || error_state))
  6823. +     {
  6824. +       error_state = 0;
  6825. +       eval_string (args(1), parse_status, nargout);
  6826. +       retval = Octave_object ();
  6827. +     }
  6828. +       run_unwind_frame ("Feval");
  6829. +     }
  6830. +   else
  6831. +     print_usage ("eval");
  6832. +   return retval;
  6833. + }
  6834. + // Execute a shell command.
  6835. + DEFUN ("system", Fsystem, Ssystem, 2, 1,
  6836. +   "system (string [, return_output]): execute shell commands")
  6837. + {
  6838. +   Octave_object retval;
  6839. +   int nargin = args.length ();
  6840. +   if (nargin < 1 || nargin > 2)
  6841. +     {
  6842. +       print_usage ("system");
  6843. +       return retval;
  6844. +     }
  6845. +   tree_constant tc_command = args(0);
  6846. +   char *tmp_str = tc_command.string_value ();
  6847. +   if (error_state)
  6848. +     {
  6849. +       error ("system: expecting string as first argument");
  6850. +     }
  6851. +   else
  6852. +     {
  6853. +       iprocstream cmd (tmp_str);
  6854. +       ostrstream output_buf;
  6855. +       char ch;
  6856. +       while (cmd.get (ch))
  6857. +     output_buf.put (ch);
  6858. +       output_buf << ends;
  6859. +       int status = cmd.close ();
  6860. + // The value in status is as returned by waitpid.  If the process
  6861. + // exited normally, extract the actual exit status of the command.
  6862. + // Otherwise, return 127 as a failure code.
  6863. +       if ((status & 0xff) == 0)
  6864. +     status = (status & 0xff00) >> 8;
  6865. +       else
  6866. +     status = 127;
  6867. +       if (nargout > 0 || nargin > 1)
  6868. +     {
  6869. +       char *msg = output_buf.str ();
  6870. +       retval(1) = (double) status;
  6871. +       retval(0) = msg;
  6872. +       delete [] msg;
  6873. +     }
  6874. +       else
  6875. +     maybe_page_output (output_buf);
  6876. +     }
  6877. +   return retval;
  6878. + }
  6879. + DEFALIAS (shell_cmd, system);
  6880. + /*
  6881. + ;;; Local Variables: ***
  6882. + ;;; mode: C++ ***
  6883. + ;;; page-delimiter: "^/\\*" ***
  6884. + ;;; End: ***
  6885. + */
  6886. diff -rc --new-file octave-1.1.1-base/src/pr-output.cc octave-1.1.1/src/pr-output.cc
  6887. *** octave-1.1.1-base/src/pr-output.cc    Mon Jan 30 20:19:10 1995
  6888. --- octave-1.1.1/src/pr-output.cc    Sun Mar  5 09:57:58 1995
  6889. ***************
  6890. *** 27,33 ****
  6891.   
  6892.   #include <iostream.h>
  6893.   #include <strstream.h>
  6894. ! #include <string.h>
  6895.   #include <math.h>
  6896.   #include <float.h>
  6897.   #include <Complex.h>
  6898. --- 27,33 ----
  6899.   
  6900.   #include <iostream.h>
  6901.   #include <strstream.h>
  6902. ! #include </gnu/include/string.h>
  6903.   #include <math.h>
  6904.   #include <float.h>
  6905.   #include <Complex.h>
  6906. diff -rc --new-file octave-1.1.1-base/src/strcasecmp.c octave-1.1.1/src/strcasecmp.c
  6907. *** octave-1.1.1-base/src/strcasecmp.c    Mon Oct 17 03:40:14 1994
  6908. --- octave-1.1.1/src/strcasecmp.c    Sun Mar  5 09:58:00 1995
  6909. ***************
  6910. *** 22,28 ****
  6911.   
  6912.   #ifndef HAVE_STRCASECMP
  6913.   
  6914. ! #include <string.h>
  6915.   #include <ctype.h>
  6916.   
  6917.   /* Compare S1 and S2, ignoring case, returning less than, equal to or
  6918. --- 22,28 ----
  6919.   
  6920.   #ifndef HAVE_STRCASECMP
  6921.   
  6922. ! #include </gnu/include/string.h>
  6923.   #include <ctype.h>
  6924.   
  6925.   /* Compare S1 and S2, ignoring case, returning less than, equal to or
  6926. diff -rc --new-file octave-1.1.1-base/src/strfns.cc octave-1.1.1/src/strfns.cc
  6927. *** octave-1.1.1-base/src/strfns.cc    Wed Jan  4 04:03:24 1995
  6928. --- octave-1.1.1/src/strfns.cc    Sun Mar  5 09:58:02 1995
  6929. ***************
  6930. *** 26,32 ****
  6931.   #endif
  6932.   
  6933.   #include <ctype.h>
  6934. ! #include <string.h>
  6935.   
  6936.   #include "dMatrix.h"
  6937.   
  6938. --- 26,32 ----
  6939.   #endif
  6940.   
  6941.   #include <ctype.h>
  6942. ! #include </gnu/include/string.h>
  6943.   
  6944.   #include "dMatrix.h"
  6945.   
  6946. diff -rc --new-file octave-1.1.1-base/src/strncase.c octave-1.1.1/src/strncase.c
  6947. *** octave-1.1.1-base/src/strncase.c    Mon Oct 17 03:39:39 1994
  6948. --- octave-1.1.1/src/strncase.c    Sun Mar  5 09:58:04 1995
  6949. ***************
  6950. *** 22,28 ****
  6951.   
  6952.   #ifndef HAVE_STRNCASECMP
  6953.   
  6954. ! #include <string.h>
  6955.   #include <ctype.h>
  6956.   
  6957.   /* Compare no more than N characters of S1 and S2,
  6958. --- 22,28 ----
  6959.   
  6960.   #ifndef HAVE_STRNCASECMP
  6961.   
  6962. ! #include </gnu/include/string.h>
  6963.   #include <ctype.h>
  6964.   
  6965.   /* Compare no more than N characters of S1 and S2,
  6966. diff -rc --new-file octave-1.1.1-base/src/tc-rep-ass.cc octave-1.1.1/src/tc-rep-ass.cc
  6967. *** octave-1.1.1-base/src/tc-rep-ass.cc    Mon Jan 30 20:20:53 1995
  6968. --- octave-1.1.1/src/tc-rep-ass.cc    Sun Mar  5 09:58:08 1995
  6969. ***************
  6970. *** 26,32 ****
  6971.   #endif
  6972.   
  6973.   #include <ctype.h>
  6974. ! #include <string.h>
  6975.   #include <fstream.h>
  6976.   #include <iostream.h>
  6977.   #include <strstream.h>
  6978. --- 26,32 ----
  6979.   #endif
  6980.   
  6981.   #include <ctype.h>
  6982. ! #include </gnu/include/string.h>
  6983.   #include <fstream.h>
  6984.   #include <iostream.h>
  6985.   #include <strstream.h>
  6986. diff -rc --new-file octave-1.1.1-base/src/tc-rep-idx.cc octave-1.1.1/src/tc-rep-idx.cc
  6987. *** octave-1.1.1-base/src/tc-rep-idx.cc    Wed Feb 22 13:39:21 1995
  6988. --- octave-1.1.1/src/tc-rep-idx.cc    Sun Mar  5 09:58:10 1995
  6989. ***************
  6990. *** 26,32 ****
  6991.   #endif
  6992.   
  6993.   #include <ctype.h>
  6994. ! #include <string.h>
  6995.   #include <fstream.h>
  6996.   #include <iostream.h>
  6997.   #include <strstream.h>
  6998. --- 26,32 ----
  6999.   #endif
  7000.   
  7001.   #include <ctype.h>
  7002. ! #include </gnu/include/string.h>
  7003.   #include <fstream.h>
  7004.   #include <iostream.h>
  7005.   #include <strstream.h>
  7006. diff -rc --new-file octave-1.1.1-base/src/tc-rep.cc octave-1.1.1/src/tc-rep.cc
  7007. *** octave-1.1.1-base/src/tc-rep.cc    Mon Jan 30 20:39:16 1995
  7008. --- octave-1.1.1/src/tc-rep.cc    Sun Mar  5 09:58:12 1995
  7009. ***************
  7010. *** 26,32 ****
  7011.   #endif
  7012.   
  7013.   #include <ctype.h>
  7014. ! #include <string.h>
  7015.   #include <fstream.h>
  7016.   #include <iostream.h>
  7017.   #include <strstream.h>
  7018. --- 26,32 ----
  7019.   #endif
  7020.   
  7021.   #include <ctype.h>
  7022. ! #include </gnu/include/string.h>
  7023.   #include <fstream.h>
  7024.   #include <iostream.h>
  7025.   #include <strstream.h>
  7026. diff -rc --new-file octave-1.1.1-base/src/tempname.c octave-1.1.1/src/tempname.c
  7027. *** octave-1.1.1-base/src/tempname.c    Fri Jan 20 19:13:38 1995
  7028. --- octave-1.1.1/src/tempname.c    Sun Mar  5 10:03:30 1995
  7029. ***************
  7030. *** 29,35 ****
  7031.   #include <stddef.h>
  7032.   #include <stdio.h>
  7033.   #include <stdlib.h>
  7034. ! #include <string.h>
  7035.   #include <fcntl.h>
  7036.   
  7037.   #include "statdefs.h"
  7038. --- 29,35 ----
  7039.   #include <stddef.h>
  7040.   #include <stdio.h>
  7041.   #include <stdlib.h>
  7042. ! #include </gnu/include/string.h>
  7043.   #include <fcntl.h>
  7044.   
  7045.   #include "statdefs.h"
  7046. diff -rc --new-file octave-1.1.1-base/src/tree-expr.cc octave-1.1.1/src/tree-expr.cc
  7047. *** octave-1.1.1-base/src/tree-expr.cc    Wed Feb 22 01:18:55 1995
  7048. --- octave-1.1.1/src/tree-expr.cc    Sun Mar  5 09:58:36 1995
  7049. ***************
  7050. *** 32,38 ****
  7051.   
  7052.   #include <iostream.h>
  7053.   #include <strstream.h>
  7054. ! #include <string.h>
  7055.   #include <limits.h>
  7056.   #include <ctype.h>
  7057.   #include <stdio.h>
  7058. --- 32,38 ----
  7059.   
  7060.   #include <iostream.h>
  7061.   #include <strstream.h>
  7062. ! #include </gnu/include/string.h>
  7063.   #include <limits.h>
  7064.   #include <ctype.h>
  7065.   #include <stdio.h>
  7066. diff -rc --new-file octave-1.1.1-base/src/tree-plot.cc octave-1.1.1/src/tree-plot.cc
  7067. *** octave-1.1.1-base/src/tree-plot.cc    Mon Jan 30 20:07:57 1995
  7068. --- octave-1.1.1/src/tree-plot.cc    Sun Mar  5 09:58:38 1995
  7069. ***************
  7070. *** 29,35 ****
  7071.   #ifdef HAVE_UNISTD_H
  7072.   #include <unistd.h>
  7073.   #endif
  7074. ! #include <string.h>
  7075.   #include <iostream.h>
  7076.   #include <strstream.h>
  7077.   #include <fstream.h>
  7078. --- 29,35 ----
  7079.   #ifdef HAVE_UNISTD_H
  7080.   #include <unistd.h>
  7081.   #endif
  7082. ! #include </gnu/include/string.h>
  7083.   #include <iostream.h>
  7084.   #include <strstream.h>
  7085.   #include <fstream.h>
  7086. diff -rc --new-file octave-1.1.1-base/src/user-prefs.cc octave-1.1.1/src/user-prefs.cc
  7087. *** octave-1.1.1-base/src/user-prefs.cc    Fri Feb 17 14:47:38 1995
  7088. --- octave-1.1.1/src/user-prefs.cc    Sun Mar  5 09:58:40 1995
  7089. ***************
  7090. *** 25,31 ****
  7091.   #include "config.h"
  7092.   #endif
  7093.   
  7094. ! #include <string.h>
  7095.   
  7096.   #include "user-prefs.h"
  7097.   #include "mappers.h"
  7098. --- 25,31 ----
  7099.   #include "config.h"
  7100.   #endif
  7101.   
  7102. ! #include </gnu/include/string.h>
  7103.   
  7104.   #include "user-prefs.h"
  7105.   #include "mappers.h"
  7106. diff -rc --new-file octave-1.1.1-base/src/utils.cc octave-1.1.1/src/utils.cc
  7107. *** octave-1.1.1-base/src/utils.cc    Tue Feb 14 22:15:52 1995
  7108. --- octave-1.1.1/src/utils.cc    Sun Mar  5 09:58:42 1995
  7109. ***************
  7110. *** 30,36 ****
  7111.   #include <unistd.h>
  7112.   #endif
  7113.   #include <sys/param.h>
  7114. ! #include <string.h>
  7115.   #include <limits.h>
  7116.   #include <iostream.h>
  7117.   #include <strstream.h>
  7118. --- 30,36 ----
  7119.   #include <unistd.h>
  7120.   #endif
  7121.   #include <sys/param.h>
  7122. ! #include </gnu/include/string.h>
  7123.   #include <limits.h>
  7124.   #include <iostream.h>
  7125.   #include <strstream.h>
  7126. diff -rc --new-file octave-1.1.1-base/src/variables.cc octave-1.1.1/src/variables.cc
  7127. *** octave-1.1.1-base/src/variables.cc    Fri Feb 17 15:31:07 1995
  7128. --- octave-1.1.1/src/variables.cc    Sun Mar  5 09:58:46 1995
  7129. ***************
  7130. *** 37,43 ****
  7131.   #include <unistd.h>
  7132.   #endif
  7133.   #include <float.h>
  7134. ! #include <string.h>
  7135.   #include <strstream.h>
  7136.   
  7137.   #include "defaults.h"
  7138. --- 37,43 ----
  7139.   #include <unistd.h>
  7140.   #endif
  7141.   #include <float.h>
  7142. ! #include </gnu/include/string.h>
  7143.   #include <strstream.h>
  7144.   
  7145.   #include "defaults.h"
  7146.