home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / dejagnu-1.2-diffs.gz / dejagnu-1.2-diffs
Text File  |  1996-10-13  |  289KB  |  9,201 lines

  1. This file contains patches that transform the baseline version into
  2. the amiga version.  Assuming that you have unarchived the baseline
  3. version in the current directory, just run the command:
  4.  
  5.     patch -p1 -E -b .pbak <diff-file
  6.  
  7. where 'diff-file' is this patch file.  After running patch you should
  8. remove all the generated *.pbak files, and look for any *.rej files
  9. that indicate a problem patching the baseline source.
  10.  
  11. diff -rup --new-file baseline/fsf/dejagnu/Makefile.in amiga/fsf/dejagnu/Makefile.in
  12. --- baseline/fsf/dejagnu/Makefile.in    Tue Apr 12 16:55:05 1994
  13. +++ amiga/fsf/dejagnu/Makefile.in    Sat Sep 28 00:00:00 1996
  14. @@ -19,7 +19,7 @@
  15.  
  16.  srcdir = .
  17.  
  18. -prefix = /usr/local
  19. +prefix = /ade
  20.  
  21.  exec_prefix = $(prefix)
  22.  bindir = $(exec_prefix)/bin
  23. @@ -53,11 +53,11 @@ INSTALL_XFORM = $(INSTALL) -t='$(program
  24.  AS = as
  25.  AR = ar
  26.  AR_FLAGS = rc
  27. -CC = cc
  28. +CC = gcc
  29.  
  30.  # We don't specify -g -O because many compilers don't support -g -O,
  31.  # and/or -O is broken in and of itself.
  32. -CFLAGS = -g
  33. +CFLAGS = -O
  34.  
  35.  CXX = gcc
  36.  
  37. diff -rup --new-file baseline/fsf/dejagnu/Product-Info amiga/fsf/dejagnu/Product-Info
  38. --- baseline/fsf/dejagnu/Product-Info    Wed Dec 31 17:00:00 1969
  39. +++ amiga/fsf/dejagnu/Product-Info    Sat Sep 28 00:00:00 1996
  40. @@ -0,0 +1,40 @@
  41. +.name
  42. +dejagnu
  43. +.type
  44. +Programmer Tool
  45. +.short
  46. +Program testing framework using 'expect'
  47. +.description
  48. +DejaGnu is a framework for testing other programs. Its purpose is to
  49. +provide a single front end for all tests.  Beyond this, DejaGnu offers
  50. +several advantages for testing:
  51. +
  52. +(1) The flexibility and consistency of the DejaGnu framework make it
  53. +easy to write tests for any program.
  54. +
  55. +(2) DejaGnu provides a layer of abstraction which makes all tests (if
  56. +correctly written) portable to any host or target where a program must
  57. +be tested.  For instance, a test for GDB can run (from any Unix based
  58. +host) on any target architecture supported by DejaGnu. Currently
  59. +DejaGnu runs tests on several single board computers, whose operating
  60. +software ranges from just a boot monitor to a full-fledged, Unix-like
  61. +realtime OS.
  62. +
  63. +(3) DejaGnu is written in expect, which in turn uses Tcl (Tool command
  64. +language).  The framework comprises two parts: the testing framework
  65. +and the testsuites themselves. Tests are usually written in expect
  66. +using Tcl.
  67. +
  68. +Both tcl and expect are provided with dejagnu.
  69. +.version
  70. +1.2
  71. +.author
  72. +Rob Savoye
  73. +.email
  74. +rob@darkstar.cygnus.com
  75. +.distribution
  76. +GNU Public License
  77. +.described-by
  78. +Fred Fish (fnf@amigalib.com)
  79. +.submittal
  80. +Downloaded from prep.ai.mit.edu:pub/gnu
  81. diff -rup --new-file baseline/fsf/dejagnu/config.guess amiga/fsf/dejagnu/config.guess
  82. --- baseline/fsf/dejagnu/config.guess    Thu Apr  7 17:15:57 1994
  83. +++ amiga/fsf/dejagnu/config.guess    Sat Sep 28 00:00:00 1996
  84. @@ -325,6 +325,10 @@ main()
  85.  #endif
  86.  #endif
  87.  
  88. +#if defined(__amigaos__)
  89. +  printf("m68k-unknown-amigaos\n"); exit(0);
  90. +#endif
  91. +
  92.    exit (1);
  93.  }
  94.  EOF
  95. diff -rup --new-file baseline/fsf/dejagnu/config.sub amiga/fsf/dejagnu/config.sub
  96. --- baseline/fsf/dejagnu/config.sub    Tue Apr 12 16:55:07 1994
  97. +++ amiga/fsf/dejagnu/config.sub    Sat Sep 28 00:00:00 1996
  98. @@ -392,11 +392,11 @@ case $basic_machine in
  99.          os=-bsd
  100.          ;;
  101.      amiga)
  102. -        basic_machine=m68k-cbm
  103. +        basic_machine=m68k-unknown
  104.          ;;
  105. -    amigados)
  106. -        basic_machine=m68k-cbm
  107. -        os=-amigados
  108. +    amigaos)
  109. +        basic_machine=m68k-unknown
  110. +        os=-amigaos
  111.          ;;
  112.      amigaunix | amix)
  113.          basic_machine=m68k-cbm
  114. @@ -701,7 +701,7 @@ case $os in
  115.      -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  116.            | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]* | -hpux* \
  117.            | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  118. -          | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
  119. +          | -amigaos* | -msdos* | -newsos* | -unicos* | -aos* \
  120.            | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
  121.            | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
  122.            | -hiux* | -386bsd* | -netbsd* | -riscix* | -lynxos* \
  123. @@ -829,7 +829,7 @@ case $basic_machine in
  124.          os=-sysv
  125.          ;;
  126.      *-cbm)
  127. -        os=-amigados
  128. +        os=-amigaos
  129.          ;;
  130.      *-dg)
  131.          os=-dgux
  132. diff -rup --new-file baseline/fsf/dejagnu/configure amiga/fsf/dejagnu/configure
  133. --- baseline/fsf/dejagnu/configure    Sat Apr  9 15:11:29 1994
  134. +++ amiga/fsf/dejagnu/configure    Sat Sep 28 00:00:00 1996
  135. @@ -62,7 +62,7 @@ moveifchange=
  136.  norecursion=
  137.  other_options=
  138.  package_makefile_frag=
  139. -prefix=/usr/local
  140. +prefix=/ade
  141.  progname=
  142.  program_prefix=
  143.  program_prefixoption=
  144. @@ -81,7 +81,7 @@ subdirs=
  145.  target_alias=NOTARGET
  146.  target_makefile_frag=
  147.  undefs=NOUNDEFS
  148. -version="$Revision: 1.182 $"
  149. +version="$Revision: 1.183 $"
  150.  x11=default
  151.  
  152.  ### we might need to use some other shell than /bin/sh for running subshells
  153. @@ -101,7 +101,8 @@ NO_EDIT="This file was generated automat
  154.  
  155.  progname=$0
  156.  # if PWD already has a value, it is probably wrong.
  157. -if [ -n "$PWD" ]; then PWD=`pwd`; fi
  158. +#AmigaOS change - pdksh treats PWD as readonly - fnf
  159. +#if [ -n "$PWD" ]; then PWD=`pwd`; fi
  160.  
  161.  case "${progname}" in
  162.  /*) ;;
  163. @@ -158,6 +159,8 @@ do
  164.             ;;
  165.          esac
  166.          ;;
  167. +    --cache-file*)
  168. +        ;;
  169.      --disable-*)
  170.          enableopt=`echo ${option} | sed 's:^--disable-:enable_:;s:-:_:g'`
  171.          eval $enableopt=no
  172. @@ -252,7 +255,7 @@ do
  173.          verbose=--verbose
  174.          ;;
  175.      --version | --V | --vers*)
  176. -        echo "This is Cygnus Configure version" `echo ${version} | sed 's/[ $:]//g'`
  177. +        echo "This is Cygnus Configure version" `/bin/echo ${version} | sed 's/[ $:]//g'`
  178.          exit 0
  179.          ;;
  180.      --with-*)
  181. @@ -363,8 +366,8 @@ if [ -n "${fatal}" -o "${host_alias}" = 
  182.      echo Usage: configure [OPTIONS] HOST
  183.      echo
  184.      echo Options: [defaults in brackets]
  185. -    echo ' --prefix=MYDIR         configure for installation of host independent files into MYDIR. ["/usr/local"]'
  186. -    echo ' --exec-prefix=MYDIR     configure for installation of host dependent files into MYDIR. ["/usr/local"]'
  187. +    echo ' --prefix=MYDIR         configure for installation of host independent files into MYDIR. ["/ade"]'
  188. +    echo ' --exec-prefix=MYDIR     configure for installation of host dependent files into MYDIR. ["/ade"]'
  189.      echo ' --help             print this message. [normal config]'
  190.      echo ' --build=BUILD         configure for building on BUILD.  [BUILD=HOST]'
  191.      echo ' --host=HOST         configure for HOST.  [determined via config.guess]'
  192. @@ -632,9 +635,15 @@ for subdir in . ${subdirs} ; do
  193.                  fi
  194.  
  195.                  ${remove} -f ${link}
  196. -                # Make a symlink if possible, otherwise try a hard link
  197. -                ${symbolic_link} ${srcdir}/${file} ${link} 2>/dev/null || ${hard_link} ${srcdir}/${file} ${link}
  198. -
  199. +        # Make a symlink if possible, otherwise try a hard link
  200. +        if ${symbolic_link} ${srcdir}/${file} ${link} >/dev/null 2>&1 ; then
  201. +            true
  202. +        else
  203. +            # We need to re-remove the file because Lynx leaves a 
  204. +            # very strange directory there when it fails an NFS symlink.
  205. +            ${remove} -r -f ${link}
  206. +            ${hard_link} ${srcdir}/${file} ${link}
  207. +        fi
  208.                  if [ ! -r ${link} ] ; then
  209.                          echo '***' "${progname}: unable to link \"${link}\" to \"${srcdir}/${file}\"." 1>&2
  210.                          exit 1
  211. @@ -939,6 +948,7 @@ if [ -z "${norecursion}" -a -n "${config
  212.  
  213.  ### The recursion line is here.
  214.              if [ ! -z "${recprog}" ] ; then
  215. +                            echo ${config_shell} ${recprog} ${verbose} ${buildopt} --host=${host_alias} --target=${target_alias} ${prefixoption} ${tmpdiroption} ${exec_prefixoption} ${srcdiroption} ${program_prefixoption} ${program_suffixoption} ${program_transform_nameoption} ${site_option} ${withoptions} ${withoutoptions} ${enableoptions} ${disableoptions} ${removing} ${other_options} ${redirect}
  216.                              if eval ${config_shell} ${recprog} ${verbose} ${buildopt} --host=${host_alias} --target=${target_alias} \
  217.                                      ${prefixoption} ${tmpdiroption} ${exec_prefixoption} \
  218.                                      ${srcdiroption} ${program_prefixoption} ${program_suffixoption} ${program_transform_nameoption} ${site_option} ${withoptions} ${withoutoptions} ${enableoptions} ${disableoptions} ${removing} ${other_options} ${redirect} ; then
  219. diff -rup --new-file baseline/fsf/dejagnu/dejagnu/Makefile.in amiga/fsf/dejagnu/dejagnu/Makefile.in
  220. --- baseline/fsf/dejagnu/dejagnu/Makefile.in    Mon Apr  4 12:05:46 1994
  221. +++ amiga/fsf/dejagnu/dejagnu/Makefile.in    Sat Sep 28 00:00:00 1996
  222. @@ -1,5 +1,5 @@
  223.  srcdir = .
  224. -prefix = /usr/local
  225. +prefix = /ade
  226.  
  227.  exec_prefix = $(prefix)
  228.  bindir = $(exec_prefix)/bin
  229. @@ -29,7 +29,7 @@ INSTALL = `cd $(srcdir); pwd`/../install
  230.  INSTALL_PROGRAM = $(INSTALL)
  231.  INSTALL_DATA = $(INSTALL)
  232.  
  233. -CFLAGS = -g
  234. +CFLAGS = -O
  235.  CHILLFLAGS = $(CFLAGS)
  236.  CHILL_LIB = -lchill
  237.  
  238. diff -rup --new-file baseline/fsf/dejagnu/dejagnu/doc/Makefile.in amiga/fsf/dejagnu/dejagnu/doc/Makefile.in
  239. --- baseline/fsf/dejagnu/dejagnu/doc/Makefile.in    Tue Mar 29 17:53:18 1994
  240. +++ amiga/fsf/dejagnu/dejagnu/doc/Makefile.in    Sat Sep 28 00:00:00 1996
  241. @@ -1,4 +1,4 @@
  242. -prefix = /usr/local
  243. +prefix = /ade
  244.  exec_prefix = $(prefix)
  245.  
  246.  srcdir = .
  247. diff -rup --new-file baseline/fsf/dejagnu/dejagnu/example/Makefile.in amiga/fsf/dejagnu/dejagnu/example/Makefile.in
  248. --- baseline/fsf/dejagnu/dejagnu/example/Makefile.in    Sun Jul 25 15:24:09 1993
  249. +++ amiga/fsf/dejagnu/dejagnu/example/Makefile.in    Sat Sep 28 00:00:00 1996
  250. @@ -1,5 +1,5 @@
  251.  srcdir = .
  252. -prefix = /usr/local
  253. +prefix = /ade
  254.  
  255.  exec_prefix = $(prefix)
  256.  bindir = $(exec_prefix)/bin
  257. diff -rup --new-file baseline/fsf/dejagnu/dejagnu/example/calc/configure amiga/fsf/dejagnu/dejagnu/example/calc/configure
  258. --- baseline/fsf/dejagnu/dejagnu/example/calc/configure    Thu Nov  4 22:27:36 1993
  259. +++ amiga/fsf/dejagnu/dejagnu/example/calc/configure    Mon Sep 30 22:38:37 1996
  260. @@ -1,399 +1,1096 @@
  261. -#!/bin/sh
  262. +#! /bin/sh
  263. +
  264.  # Guess values for system-dependent variables and create Makefiles.
  265. -# Generated automatically using autoconf.
  266. -# Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  267. +# Generated automatically using autoconf version 2.10 
  268. +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  269. +#
  270. +# This configure script is free software; the Free Software Foundation
  271. +# gives unlimited permission to copy, distribute and modify it.
  272.  
  273. -# This program is free software; you can redistribute it and/or modify
  274. -# it under the terms of the GNU General Public License as published by
  275. -# the Free Software Foundation; either version 2, or (at your option)
  276. -# any later version.
  277. -
  278. -# This program is distributed in the hope that it will be useful,
  279. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  280. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  281. -# GNU General Public License for more details.
  282. -
  283. -# You should have received a copy of the GNU General Public License
  284. -# along with this program; if not, write to the Free Software
  285. -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  286. -
  287. -# Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp]
  288. -#        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE[=VALUE]]
  289. -# Ignores all args except --srcdir, --prefix, --exec-prefix, and
  290. -# --with-PACKAGE[=VALUE] unless this script has special code to handle it.
  291. +# Defaults:
  292. +ac_help=
  293. +ac_default_prefix=/usr/local
  294. +# Any additions from configure.in:
  295. +
  296. +# Initialize some variables set by options.
  297. +# The variables have the same names as the options, with
  298. +# dashes changed to underlines.
  299. +build=NONE
  300. +cache_file=./config.cache
  301. +exec_prefix=NONE
  302. +host=NONE
  303. +no_create=
  304. +nonopt=NONE
  305. +no_recursion=
  306. +prefix=NONE
  307. +program_prefix=NONE
  308. +program_suffix=NONE
  309. +program_transform_name=s,x,x,
  310. +silent=
  311. +site=
  312. +srcdir=
  313. +target=NONE
  314. +verbose=
  315. +x_includes=NONE
  316. +x_libraries=NONE
  317. +bindir='${exec_prefix}/bin'
  318. +sbindir='${exec_prefix}/sbin'
  319. +libexecdir='${exec_prefix}/libexec'
  320. +datadir='${prefix}/share'
  321. +sysconfdir='${prefix}/etc'
  322. +sharedstatedir='${prefix}/com'
  323. +localstatedir='${prefix}/var'
  324. +libdir='${exec_prefix}/lib'
  325. +includedir='${prefix}/include'
  326. +oldincludedir='/usr/include'
  327. +infodir='${prefix}/info'
  328. +guidedir='${prefix}/guide'
  329. +psdir='${prefix}/ps'
  330. +dvidir='${prefix}/dvi'
  331. +mandir='${prefix}/man'
  332. +
  333. +# Initialize some other variables.
  334. +subdirs=
  335. +MFLAGS= MAKEFLAGS=
  336.  
  337. -for arg
  338. +ac_prev=
  339. +for ac_option
  340.  do
  341. -  # Handle --exec-prefix with a space before the argument.
  342. -  if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  343. -  # Handle --host with a space before the argument.
  344. -  elif test x$next_host = xyes; then next_host=
  345. -  # Handle --prefix with a space before the argument.
  346. -  elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  347. -  # Handle --srcdir with a space before the argument.
  348. -  elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  349. -  else
  350. -    case $arg in
  351. -     # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  352. -     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  353. -    exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  354. -     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  355. -    next_exec_prefix=yes ;;
  356. -
  357. -     -gas | --gas | --ga | --g) ;;
  358. -
  359. -     -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  360. -     -host | --host | --hos | --ho | --h)
  361. -    next_host=yes ;;
  362. -
  363. -     -nfp | --nfp | --nf) ;;
  364. -
  365. -     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  366. -    prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  367. -     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  368. -    next_prefix=yes ;;
  369. -
  370. -     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  371. -    srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  372. -     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  373. -    next_srcdir=yes ;;
  374. -
  375. -     -with-* | --with-*)
  376. -       package=`echo $arg|sed -e 's/-*with-//' -e 's/=.*//'`
  377. -       # Reject names that aren't valid shell variable names.
  378. -       if test -n "`echo $package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  379. -         echo "configure: $package: invalid package name" >&2; exit 1
  380. -       fi
  381. -       package=`echo $package| sed 's/-/_/g'`
  382. -       case "$arg" in
  383. -         *=*) val="`echo $arg|sed 's/[^=]*=//'`" ;;
  384. -         *) val=1 ;;
  385. -       esac
  386. -       eval "with_$package='$val'" ;;
  387.  
  388. -     -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
  389. -       verbose=yes ;;
  390. +  # If the previous option needs an argument, assign it.
  391. +  if test -n "$ac_prev"; then
  392. +    eval "$ac_prev=\$ac_option"
  393. +    ac_prev=
  394. +    continue
  395. +  fi
  396. +
  397. +  case "$ac_option" in
  398. +  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  399. +  *) ac_optarg= ;;
  400. +  esac
  401.  
  402. -     *) ;;
  403. +  # Accept the important Cygnus configure options, so we can diagnose typos.
  404. +
  405. +  case "$ac_option" in
  406. +
  407. +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  408. +    ac_prev=bindir ;;
  409. +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  410. +    bindir="$ac_optarg" ;;
  411. +
  412. +  -build | --build | --buil | --bui | --bu)
  413. +    ac_prev=build ;;
  414. +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  415. +    build="$ac_optarg" ;;
  416. +
  417. +  -cache-file | --cache-file | --cache-fil | --cache-fi \
  418. +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  419. +    ac_prev=cache_file ;;
  420. +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  421. +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  422. +    cache_file="$ac_optarg" ;;
  423. +
  424. +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  425. +    ac_prev=datadir ;;
  426. +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  427. +  | --da=*)
  428. +    datadir="$ac_optarg" ;;
  429. +
  430. +  -disable-* | --disable-*)
  431. +    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  432. +    # Reject names that are not valid shell variable names.
  433. +    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  434. +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  435. +    fi
  436. +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  437. +    eval "enable_${ac_feature}=no" ;;
  438. +
  439. +  -enable-* | --enable-*)
  440. +    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  441. +    # Reject names that are not valid shell variable names.
  442. +    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  443. +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  444. +    fi
  445. +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  446. +    case "$ac_option" in
  447. +      *=*) ;;
  448. +      *) ac_optarg=yes ;;
  449.      esac
  450. -  fi
  451. +    eval "enable_${ac_feature}='$ac_optarg'" ;;
  452. +
  453. +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  454. +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  455. +  | --exec | --exe | --ex)
  456. +    ac_prev=exec_prefix ;;
  457. +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  458. +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  459. +  | --exec=* | --exe=* | --ex=*)
  460. +    exec_prefix="$ac_optarg" ;;
  461. +
  462. +  -gas | --gas | --ga | --g)
  463. +    # Obsolete; use --with-gas.
  464. +    with_gas=yes ;;
  465. +
  466. +  -help | --help | --hel | --he)
  467. +    # Omit some internal or obsolete options to make the list less imposing.
  468. +    # This message is too long to be a string in the A/UX 3.1 sh.
  469. +    cat << EOF
  470. +Usage: configure [options] [host]
  471. +Options: [defaults in brackets after descriptions]
  472. +Configuration:
  473. +  --cache-file=FILE       cache test results in FILE
  474. +  --help                  print this message
  475. +  --no-create             do not create output files
  476. +  --quiet, --silent       do not print \`checking...' messages
  477. +  --version               print the version of autoconf that created configure
  478. +Directory and file names:
  479. +  --prefix=PREFIX         install architecture-independent files in PREFIX
  480. +                          [$ac_default_prefix]
  481. +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  482. +                          [same as prefix]
  483. +  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  484. +  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  485. +  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  486. +  --datadir=DIR           read-only architecture-independent data in DIR
  487. +                          [PREFIX/share]
  488. +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  489. +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  490. +                          [PREFIX/com]
  491. +  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  492. +  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  493. +  --includedir=DIR        C header files in DIR [PREFIX/include]
  494. +  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  495. +  --infodir=DIR           info documentation in DIR [PREFIX/info]
  496. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  497. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  498. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  499. +  --mandir=DIR            man documentation in DIR [PREFIX/man]
  500. +  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  501. +  --program-prefix=PREFIX prepend PREFIX to installed program names
  502. +  --program-suffix=SUFFIX append SUFFIX to installed program names
  503. +  --program-transform-name=PROGRAM
  504. +                          run sed PROGRAM on installed program names
  505. +EOF
  506. +    cat << EOF
  507. +Host type:
  508. +  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  509. +  --host=HOST             configure for HOST [guessed]
  510. +  --target=TARGET         configure for TARGET [TARGET=HOST]
  511. +Features and packages:
  512. +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  513. +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  514. +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  515. +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  516. +  --x-includes=DIR        X include files are in DIR
  517. +  --x-libraries=DIR       X library files are in DIR
  518. +EOF
  519. +    if test -n "$ac_help"; then
  520. +      echo "--enable and --with options recognized:$ac_help"
  521. +    fi
  522. +    exit 0 ;;
  523. +
  524. +  -host | --host | --hos | --ho)
  525. +    ac_prev=host ;;
  526. +  -host=* | --host=* | --hos=* | --ho=*)
  527. +    host="$ac_optarg" ;;
  528. +
  529. +  -includedir | --includedir | --includedi | --included | --include \
  530. +  | --includ | --inclu | --incl | --inc)
  531. +    ac_prev=includedir ;;
  532. +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  533. +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  534. +    includedir="$ac_optarg" ;;
  535. +
  536. +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  537. +    ac_prev=infodir ;;
  538. +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  539. +    infodir="$ac_optarg" ;;
  540. +
  541. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  542. +   ac_prev=guidedir ;;
  543. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  544. +
  545. + -psdir | --psdir | --psdi | --psd | --ps)
  546. +   ac_prev=psdir ;;
  547. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  548. +
  549. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  550. +   ac_prev=dvidir ;;
  551. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  552. +
  553. +  -libdir | --libdir | --libdi | --libd)
  554. +    ac_prev=libdir ;;
  555. +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  556. +    libdir="$ac_optarg" ;;
  557. +
  558. +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  559. +  | --libexe | --libex | --libe)
  560. +    ac_prev=libexecdir ;;
  561. +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  562. +  | --libexe=* | --libex=* | --libe=*)
  563. +    libexecdir="$ac_optarg" ;;
  564. +
  565. +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  566. +  | --localstate | --localstat | --localsta | --localst \
  567. +  | --locals | --local | --loca | --loc | --lo)
  568. +    ac_prev=localstatedir ;;
  569. +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  570. +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  571. +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  572. +    localstatedir="$ac_optarg" ;;
  573. +
  574. +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  575. +    ac_prev=mandir ;;
  576. +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  577. +    mandir="$ac_optarg" ;;
  578. +
  579. +  -nfp | --nfp | --nf)
  580. +    # Obsolete; use --without-fp.
  581. +    with_fp=no ;;
  582. +
  583. +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  584. +  | --no-cr | --no-c)
  585. +    no_create=yes ;;
  586. +
  587. +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  588. +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  589. +    no_recursion=yes ;;
  590. +
  591. +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  592. +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  593. +  | --oldin | --oldi | --old | --ol | --o)
  594. +    ac_prev=oldincludedir ;;
  595. +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  596. +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  597. +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  598. +    oldincludedir="$ac_optarg" ;;
  599. +
  600. +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  601. +    ac_prev=prefix ;;
  602. +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  603. +    prefix="$ac_optarg" ;;
  604. +
  605. +  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  606. +  | --program-pre | --program-pr | --program-p)
  607. +    ac_prev=program_prefix ;;
  608. +  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  609. +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  610. +    program_prefix="$ac_optarg" ;;
  611. +
  612. +  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  613. +  | --program-suf | --program-su | --program-s)
  614. +    ac_prev=program_suffix ;;
  615. +  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  616. +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  617. +    program_suffix="$ac_optarg" ;;
  618. +
  619. +  -program-transform-name | --program-transform-name \
  620. +  | --program-transform-nam | --program-transform-na \
  621. +  | --program-transform-n | --program-transform- \
  622. +  | --program-transform | --program-transfor \
  623. +  | --program-transfo | --program-transf \
  624. +  | --program-trans | --program-tran \
  625. +  | --progr-tra | --program-tr | --program-t)
  626. +    ac_prev=program_transform_name ;;
  627. +  -program-transform-name=* | --program-transform-name=* \
  628. +  | --program-transform-nam=* | --program-transform-na=* \
  629. +  | --program-transform-n=* | --program-transform-=* \
  630. +  | --program-transform=* | --program-transfor=* \
  631. +  | --program-transfo=* | --program-transf=* \
  632. +  | --program-trans=* | --program-tran=* \
  633. +  | --progr-tra=* | --program-tr=* | --program-t=*)
  634. +    program_transform_name="$ac_optarg" ;;
  635. +
  636. +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  637. +  | -silent | --silent | --silen | --sile | --sil)
  638. +    silent=yes ;;
  639. +
  640. +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  641. +    ac_prev=sbindir ;;
  642. +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  643. +  | --sbi=* | --sb=*)
  644. +    sbindir="$ac_optarg" ;;
  645. +
  646. +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  647. +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  648. +  | --sharedst | --shareds | --shared | --share | --shar \
  649. +  | --sha | --sh)
  650. +    ac_prev=sharedstatedir ;;
  651. +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  652. +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  653. +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  654. +  | --sha=* | --sh=*)
  655. +    sharedstatedir="$ac_optarg" ;;
  656. +
  657. +  -site | --site | --sit)
  658. +    ac_prev=site ;;
  659. +  -site=* | --site=* | --sit=*)
  660. +    site="$ac_optarg" ;;
  661. +
  662. +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  663. +    ac_prev=srcdir ;;
  664. +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  665. +    srcdir="$ac_optarg" ;;
  666. +
  667. +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  668. +  | --syscon | --sysco | --sysc | --sys | --sy)
  669. +    ac_prev=sysconfdir ;;
  670. +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  671. +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  672. +    sysconfdir="$ac_optarg" ;;
  673. +
  674. +  -target | --target | --targe | --targ | --tar | --ta | --t)
  675. +    ac_prev=target ;;
  676. +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  677. +    target="$ac_optarg" ;;
  678. +
  679. +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
  680. +    verbose=yes ;;
  681. +
  682. +  -version | --version | --versio | --versi | --vers)
  683. +    echo "configure generated by autoconf version 2.10"
  684. +    exit 0 ;;
  685. +
  686. +  -with-* | --with-*)
  687. +    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  688. +    # Reject names that are not valid shell variable names.
  689. +    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  690. +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  691. +    fi
  692. +    ac_package=`echo $ac_package| sed 's/-/_/g'`
  693. +    case "$ac_option" in
  694. +      *=*) ;;
  695. +      *) ac_optarg=yes ;;
  696. +    esac
  697. +    eval "with_${ac_package}='$ac_optarg'" ;;
  698. +
  699. +  -without-* | --without-*)
  700. +    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  701. +    # Reject names that are not valid shell variable names.
  702. +    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  703. +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  704. +    fi
  705. +    ac_package=`echo $ac_package| sed 's/-/_/g'`
  706. +    eval "with_${ac_package}=no" ;;
  707. +
  708. +  --x)
  709. +    # Obsolete; use --with-x.
  710. +    with_x=yes ;;
  711. +
  712. +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  713. +  | --x-incl | --x-inc | --x-in | --x-i)
  714. +    ac_prev=x_includes ;;
  715. +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  716. +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  717. +    x_includes="$ac_optarg" ;;
  718. +
  719. +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  720. +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  721. +    ac_prev=x_libraries ;;
  722. +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  723. +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  724. +    x_libraries="$ac_optarg" ;;
  725. +
  726. +  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  727. +    ;;
  728. +
  729. +  *)
  730. +    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  731. +      echo "configure: warning: $ac_option: invalid host type" 1>&2
  732. +    fi
  733. +    if test "x$nonopt" != xNONE; then
  734. +      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  735. +    fi
  736. +    nonopt="$ac_option"
  737. +    ;;
  738. +
  739. +  esac
  740.  done
  741.  
  742. -trap 'rm -fr conftest* confdefs* core; exit 1' 1 3 15
  743. -trap 'rm -f confdefs*' 0
  744. +if test -n "$ac_prev"; then
  745. +  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  746. +fi
  747. +
  748. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  749. +
  750. +# File descriptor usage:
  751. +# 0 standard input
  752. +# 1 file creation
  753. +# 2 errors and warnings
  754. +# 3 some systems may open it to /dev/tty
  755. +# 4 used on the Kubota Titan
  756. +# 6 checking for... messages and results
  757. +# 5 compiler messages saved in config.log
  758. +if test "$silent" = yes; then
  759. +  exec 6>/dev/null
  760. +else
  761. +  exec 6>&1
  762. +fi
  763. +exec 5>./config.log
  764. +
  765. +echo "\
  766. +This file contains any messages produced by compilers while
  767. +running configure, to aid debugging if configure makes a mistake.
  768. +" 1>&5
  769. +
  770. +# Strip out --no-create and --no-recursion so they do not pile up.
  771. +# Also quote any args containing shell metacharacters.
  772. +ac_configure_args=
  773. +for ac_arg
  774. +do
  775. +  case "$ac_arg" in
  776. +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  777. +  | --no-cr | --no-c) ;;
  778. +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  779. +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  780. +  *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  781. +  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  782. +  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  783. +  esac
  784. +done
  785.  
  786.  # NLS nuisances.
  787. +# Only set LANG and LC_ALL to C if already set.
  788.  # These must not be set unconditionally because not all systems understand
  789.  # e.g. LANG=C (notably SCO).
  790. -if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi
  791. -if test "${LANG+set}"   = 'set' ; then LANG=C;   export LANG;   fi
  792. +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  793. +if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  794.  
  795. -rm -f conftest* confdefs.h
  796. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  797. +rm -rf conftest* confdefs.h
  798.  # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  799.  echo > confdefs.h
  800. -compile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  801.  
  802.  # A filename unique to this package, relative to the directory that
  803.  # configure is in, which we can look for to find out if srcdir is correct.
  804. -unique_file=calc.c
  805. +ac_unique_file=calc.c
  806.  
  807.  # Find the source files, if location was not specified.
  808.  if test -z "$srcdir"; then
  809. -  srcdirdefaulted=yes
  810. -  # Try the directory containing this script, then `..'.
  811. -  prog=$0
  812. -  confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  813. -  test "X$confdir" = "X$prog" && confdir=.
  814. -  srcdir=$confdir
  815. -  if test ! -r $srcdir/$unique_file; then
  816. +  ac_srcdir_defaulted=yes
  817. +  # Try the directory containing this script, then its parent.
  818. +  ac_prog=$0
  819. +  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  820. +  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  821. +  srcdir=$ac_confdir
  822. +  if test ! -r $srcdir/$ac_unique_file; then
  823.      srcdir=..
  824.    fi
  825. +else
  826. +  ac_srcdir_defaulted=no
  827.  fi
  828. -if test ! -r $srcdir/$unique_file; then
  829. -  if test x$srcdirdefaulted = xyes; then
  830. -    echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  831. +if test ! -r $srcdir/$ac_unique_file; then
  832. +  if test "$ac_srcdir_defaulted" = yes; then
  833. +    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  834.    else
  835. -    echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  836. +    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  837.    fi
  838. -  exit 1
  839.  fi
  840. -# Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  841. -# But we can't avoid them for `..', to make subdirectories work.
  842. -case $srcdir in
  843. -  .|/*|~*) ;;
  844. -  *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  845. -esac
  846. +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  847.  
  848. +# Prefer explicitly selected file to automatically selected ones.
  849. +if test -z "$CONFIG_SITE"; then
  850. +  if test "x$prefix" != xNONE; then
  851. +    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  852. +  else
  853. +    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  854. +  fi
  855. +fi
  856. +for ac_site_file in $CONFIG_SITE; do
  857. +  if test -r "$ac_site_file"; then
  858. +    echo "loading site script $ac_site_file"
  859. +    . "$ac_site_file"
  860. +  fi
  861. +done
  862.  
  863. -# Save the original args to write them into config.status later.
  864. -configure_args="$*"
  865. +if test -r "$cache_file"; then
  866. +  echo "loading cache $cache_file"
  867. +  . $cache_file
  868. +else
  869. +  echo "creating cache $cache_file"
  870. +  > $cache_file
  871. +fi
  872.  
  873. +ac_ext=c
  874. +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  875. +ac_cpp='$CPP $CPPFLAGS'
  876. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  877. +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  878. +
  879. +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  880. +  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  881. +  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  882. +    ac_n= ac_c='
  883. +' ac_t='    '
  884. +  else
  885. +    ac_n=-n ac_c= ac_t=
  886. +  fi
  887. +else
  888. +  ac_n= ac_c='\c' ac_t=
  889. +fi
  890.  
  891.  
  892. -#
  893. -# Look for various header files
  894. -#
  895. -echo checking for stdlib.h
  896. -echo checking how to run the C preprocessor
  897. +# Extract the first word of "gcc", so it can be a program name with args.
  898. +set dummy gcc; ac_word=$2
  899. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  900. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  901. +  echo $ac_n "(cached) $ac_c" 1>&6
  902. +else
  903. +  if test -n "$CC"; then
  904. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  905. +else
  906. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  907. +  for ac_dir in $PATH; do
  908. +    test -z "$ac_dir" && ac_dir=.
  909. +    if test -f $ac_dir/$ac_word; then
  910. +      ac_cv_prog_CC="gcc"
  911. +      break
  912. +    fi
  913. +  done
  914. +  IFS="$ac_save_ifs"
  915. +fi
  916. +fi
  917. +CC="$ac_cv_prog_CC"
  918. +if test -n "$CC"; then
  919. +  echo "$ac_t""$CC" 1>&6
  920. +else
  921. +  echo "$ac_t""no" 1>&6
  922. +fi
  923. +
  924. +if test -z "$CC"; then
  925. +  # Extract the first word of "cc", so it can be a program name with args.
  926. +set dummy cc; ac_word=$2
  927. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  928. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  929. +  echo $ac_n "(cached) $ac_c" 1>&6
  930. +else
  931. +  if test -n "$CC"; then
  932. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  933. +else
  934. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  935. +  ac_prog_rejected=no
  936. +  for ac_dir in $PATH; do
  937. +    test -z "$ac_dir" && ac_dir=.
  938. +    if test -f $ac_dir/$ac_word; then
  939. +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  940. +        ac_prog_rejected=yes
  941. +    continue
  942. +      fi
  943. +      ac_cv_prog_CC="cc"
  944. +      break
  945. +    fi
  946. +  done
  947. +  IFS="$ac_save_ifs"
  948. +if test $ac_prog_rejected = yes; then
  949. +  # We found a bogon in the path, so make sure we never use it.
  950. +  set dummy $ac_cv_prog_CC
  951. +  shift
  952. +  if test $# -gt 0; then
  953. +    # We chose a different compiler from the bogus one.
  954. +    # However, it has the same basename, so the bogon will be chosen
  955. +    # first if we set CC to just the basename; use the full file name.
  956. +    shift
  957. +    set dummy "$ac_dir/$ac_word" "$@"
  958. +    shift
  959. +    ac_cv_prog_CC="$@"
  960. +  fi
  961. +fi
  962. +fi
  963. +fi
  964. +CC="$ac_cv_prog_CC"
  965. +if test -n "$CC"; then
  966. +  echo "$ac_t""$CC" 1>&6
  967. +else
  968. +  echo "$ac_t""no" 1>&6
  969. +fi
  970. +
  971. +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  972. +fi
  973. +
  974. +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  975. +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  976. +  echo $ac_n "(cached) $ac_c" 1>&6
  977. +else
  978. +  cat > conftest.c <<EOF
  979. +#ifdef __GNUC__
  980. +  yes;
  981. +#endif
  982. +EOF
  983. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  984. +  ac_cv_prog_gcc=yes
  985. +else
  986. +  ac_cv_prog_gcc=no
  987. +fi
  988. +fi
  989. +
  990. +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  991. +if test $ac_cv_prog_gcc = yes; then
  992. +  GCC=yes
  993. +  if test "${CFLAGS+set}" != set; then
  994. +    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  995. +if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  996. +  echo $ac_n "(cached) $ac_c" 1>&6
  997. +else
  998. +  echo 'void f(){}' > conftest.c
  999. +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1000. +  ac_cv_prog_gcc_g=yes
  1001. +else
  1002. +  ac_cv_prog_gcc_g=no
  1003. +fi
  1004. +rm -f conftest*
  1005. +
  1006. +fi
  1007. +
  1008. +echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  1009. +    if test $ac_cv_prog_gcc_g = yes; then
  1010. +      CFLAGS="-g -O2"
  1011. +    else
  1012. +      CFLAGS="-O2"
  1013. +    fi
  1014. +  fi
  1015. +else
  1016. +  GCC=
  1017. +  test "${CFLAGS+set}" = set || CFLAGS="-g"
  1018. +fi
  1019. +
  1020. +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1021. +# On Suns, sometimes $CPP names a directory.
  1022. +if test -n "$CPP" && test -d "$CPP"; then
  1023. +  CPP=
  1024. +fi
  1025.  if test -z "$CPP"; then
  1026. -  # This must be in double quotes, not single quotes, because CPP may get
  1027. -  # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  1028. -  # make.  It must be expanded now.
  1029. +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1030. +  echo $ac_n "(cached) $ac_c" 1>&6
  1031. +else
  1032. +    # This must be in double quotes, not single quotes, because CPP may get
  1033. +  # substituted into the Makefile and "${CC-cc}" will confuse make.
  1034.    CPP="${CC-cc} -E"
  1035. -  cat > conftest.c <<EOF
  1036. +  # On the NeXT, cc -E runs the code through the compiler's parser,
  1037. +  # not just through cpp.
  1038. +  cat > conftest.$ac_ext <<EOF
  1039. +#line 672 "configure"
  1040. +#include "confdefs.h"
  1041. +#include <assert.h>
  1042. +Syntax Error
  1043. +EOF
  1044. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1045. +{ (eval echo configure:678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1046. +ac_err=`grep -v '^ *+' conftest.out`
  1047. +if test -z "$ac_err"; then
  1048. +  :
  1049. +else
  1050. +  echo "$ac_err" >&5
  1051. +  rm -rf conftest*
  1052. +  CPP="${CC-cc} -E -traditional-cpp"
  1053. +  cat > conftest.$ac_ext <<EOF
  1054. +#line 687 "configure"
  1055.  #include "confdefs.h"
  1056. -#include <stdio.h>
  1057. +#include <assert.h>
  1058.  Syntax Error
  1059.  EOF
  1060. -err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1061. -if test -z "$err"; then
  1062. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1063. +{ (eval echo configure:693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1064. +ac_err=`grep -v '^ *+' conftest.out`
  1065. +if test -z "$ac_err"; then
  1066.    :
  1067.  else
  1068. +  echo "$ac_err" >&5
  1069.    rm -rf conftest*
  1070.    CPP=/lib/cpp
  1071.  fi
  1072.  rm -f conftest*
  1073.  fi
  1074. -test ".${verbose}" != "." && echo "    setting CPP to $CPP"
  1075. +rm -f conftest*
  1076. +  ac_cv_prog_CPP="$CPP"
  1077. +fi
  1078. +  CPP="$ac_cv_prog_CPP"
  1079. +else
  1080. +  ac_cv_prog_CPP="$CPP"
  1081. +fi
  1082. +echo "$ac_t""$CPP" 1>&6
  1083. +
  1084. +
  1085.  
  1086. -cat > conftest.c <<EOF
  1087. +#
  1088. +# Look for various header files
  1089. +#
  1090. +ac_safe=`echo "stdlib.h" | tr './\055' '___'`
  1091. +echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
  1092. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1093. +  echo $ac_n "(cached) $ac_c" 1>&6
  1094. +else
  1095. +  cat > conftest.$ac_ext <<EOF
  1096. +#line 724 "configure"
  1097.  #include "confdefs.h"
  1098.  #include <stdlib.h>
  1099.  EOF
  1100. -err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1101. -if test -z "$err"; then
  1102. -  :
  1103. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1104. +{ (eval echo configure:729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1105. +ac_err=`grep -v '^ *+' conftest.out`
  1106. +if test -z "$ac_err"; then
  1107. +  rm -rf conftest*
  1108. +  eval "ac_cv_header_$ac_safe=yes"
  1109.  else
  1110. +  echo "$ac_err" >&5
  1111.    rm -rf conftest*
  1112. -  
  1113. -{
  1114. -test -n "$verbose" && \
  1115. -echo "    defining NO_STDLIB_H"
  1116. -echo "#define" NO_STDLIB_H 1 >> confdefs.h
  1117. -DEFS="$DEFS -DNO_STDLIB_H=1"
  1118. -SEDDEFS="${SEDDEFS}\${SEDdA}NO_STDLIB_H\${SEDdB}NO_STDLIB_H\${SEDdC}1\${SEDdD}
  1119. -\${SEDuA}NO_STDLIB_H\${SEDuB}NO_STDLIB_H\${SEDuC}1\${SEDuD}
  1120. -\${SEDeA}NO_STDLIB_H\${SEDeB}NO_STDLIB_H\${SEDeC}1\${SEDeD}
  1121. -"
  1122. -}
  1123. -
  1124. +  eval "ac_cv_header_$ac_safe=no"
  1125.  fi
  1126.  rm -f conftest*
  1127. +fi
  1128. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1129. +  echo "$ac_t""yes" 1>&6
  1130. +  :
  1131. +else
  1132. +  echo "$ac_t""no" 1>&6
  1133. +cat >> confdefs.h <<\EOF
  1134. +#define NO_STDLIB_H 1
  1135. +EOF
  1136. +
  1137. +fi
  1138.  
  1139.  
  1140.  #
  1141.  # Look for various functions
  1142.  #
  1143. -echo checking for strcmp
  1144. -cat > conftest.c <<EOF
  1145. +echo $ac_n "checking for strcmp""... $ac_c" 1>&6
  1146. +if eval "test \"`echo '$''{'ac_cv_func_strcmp'+set}'`\" = set"; then
  1147. +  echo $ac_n "(cached) $ac_c" 1>&6
  1148. +else
  1149. +  cat > conftest.$ac_ext <<EOF
  1150. +#line 761 "configure"
  1151.  #include "confdefs.h"
  1152. -#include <ctype.h>
  1153. -int main() { exit(0); }
  1154. -int t() { 
  1155. +/* System header to define __stub macros and hopefully few prototypes,
  1156. +    which can conflict with char strcmp(); below.  */
  1157. +#include <assert.h>
  1158. +/* Override any gcc2 internal prototype to avoid an error.  */
  1159. +/* We use char because int might match the return type of a gcc2
  1160. +    builtin and then its argument prototype would still apply.  */
  1161. +char strcmp();
  1162. +
  1163. +int main() { t(); return 0; }
  1164. +int t() {
  1165. +
  1166.  /* The GNU C library defines this for functions which it implements
  1167.      to always fail with ENOSYS.  Some functions are actually named
  1168.      something starting with __ and the normal name is an alias.  */
  1169.  #if defined (__stub_strcmp) || defined (__stub___strcmp)
  1170.  choke me
  1171.  #else
  1172. -/* Override any gcc2 internal prototype to avoid an error.  */
  1173. -extern char strcmp(); strcmp();
  1174. +strcmp();
  1175.  #endif
  1176. - }
  1177. +
  1178. +; return 0; }
  1179.  EOF
  1180. -if eval $compile; then
  1181. +if { (eval echo configure:785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1182.    rm -rf conftest*
  1183. -  {
  1184. -test -n "$verbose" && \
  1185. -echo "    defining HAVE_STRCMP"
  1186. -echo "#define" HAVE_STRCMP 1 >> confdefs.h
  1187. -DEFS="$DEFS -DHAVE_STRCMP=1"
  1188. -SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_STRCMP\${SEDdB}HAVE_STRCMP\${SEDdC}1\${SEDdD}
  1189. -\${SEDuA}HAVE_STRCMP\${SEDuB}HAVE_STRCMP\${SEDuC}1\${SEDuD}
  1190. -\${SEDeA}HAVE_STRCMP\${SEDeB}HAVE_STRCMP\${SEDeC}1\${SEDeD}
  1191. -"
  1192. -}
  1193. +  eval "ac_cv_func_strcmp=yes"
  1194. +else
  1195. +  rm -rf conftest*
  1196. +  eval "ac_cv_func_strcmp=no"
  1197. +fi
  1198. +rm -f conftest*
  1199.  
  1200. +fi
  1201. +if eval "test \"`echo '$ac_cv_func_'strcmp`\" = yes"; then
  1202. +  echo "$ac_t""yes" 1>&6
  1203. +  cat >> confdefs.h <<\EOF
  1204. +#define HAVE_STRCMP 1
  1205. +EOF
  1206.  
  1207. +else
  1208. +  echo "$ac_t""no" 1>&6
  1209.  fi
  1210. -rm -f conftest*
  1211.  
  1212.  
  1213.  #
  1214.  # Output Makefile with substitutions
  1215. -# Set default prefixes.
  1216. -if test -n "$prefix"; then
  1217. -  test -z "$exec_prefix" && exec_prefix='${prefix}'
  1218. -  prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  1219. -fi
  1220. -if test -n "$exec_prefix"; then
  1221. -  prsub="$prsub
  1222. -s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  1223. -fi
  1224. -# Quote sed substitution magic chars in DEFS.
  1225. -cat >conftest.def <<EOF
  1226. -$DEFS
  1227. -EOF
  1228. -escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  1229. -DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`
  1230. -rm -f conftest.def
  1231. -# Substitute for predefined variables.
  1232. -
  1233. -trap 'rm -f config.status; exit 1' 1 3 15
  1234. -echo creating config.status
  1235. -rm -f config.status
  1236. -cat > config.status <<EOF
  1237. -#!/bin/sh
  1238. +trap '' 1 2 15
  1239. +cat > confcache <<\EOF
  1240. +# This file is a shell script that caches the results of configure
  1241. +# tests run on this system so they can be shared between configure
  1242. +# scripts and configure runs.  It is not useful on other systems.
  1243. +# If it contains results you don't want to keep, you may remove or edit it.
  1244. +#
  1245. +# By default, configure uses ./config.cache as the cache file,
  1246. +# creating it if it does not exist already.  You can give configure
  1247. +# the --cache-file=FILE option to use a different cache file; that is
  1248. +# what configure does when it calls configure scripts in
  1249. +# subdirectories, so they share the cache.
  1250. +# Giving --cache-file=/dev/null disables caching, for debugging configure.
  1251. +# config.status only pays attention to the cache file if you give it the
  1252. +# --recheck option to rerun configure.
  1253. +#
  1254. +EOF
  1255. +# Ultrix sh set writes to stderr and can't be redirected directly,
  1256. +# and sets the high bit in the cache file unless we assign to the vars.
  1257. +(set) 2>&1 |
  1258. +  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1259. +  >> confcache
  1260. +if cmp -s $cache_file confcache; then
  1261. +  :
  1262. +else
  1263. +  if test -w $cache_file; then
  1264. +    echo "updating cache $cache_file"
  1265. +    cat confcache > $cache_file
  1266. +  else
  1267. +    echo "not updating unwritable cache $cache_file"
  1268. +  fi
  1269. +fi
  1270. +rm -f confcache
  1271. +
  1272. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1273. +
  1274. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1275. +# Let make expand exec_prefix.
  1276. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1277. +
  1278. +# Any assignment to VPATH causes Sun make to only execute
  1279. +# the first set of double-colon rules, so remove it if not needed.
  1280. +# If there is a colon in the path, we need to keep it.
  1281. +if test "x$srcdir" = x.; then
  1282. +  ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1283. +fi
  1284. +
  1285. +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1286. +
  1287. +DEFS=-DHAVE_CONFIG_H
  1288. +
  1289. +# Without the "./", some shells look in PATH for config.status.
  1290. +: ${CONFIG_STATUS=./config.status}
  1291. +
  1292. +echo creating $CONFIG_STATUS
  1293. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  1294. +# being executed, so just move it out of the way instead.
  1295. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1296. +cat > $CONFIG_STATUS <<EOF
  1297. +#! /bin/sh
  1298.  # Generated automatically by configure.
  1299.  # Run this file to recreate the current configuration.
  1300.  # This directory was configured as follows,
  1301.  # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1302.  #
  1303. -# $0 $configure_args
  1304. +# $0 $ac_configure_args
  1305. +#
  1306. +# Compiler output produced by configure, useful for debugging
  1307. +# configure, is in ./config.log if it exists.
  1308.  
  1309. -for arg
  1310. +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1311. +for ac_option
  1312.  do
  1313. -  case "\$arg" in
  1314. -    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1315. -    echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args
  1316. -    exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args ;;
  1317. -    *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  1318. +  case "\$ac_option" in
  1319. +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1320. +    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1321. +    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1322. +  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1323. +    echo "$CONFIG_STATUS generated by autoconf version 2.10"
  1324. +    exit 0 ;;
  1325. +  -help | --help | --hel | --he | --h)
  1326. +    echo "\$ac_cs_usage"; exit 0 ;;
  1327. +  *) echo "\$ac_cs_usage"; exit 1 ;;
  1328.    esac
  1329.  done
  1330.  
  1331. -trap 'rm -fr Makefile calc.h conftest*; exit 1' 1 3 15
  1332. -CPP='$CPP'
  1333. -LIBS='$LIBS'
  1334. -srcdir='$srcdir'
  1335. -prefix='$prefix'
  1336. -exec_prefix='$exec_prefix'
  1337. -prsub='$prsub'
  1338. -extrasub='$extrasub'
  1339. -EOF
  1340. -cat >> config.status <<\EOF
  1341. -
  1342. -top_srcdir=$srcdir
  1343. -
  1344. -CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  1345. -for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
  1346. -  srcdir=$top_srcdir
  1347. -  # Remove last slash and all that follows it.  Not all systems have dirname.
  1348. -  dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  1349. -  if test "$dir" != "$file"; then
  1350. -    test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  1351. -    test ! -d $dir && mkdir $dir
  1352. -  fi
  1353. -  echo creating $file
  1354. -  rm -f $file
  1355. -  echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  1356. -  sed -e "
  1357. -$prsub
  1358. +ac_given_srcdir=$srcdir
  1359. +
  1360. +trap 'rm -fr `echo "Makefile calc.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1361. +EOF
  1362. +cat >> $CONFIG_STATUS <<EOF
  1363. +
  1364. +# Protect against being on the right side of a sed subst in config.status.
  1365. +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1366. + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1367. +$ac_vpsub
  1368.  $extrasub
  1369. -s%@CPP@%$CPP%g
  1370. +s%@CFLAGS@%$CFLAGS%g
  1371. +s%@CPPFLAGS@%$CPPFLAGS%g
  1372. +s%@CXXFLAGS@%$CXXFLAGS%g
  1373. +s%@DEFS@%$DEFS%g
  1374. +s%@LDFLAGS@%$LDFLAGS%g
  1375.  s%@LIBS@%$LIBS%g
  1376. +s%@exec_prefix@%$exec_prefix%g
  1377. +s%@prefix@%$prefix%g
  1378. +s%@program_transform_name@%$program_transform_name%g
  1379. +s%@bindir@%$bindir%g
  1380. +s%@sbindir@%$sbindir%g
  1381. +s%@libexecdir@%$libexecdir%g
  1382. +s%@datadir@%$datadir%g
  1383. +s%@sysconfdir@%$sysconfdir%g
  1384. +s%@sharedstatedir@%$sharedstatedir%g
  1385. +s%@localstatedir@%$localstatedir%g
  1386. +s%@libdir@%$libdir%g
  1387. +s%@includedir@%$includedir%g
  1388. +s%@oldincludedir@%$oldincludedir%g
  1389. +s%@infodir@%$infodir%g
  1390. +s%@guidedir@%$guidedir%g
  1391. +s%@psdir@%$psdir%g
  1392. +s%@dvidir@%$dvidir%g
  1393. +s%@mandir@%$mandir%g
  1394. +s%@CC@%$CC%g
  1395. +s%@CPP@%$CPP%g
  1396. +
  1397. +CEOF
  1398. +EOF
  1399. +cat >> $CONFIG_STATUS <<EOF
  1400. +
  1401. +CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1402. +EOF
  1403. +cat >> $CONFIG_STATUS <<\EOF
  1404. +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1405. +  # Support "outfile[:infile]", defaulting infile="outfile.in".
  1406. +  case "$ac_file" in
  1407. +  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1408. +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1409. +  *) ac_file_in="${ac_file}.in" ;;
  1410. +  esac
  1411. +
  1412. +  # Adjust relative srcdir, etc. for subdirectories.
  1413. +
  1414. +  # Remove last slash and all that follows it.  Not all systems have dirname.
  1415. +  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1416. +  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1417. +    # The file is in a subdirectory.
  1418. +    test ! -d "$ac_dir" && mkdir "$ac_dir"
  1419. +    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1420. +    # A "../" for each directory in $ac_dir_suffix.
  1421. +    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1422. +  else
  1423. +    ac_dir_suffix= ac_dots=
  1424. +  fi
  1425. +
  1426. +  case "$ac_given_srcdir" in
  1427. +  .)  srcdir=.
  1428. +      if test -z "$ac_dots"; then top_srcdir=.
  1429. +      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1430. +  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1431. +  *) # Relative path.
  1432. +    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1433. +    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1434. +  esac
  1435. +
  1436. +  echo creating "$ac_file"
  1437. +  rm -f "$ac_file"
  1438. +  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1439. +  case "$ac_file" in
  1440. +  *Makefile*) ac_comsub="1i\\
  1441. +# $configure_input" ;;
  1442. +  *) ac_comsub= ;;
  1443. +  esac
  1444. +  sed -e "$ac_comsub
  1445. +s%@configure_input@%$configure_input%g
  1446.  s%@srcdir@%$srcdir%g
  1447. -s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
  1448. +s%@top_srcdir@%$top_srcdir%g
  1449. +" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1450.  fi; done
  1451. +rm -f conftest.subs
  1452. +
  1453. +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1454. +# NAME is the cpp macro being defined and VALUE is the value it is being given.
  1455. +#
  1456. +# ac_d sets the value in "#define NAME VALUE" lines.
  1457. +ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1458. +ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  1459. +ac_dC='\3'
  1460. +ac_dD='%g'
  1461. +# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1462. +ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1463. +ac_uB='\([     ]\)%\1#\2define\3'
  1464. +ac_uC=' '
  1465. +ac_uD='\4%g'
  1466. +# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1467. +ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1468. +ac_eB='$%\1#\2define\3'
  1469. +ac_eC=' '
  1470. +ac_eD='%g'
  1471.  
  1472.  CONFIG_HEADERS=${CONFIG_HEADERS-"calc.h"}
  1473. -for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
  1474. -echo creating $file
  1475. +for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1476. +  # Support "outfile[:infile]", defaulting infile="outfile.in".
  1477. +  case "$ac_file" in
  1478. +  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1479. +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1480. +  *) ac_file_in="${ac_file}.in" ;;
  1481. +  esac
  1482. +
  1483. +  echo creating $ac_file
  1484. +
  1485. +  rm -f conftest.frag conftest.in conftest.out
  1486. +  cp $ac_given_srcdir/$ac_file_in conftest.in
  1487.  
  1488. -# These sed commands are put into SEDDEFS when defining a macro.
  1489. -# They are broken into pieces to make the sed script easier to manage.
  1490. -# They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  1491. -# is the cpp macro being defined and VALUE is the value it is being given.
  1492. -# Each defining turns into a single global substitution command.
  1493. -#
  1494. -# SEDd sets the value in "#define NAME VALUE" lines.
  1495. -SEDdA='s@^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1496. -SEDdB='\([     ][     ]*\)[^     ]*@\1#\2'
  1497. -SEDdC='\3'
  1498. -SEDdD='@g'
  1499. -# SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1500. -SEDuA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1501. -SEDuB='\([     ]\)@\1#\2define\3'
  1502. -SEDuC=' '
  1503. -SEDuD='\4@g'
  1504. -# SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1505. -SEDeA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1506. -SEDeB='$@\1#\2define\3'
  1507. -SEDeC=' '
  1508. -SEDeD='@g'
  1509. -rm -f conftest.sed
  1510. -EOF
  1511. -# Turn off quoting long enough to insert the sed commands.
  1512. -rm -f conftest.sh
  1513. -cat > conftest.sh <<EOF
  1514. -$SEDDEFS
  1515.  EOF
  1516.  
  1517. -# Break up $SEDDEFS (now in conftest.sh) because some shells have a limit
  1518. -# on the size of here documents.
  1519. +# Transform confdefs.h into a sed script conftest.vals that substitutes
  1520. +# the proper values into config.h.in to produce config.h.  And first:
  1521. +# Protect against being on the right side of a sed subst in config.status.
  1522. +# Protect against being in an unquoted here document in config.status.
  1523. +rm -f conftest.vals
  1524. +cat > conftest.hdr <<\EOF
  1525. +s/[\\&%]/\\&/g
  1526. +s%[\\$`]%\\&%g
  1527. +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1528. +s%ac_d%ac_u%gp
  1529. +s%ac_u%ac_e%gp
  1530. +EOF
  1531. +sed -n -f conftest.hdr confdefs.h > conftest.vals
  1532. +rm -f conftest.hdr
  1533.  
  1534. +# This sed command replaces #undef with comments.  This is necessary, for
  1535. +# example, in the case of _POSIX_SOURCE, which is predefined and required
  1536. +# on some systems where configure will not decide to define it.
  1537. +cat >> conftest.vals <<\EOF
  1538. +s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1539. +EOF
  1540. +
  1541. +# Break up conftest.vals because some shells have a limit on
  1542. +# the size of here documents, and old seds have small limits too.
  1543.  # Maximum number of lines to put in a single here document.
  1544. -maxshlines=9
  1545. +ac_max_here_lines=12
  1546.  
  1547. +rm -f conftest.tail
  1548.  while :
  1549.  do
  1550. -  # wc gives bogus results for an empty file on some systems.
  1551. -  lines=`grep -c . conftest.sh`
  1552. -  if test -z "$lines" || test "$lines" -eq 0; then break; fi
  1553. -  rm -f conftest.s1 conftest.s2
  1554. -  sed ${maxshlines}q conftest.sh > conftest.s1 # Like head -20.
  1555. -  sed 1,${maxshlines}d conftest.sh > conftest.s2 # Like tail +21.
  1556. -  # Write a limited-size here document to append to conftest.sed.
  1557. -  echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  1558. -  cat conftest.s1 >> config.status
  1559. -  echo 'CONFEOF' >> config.status
  1560. -  rm -f conftest.s1 conftest.sh
  1561. -  mv conftest.s2 conftest.sh
  1562. +  ac_lines=`grep -c . conftest.vals`
  1563. +  # grep -c gives empty output for an empty file on some AIX systems.
  1564. +  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1565. +  # Write a limited-size here document to conftest.frag.
  1566. +  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1567. +  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1568. +  echo 'CEOF
  1569. +  sed -f conftest.frag conftest.in > conftest.out
  1570. +  rm -f conftest.in
  1571. +  mv conftest.out conftest.in
  1572. +' >> $CONFIG_STATUS
  1573. +  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1574. +  rm -f conftest.vals
  1575. +  mv conftest.tail conftest.vals
  1576.  done
  1577. -rm -f conftest.sh
  1578. +rm -f conftest.vals
  1579.  
  1580. -# Now back to your regularly scheduled config.status.
  1581. -cat >> config.status <<\EOF
  1582. -# This sed command replaces #undef's with comments.  This is necessary, for
  1583. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  1584. -# on some systems where configure will not decide to define it in
  1585. -# calc.h.
  1586. -cat >> conftest.sed <<\CONFEOF
  1587. -s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  1588. -CONFEOF
  1589. -rm -f conftest.h
  1590. -# Break up the sed commands because old seds have small limits.
  1591. -maxsedlines=20
  1592. -cp $top_srcdir/$file.in conftest.h1
  1593. -while :
  1594. -do
  1595. -  lines=`grep -c . conftest.sed`
  1596. -  if test -z "$lines" || test "$lines" -eq 0; then break; fi
  1597. -  rm -f conftest.s1 conftest.s2 conftest.h2
  1598. -  sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  1599. -  sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  1600. -  sed -f conftest.s1 < conftest.h1 > conftest.h2
  1601. -  rm -f conftest.s1 conftest.h1 conftest.sed
  1602. -  mv conftest.h2 conftest.h1
  1603. -  mv conftest.s2 conftest.sed
  1604. -done
  1605. -rm -f conftest.sed conftest.h
  1606. -echo "/* $file.  Generated automatically by configure.  */" > conftest.h
  1607. -cat conftest.h1 >> conftest.h
  1608. -rm -f conftest.h1
  1609. -if cmp -s $file conftest.h 2>/dev/null; then
  1610. -  # The file exists and we would not be changing it.
  1611. -  echo "$file is unchanged"
  1612. -  rm -f conftest.h
  1613. -else
  1614. -  rm -f $file
  1615. -  mv conftest.h $file
  1616. -fi
  1617. +cat >> $CONFIG_STATUS <<\EOF
  1618. +  rm -f conftest.frag conftest.h
  1619. +  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  1620. +  cat conftest.in >> conftest.h
  1621. +  rm -f conftest.in
  1622. +  if cmp -s $ac_file conftest.h 2>/dev/null; then
  1623. +    echo "$ac_file is unchanged"
  1624. +    rm -f conftest.h
  1625. +  else
  1626. +    # Remove last slash and all that follows it.  Not all systems have dirname.
  1627. +      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1628. +      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1629. +      # The file is in a subdirectory.
  1630. +      test ! -d "$ac_dir" && mkdir "$ac_dir"
  1631. +    fi
  1632. +    rm -f $ac_file
  1633. +    mv conftest.h $ac_file
  1634. +  fi
  1635.  fi; done
  1636.  
  1637.  
  1638.  
  1639.  exit 0
  1640.  EOF
  1641. -chmod +x config.status
  1642. -${CONFIG_SHELL-/bin/sh} config.status
  1643. +chmod +x $CONFIG_STATUS
  1644. +rm -f CONFIG.STATUS.old
  1645. +rm -fr confdefs* $ac_clean_files
  1646. +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1647.  
  1648. diff -rup --new-file baseline/fsf/dejagnu/dejagnu/example/calc/configure.in amiga/fsf/dejagnu/dejagnu/example/calc/configure.in
  1649. --- baseline/fsf/dejagnu/dejagnu/example/calc/configure.in    Tue May  4 21:43:07 1993
  1650. +++ amiga/fsf/dejagnu/dejagnu/example/calc/configure.in    Sat Sep 28 00:00:00 1996
  1651. @@ -1,5 +1,7 @@
  1652.  dnl Process this file with autoconf to produce a configure script.
  1653.  AC_INIT(calc.c)
  1654. +AC_PROG_CC
  1655. +AC_PROG_CPP
  1656.  AC_CONFIG_HEADER(calc.h)
  1657.  
  1658.  #
  1659. diff -rup --new-file baseline/fsf/dejagnu/dejagnu/runtest amiga/fsf/dejagnu/dejagnu/runtest
  1660. --- baseline/fsf/dejagnu/dejagnu/runtest    Tue Jan  4 16:58:21 1994
  1661. +++ amiga/fsf/dejagnu/dejagnu/runtest    Sat Sep 28 00:00:00 1996
  1662. @@ -7,7 +7,9 @@
  1663.  #
  1664.  # Get the execution path to this script and the current directory.
  1665.  #
  1666. -execpath=`echo ${0-.} | sed  -e 's@/[^/]*$@@'`
  1667. +# The Amiga pdksh does not supply a proper $0 for force it to /ade/bin.
  1668. +#execpath=`echo ${0-.} | sed  -e 's@/[^/]*$@@'`
  1669. +execpath=/ade/bin
  1670.  rootme=`pwd`
  1671.  
  1672.  #
  1673. diff -rup --new-file baseline/fsf/dejagnu/dejagnu/tcl-mode.el amiga/fsf/dejagnu/dejagnu/tcl-mode.el
  1674. --- baseline/fsf/dejagnu/dejagnu/tcl-mode.el    Tue Mar 29 17:28:56 1994
  1675. +++ amiga/fsf/dejagnu/dejagnu/tcl-mode.el    Sat Sep 28 00:00:00 1996
  1676. @@ -86,7 +86,7 @@
  1677.  ;; set the variable tcl-help-directory to point to the topmost
  1678.  ;; directory containing the TclX help files.  Eg:
  1679.  ;;
  1680. -;;   (setq tcl-help-directory "/usr/local/lib/tclx/help")
  1681. +;;   (setq tcl-help-directory "/ade/lib/tclx/help")
  1682.  ;;
  1683.  ;; Also you will want to add the following to your .emacs:
  1684.  ;;
  1685. diff -rup --new-file baseline/fsf/dejagnu/dejagnu/testsuite/runtest.all/options.exp amiga/fsf/dejagnu/dejagnu/testsuite/runtest.all/options.exp
  1686. --- baseline/fsf/dejagnu/dejagnu/testsuite/runtest.all/options.exp    Tue Mar 29 18:24:24 1994
  1687. +++ amiga/fsf/dejagnu/dejagnu/testsuite/runtest.all/options.exp    Sat Sep 28 00:00:00 1996
  1688. @@ -36,7 +36,6 @@ set utility [list { "" "ERROR: No tool s
  1689.       { "-v --tool xXx" "Found.*site\..*Loading.*utils\.exp" "Loading library files" } \
  1690.       { "-v --tool xXx" "Expect binary is.*Using.*main test driver" "Loading basic packages" } \
  1691.         { "-F --tool x" "Illegal Argument \"-F\"" "Bad argument" } \
  1692. -          { "--tool x" "Couldn't find tool init file" "Bad tool name" } \
  1693.              { "--help" "USAGE:*" "Display help" } \
  1694.        { "-v -v -v" "Verbose is now at level 3" "Verbose set correctly" } \
  1695.              { "-V" "Expect version is.*Tcl version is.*Framework version is*" "--version" } \
  1696. diff -rup --new-file baseline/fsf/dejagnu/expect/Makefile.in amiga/fsf/dejagnu/expect/Makefile.in
  1697. --- baseline/fsf/dejagnu/expect/Makefile.in    Mon Apr 11 15:29:51 1994
  1698. +++ amiga/fsf/dejagnu/expect/Makefile.in    Sat Sep 28 00:00:00 1996
  1699. @@ -37,7 +37,7 @@ X11HDIR = @XINCLUDES@
  1700.  # flags to pass to both cc and ld
  1701.  # -O for production version
  1702.  # -g for debuggable version
  1703. -CFLAGS = -g
  1704. +CFLAGS = -O
  1705.  
  1706.  # flags to pass only to linker (after .o files but before libraries)
  1707.  # If you are on a NeXT, add "-m" flag to avoid complaints about multiple strtod
  1708. @@ -49,11 +49,11 @@ CC = @CC@
  1709.  # By default, `make install' will install the appropriate files in
  1710.  # /usr/local/bin, /usr/local/lib, /usr/local/man, etc.  You can specify
  1711.  # an installation prefix other than /usr/local here:
  1712. -prefix = /usr/local
  1713. +prefix = /ade
  1714.  
  1715.  # You can specify a separate installation prefix for architecture-specific
  1716.  # files such as binaries and libraries.
  1717. -exec_prefix = /usr/local
  1718. +exec_prefix = /ade
  1719.  
  1720.  # The following Expect scripts are not necessary to have installed as
  1721.  # commands, but are very useful.  Edit out what you don't want installed.
  1722. diff -rup --new-file baseline/fsf/dejagnu/expect/configure amiga/fsf/dejagnu/expect/configure
  1723. --- baseline/fsf/dejagnu/expect/configure    Mon Apr 11 15:30:00 1994
  1724. +++ amiga/fsf/dejagnu/expect/configure    Mon Sep 30 22:38:53 1996
  1725. @@ -1,53 +1,59 @@
  1726. -#!/bin/sh
  1727. +#! /bin/sh
  1728. +
  1729.  # Guess values for system-dependent variables and create Makefiles.
  1730. -# Generated automatically using autoconf version 1.7.9 
  1731. -# Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  1732. +# Generated automatically using autoconf version 2.10 
  1733. +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  1734. +#
  1735. +# This configure script is free software; the Free Software Foundation
  1736. +# gives unlimited permission to copy, distribute and modify it.
  1737.  
  1738. -# This configure script is free software; you can redistribute it and/or
  1739. -# modify it under the terms of the GNU General Public License as published
  1740. -# by the Free Software Foundation; either version 2, or (at your option)
  1741. -# any later version.
  1742. -
  1743. -# This script is distributed in the hope that it will be useful, but
  1744. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  1745. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  1746. -# Public License for more details.
  1747. -
  1748. -# You should have received a copy of the GNU General Public License
  1749. -# along with this program; if not, write to the Free Software
  1750. -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  1751. -
  1752. -# Save the original args to write them into config.status later.
  1753. -ac_configure_args="$*"
  1754. -
  1755. -# Only options that might do something get documented.
  1756. -ac_usage="Usage: configure [options] [host]
  1757. -Options: [defaults in brackets]
  1758. ---enable-FEATURE[=VAL]    include FEATURE [VAL=yes]
  1759. ---exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  1760. ---help            print this message
  1761. ---prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  1762. ---quiet, --silent    do not print \`checking for...' messages
  1763. ---srcdir=DIR        find the sources in DIR [configure dir or ..]
  1764. ---verbose        print results of checks
  1765. ---version        print the version of autoconf that created configure
  1766. ---with-PACKAGE        use external PACKAGE
  1767. ---without-PACKAGE    do not use external PACKAGE"
  1768. +# Defaults:
  1769. +ac_help=
  1770. +ac_default_prefix=/usr/local
  1771. +# Any additions from configure.in:
  1772. +ac_help="$ac_help
  1773. +  --with-x                use the X Window System"
  1774.  
  1775.  # Initialize some variables set by options.
  1776. +# The variables have the same names as the options, with
  1777. +# dashes changed to underlines.
  1778.  build=NONE
  1779. -exec_prefix=
  1780. +cache_file=./config.cache
  1781. +exec_prefix=NONE
  1782.  host=NONE
  1783. -norecursion=
  1784. -prefix=
  1785. -program_prefix=
  1786. -program_suffix=
  1787. -program_transform_name=
  1788. -ac_silent=
  1789. +no_create=
  1790. +nonopt=NONE
  1791. +no_recursion=
  1792. +prefix=NONE
  1793. +program_prefix=NONE
  1794. +program_suffix=NONE
  1795. +program_transform_name=s,x,x,
  1796. +silent=
  1797.  site=
  1798.  srcdir=
  1799.  target=NONE
  1800. -ac_verbose=
  1801. +verbose=
  1802. +x_includes=NONE
  1803. +x_libraries=NONE
  1804. +bindir='${exec_prefix}/bin'
  1805. +sbindir='${exec_prefix}/sbin'
  1806. +libexecdir='${exec_prefix}/libexec'
  1807. +datadir='${prefix}/share'
  1808. +sysconfdir='${prefix}/etc'
  1809. +sharedstatedir='${prefix}/com'
  1810. +localstatedir='${prefix}/var'
  1811. +libdir='${exec_prefix}/lib'
  1812. +includedir='${prefix}/include'
  1813. +oldincludedir='/usr/include'
  1814. +infodir='${prefix}/info'
  1815. +guidedir='${prefix}/guide'
  1816. +psdir='${prefix}/ps'
  1817. +dvidir='${prefix}/dvi'
  1818. +mandir='${prefix}/man'
  1819. +
  1820. +# Initialize some other variables.
  1821. +subdirs=
  1822. +MFLAGS= MAKEFLAGS=
  1823.  
  1824.  ac_prev=
  1825.  for ac_option
  1826. @@ -60,26 +66,52 @@ do
  1827.      continue
  1828.    fi
  1829.  
  1830. -  # Accept but ignore most of the Cygnus configure options,
  1831. -  # so we can diagnose typos and other invalid options.
  1832. -
  1833.    case "$ac_option" in
  1834. -  *=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  1835. +  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  1836.    *) ac_optarg= ;;
  1837.    esac
  1838.  
  1839. +  # Accept the important Cygnus configure options, so we can diagnose typos.
  1840. +
  1841.    case "$ac_option" in
  1842.  
  1843. -  -build | --build | --buil | --bui | --bu | --b)
  1844. +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1845. +    ac_prev=bindir ;;
  1846. +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1847. +    bindir="$ac_optarg" ;;
  1848. +
  1849. +  -build | --build | --buil | --bui | --bu)
  1850.      ac_prev=build ;;
  1851. -  -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  1852. +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1853.      build="$ac_optarg" ;;
  1854.  
  1855. +  -cache-file | --cache-file | --cache-fil | --cache-fi \
  1856. +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1857. +    ac_prev=cache_file ;;
  1858. +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1859. +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1860. +    cache_file="$ac_optarg" ;;
  1861. +
  1862. +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  1863. +    ac_prev=datadir ;;
  1864. +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  1865. +  | --da=*)
  1866. +    datadir="$ac_optarg" ;;
  1867. +
  1868. +  -disable-* | --disable-*)
  1869. +    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  1870. +    # Reject names that are not valid shell variable names.
  1871. +    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  1872. +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  1873. +    fi
  1874. +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  1875. +    eval "enable_${ac_feature}=no" ;;
  1876. +
  1877.    -enable-* | --enable-*)
  1878.      ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  1879. -    # Reject names that aren't valid shell variable names.
  1880. +    # Reject names that are not valid shell variable names.
  1881.      if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  1882. -      echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  1883. +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  1884.      fi
  1885.      ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  1886.      case "$ac_option" in
  1887. @@ -88,7 +120,6 @@ do
  1888.      esac
  1889.      eval "enable_${ac_feature}='$ac_optarg'" ;;
  1890.  
  1891. -  # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  1892.    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1893.    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1894.    | --exec | --exe | --ex)
  1895. @@ -98,12 +129,66 @@ do
  1896.    | --exec=* | --exe=* | --ex=*)
  1897.      exec_prefix="$ac_optarg" ;;
  1898.  
  1899. -  -gas | --gas | --ga | --g) with_gas=1 ;; # Obsolete; use --with-gas.
  1900. +  -gas | --gas | --ga | --g)
  1901. +    # Obsolete; use --with-gas.
  1902. +    with_gas=yes ;;
  1903.  
  1904.    -help | --help | --hel | --he)
  1905. +    # Omit some internal or obsolete options to make the list less imposing.
  1906. +    # This message is too long to be a string in the A/UX 3.1 sh.
  1907.      cat << EOF
  1908. -$ac_usage
  1909. +Usage: configure [options] [host]
  1910. +Options: [defaults in brackets after descriptions]
  1911. +Configuration:
  1912. +  --cache-file=FILE       cache test results in FILE
  1913. +  --help                  print this message
  1914. +  --no-create             do not create output files
  1915. +  --quiet, --silent       do not print \`checking...' messages
  1916. +  --version               print the version of autoconf that created configure
  1917. +Directory and file names:
  1918. +  --prefix=PREFIX         install architecture-independent files in PREFIX
  1919. +                          [$ac_default_prefix]
  1920. +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1921. +                          [same as prefix]
  1922. +  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  1923. +  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  1924. +  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  1925. +  --datadir=DIR           read-only architecture-independent data in DIR
  1926. +                          [PREFIX/share]
  1927. +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  1928. +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  1929. +                          [PREFIX/com]
  1930. +  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  1931. +  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  1932. +  --includedir=DIR        C header files in DIR [PREFIX/include]
  1933. +  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  1934. +  --infodir=DIR           info documentation in DIR [PREFIX/info]
  1935. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  1936. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  1937. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  1938. +  --mandir=DIR            man documentation in DIR [PREFIX/man]
  1939. +  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  1940. +  --program-prefix=PREFIX prepend PREFIX to installed program names
  1941. +  --program-suffix=SUFFIX append SUFFIX to installed program names
  1942. +  --program-transform-name=PROGRAM
  1943. +                          run sed PROGRAM on installed program names
  1944.  EOF
  1945. +    cat << EOF
  1946. +Host type:
  1947. +  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  1948. +  --host=HOST             configure for HOST [guessed]
  1949. +  --target=TARGET         configure for TARGET [TARGET=HOST]
  1950. +Features and packages:
  1951. +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1952. +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1953. +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1954. +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1955. +  --x-includes=DIR        X include files are in DIR
  1956. +  --x-libraries=DIR       X library files are in DIR
  1957. +EOF
  1958. +    if test -n "$ac_help"; then
  1959. +      echo "--enable and --with options recognized:$ac_help"
  1960. +    fi
  1961.      exit 0 ;;
  1962.  
  1963.    -host | --host | --hos | --ho)
  1964. @@ -111,11 +196,76 @@ EOF
  1965.    -host=* | --host=* | --hos=* | --ho=*)
  1966.      host="$ac_optarg" ;;
  1967.  
  1968. -  -nfp | --nfp | --nf) with_fp=no ;; # Obsolete; use --without-fp.
  1969. -
  1970. -  -norecursion | --norecursion | --norecursio | --norecursi \
  1971. -  | --norecurs | --norecur | --norecu | --norec | --nore | --nor | --no)
  1972. -  norecursion=yes ;;
  1973. +  -includedir | --includedir | --includedi | --included | --include \
  1974. +  | --includ | --inclu | --incl | --inc)
  1975. +    ac_prev=includedir ;;
  1976. +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1977. +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  1978. +    includedir="$ac_optarg" ;;
  1979. +
  1980. +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  1981. +    ac_prev=infodir ;;
  1982. +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1983. +    infodir="$ac_optarg" ;;
  1984. +
  1985. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  1986. +   ac_prev=guidedir ;;
  1987. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  1988. +
  1989. + -psdir | --psdir | --psdi | --psd | --ps)
  1990. +   ac_prev=psdir ;;
  1991. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  1992. +
  1993. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1994. +   ac_prev=dvidir ;;
  1995. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  1996. +
  1997. +  -libdir | --libdir | --libdi | --libd)
  1998. +    ac_prev=libdir ;;
  1999. +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  2000. +    libdir="$ac_optarg" ;;
  2001. +
  2002. +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  2003. +  | --libexe | --libex | --libe)
  2004. +    ac_prev=libexecdir ;;
  2005. +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  2006. +  | --libexe=* | --libex=* | --libe=*)
  2007. +    libexecdir="$ac_optarg" ;;
  2008. +
  2009. +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  2010. +  | --localstate | --localstat | --localsta | --localst \
  2011. +  | --locals | --local | --loca | --loc | --lo)
  2012. +    ac_prev=localstatedir ;;
  2013. +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  2014. +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  2015. +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  2016. +    localstatedir="$ac_optarg" ;;
  2017. +
  2018. +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  2019. +    ac_prev=mandir ;;
  2020. +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  2021. +    mandir="$ac_optarg" ;;
  2022. +
  2023. +  -nfp | --nfp | --nf)
  2024. +    # Obsolete; use --without-fp.
  2025. +    with_fp=no ;;
  2026. +
  2027. +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  2028. +  | --no-cr | --no-c)
  2029. +    no_create=yes ;;
  2030. +
  2031. +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  2032. +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  2033. +    no_recursion=yes ;;
  2034. +
  2035. +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  2036. +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  2037. +  | --oldin | --oldi | --old | --ol | --o)
  2038. +    ac_prev=oldincludedir ;;
  2039. +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  2040. +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  2041. +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  2042. +    oldincludedir="$ac_optarg" ;;
  2043.  
  2044.    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  2045.      ac_prev=prefix ;;
  2046. @@ -155,11 +305,28 @@ EOF
  2047.  
  2048.    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2049.    | -silent | --silent | --silen | --sile | --sil)
  2050. -    ac_silent=yes ;;
  2051. +    silent=yes ;;
  2052. +
  2053. +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  2054. +    ac_prev=sbindir ;;
  2055. +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  2056. +  | --sbi=* | --sb=*)
  2057. +    sbindir="$ac_optarg" ;;
  2058. +
  2059. +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  2060. +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  2061. +  | --sharedst | --shareds | --shared | --share | --shar \
  2062. +  | --sha | --sh)
  2063. +    ac_prev=sharedstatedir ;;
  2064. +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  2065. +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  2066. +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  2067. +  | --sha=* | --sh=*)
  2068. +    sharedstatedir="$ac_optarg" ;;
  2069.  
  2070.    -site | --site | --sit)
  2071.      ac_prev=site ;;
  2072. -  -site= | --site=* | --sit=*)
  2073. +  -site=* | --site=* | --sit=*)
  2074.      site="$ac_optarg" ;;
  2075.  
  2076.    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2077. @@ -167,23 +334,30 @@ EOF
  2078.    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2079.      srcdir="$ac_optarg" ;;
  2080.  
  2081. +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  2082. +  | --syscon | --sysco | --sysc | --sys | --sy)
  2083. +    ac_prev=sysconfdir ;;
  2084. +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  2085. +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  2086. +    sysconfdir="$ac_optarg" ;;
  2087. +
  2088.    -target | --target | --targe | --targ | --tar | --ta | --t)
  2089.      ac_prev=target ;;
  2090.    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  2091.      target="$ac_optarg" ;;
  2092.  
  2093.    -v | -verbose | --verbose | --verbos | --verbo | --verb)
  2094. -      ac_verbose=yes ;;
  2095. +    verbose=yes ;;
  2096.  
  2097.    -version | --version | --versio | --versi | --vers)
  2098. -    echo "configure generated by autoconf version 1.7.9"
  2099. +    echo "configure generated by autoconf version 2.10"
  2100.      exit 0 ;;
  2101.  
  2102.    -with-* | --with-*)
  2103.      ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  2104. -    # Reject names that aren't valid shell variable names.
  2105. +    # Reject names that are not valid shell variable names.
  2106.      if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  2107. -      echo "configure: $ac_package: invalid package name" >&2; exit 1
  2108. +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  2109.      fi
  2110.      ac_package=`echo $ac_package| sed 's/-/_/g'`
  2111.      case "$ac_option" in
  2112. @@ -194,42 +368,95 @@ EOF
  2113.  
  2114.    -without-* | --without-*)
  2115.      ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  2116. -    # Reject names that aren't valid shell variable names.
  2117. +    # Reject names that are not valid shell variable names.
  2118.      if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  2119. -      echo "configure: $ac_package: invalid package name" >&2; exit 1
  2120. +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  2121.      fi
  2122.      ac_package=`echo $ac_package| sed 's/-/_/g'`
  2123.      eval "with_${ac_package}=no" ;;
  2124.  
  2125. -  --x) with_x=1 ;; # Obsolete; use --with-x.
  2126. +  --x)
  2127. +    # Obsolete; use --with-x.
  2128. +    with_x=yes ;;
  2129. +
  2130. +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  2131. +  | --x-incl | --x-inc | --x-in | --x-i)
  2132. +    ac_prev=x_includes ;;
  2133. +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  2134. +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  2135. +    x_includes="$ac_optarg" ;;
  2136. +
  2137. +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  2138. +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  2139. +    ac_prev=x_libraries ;;
  2140. +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  2141. +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  2142. +    x_libraries="$ac_optarg" ;;
  2143.  
  2144. -  -*) echo "configure: warning: $ac_option: invalid option; use --help to show usage" >&2
  2145. +  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  2146.      ;;
  2147.  
  2148. -  *) 
  2149. -    if test -n "`echo $ac_option| sed 's/[-a-z0-9]//g'`"; then
  2150. -      echo "configure: warning: $ac_option: invalid host type" >&2
  2151. +  *)
  2152. +    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  2153. +      echo "configure: warning: $ac_option: invalid host type" 1>&2
  2154. +    fi
  2155. +    if test "x$nonopt" != xNONE; then
  2156. +      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  2157.      fi
  2158. +    nonopt="$ac_option"
  2159.      ;;
  2160.  
  2161.    esac
  2162.  done
  2163.  
  2164.  if test -n "$ac_prev"; then
  2165. -  echo "configure: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  2166. +  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  2167.  fi
  2168.  
  2169. -trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  2170. -trap 'rm -fr confdefs* $ac_clean_files' 0
  2171. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2172.  
  2173. -# Save the original args if we used an alternate arg parser.
  2174. -ac_configure_args="${ac_configure_args-$*}"
  2175. +# File descriptor usage:
  2176. +# 0 standard input
  2177. +# 1 file creation
  2178. +# 2 errors and warnings
  2179. +# 3 some systems may open it to /dev/tty
  2180. +# 4 used on the Kubota Titan
  2181. +# 6 checking for... messages and results
  2182. +# 5 compiler messages saved in config.log
  2183. +if test "$silent" = yes; then
  2184. +  exec 6>/dev/null
  2185. +else
  2186. +  exec 6>&1
  2187. +fi
  2188. +exec 5>./config.log
  2189. +
  2190. +echo "\
  2191. +This file contains any messages produced by compilers while
  2192. +running configure, to aid debugging if configure makes a mistake.
  2193. +" 1>&5
  2194. +
  2195. +# Strip out --no-create and --no-recursion so they do not pile up.
  2196. +# Also quote any args containing shell metacharacters.
  2197. +ac_configure_args=
  2198. +for ac_arg
  2199. +do
  2200. +  case "$ac_arg" in
  2201. +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  2202. +  | --no-cr | --no-c) ;;
  2203. +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  2204. +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  2205. +  *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  2206. +  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  2207. +  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  2208. +  esac
  2209. +done
  2210.  
  2211.  # NLS nuisances.
  2212. +# Only set LANG and LC_ALL to C if already set.
  2213.  # These must not be set unconditionally because not all systems understand
  2214.  # e.g. LANG=C (notably SCO).
  2215. -if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  2216. -if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  2217. +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  2218. +if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  2219.  
  2220.  # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2221.  rm -rf conftest* confdefs.h
  2222. @@ -243,7 +470,7 @@ ac_unique_file=expect.h
  2223.  # Find the source files, if location was not specified.
  2224.  if test -z "$srcdir"; then
  2225.    ac_srcdir_defaulted=yes
  2226. -  # Try the directory containing this script, then `..'.
  2227. +  # Try the directory containing this script, then its parent.
  2228.    ac_prog=$0
  2229.    ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  2230.    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  2231. @@ -251,126 +478,467 @@ if test -z "$srcdir"; then
  2232.    if test ! -r $srcdir/$ac_unique_file; then
  2233.      srcdir=..
  2234.    fi
  2235. +else
  2236. +  ac_srcdir_defaulted=no
  2237.  fi
  2238.  if test ! -r $srcdir/$ac_unique_file; then
  2239. -  if test x$ac_srcdir_defaulted = xyes; then
  2240. -    echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  2241. +  if test "$ac_srcdir_defaulted" = yes; then
  2242. +    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  2243. +  else
  2244. +    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  2245. +  fi
  2246. +fi
  2247. +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  2248. +
  2249. +# Prefer explicitly selected file to automatically selected ones.
  2250. +if test -z "$CONFIG_SITE"; then
  2251. +  if test "x$prefix" != xNONE; then
  2252. +    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  2253.    else
  2254. -    echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  2255. +    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2256.    fi
  2257.  fi
  2258. +for ac_site_file in $CONFIG_SITE; do
  2259. +  if test -r "$ac_site_file"; then
  2260. +    echo "loading site script $ac_site_file"
  2261. +    . "$ac_site_file"
  2262. +  fi
  2263. +done
  2264. +
  2265. +if test -r "$cache_file"; then
  2266. +  echo "loading cache $cache_file"
  2267. +  . $cache_file
  2268. +else
  2269. +  echo "creating cache $cache_file"
  2270. +  > $cache_file
  2271. +fi
  2272.  
  2273.  ac_ext=c
  2274. -ac_cpp='${CPP} $CFLAGS'
  2275. -ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  2276. +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2277. +ac_cpp='$CPP $CPPFLAGS'
  2278. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2279. +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2280. +
  2281. +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  2282. +  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  2283. +  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  2284. +    ac_n= ac_c='
  2285. +' ac_t='    '
  2286. +  else
  2287. +    ac_n=-n ac_c= ac_t=
  2288. +  fi
  2289. +else
  2290. +  ac_n= ac_c='\c' ac_t=
  2291. +fi
  2292. +
  2293.  
  2294.  
  2295. -if test -z "$RANLIB"; then
  2296. -  # Extract the first word of `ranlib', so it can be a program name with args.
  2297. -  set ac_dummy ranlib; ac_word=$2
  2298. -  test -n "$ac_silent" || echo "checking for $ac_word"
  2299. +# Extract the first word of "ranlib", so it can be a program name with args.
  2300. +set dummy ranlib; ac_word=$2
  2301. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2302. +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2303. +  echo $ac_n "(cached) $ac_c" 1>&6
  2304. +else
  2305. +  if test -n "$RANLIB"; then
  2306. +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2307. +else
  2308. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2309. +  for ac_dir in $PATH; do
  2310. +    test -z "$ac_dir" && ac_dir=.
  2311. +    if test -f $ac_dir/$ac_word; then
  2312. +      ac_cv_prog_RANLIB="ranlib"
  2313. +      break
  2314. +    fi
  2315. +  done
  2316. +  IFS="$ac_save_ifs"
  2317. +  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="true"
  2318. +fi
  2319. +fi
  2320. +RANLIB="$ac_cv_prog_RANLIB"
  2321. +if test -n "$RANLIB"; then
  2322. +  echo "$ac_t""$RANLIB" 1>&6
  2323. +else
  2324. +  echo "$ac_t""no" 1>&6
  2325. +fi
  2326. +
  2327. +# Extract the first word of "gcc", so it can be a program name with args.
  2328. +set dummy gcc; ac_word=$2
  2329. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2330. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2331. +  echo $ac_n "(cached) $ac_c" 1>&6
  2332. +else
  2333. +  if test -n "$CC"; then
  2334. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  2335. +else
  2336. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2337. +  for ac_dir in $PATH; do
  2338. +    test -z "$ac_dir" && ac_dir=.
  2339. +    if test -f $ac_dir/$ac_word; then
  2340. +      ac_cv_prog_CC="gcc"
  2341. +      break
  2342. +    fi
  2343. +  done
  2344. +  IFS="$ac_save_ifs"
  2345. +fi
  2346. +fi
  2347. +CC="$ac_cv_prog_CC"
  2348. +if test -n "$CC"; then
  2349. +  echo "$ac_t""$CC" 1>&6
  2350. +else
  2351. +  echo "$ac_t""no" 1>&6
  2352. +fi
  2353. +
  2354. +if test -z "$CC"; then
  2355. +  # Extract the first word of "cc", so it can be a program name with args.
  2356. +set dummy cc; ac_word=$2
  2357. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2358. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2359. +  echo $ac_n "(cached) $ac_c" 1>&6
  2360. +else
  2361. +  if test -n "$CC"; then
  2362. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  2363. +else
  2364.    IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2365. +  ac_prog_rejected=no
  2366.    for ac_dir in $PATH; do
  2367.      test -z "$ac_dir" && ac_dir=.
  2368.      if test -f $ac_dir/$ac_word; then
  2369. -      RANLIB="ranlib"
  2370. +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  2371. +        ac_prog_rejected=yes
  2372. +    continue
  2373. +      fi
  2374. +      ac_cv_prog_CC="cc"
  2375.        break
  2376.      fi
  2377.    done
  2378.    IFS="$ac_save_ifs"
  2379. +if test $ac_prog_rejected = yes; then
  2380. +  # We found a bogon in the path, so make sure we never use it.
  2381. +  set dummy $ac_cv_prog_CC
  2382. +  shift
  2383. +  if test $# -gt 0; then
  2384. +    # We chose a different compiler from the bogus one.
  2385. +    # However, it has the same basename, so the bogon will be chosen
  2386. +    # first if we set CC to just the basename; use the full file name.
  2387. +    shift
  2388. +    set dummy "$ac_dir/$ac_word" "$@"
  2389. +    shift
  2390. +    ac_cv_prog_CC="$@"
  2391. +  fi
  2392.  fi
  2393. -test -z "$RANLIB" && RANLIB="true"
  2394. -test -n "$RANLIB" && test -n "$ac_verbose" && echo "    setting RANLIB to $RANLIB"
  2395. +fi
  2396. +fi
  2397. +CC="$ac_cv_prog_CC"
  2398. +if test -n "$CC"; then
  2399. +  echo "$ac_t""$CC" 1>&6
  2400. +else
  2401. +  echo "$ac_t""no" 1>&6
  2402. +fi
  2403. +
  2404. +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  2405. +fi
  2406. +
  2407. +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  2408. +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  2409. +  echo $ac_n "(cached) $ac_c" 1>&6
  2410. +else
  2411. +  cat > conftest.c <<EOF
  2412. +#ifdef __GNUC__
  2413. +  yes;
  2414. +#endif
  2415. +EOF
  2416. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  2417. +  ac_cv_prog_gcc=yes
  2418. +else
  2419. +  ac_cv_prog_gcc=no
  2420. +fi
  2421. +fi
  2422. +
  2423. +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  2424. +if test $ac_cv_prog_gcc = yes; then
  2425. +  GCC=yes
  2426. +  if test "${CFLAGS+set}" != set; then
  2427. +    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  2428. +if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  2429. +  echo $ac_n "(cached) $ac_c" 1>&6
  2430. +else
  2431. +  echo 'void f(){}' > conftest.c
  2432. +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  2433. +  ac_cv_prog_gcc_g=yes
  2434. +else
  2435. +  ac_cv_prog_gcc_g=no
  2436. +fi
  2437. +rm -f conftest*
  2438.  
  2439. -CC=${CC-cc}
  2440. +fi
  2441.  
  2442. +echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  2443. +    if test $ac_cv_prog_gcc_g = yes; then
  2444. +      CFLAGS="-g -O2"
  2445. +    else
  2446. +      CFLAGS="-O2"
  2447. +    fi
  2448. +  fi
  2449. +else
  2450. +  GCC=
  2451. +  test "${CFLAGS+set}" = set || CFLAGS="-g"
  2452. +fi
  2453.  
  2454. -test -n "$ac_silent" || echo "checking for pid_t in sys/types.h"
  2455. -test -n "$ac_silent" || echo "checking how to run the C preprocessor"
  2456. +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2457. +# On Suns, sometimes $CPP names a directory.
  2458. +if test -n "$CPP" && test -d "$CPP"; then
  2459. +  CPP=
  2460. +fi
  2461.  if test -z "$CPP"; then
  2462. -  # This must be in double quotes, not single quotes, because CPP may get
  2463. -  # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  2464. -  # make.  It must be expanded now.
  2465. +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  2466. +  echo $ac_n "(cached) $ac_c" 1>&6
  2467. +else
  2468. +    # This must be in double quotes, not single quotes, because CPP may get
  2469. +  # substituted into the Makefile and "${CC-cc}" will confuse make.
  2470.    CPP="${CC-cc} -E"
  2471. -  cat > conftest.${ac_ext} <<EOF
  2472. +  # On the NeXT, cc -E runs the code through the compiler's parser,
  2473. +  # not just through cpp.
  2474. +  cat > conftest.$ac_ext <<EOF
  2475. +#line 703 "configure"
  2476.  #include "confdefs.h"
  2477. -#include <stdio.h>
  2478. +#include <assert.h>
  2479.  Syntax Error
  2480.  EOF
  2481. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2482. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2483. +{ (eval echo configure:709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2484. +ac_err=`grep -v '^ *+' conftest.out`
  2485.  if test -z "$ac_err"; then
  2486.    :
  2487.  else
  2488. +  echo "$ac_err" >&5
  2489.    rm -rf conftest*
  2490.    CPP="${CC-cc} -E -traditional-cpp"
  2491. -  cat > conftest.${ac_ext} <<EOF
  2492. +  cat > conftest.$ac_ext <<EOF
  2493. +#line 718 "configure"
  2494.  #include "confdefs.h"
  2495. -#include <stdio.h>
  2496. +#include <assert.h>
  2497.  Syntax Error
  2498.  EOF
  2499. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2500. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2501. +{ (eval echo configure:724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2502. +ac_err=`grep -v '^ *+' conftest.out`
  2503.  if test -z "$ac_err"; then
  2504.    :
  2505.  else
  2506. +  echo "$ac_err" >&5
  2507.    rm -rf conftest*
  2508.    CPP=/lib/cpp
  2509.  fi
  2510.  rm -f conftest*
  2511.  fi
  2512.  rm -f conftest*
  2513. +  ac_cv_prog_CPP="$CPP"
  2514. +fi
  2515. +  CPP="$ac_cv_prog_CPP"
  2516. +else
  2517. +  ac_cv_prog_CPP="$CPP"
  2518. +fi
  2519. +echo "$ac_t""$CPP" 1>&6
  2520. +
  2521. +
  2522. +
  2523. +# If we cannot run a trivial program, we must be cross compiling.
  2524. +echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  2525. +if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  2526. +  echo $ac_n "(cached) $ac_c" 1>&6
  2527. +else
  2528. +  if test "$cross_compiling" = yes; then
  2529. +  ac_cv_c_cross=yes
  2530. +else
  2531. +cat > conftest.$ac_ext <<EOF
  2532. +#line 755 "configure"
  2533. +#include "confdefs.h"
  2534. +main(){return(0);}
  2535. +EOF
  2536. +{ (eval echo configure:759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2537. +if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2538. +  ac_cv_c_cross=no
  2539. +else
  2540. +  ac_cv_c_cross=yes
  2541. +fi
  2542. +fi
  2543. +rm -fr conftest*
  2544. +fi
  2545. +
  2546. +echo "$ac_t""$ac_cv_c_cross" 1>&6
  2547. +cross_compiling=$ac_cv_c_cross
  2548. +
  2549. +echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2550. +if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  2551. +  echo $ac_n "(cached) $ac_c" 1>&6
  2552. +else
  2553. +  cat > conftest.$ac_ext <<EOF
  2554. +#line 777 "configure"
  2555. +#include "confdefs.h"
  2556. +#include <stdlib.h>
  2557. +#include <stdarg.h>
  2558. +#include <string.h>
  2559. +#include <float.h>
  2560. +EOF
  2561. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2562. +{ (eval echo configure:785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2563. +ac_err=`grep -v '^ *+' conftest.out`
  2564. +if test -z "$ac_err"; then
  2565. +  rm -rf conftest*
  2566. +  ac_cv_header_stdc=yes
  2567. +else
  2568. +  echo "$ac_err" >&5
  2569. +  rm -rf conftest*
  2570. +  ac_cv_header_stdc=no
  2571.  fi
  2572. -test -n "$ac_verbose" && echo "    setting CPP to $CPP"
  2573. +rm -f conftest*
  2574.  
  2575. -echo '#include "confdefs.h"
  2576. -#include <sys/types.h>' > conftest.${ac_ext}
  2577. -eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  2578. -if egrep "pid_t" conftest.out >/dev/null 2>&1; then
  2579. +if test $ac_cv_header_stdc = yes; then
  2580. +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2581. +cat > conftest.$ac_ext <<EOF
  2582. +#line 800 "configure"
  2583. +#include "confdefs.h"
  2584. +#include <string.h>
  2585. +EOF
  2586. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2587. +  egrep "memchr" >/dev/null 2>&1; then
  2588.    :
  2589.  else
  2590.    rm -rf conftest*
  2591. -  
  2592. -{
  2593. -test -n "$ac_verbose" && \
  2594. -echo "    defining" pid_t to be "int"
  2595. -echo "#define" pid_t "int" >> confdefs.h
  2596. -DEFS="$DEFS -Dpid_t=int"
  2597. -ac_sed_defs="${ac_sed_defs}\${ac_dA}pid_t\${ac_dB}pid_t\${ac_dC}int\${ac_dD}
  2598. -\${ac_uA}pid_t\${ac_uB}pid_t\${ac_uC}int\${ac_uD}
  2599. -\${ac_eA}pid_t\${ac_eB}pid_t\${ac_eC}int\${ac_eD}
  2600. -"
  2601. -}
  2602. +  ac_cv_header_stdc=no
  2603. +fi
  2604. +rm -f conftest*
  2605. +
  2606. +fi
  2607. +
  2608. +if test $ac_cv_header_stdc = yes; then
  2609. +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2610. +cat > conftest.$ac_ext <<EOF
  2611. +#line 818 "configure"
  2612. +#include "confdefs.h"
  2613. +#include <stdlib.h>
  2614. +EOF
  2615. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2616. +  egrep "free" >/dev/null 2>&1; then
  2617. +  :
  2618. +else
  2619. +  rm -rf conftest*
  2620. +  ac_cv_header_stdc=no
  2621. +fi
  2622. +rm -f conftest*
  2623. +
  2624. +fi
  2625. +
  2626. +if test $ac_cv_header_stdc = yes; then
  2627. +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2628. +if test "$cross_compiling" = yes; then
  2629. +  :
  2630. +else
  2631. +cat > conftest.$ac_ext <<EOF
  2632. +#line 839 "configure"
  2633. +#include "confdefs.h"
  2634. +#include <ctype.h>
  2635. +#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2636. +#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2637. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2638. +int main () { int i; for (i = 0; i < 256; i++)
  2639. +if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2640. +exit (0); }
  2641. +
  2642. +EOF
  2643. +{ (eval echo configure:850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2644. +if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2645. +  :
  2646. +else
  2647. +  ac_cv_header_stdc=no
  2648. +fi
  2649. +fi
  2650. +rm -fr conftest*
  2651. +fi
  2652. +fi
  2653. +
  2654. +echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2655. +if test $ac_cv_header_stdc = yes; then
  2656. +  cat >> confdefs.h <<\EOF
  2657. +#define STDC_HEADERS 1
  2658. +EOF
  2659. +
  2660. +fi
  2661.  
  2662. +echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  2663. +if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  2664. +  echo $ac_n "(cached) $ac_c" 1>&6
  2665. +else
  2666. +  cat > conftest.$ac_ext <<EOF
  2667. +#line 874 "configure"
  2668. +#include "confdefs.h"
  2669. +#include <sys/types.h>
  2670. +#if STDC_HEADERS
  2671. +#include <stdlib.h>
  2672. +#endif
  2673. +EOF
  2674. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2675. +  egrep "pid_t" >/dev/null 2>&1; then
  2676. +  rm -rf conftest*
  2677. +  ac_cv_type_pid_t=yes
  2678. +else
  2679. +  rm -rf conftest*
  2680. +  ac_cv_type_pid_t=no
  2681.  fi
  2682.  rm -f conftest*
  2683.  
  2684. +fi
  2685. +echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  2686. +if test $ac_cv_type_pid_t = no; then
  2687. +  cat >> confdefs.h <<\EOF
  2688. +#define pid_t int
  2689. +EOF
  2690. +
  2691. +fi
  2692. +
  2693.  
  2694.  #
  2695.  # On a few systems, libm.a is the same as libc.a
  2696.  #
  2697. -test -n "$ac_silent" || echo "checking for sin"
  2698. -cat > conftest.${ac_ext} <<EOF
  2699. +echo $ac_n "checking for -lm""... $ac_c" 1>&6
  2700. +ac_lib_var=`echo m'_'main | tr './+\055' '__p_'`
  2701. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2702. +  echo $ac_n "(cached) $ac_c" 1>&6
  2703. +else
  2704. +  ac_save_LIBS="$LIBS"
  2705. +LIBS="-lm  $LIBS"
  2706. +cat > conftest.$ac_ext <<EOF
  2707. +#line 912 "configure"
  2708.  #include "confdefs.h"
  2709. -#include <ctype.h>
  2710. -int main() { return 0; }
  2711. -int t() { 
  2712. -/* The GNU C library defines this for functions which it implements
  2713. -    to always fail with ENOSYS.  Some functions are actually named
  2714. -    something starting with __ and the normal name is an alias.  */
  2715. -#if defined (__stub_sin) || defined (__stub___sin)
  2716. -choke me
  2717. -#else
  2718. -/* Override any gcc2 internal prototype to avoid an error.  */
  2719. -extern char sin(); sin();
  2720. -#endif
  2721. +
  2722. +int main() { t(); return 0; }
  2723. +int t() {
  2724. +main()
  2725.  ; return 0; }
  2726.  EOF
  2727. -if eval $ac_compile; then
  2728. -  :
  2729. +if { (eval echo configure:920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2730. +  rm -rf conftest*
  2731. +  eval "ac_cv_lib_$ac_lib_var=yes"
  2732.  else
  2733.    rm -rf conftest*
  2734. -  LIBS="-lm" ; test -n "$verbose" && echo "    Adding -lm to library list"
  2735. +  eval "ac_cv_lib_$ac_lib_var=no"
  2736.  fi
  2737.  rm -f conftest*
  2738. +LIBS="$ac_save_LIBS"
  2739. +
  2740. +fi
  2741. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2742. +  echo "$ac_t""yes" 1>&6
  2743. +    ac_tr_lib=HAVE_LIB`echo m | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  2744. +  cat >> confdefs.h <<EOF
  2745. +#define $ac_tr_lib 1
  2746. +EOF
  2747. +
  2748. +  LIBS="-lm $LIBS"
  2749. +
  2750. +else
  2751. +  echo "$ac_t""no" 1>&6
  2752. +fi
  2753.  
  2754.  #
  2755.  # Ok, lets find the tk source trees so we can use the headers
  2756. @@ -388,21 +956,36 @@ for i in `ls -d ${srcdir}/../tk* 2>/dev/
  2757.  done
  2758.  # if we can't find it, see if one is installed
  2759.  if test x"$TKHDIR" = x ; then
  2760. -  test -n "$ac_silent" || echo "checking for tk.h"
  2761. -cat > conftest.${ac_ext} <<EOF
  2762. +  ac_safe=`echo "tk.h" | tr './\055' '___'`
  2763. +echo $ac_n "checking for tk.h""... $ac_c" 1>&6
  2764. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2765. +  echo $ac_n "(cached) $ac_c" 1>&6
  2766. +else
  2767. +  cat > conftest.$ac_ext <<EOF
  2768. +#line 966 "configure"
  2769.  #include "confdefs.h"
  2770.  #include <tk.h>
  2771.  EOF
  2772. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2773. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2774. +{ (eval echo configure:971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2775. +ac_err=`grep -v '^ *+' conftest.out`
  2776.  if test -z "$ac_err"; then
  2777.    rm -rf conftest*
  2778. -  installed=1
  2779. -
  2780. +  eval "ac_cv_header_$ac_safe=yes"
  2781.  else
  2782. +  echo "$ac_err" >&5
  2783.    rm -rf conftest*
  2784. -  installed=0
  2785. +  eval "ac_cv_header_$ac_safe=no"
  2786.  fi
  2787.  rm -f conftest*
  2788. +fi
  2789. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2790. +  echo "$ac_t""yes" 1>&6
  2791. +  installed=1
  2792. +else
  2793. +  echo "$ac_t""no" 1>&6
  2794. +installed=0
  2795. +fi
  2796.  
  2797.    if test $installed -eq 0 ; then
  2798.      TKHDIR="# no Tk directory found"
  2799. @@ -426,27 +1009,37 @@ for i in `ls -d ../tk* 2>/dev/null` ../t
  2800.  done    
  2801.  # If not found, look for installed version
  2802.  if test x"$TKLIB" = x ; then
  2803. -  ac_save_LIBS="${LIBS}"
  2804. -LIBS="${LIBS} -ltk"
  2805. -ac_have_lib=""
  2806. -test -n "$ac_silent" || echo "checking for -ltk"
  2807. -cat > conftest.${ac_ext} <<EOF
  2808. +  echo $ac_n "checking for -ltk""... $ac_c" 1>&6
  2809. +if eval "test \"`echo '$''{'ac_cv_lib_tk'+set}'`\" = set"; then
  2810. +  echo $ac_n "(cached) $ac_c" 1>&6
  2811. +else
  2812. +  ac_save_LIBS="$LIBS"
  2813. +LIBS="-ltk  $LIBS"
  2814. +cat > conftest.$ac_ext <<EOF
  2815. +#line 1020 "configure"
  2816.  #include "confdefs.h"
  2817.  
  2818. -int main() { return 0; }
  2819. -int t() { main();; return 0; }
  2820. +int main() { t(); return 0; }
  2821. +int t() {
  2822. +main()
  2823. +; return 0; }
  2824.  EOF
  2825. -if eval $ac_compile; then
  2826. +if { (eval echo configure:1028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2827.    rm -rf conftest*
  2828. -  ac_have_lib="1"
  2829. -
  2830. +  ac_cv_lib_tk=yes
  2831. +else
  2832. +  rm -rf conftest*
  2833. +  ac_cv_lib_tk=no
  2834.  fi
  2835.  rm -f conftest*
  2836. -LIBS="${ac_save_LIBS}"
  2837. -if test -n "${ac_have_lib}"; then
  2838. -   :; installed=1
  2839. +LIBS="$ac_save_LIBS"
  2840. +
  2841. +fi
  2842. +echo "$ac_t""$ac_cv_lib_tk" 1>&6
  2843. +if test "$ac_cv_lib_tk" = yes; then
  2844. +  installed=1
  2845.  else
  2846. -   :; installed=0
  2847. +  installed=0
  2848.  fi
  2849.  
  2850.    if test $installed -eq 1 ; then
  2851. @@ -486,21 +1079,36 @@ for i in `ls -d ${srcdir}/../tcl* 2>/dev
  2852.  done
  2853.  # if we can't find it, see if one is installed
  2854.  if test x"$TCLHDIR" = x ; then
  2855. -  test -n "$ac_silent" || echo "checking for tclInt.h"
  2856. -cat > conftest.${ac_ext} <<EOF
  2857. +  ac_safe=`echo "tclInt.h" | tr './\055' '___'`
  2858. +echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
  2859. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2860. +  echo $ac_n "(cached) $ac_c" 1>&6
  2861. +else
  2862. +  cat > conftest.$ac_ext <<EOF
  2863. +#line 1089 "configure"
  2864.  #include "confdefs.h"
  2865.  #include <tclInt.h>
  2866.  EOF
  2867. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2868. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2869. +{ (eval echo configure:1094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2870. +ac_err=`grep -v '^ *+' conftest.out`
  2871.  if test -z "$ac_err"; then
  2872.    rm -rf conftest*
  2873. -  installed=1
  2874. -
  2875. +  eval "ac_cv_header_$ac_safe=yes"
  2876.  else
  2877. +  echo "$ac_err" >&5
  2878.    rm -rf conftest*
  2879. -  installed=0
  2880. +  eval "ac_cv_header_$ac_safe=no"
  2881.  fi
  2882.  rm -f conftest*
  2883. +fi
  2884. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2885. +  echo "$ac_t""yes" 1>&6
  2886. +  installed=1
  2887. +else
  2888. +  echo "$ac_t""no" 1>&6
  2889. +installed=0
  2890. +fi
  2891.  
  2892.    if test $installed -eq 0 ; then
  2893.      TCLHDIR="# no Tcl directory found"
  2894. @@ -523,27 +1131,37 @@ for i in `ls -d ../tcl* 2>/dev/null` ../
  2895.  done    
  2896.  # If not found, look for installed version
  2897.  if test x"$TCLLIB" = x ; then
  2898. -  ac_save_LIBS="${LIBS}"
  2899. -LIBS="${LIBS} -ltcl"
  2900. -ac_have_lib=""
  2901. -test -n "$ac_silent" || echo "checking for -ltcl"
  2902. -cat > conftest.${ac_ext} <<EOF
  2903. +  echo $ac_n "checking for -ltcl""... $ac_c" 1>&6
  2904. +if eval "test \"`echo '$''{'ac_cv_lib_tcl'+set}'`\" = set"; then
  2905. +  echo $ac_n "(cached) $ac_c" 1>&6
  2906. +else
  2907. +  ac_save_LIBS="$LIBS"
  2908. +LIBS="-ltcl  $LIBS"
  2909. +cat > conftest.$ac_ext <<EOF
  2910. +#line 1142 "configure"
  2911.  #include "confdefs.h"
  2912.  
  2913. -int main() { return 0; }
  2914. -int t() { main();; return 0; }
  2915. +int main() { t(); return 0; }
  2916. +int t() {
  2917. +main()
  2918. +; return 0; }
  2919.  EOF
  2920. -if eval $ac_compile; then
  2921. +if { (eval echo configure:1150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2922.    rm -rf conftest*
  2923. -  ac_have_lib="1"
  2924. -
  2925. +  ac_cv_lib_tcl=yes
  2926. +else
  2927. +  rm -rf conftest*
  2928. +  ac_cv_lib_tcl=no
  2929.  fi
  2930.  rm -f conftest*
  2931. -LIBS="${ac_save_LIBS}"
  2932. -if test -n "${ac_have_lib}"; then
  2933. -   :; installed=1
  2934. +LIBS="$ac_save_LIBS"
  2935. +
  2936. +fi
  2937. +echo "$ac_t""$ac_cv_lib_tcl" 1>&6
  2938. +if test "$ac_cv_lib_tcl" = yes; then
  2939. +  installed=1
  2940.  else
  2941. -   :; installed=0
  2942. +  installed=0
  2943.  fi
  2944.  
  2945.    if test $installed -eq 1 ; then
  2946. @@ -571,346 +1189,464 @@ fi
  2947.  #
  2948.  # Look for various header files
  2949.  #
  2950. -test -n "$ac_silent" || echo "checking for sys/sysmacros.h"
  2951. -cat > conftest.${ac_ext} <<EOF
  2952. +ac_safe=`echo "sys/sysmacros.h" | tr './\055' '___'`
  2953. +echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
  2954. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2955. +  echo $ac_n "(cached) $ac_c" 1>&6
  2956. +else
  2957. +  cat > conftest.$ac_ext <<EOF
  2958. +#line 1199 "configure"
  2959.  #include "confdefs.h"
  2960.  #include <sys/sysmacros.h>
  2961.  EOF
  2962. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2963. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2964. +{ (eval echo configure:1204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2965. +ac_err=`grep -v '^ *+' conftest.out`
  2966.  if test -z "$ac_err"; then
  2967.    rm -rf conftest*
  2968. -  
  2969. -{
  2970. -test -n "$ac_verbose" && \
  2971. -echo "    defining HAVE_SYSMACROS_H"
  2972. -echo "#define" HAVE_SYSMACROS_H "1" >> confdefs.h
  2973. -DEFS="$DEFS -DHAVE_SYSMACROS_H=1"
  2974. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SYSMACROS_H\${ac_dB}HAVE_SYSMACROS_H\${ac_dC}1\${ac_dD}
  2975. -\${ac_uA}HAVE_SYSMACROS_H\${ac_uB}HAVE_SYSMACROS_H\${ac_uC}1\${ac_uD}
  2976. -\${ac_eA}HAVE_SYSMACROS_H\${ac_eB}HAVE_SYSMACROS_H\${ac_eC}1\${ac_eD}
  2977. -"
  2978. -}
  2979. -
  2980. -
  2981. +  eval "ac_cv_header_$ac_safe=yes"
  2982. +else
  2983. +  echo "$ac_err" >&5
  2984. +  rm -rf conftest*
  2985. +  eval "ac_cv_header_$ac_safe=no"
  2986.  fi
  2987.  rm -f conftest*
  2988. +fi
  2989. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2990. +  echo "$ac_t""yes" 1>&6
  2991. +  cat >> confdefs.h <<\EOF
  2992. +#define HAVE_SYSMACROS_H 1
  2993. +EOF
  2994. +
  2995. +else
  2996. +  echo "$ac_t""no" 1>&6
  2997. +fi
  2998.  
  2999. -test -n "$ac_silent" || echo "checking for stdlib.h"
  3000. -cat > conftest.${ac_ext} <<EOF
  3001. +ac_safe=`echo "stdlib.h" | tr './\055' '___'`
  3002. +echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
  3003. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3004. +  echo $ac_n "(cached) $ac_c" 1>&6
  3005. +else
  3006. +  cat > conftest.$ac_ext <<EOF
  3007. +#line 1232 "configure"
  3008.  #include "confdefs.h"
  3009.  #include <stdlib.h>
  3010.  EOF
  3011. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  3012. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3013. +{ (eval echo configure:1237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3014. +ac_err=`grep -v '^ *+' conftest.out`
  3015.  if test -z "$ac_err"; then
  3016. -  :
  3017. +  rm -rf conftest*
  3018. +  eval "ac_cv_header_$ac_safe=yes"
  3019.  else
  3020. +  echo "$ac_err" >&5
  3021.    rm -rf conftest*
  3022. -  
  3023. -{
  3024. -test -n "$ac_verbose" && \
  3025. -echo "    defining NO_STDLIB_H"
  3026. -echo "#define" NO_STDLIB_H "1" >> confdefs.h
  3027. -DEFS="$DEFS -DNO_STDLIB_H=1"
  3028. -ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_STDLIB_H\${ac_dB}NO_STDLIB_H\${ac_dC}1\${ac_dD}
  3029. -\${ac_uA}NO_STDLIB_H\${ac_uB}NO_STDLIB_H\${ac_uC}1\${ac_uD}
  3030. -\${ac_eA}NO_STDLIB_H\${ac_eB}NO_STDLIB_H\${ac_eC}1\${ac_eD}
  3031. -"
  3032. -}
  3033. -
  3034. +  eval "ac_cv_header_$ac_safe=no"
  3035.  fi
  3036.  rm -f conftest*
  3037. +fi
  3038. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3039. +  echo "$ac_t""yes" 1>&6
  3040. +  :
  3041. +else
  3042. +  echo "$ac_t""no" 1>&6
  3043. +cat >> confdefs.h <<\EOF
  3044. +#define NO_STDLIB_H 1
  3045. +EOF
  3046. +
  3047. +fi
  3048.  
  3049. -test -n "$ac_silent" || echo "checking for unistd.h"
  3050. -cat > conftest.${ac_ext} <<EOF
  3051. +ac_safe=`echo "unistd.h" | tr './\055' '___'`
  3052. +echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
  3053. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3054. +  echo $ac_n "(cached) $ac_c" 1>&6
  3055. +else
  3056. +  cat > conftest.$ac_ext <<EOF
  3057. +#line 1266 "configure"
  3058.  #include "confdefs.h"
  3059.  #include <unistd.h>
  3060.  EOF
  3061. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  3062. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3063. +{ (eval echo configure:1271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3064. +ac_err=`grep -v '^ *+' conftest.out`
  3065.  if test -z "$ac_err"; then
  3066.    rm -rf conftest*
  3067. -  
  3068. -{
  3069. -test -n "$ac_verbose" && \
  3070. -echo "    defining HAVE_UNISTD_H"
  3071. -echo "#define" HAVE_UNISTD_H "1" >> confdefs.h
  3072. -DEFS="$DEFS -DHAVE_UNISTD_H=1"
  3073. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_UNISTD_H\${ac_dB}HAVE_UNISTD_H\${ac_dC}1\${ac_dD}
  3074. -\${ac_uA}HAVE_UNISTD_H\${ac_uB}HAVE_UNISTD_H\${ac_uC}1\${ac_uD}
  3075. -\${ac_eA}HAVE_UNISTD_H\${ac_eB}HAVE_UNISTD_H\${ac_eC}1\${ac_eD}
  3076. -"
  3077. -}
  3078. -
  3079. -
  3080. +  eval "ac_cv_header_$ac_safe=yes"
  3081. +else
  3082. +  echo "$ac_err" >&5
  3083. +  rm -rf conftest*
  3084. +  eval "ac_cv_header_$ac_safe=no"
  3085.  fi
  3086.  rm -f conftest*
  3087. -
  3088. -test -n "$ac_silent" || echo "checking for sys/wait.h"
  3089. -cat > conftest.${ac_ext} <<EOF
  3090. +fi
  3091. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3092. +  echo "$ac_t""yes" 1>&6
  3093. +  cat >> confdefs.h <<\EOF
  3094. +#define HAVE_UNISTD_H 1
  3095. +EOF
  3096. +
  3097. +else
  3098. +  echo "$ac_t""no" 1>&6
  3099. +fi
  3100. +
  3101. +ac_safe=`echo "sys/wait.h" | tr './\055' '___'`
  3102. +echo $ac_n "checking for sys/wait.h""... $ac_c" 1>&6
  3103. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3104. +  echo $ac_n "(cached) $ac_c" 1>&6
  3105. +else
  3106. +  cat > conftest.$ac_ext <<EOF
  3107. +#line 1299 "configure"
  3108.  #include "confdefs.h"
  3109.  #include <sys/wait.h>
  3110.  EOF
  3111. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  3112. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3113. +{ (eval echo configure:1304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3114. +ac_err=`grep -v '^ *+' conftest.out`
  3115.  if test -z "$ac_err"; then
  3116.    rm -rf conftest*
  3117. -  
  3118. -{
  3119. -test -n "$ac_verbose" && \
  3120. -echo "    defining HAVE_SYS_WAIT_H"
  3121. -echo "#define" HAVE_SYS_WAIT_H "1" >> confdefs.h
  3122. -DEFS="$DEFS -DHAVE_SYS_WAIT_H=1"
  3123. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SYS_WAIT_H\${ac_dB}HAVE_SYS_WAIT_H\${ac_dC}1\${ac_dD}
  3124. -\${ac_uA}HAVE_SYS_WAIT_H\${ac_uB}HAVE_SYS_WAIT_H\${ac_uC}1\${ac_uD}
  3125. -\${ac_eA}HAVE_SYS_WAIT_H\${ac_eB}HAVE_SYS_WAIT_H\${ac_eC}1\${ac_eD}
  3126. -"
  3127. -}
  3128. -
  3129. -
  3130. +  eval "ac_cv_header_$ac_safe=yes"
  3131. +else
  3132. +  echo "$ac_err" >&5
  3133. +  rm -rf conftest*
  3134. +  eval "ac_cv_header_$ac_safe=no"
  3135.  fi
  3136.  rm -f conftest*
  3137. +fi
  3138. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3139. +  echo "$ac_t""yes" 1>&6
  3140. +  cat >> confdefs.h <<\EOF
  3141. +#define HAVE_SYS_WAIT_H 1
  3142. +EOF
  3143. +
  3144. +else
  3145. +  echo "$ac_t""no" 1>&6
  3146. +fi
  3147.  
  3148. -test -n "$ac_silent" || echo "checking for sys/stropts.h"
  3149. -cat > conftest.${ac_ext} <<EOF
  3150. +ac_safe=`echo "sys/stropts.h" | tr './\055' '___'`
  3151. +echo $ac_n "checking for sys/stropts.h""... $ac_c" 1>&6
  3152. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3153. +  echo $ac_n "(cached) $ac_c" 1>&6
  3154. +else
  3155. +  cat > conftest.$ac_ext <<EOF
  3156. +#line 1332 "configure"
  3157.  #include "confdefs.h"
  3158.  #include <sys/stropts.h>
  3159.  EOF
  3160. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  3161. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3162. +{ (eval echo configure:1337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3163. +ac_err=`grep -v '^ *+' conftest.out`
  3164.  if test -z "$ac_err"; then
  3165.    rm -rf conftest*
  3166. -  
  3167. -{
  3168. -test -n "$ac_verbose" && \
  3169. -echo "    defining HAVE_STROPTS_H"
  3170. -echo "#define" HAVE_STROPTS_H "1" >> confdefs.h
  3171. -DEFS="$DEFS -DHAVE_STROPTS_H=1"
  3172. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STROPTS_H\${ac_dB}HAVE_STROPTS_H\${ac_dC}1\${ac_dD}
  3173. -\${ac_uA}HAVE_STROPTS_H\${ac_uB}HAVE_STROPTS_H\${ac_uC}1\${ac_uD}
  3174. -\${ac_eA}HAVE_STROPTS_H\${ac_eB}HAVE_STROPTS_H\${ac_eC}1\${ac_eD}
  3175. -"
  3176. -}
  3177. -
  3178. -
  3179. +  eval "ac_cv_header_$ac_safe=yes"
  3180. +else
  3181. +  echo "$ac_err" >&5
  3182. +  rm -rf conftest*
  3183. +  eval "ac_cv_header_$ac_safe=no"
  3184.  fi
  3185.  rm -f conftest*
  3186. +fi
  3187. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3188. +  echo "$ac_t""yes" 1>&6
  3189. +  cat >> confdefs.h <<\EOF
  3190. +#define HAVE_STROPTS_H 1
  3191. +EOF
  3192.  
  3193. -test -n "$ac_silent" || echo "checking for sys/sysconfig.h"
  3194. -cat > conftest.${ac_ext} <<EOF
  3195. +else
  3196. +  echo "$ac_t""no" 1>&6
  3197. +fi
  3198. +
  3199. +ac_safe=`echo "sys/sysconfig.h" | tr './\055' '___'`
  3200. +echo $ac_n "checking for sys/sysconfig.h""... $ac_c" 1>&6
  3201. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3202. +  echo $ac_n "(cached) $ac_c" 1>&6
  3203. +else
  3204. +  cat > conftest.$ac_ext <<EOF
  3205. +#line 1365 "configure"
  3206.  #include "confdefs.h"
  3207.  #include <sys/sysconfig.h>
  3208.  EOF
  3209. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  3210. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3211. +{ (eval echo configure:1370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3212. +ac_err=`grep -v '^ *+' conftest.out`
  3213.  if test -z "$ac_err"; then
  3214.    rm -rf conftest*
  3215. -  
  3216. -{
  3217. -test -n "$ac_verbose" && \
  3218. -echo "    defining HAVE_SYSCONF_H"
  3219. -echo "#define" HAVE_SYSCONF_H "1" >> confdefs.h
  3220. -DEFS="$DEFS -DHAVE_SYSCONF_H=1"
  3221. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SYSCONF_H\${ac_dB}HAVE_SYSCONF_H\${ac_dC}1\${ac_dD}
  3222. -\${ac_uA}HAVE_SYSCONF_H\${ac_uB}HAVE_SYSCONF_H\${ac_uC}1\${ac_uD}
  3223. -\${ac_eA}HAVE_SYSCONF_H\${ac_eB}HAVE_SYSCONF_H\${ac_eC}1\${ac_eD}
  3224. -"
  3225. -}
  3226. -
  3227. -
  3228. +  eval "ac_cv_header_$ac_safe=yes"
  3229. +else
  3230. +  echo "$ac_err" >&5
  3231. +  rm -rf conftest*
  3232. +  eval "ac_cv_header_$ac_safe=no"
  3233.  fi
  3234.  rm -f conftest*
  3235. +fi
  3236. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3237. +  echo "$ac_t""yes" 1>&6
  3238. +  cat >> confdefs.h <<\EOF
  3239. +#define HAVE_SYSCONF_H 1
  3240. +EOF
  3241.  
  3242. -test -n "$ac_silent" || echo "checking for sys/fcntl.h"
  3243. -cat > conftest.${ac_ext} <<EOF
  3244. +else
  3245. +  echo "$ac_t""no" 1>&6
  3246. +fi
  3247. +
  3248. +ac_safe=`echo "sys/fcntl.h" | tr './\055' '___'`
  3249. +echo $ac_n "checking for sys/fcntl.h""... $ac_c" 1>&6
  3250. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3251. +  echo $ac_n "(cached) $ac_c" 1>&6
  3252. +else
  3253. +  cat > conftest.$ac_ext <<EOF
  3254. +#line 1398 "configure"
  3255.  #include "confdefs.h"
  3256.  #include <sys/fcntl.h>
  3257.  EOF
  3258. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  3259. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3260. +{ (eval echo configure:1403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3261. +ac_err=`grep -v '^ *+' conftest.out`
  3262.  if test -z "$ac_err"; then
  3263.    rm -rf conftest*
  3264. -  
  3265. -{
  3266. -test -n "$ac_verbose" && \
  3267. -echo "    defining HAVE_SYS_FCNTL_H"
  3268. -echo "#define" HAVE_SYS_FCNTL_H "1" >> confdefs.h
  3269. -DEFS="$DEFS -DHAVE_SYS_FCNTL_H=1"
  3270. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SYS_FCNTL_H\${ac_dB}HAVE_SYS_FCNTL_H\${ac_dC}1\${ac_dD}
  3271. -\${ac_uA}HAVE_SYS_FCNTL_H\${ac_uB}HAVE_SYS_FCNTL_H\${ac_uC}1\${ac_uD}
  3272. -\${ac_eA}HAVE_SYS_FCNTL_H\${ac_eB}HAVE_SYS_FCNTL_H\${ac_eC}1\${ac_eD}
  3273. -"
  3274. -}
  3275. -
  3276. -
  3277. +  eval "ac_cv_header_$ac_safe=yes"
  3278. +else
  3279. +  echo "$ac_err" >&5
  3280. +  rm -rf conftest*
  3281. +  eval "ac_cv_header_$ac_safe=no"
  3282.  fi
  3283.  rm -f conftest*
  3284. +fi
  3285. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3286. +  echo "$ac_t""yes" 1>&6
  3287. +  cat >> confdefs.h <<\EOF
  3288. +#define HAVE_SYS_FCNTL_H 1
  3289. +EOF
  3290. +
  3291. +else
  3292. +  echo "$ac_t""no" 1>&6
  3293. +fi
  3294.  
  3295.  
  3296.  #
  3297.  # Look for various functions
  3298.  #
  3299. -test -n "$ac_silent" || echo "checking for memcpy"
  3300. -cat > conftest.${ac_ext} <<EOF
  3301. -#include "confdefs.h"
  3302. -#include <ctype.h>
  3303. -int main() { return 0; }
  3304. -int t() { 
  3305. +echo $ac_n "checking for memcpy""... $ac_c" 1>&6
  3306. +if eval "test \"`echo '$''{'ac_cv_func_memcpy'+set}'`\" = set"; then
  3307. +  echo $ac_n "(cached) $ac_c" 1>&6
  3308. +else
  3309. +  cat > conftest.$ac_ext <<EOF
  3310. +#line 1434 "configure"
  3311. +#include "confdefs.h"
  3312. +/* System header to define __stub macros and hopefully few prototypes,
  3313. +    which can conflict with char memcpy(); below.  */
  3314. +#include <assert.h>
  3315. +/* Override any gcc2 internal prototype to avoid an error.  */
  3316. +/* We use char because int might match the return type of a gcc2
  3317. +    builtin and then its argument prototype would still apply.  */
  3318. +char memcpy();
  3319. +
  3320. +int main() { t(); return 0; }
  3321. +int t() {
  3322. +
  3323.  /* The GNU C library defines this for functions which it implements
  3324.      to always fail with ENOSYS.  Some functions are actually named
  3325.      something starting with __ and the normal name is an alias.  */
  3326.  #if defined (__stub_memcpy) || defined (__stub___memcpy)
  3327.  choke me
  3328.  #else
  3329. -/* Override any gcc2 internal prototype to avoid an error.  */
  3330. -extern char memcpy(); memcpy();
  3331. +memcpy();
  3332.  #endif
  3333. +
  3334.  ; return 0; }
  3335.  EOF
  3336. -if eval $ac_compile; then
  3337. -  :
  3338. +if { (eval echo configure:1458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3339. +  rm -rf conftest*
  3340. +  eval "ac_cv_func_memcpy=yes"
  3341.  else
  3342.    rm -rf conftest*
  3343. -  {
  3344. -test -n "$ac_verbose" && \
  3345. -echo "    defining NO_MEMCPY"
  3346. -echo "#define" NO_MEMCPY "1" >> confdefs.h
  3347. -DEFS="$DEFS -DNO_MEMCPY=1"
  3348. -ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_MEMCPY\${ac_dB}NO_MEMCPY\${ac_dC}1\${ac_dD}
  3349. -\${ac_uA}NO_MEMCPY\${ac_uB}NO_MEMCPY\${ac_uC}1\${ac_uD}
  3350. -\${ac_eA}NO_MEMCPY\${ac_eB}NO_MEMCPY\${ac_eC}1\${ac_eD}
  3351. -"
  3352. -}
  3353. -
  3354. +  eval "ac_cv_func_memcpy=no"
  3355.  fi
  3356.  rm -f conftest*
  3357.  
  3358. -test -n "$ac_silent" || echo "checking for waitpid"
  3359. -cat > conftest.${ac_ext} <<EOF
  3360. +fi
  3361. +if eval "test \"`echo '$ac_cv_func_'memcpy`\" = yes"; then
  3362. +  echo "$ac_t""yes" 1>&6
  3363. +  :
  3364. +else
  3365. +  echo "$ac_t""no" 1>&6
  3366. +cat >> confdefs.h <<\EOF
  3367. +#define NO_MEMCPY 1
  3368. +EOF
  3369. +
  3370. +fi
  3371. +
  3372. +echo $ac_n "checking for waitpid""... $ac_c" 1>&6
  3373. +if eval "test \"`echo '$''{'ac_cv_func_waitpid'+set}'`\" = set"; then
  3374. +  echo $ac_n "(cached) $ac_c" 1>&6
  3375. +else
  3376. +  cat > conftest.$ac_ext <<EOF
  3377. +#line 1484 "configure"
  3378.  #include "confdefs.h"
  3379. -#include <ctype.h>
  3380. -int main() { return 0; }
  3381. -int t() { 
  3382. +/* System header to define __stub macros and hopefully few prototypes,
  3383. +    which can conflict with char waitpid(); below.  */
  3384. +#include <assert.h>
  3385. +/* Override any gcc2 internal prototype to avoid an error.  */
  3386. +/* We use char because int might match the return type of a gcc2
  3387. +    builtin and then its argument prototype would still apply.  */
  3388. +char waitpid();
  3389. +
  3390. +int main() { t(); return 0; }
  3391. +int t() {
  3392. +
  3393.  /* The GNU C library defines this for functions which it implements
  3394.      to always fail with ENOSYS.  Some functions are actually named
  3395.      something starting with __ and the normal name is an alias.  */
  3396.  #if defined (__stub_waitpid) || defined (__stub___waitpid)
  3397.  choke me
  3398.  #else
  3399. -/* Override any gcc2 internal prototype to avoid an error.  */
  3400. -extern char waitpid(); waitpid();
  3401. +waitpid();
  3402.  #endif
  3403. +
  3404.  ; return 0; }
  3405.  EOF
  3406. -if eval $ac_compile; then
  3407. -  :
  3408. +if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3409. +  rm -rf conftest*
  3410. +  eval "ac_cv_func_waitpid=yes"
  3411.  else
  3412.    rm -rf conftest*
  3413. -  {
  3414. -test -n "$ac_verbose" && \
  3415. -echo "    defining NOWAITPID"
  3416. -echo "#define" NOWAITPID "1" >> confdefs.h
  3417. -DEFS="$DEFS -DNOWAITPID=1"
  3418. -ac_sed_defs="${ac_sed_defs}\${ac_dA}NOWAITPID\${ac_dB}NOWAITPID\${ac_dC}1\${ac_dD}
  3419. -\${ac_uA}NOWAITPID\${ac_uB}NOWAITPID\${ac_uC}1\${ac_uD}
  3420. -\${ac_eA}NOWAITPID\${ac_eB}NOWAITPID\${ac_eC}1\${ac_eD}
  3421. -"
  3422. -}
  3423. -
  3424. +  eval "ac_cv_func_waitpid=no"
  3425.  fi
  3426.  rm -f conftest*
  3427.  
  3428. -test -n "$ac_silent" || echo "checking for wait4"
  3429. -cat > conftest.${ac_ext} <<EOF
  3430. +fi
  3431. +if eval "test \"`echo '$ac_cv_func_'waitpid`\" = yes"; then
  3432. +  echo "$ac_t""yes" 1>&6
  3433. +  :
  3434. +else
  3435. +  echo "$ac_t""no" 1>&6
  3436. +cat >> confdefs.h <<\EOF
  3437. +#define NOWAITPID 1
  3438. +EOF
  3439. +
  3440. +fi
  3441. +
  3442. +echo $ac_n "checking for wait4""... $ac_c" 1>&6
  3443. +if eval "test \"`echo '$''{'ac_cv_func_wait4'+set}'`\" = set"; then
  3444. +  echo $ac_n "(cached) $ac_c" 1>&6
  3445. +else
  3446. +  cat > conftest.$ac_ext <<EOF
  3447. +#line 1534 "configure"
  3448.  #include "confdefs.h"
  3449. -#include <ctype.h>
  3450. -int main() { return 0; }
  3451. -int t() { 
  3452. +/* System header to define __stub macros and hopefully few prototypes,
  3453. +    which can conflict with char wait4(); below.  */
  3454. +#include <assert.h>
  3455. +/* Override any gcc2 internal prototype to avoid an error.  */
  3456. +/* We use char because int might match the return type of a gcc2
  3457. +    builtin and then its argument prototype would still apply.  */
  3458. +char wait4();
  3459. +
  3460. +int main() { t(); return 0; }
  3461. +int t() {
  3462. +
  3463.  /* The GNU C library defines this for functions which it implements
  3464.      to always fail with ENOSYS.  Some functions are actually named
  3465.      something starting with __ and the normal name is an alias.  */
  3466.  #if defined (__stub_wait4) || defined (__stub___wait4)
  3467.  choke me
  3468.  #else
  3469. -/* Override any gcc2 internal prototype to avoid an error.  */
  3470. -extern char wait4(); wait4();
  3471. +wait4();
  3472.  #endif
  3473. +
  3474.  ; return 0; }
  3475.  EOF
  3476. -if eval $ac_compile; then
  3477. +if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3478.    rm -rf conftest*
  3479. -  {
  3480. -test -n "$ac_verbose" && \
  3481. -echo "    defining HAVE_WAIT4"
  3482. -echo "#define" HAVE_WAIT4 "1" >> confdefs.h
  3483. -DEFS="$DEFS -DHAVE_WAIT4=1"
  3484. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_WAIT4\${ac_dB}HAVE_WAIT4\${ac_dC}1\${ac_dD}
  3485. -\${ac_uA}HAVE_WAIT4\${ac_uB}HAVE_WAIT4\${ac_uC}1\${ac_uD}
  3486. -\${ac_eA}HAVE_WAIT4\${ac_eB}HAVE_WAIT4\${ac_eC}1\${ac_eD}
  3487. -"
  3488. -}
  3489. +  eval "ac_cv_func_wait4=yes"
  3490. +else
  3491. +  rm -rf conftest*
  3492. +  eval "ac_cv_func_wait4=no"
  3493. +fi
  3494. +rm -f conftest*
  3495.  
  3496. +fi
  3497. +if eval "test \"`echo '$ac_cv_func_'wait4`\" = yes"; then
  3498. +  echo "$ac_t""yes" 1>&6
  3499. +  cat >> confdefs.h <<\EOF
  3500. +#define HAVE_WAIT4 1
  3501. +EOF
  3502.  
  3503. +else
  3504. +  echo "$ac_t""no" 1>&6
  3505.  fi
  3506. -rm -f conftest*
  3507.  
  3508. -test -n "$ac_silent" || echo "checking for sysconf"
  3509. -cat > conftest.${ac_ext} <<EOF
  3510. +echo $ac_n "checking for sysconf""... $ac_c" 1>&6
  3511. +if eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
  3512. +  echo $ac_n "(cached) $ac_c" 1>&6
  3513. +else
  3514. +  cat > conftest.$ac_ext <<EOF
  3515. +#line 1583 "configure"
  3516.  #include "confdefs.h"
  3517. -#include <ctype.h>
  3518. -int main() { return 0; }
  3519. -int t() { 
  3520. +/* System header to define __stub macros and hopefully few prototypes,
  3521. +    which can conflict with char sysconf(); below.  */
  3522. +#include <assert.h>
  3523. +/* Override any gcc2 internal prototype to avoid an error.  */
  3524. +/* We use char because int might match the return type of a gcc2
  3525. +    builtin and then its argument prototype would still apply.  */
  3526. +char sysconf();
  3527. +
  3528. +int main() { t(); return 0; }
  3529. +int t() {
  3530. +
  3531.  /* The GNU C library defines this for functions which it implements
  3532.      to always fail with ENOSYS.  Some functions are actually named
  3533.      something starting with __ and the normal name is an alias.  */
  3534.  #if defined (__stub_sysconf) || defined (__stub___sysconf)
  3535.  choke me
  3536.  #else
  3537. -/* Override any gcc2 internal prototype to avoid an error.  */
  3538. -extern char sysconf(); sysconf();
  3539. +sysconf();
  3540.  #endif
  3541. +
  3542.  ; return 0; }
  3543.  EOF
  3544. -if eval $ac_compile; then
  3545. +if { (eval echo configure:1607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3546.    rm -rf conftest*
  3547. -  {
  3548. -test -n "$ac_verbose" && \
  3549. -echo "    defining HAVE_SYSCONF"
  3550. -echo "#define" HAVE_SYSCONF "1" >> confdefs.h
  3551. -DEFS="$DEFS -DHAVE_SYSCONF=1"
  3552. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SYSCONF\${ac_dB}HAVE_SYSCONF\${ac_dC}1\${ac_dD}
  3553. -\${ac_uA}HAVE_SYSCONF\${ac_uB}HAVE_SYSCONF\${ac_uC}1\${ac_uD}
  3554. -\${ac_eA}HAVE_SYSCONF\${ac_eB}HAVE_SYSCONF\${ac_eC}1\${ac_eD}
  3555. -"
  3556. -}
  3557. +  eval "ac_cv_func_sysconf=yes"
  3558. +else
  3559. +  rm -rf conftest*
  3560. +  eval "ac_cv_func_sysconf=no"
  3561. +fi
  3562. +rm -f conftest*
  3563.  
  3564. +fi
  3565. +if eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then
  3566. +  echo "$ac_t""yes" 1>&6
  3567. +  cat >> confdefs.h <<\EOF
  3568. +#define HAVE_SYSCONF 1
  3569. +EOF
  3570.  
  3571. +else
  3572. +  echo "$ac_t""no" 1>&6
  3573.  fi
  3574. -rm -f conftest*
  3575.  
  3576.  
  3577.  echo checking to see if wait expects union
  3578. -test -n "$ac_silent" || echo "checking for union wait"
  3579. -cat > conftest.${ac_ext} <<EOF
  3580. +echo "checking for union wait" 1>&6
  3581. +cat > conftest.$ac_ext <<EOF
  3582. +#line 1631 "configure"
  3583.  #include "confdefs.h"
  3584.  #include <sys/types.h> 
  3585.  #include <sys/wait.h>
  3586. -int main() { return 0; }
  3587. -int t() { 
  3588. +int main() { t(); return 0; }
  3589. +int t() {
  3590. +
  3591.  union wait x;
  3592.  WIFEXITED(x);        /* Generates compiler error if WIFEXITED
  3593.               * uses an int. */
  3594. +
  3595.  ; return 0; }
  3596.  EOF
  3597. -if eval $ac_compile; then
  3598. +if { (eval echo configure:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3599.    :
  3600.  else
  3601.    rm -rf conftest*
  3602. -  
  3603. -{
  3604. -test -n "$ac_verbose" && \
  3605. -echo "    defining NO_UNION_WAIT"
  3606. -echo "#define" NO_UNION_WAIT "1" >> confdefs.h
  3607. -DEFS="$DEFS -DNO_UNION_WAIT=1"
  3608. -ac_sed_defs="${ac_sed_defs}\${ac_dA}NO_UNION_WAIT\${ac_dB}NO_UNION_WAIT\${ac_dC}1\${ac_dD}
  3609. -\${ac_uA}NO_UNION_WAIT\${ac_uB}NO_UNION_WAIT\${ac_uC}1\${ac_uD}
  3610. -\${ac_eA}NO_UNION_WAIT\${ac_eB}NO_UNION_WAIT\${ac_eC}1\${ac_eD}
  3611. -"
  3612. -}
  3613. +  cat >> confdefs.h <<\EOF
  3614. +#define NO_UNION_WAIT 1
  3615. +EOF
  3616.  
  3617.  fi
  3618.  rm -f conftest*
  3619. @@ -926,44 +1662,30 @@ rm -f conftest*
  3620.  # Pattern matching on int could be loosened.
  3621.  # Can't use ac_header_egrep since that doesn't see prototypes with K&R cpp.
  3622.  echo checking mask type of select
  3623. -if egrep "select\(size_t, int" /usr/include/sys/time.h >/dev/null 2>&1; then
  3624. -  
  3625. -{
  3626. -test -n "$ac_verbose" && \
  3627. -echo "    defining" SELECT_MASK_TYPE to be "int"
  3628. -echo "#define" SELECT_MASK_TYPE "int" >> confdefs.h
  3629. -DEFS="$DEFS -DSELECT_MASK_TYPE=int"
  3630. -ac_sed_defs="${ac_sed_defs}\${ac_dA}SELECT_MASK_TYPE\${ac_dB}SELECT_MASK_TYPE\${ac_dC}int\${ac_dD}
  3631. -\${ac_uA}SELECT_MASK_TYPE\${ac_uB}SELECT_MASK_TYPE\${ac_uC}int\${ac_uD}
  3632. -\${ac_eA}SELECT_MASK_TYPE\${ac_eB}SELECT_MASK_TYPE\${ac_eC}int\${ac_eD}
  3633. -"
  3634. -}
  3635. +if egrep "select\(size_t, int" /ade/include/sys/time.h >/dev/null 2>&1; then
  3636. +  cat >> confdefs.h <<\EOF
  3637. +#define SELECT_MASK_TYPE int
  3638. +EOF
  3639.  
  3640.  fi
  3641.  
  3642.  # Check for the data type of the function used in signal(). This
  3643.  # must be before the test for rearming.
  3644.  echo checking return type of signal handlers
  3645. -echo '#include "confdefs.h"
  3646. -#include <signal.h>' > conftest.${ac_ext}
  3647. -eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  3648. -if egrep "(void|sighandler_t).*signal" conftest.out >/dev/null 2>&1; then
  3649. +cat > conftest.$ac_ext <<EOF
  3650. +#line 1677 "configure"
  3651. +#include "confdefs.h"
  3652. +#include <signal.h>
  3653. +EOF
  3654. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3655. +  egrep "(void|sighandler_t).*signal" >/dev/null 2>&1; then
  3656.    rm -rf conftest*
  3657.    retsigtype=void
  3658. -
  3659.  else
  3660.    rm -rf conftest*
  3661. -  
  3662. -{
  3663. -test -n "$ac_verbose" && \
  3664. -echo "    defining" RETSIGTYPE to be "int"
  3665. -echo "#define" RETSIGTYPE "int" >> confdefs.h
  3666. -DEFS="$DEFS -DRETSIGTYPE=int"
  3667. -ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
  3668. -\${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
  3669. -\${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
  3670. -"
  3671. -}
  3672. +  cat >> confdefs.h <<\EOF
  3673. +#define RETSIGTYPE int
  3674. +EOF
  3675.   retsigtype=int
  3676.  fi
  3677.  rm -f conftest*
  3678. @@ -972,7 +1694,11 @@ rm -f conftest*
  3679.  # FIXME: check to see if alarm exists
  3680.  # Check to see it signals need to be re-armed after use.
  3681.  echo checking to see if signals need to be re-armed
  3682. -cat > conftest.${ac_ext} <<EOF
  3683. +if test "$cross_compiling" = yes; then
  3684. +    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3685. +else
  3686. +cat > conftest.$ac_ext <<EOF
  3687. +#line 1702 "configure"
  3688.  #include "confdefs.h"
  3689.  
  3690.  #include <signal.h>
  3691. @@ -999,23 +1725,16 @@ main()
  3692.      exit((counter==2)?0:1);
  3693.  }
  3694.  EOF
  3695. -eval $ac_compile
  3696. +{ (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  3697.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3698.    :
  3699.  else
  3700. -  
  3701. -{
  3702. -test -n "$ac_verbose" && \
  3703. -echo "    defining REARM_SIG"
  3704. -echo "#define" REARM_SIG "1" >> confdefs.h
  3705. -DEFS="$DEFS -DREARM_SIG=1"
  3706. -ac_sed_defs="${ac_sed_defs}\${ac_dA}REARM_SIG\${ac_dB}REARM_SIG\${ac_dC}1\${ac_dD}
  3707. -\${ac_uA}REARM_SIG\${ac_uB}REARM_SIG\${ac_uC}1\${ac_uD}
  3708. -\${ac_eA}REARM_SIG\${ac_eB}REARM_SIG\${ac_eC}1\${ac_eD}
  3709. -"
  3710. -}
  3711. +  cat >> confdefs.h <<\EOF
  3712. +#define REARM_SIG 1
  3713. +EOF
  3714.  
  3715.  fi
  3716. +fi
  3717.  rm -fr conftest*
  3718.  
  3719.  # HPUX7 has trouble with the big cat so split it
  3720. @@ -1027,17 +1746,9 @@ cat >> conftest.sed <<CONFEOF
  3721.  echo checking to see if stty reads from stdin or stdout
  3722.  /bin/stty > /dev/null 2> /dev/null
  3723.  if test $? -ne 0 ; then
  3724. -    
  3725. -{
  3726. -test -n "$ac_verbose" && \
  3727. -echo "    defining STTY_READS_STDOUT"
  3728. -echo "#define" STTY_READS_STDOUT "1" >> confdefs.h
  3729. -DEFS="$DEFS -DSTTY_READS_STDOUT=1"
  3730. -ac_sed_defs="${ac_sed_defs}\${ac_dA}STTY_READS_STDOUT\${ac_dB}STTY_READS_STDOUT\${ac_dC}1\${ac_dD}
  3731. -\${ac_uA}STTY_READS_STDOUT\${ac_uB}STTY_READS_STDOUT\${ac_uC}1\${ac_uD}
  3732. -\${ac_eA}STTY_READS_STDOUT\${ac_eB}STTY_READS_STDOUT\${ac_eC}1\${ac_eD}
  3733. -"
  3734. -}
  3735. +    cat >> confdefs.h <<\EOF
  3736. +#define STTY_READS_STDOUT 1
  3737. +EOF
  3738.  
  3739.  fi
  3740.  
  3741. @@ -1048,206 +1759,222 @@ fi
  3742.  echo checking for HP style pty allocation
  3743.  # following test fails on DECstations and other things that don't grok -c
  3744.  # but that's ok, since they don't have PTYMs anyway
  3745. -if test -c /dev/ptym/ptyp0 2>>/dev/null ; then
  3746. -    
  3747. -{
  3748. -test -n "$ac_verbose" && \
  3749. -echo "    defining HAVE_PTYM"
  3750. -echo "#define" HAVE_PTYM "1" >> confdefs.h
  3751. -DEFS="$DEFS -DHAVE_PTYM=1"
  3752. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PTYM\${ac_dB}HAVE_PTYM\${ac_dC}1\${ac_dD}
  3753. -\${ac_uA}HAVE_PTYM\${ac_uB}HAVE_PTYM\${ac_uC}1\${ac_uD}
  3754. -\${ac_eA}HAVE_PTYM\${ac_eB}HAVE_PTYM\${ac_eC}1\${ac_eD}
  3755. -"
  3756. -}
  3757. +if test -c /ade/dev/ptym/ptyp0 2>>/dev/null ; then
  3758. +    cat >> confdefs.h <<\EOF
  3759. +#define HAVE_PTYM 1
  3760. +EOF
  3761.  
  3762.  fi
  3763.  
  3764.  echo checking for HP style pty-trapping
  3765. -echo '#include "confdefs.h"
  3766. -#include <sys/ptyio.h>' > conftest.${ac_ext}
  3767. -eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  3768. -if egrep "struct.*request_info" conftest.out >/dev/null 2>&1; then
  3769. +cat > conftest.$ac_ext <<EOF
  3770. +#line 1772 "configure"
  3771. +#include "confdefs.h"
  3772. +#include <sys/ptyio.h>
  3773. +EOF
  3774. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3775. +  egrep "struct.*request_info" >/dev/null 2>&1; then
  3776.    rm -rf conftest*
  3777. -  
  3778. -{
  3779. -test -n "$ac_verbose" && \
  3780. -echo "    defining HAVE_PTYTRAP"
  3781. -echo "#define" HAVE_PTYTRAP "1" >> confdefs.h
  3782. -DEFS="$DEFS -DHAVE_PTYTRAP=1"
  3783. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PTYTRAP\${ac_dB}HAVE_PTYTRAP\${ac_dC}1\${ac_dD}
  3784. -\${ac_uA}HAVE_PTYTRAP\${ac_uB}HAVE_PTYTRAP\${ac_uC}1\${ac_uD}
  3785. -\${ac_eA}HAVE_PTYTRAP\${ac_eB}HAVE_PTYTRAP\${ac_eC}1\${ac_eD}
  3786. -"
  3787. -}
  3788. -
  3789. +  cat >> confdefs.h <<\EOF
  3790. +#define HAVE_PTYTRAP 1
  3791. +EOF
  3792.  
  3793.  fi
  3794.  rm -f conftest*
  3795.  
  3796.  
  3797.  echo checking for AIX new-style pty allocation
  3798. -if test -r /dev/ptc -a -r /dev/pts ; then
  3799. -    
  3800. -{
  3801. -test -n "$ac_verbose" && \
  3802. -echo "    defining HAVE_PTC_PTS"
  3803. -echo "#define" HAVE_PTC_PTS "1" >> confdefs.h
  3804. -DEFS="$DEFS -DHAVE_PTC_PTS=1"
  3805. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PTC_PTS\${ac_dB}HAVE_PTC_PTS\${ac_dC}1\${ac_dD}
  3806. -\${ac_uA}HAVE_PTC_PTS\${ac_uB}HAVE_PTC_PTS\${ac_uC}1\${ac_uD}
  3807. -\${ac_eA}HAVE_PTC_PTS\${ac_eB}HAVE_PTC_PTS\${ac_eC}1\${ac_eD}
  3808. -"
  3809. -}
  3810. +if test -r /ade/dev/ptc -a -r /ade/dev/pts ; then
  3811. +    cat >> confdefs.h <<\EOF
  3812. +#define HAVE_PTC_PTS 1
  3813. +EOF
  3814.  
  3815.  fi
  3816.  
  3817.  echo checking for SGI old-style pty allocation
  3818. -if test -r /dev/ptc -a ! -r /dev/pts ; then
  3819. -    
  3820. -{
  3821. -test -n "$ac_verbose" && \
  3822. -echo "    defining HAVE_PTC"
  3823. -echo "#define" HAVE_PTC "1" >> confdefs.h
  3824. -DEFS="$DEFS -DHAVE_PTC=1"
  3825. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PTC\${ac_dB}HAVE_PTC\${ac_dC}1\${ac_dD}
  3826. -\${ac_uA}HAVE_PTC\${ac_uB}HAVE_PTC\${ac_uC}1\${ac_uD}
  3827. -\${ac_eA}HAVE_PTC\${ac_eB}HAVE_PTC\${ac_eC}1\${ac_eD}
  3828. -"
  3829. -}
  3830. +if test -r /ade/dev/ptc -a ! -r /ade/dev/pts ; then
  3831. +    cat >> confdefs.h <<\EOF
  3832. +#define HAVE_PTC 1
  3833. +EOF
  3834.  
  3835.  fi
  3836.  
  3837.  echo checking for SVR4 style pty allocation
  3838. -if test -r /dev/ptmx ; then
  3839. -  
  3840. -{
  3841. -test -n "$ac_verbose" && \
  3842. -echo "    defining HAVE_PTMX"
  3843. -echo "#define" HAVE_PTMX "1" >> confdefs.h
  3844. -DEFS="$DEFS -DHAVE_PTMX=1"
  3845. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PTMX\${ac_dB}HAVE_PTMX\${ac_dC}1\${ac_dD}
  3846. -\${ac_uA}HAVE_PTMX\${ac_uB}HAVE_PTMX\${ac_uC}1\${ac_uD}
  3847. -\${ac_eA}HAVE_PTMX\${ac_eB}HAVE_PTMX\${ac_eC}1\${ac_eD}
  3848. -"
  3849. -}
  3850. +if test -r /ade/dev/ptmx ; then
  3851. +  cat >> confdefs.h <<\EOF
  3852. +#define HAVE_PTMX 1
  3853. +EOF
  3854.  
  3855.    # aargg. Some systems need libpt.a to use /dev/ptmx
  3856.      echo checking for libpt.a
  3857. -    test -n "$ac_silent" || echo "checking for ptsname"
  3858. -cat > conftest.${ac_ext} <<EOF
  3859. -#include "confdefs.h"
  3860. -#include <ctype.h>
  3861. -int main() { return 0; }
  3862. -int t() { 
  3863. +    echo $ac_n "checking for ptsname""... $ac_c" 1>&6
  3864. +if eval "test \"`echo '$''{'ac_cv_func_ptsname'+set}'`\" = set"; then
  3865. +  echo $ac_n "(cached) $ac_c" 1>&6
  3866. +else
  3867. +  cat > conftest.$ac_ext <<EOF
  3868. +#line 1816 "configure"
  3869. +#include "confdefs.h"
  3870. +/* System header to define __stub macros and hopefully few prototypes,
  3871. +    which can conflict with char ptsname(); below.  */
  3872. +#include <assert.h>
  3873. +/* Override any gcc2 internal prototype to avoid an error.  */
  3874. +/* We use char because int might match the return type of a gcc2
  3875. +    builtin and then its argument prototype would still apply.  */
  3876. +char ptsname();
  3877. +
  3878. +int main() { t(); return 0; }
  3879. +int t() {
  3880. +
  3881.  /* The GNU C library defines this for functions which it implements
  3882.      to always fail with ENOSYS.  Some functions are actually named
  3883.      something starting with __ and the normal name is an alias.  */
  3884.  #if defined (__stub_ptsname) || defined (__stub___ptsname)
  3885.  choke me
  3886.  #else
  3887. -/* Override any gcc2 internal prototype to avoid an error.  */
  3888. -extern char ptsname(); ptsname();
  3889. +ptsname();
  3890.  #endif
  3891. +
  3892.  ; return 0; }
  3893.  EOF
  3894. -if eval $ac_compile; then
  3895. -  :
  3896. +if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3897. +  rm -rf conftest*
  3898. +  eval "ac_cv_func_ptsname=yes"
  3899.  else
  3900.    rm -rf conftest*
  3901. -  LIBS="${LIBS} -lpt"
  3902. +  eval "ac_cv_func_ptsname=no"
  3903.  fi
  3904.  rm -f conftest*
  3905.  
  3906.  fi
  3907. +if eval "test \"`echo '$ac_cv_func_'ptsname`\" = yes"; then
  3908. +  echo "$ac_t""yes" 1>&6
  3909. +  :
  3910. +else
  3911. +  echo "$ac_t""no" 1>&6
  3912. +LIBS="${LIBS} -lpt"
  3913. +fi
  3914. +
  3915. +fi
  3916.  
  3917.  # In OSF/1 case, SVR4 are somewhat different.
  3918.  # Gregory Depp <depp@osf.org> 17Aug93
  3919.  echo checking for OSF/1 style pty allocation
  3920. -if test -r /dev/ptmx_bsd ; then
  3921. -    
  3922. -{
  3923. -test -n "$ac_verbose" && \
  3924. -echo "    defining HAVE_PTMX_BSD"
  3925. -echo "#define" HAVE_PTMX_BSD "1" >> confdefs.h
  3926. -DEFS="$DEFS -DHAVE_PTMX_BSD=1"
  3927. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PTMX_BSD\${ac_dB}HAVE_PTMX_BSD\${ac_dC}1\${ac_dD}
  3928. -\${ac_uA}HAVE_PTMX_BSD\${ac_uB}HAVE_PTMX_BSD\${ac_uC}1\${ac_uD}
  3929. -\${ac_eA}HAVE_PTMX_BSD\${ac_eB}HAVE_PTMX_BSD\${ac_eC}1\${ac_eD}
  3930. -"
  3931. -}
  3932. +if test -r /ade/dev/ptmx_bsd ; then
  3933. +    cat >> confdefs.h <<\EOF
  3934. +#define HAVE_PTMX_BSD 1
  3935. +EOF
  3936.  
  3937.  fi
  3938.  
  3939.  
  3940.  tcgetattr=0
  3941.  tcsetattr=0
  3942. -test -n "$ac_silent" || echo "checking for tcgetattr"
  3943. -cat > conftest.${ac_ext} <<EOF
  3944. -#include "confdefs.h"
  3945. -#include <ctype.h>
  3946. -int main() { return 0; }
  3947. -int t() { 
  3948. +echo $ac_n "checking for tcgetattr""... $ac_c" 1>&6
  3949. +if eval "test \"`echo '$''{'ac_cv_func_tcgetattr'+set}'`\" = set"; then
  3950. +  echo $ac_n "(cached) $ac_c" 1>&6
  3951. +else
  3952. +  cat > conftest.$ac_ext <<EOF
  3953. +#line 1878 "configure"
  3954. +#include "confdefs.h"
  3955. +/* System header to define __stub macros and hopefully few prototypes,
  3956. +    which can conflict with char tcgetattr(); below.  */
  3957. +#include <assert.h>
  3958. +/* Override any gcc2 internal prototype to avoid an error.  */
  3959. +/* We use char because int might match the return type of a gcc2
  3960. +    builtin and then its argument prototype would still apply.  */
  3961. +char tcgetattr();
  3962. +
  3963. +int main() { t(); return 0; }
  3964. +int t() {
  3965. +
  3966.  /* The GNU C library defines this for functions which it implements
  3967.      to always fail with ENOSYS.  Some functions are actually named
  3968.      something starting with __ and the normal name is an alias.  */
  3969.  #if defined (__stub_tcgetattr) || defined (__stub___tcgetattr)
  3970.  choke me
  3971.  #else
  3972. -/* Override any gcc2 internal prototype to avoid an error.  */
  3973. -extern char tcgetattr(); tcgetattr();
  3974. +tcgetattr();
  3975.  #endif
  3976. +
  3977.  ; return 0; }
  3978.  EOF
  3979. -if eval $ac_compile; then
  3980. +if { (eval echo configure:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3981.    rm -rf conftest*
  3982. -  tcgetattr=1
  3983. -
  3984. +  eval "ac_cv_func_tcgetattr=yes"
  3985. +else
  3986. +  rm -rf conftest*
  3987. +  eval "ac_cv_func_tcgetattr=no"
  3988.  fi
  3989.  rm -f conftest*
  3990.  
  3991. -test -n "$ac_silent" || echo "checking for tcsetattr"
  3992. -cat > conftest.${ac_ext} <<EOF
  3993. +fi
  3994. +if eval "test \"`echo '$ac_cv_func_'tcgetattr`\" = yes"; then
  3995. +  echo "$ac_t""yes" 1>&6
  3996. +  tcgetattr=1
  3997. +else
  3998. +  echo "$ac_t""no" 1>&6
  3999. +fi
  4000. +
  4001. +echo $ac_n "checking for tcsetattr""... $ac_c" 1>&6
  4002. +if eval "test \"`echo '$''{'ac_cv_func_tcsetattr'+set}'`\" = set"; then
  4003. +  echo $ac_n "(cached) $ac_c" 1>&6
  4004. +else
  4005. +  cat > conftest.$ac_ext <<EOF
  4006. +#line 1924 "configure"
  4007.  #include "confdefs.h"
  4008. -#include <ctype.h>
  4009. -int main() { return 0; }
  4010. -int t() { 
  4011. +/* System header to define __stub macros and hopefully few prototypes,
  4012. +    which can conflict with char tcsetattr(); below.  */
  4013. +#include <assert.h>
  4014. +/* Override any gcc2 internal prototype to avoid an error.  */
  4015. +/* We use char because int might match the return type of a gcc2
  4016. +    builtin and then its argument prototype would still apply.  */
  4017. +char tcsetattr();
  4018. +
  4019. +int main() { t(); return 0; }
  4020. +int t() {
  4021. +
  4022.  /* The GNU C library defines this for functions which it implements
  4023.      to always fail with ENOSYS.  Some functions are actually named
  4024.      something starting with __ and the normal name is an alias.  */
  4025.  #if defined (__stub_tcsetattr) || defined (__stub___tcsetattr)
  4026.  choke me
  4027.  #else
  4028. -/* Override any gcc2 internal prototype to avoid an error.  */
  4029. -extern char tcsetattr(); tcsetattr();
  4030. +tcsetattr();
  4031.  #endif
  4032. +
  4033.  ; return 0; }
  4034.  EOF
  4035. -if eval $ac_compile; then
  4036. +if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4037.    rm -rf conftest*
  4038. -  tcsetattr=1
  4039. -
  4040. +  eval "ac_cv_func_tcsetattr=yes"
  4041. +else
  4042. +  rm -rf conftest*
  4043. +  eval "ac_cv_func_tcsetattr=no"
  4044.  fi
  4045.  rm -f conftest*
  4046.  
  4047. +fi
  4048. +if eval "test \"`echo '$ac_cv_func_'tcsetattr`\" = yes"; then
  4049. +  echo "$ac_t""yes" 1>&6
  4050. +  tcsetattr=1
  4051. +else
  4052. +  echo "$ac_t""no" 1>&6
  4053. +fi
  4054. +
  4055.  if test $tcgetattr -eq 1 -a $tcsetattr -eq 1 ; then
  4056. -    
  4057. -{
  4058. -test -n "$ac_verbose" && \
  4059. -echo "    defining POSIX"
  4060. -echo "#define" POSIX "1" >> confdefs.h
  4061. -DEFS="$DEFS -DPOSIX=1"
  4062. -ac_sed_defs="${ac_sed_defs}\${ac_dA}POSIX\${ac_dB}POSIX\${ac_dC}1\${ac_dD}
  4063. -\${ac_uA}POSIX\${ac_uB}POSIX\${ac_uC}1\${ac_uD}
  4064. -\${ac_eA}POSIX\${ac_eB}POSIX\${ac_eC}1\${ac_eD}
  4065. -"
  4066. -}
  4067. +    cat >> confdefs.h <<\EOF
  4068. +#define POSIX 1
  4069. +EOF
  4070.  
  4071.  fi
  4072.  
  4073.  # first check for the pure bsd
  4074.  echo checking for struct sgttyb
  4075. -cat > conftest.${ac_ext} <<EOF
  4076. +if test "$cross_compiling" = yes; then
  4077. +    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  4078. +else
  4079. +cat > conftest.$ac_ext <<EOF
  4080. +#line 1978 "configure"
  4081.  #include "confdefs.h"
  4082.  #include <sgtty.h>
  4083.  main()
  4084. @@ -1256,21 +1983,13 @@ main()
  4085.    exit(0);
  4086.  }
  4087.  EOF
  4088. -eval $ac_compile
  4089. +{ (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  4090.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  4091. -  
  4092. -{
  4093. -test -n "$ac_verbose" && \
  4094. -echo "    defining HAVE_SGTTYB"
  4095. -echo "#define" HAVE_SGTTYB "1" >> confdefs.h
  4096. -DEFS="$DEFS -DHAVE_SGTTYB=1"
  4097. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SGTTYB\${ac_dB}HAVE_SGTTYB\${ac_dC}1\${ac_dD}
  4098. -\${ac_uA}HAVE_SGTTYB\${ac_uB}HAVE_SGTTYB\${ac_uC}1\${ac_uD}
  4099. -\${ac_eA}HAVE_SGTTYB\${ac_eB}HAVE_SGTTYB\${ac_eC}1\${ac_eD}
  4100. -"
  4101. -}
  4102. +  cat >> confdefs.h <<\EOF
  4103. +#define HAVE_SGTTYB 1
  4104. +EOF
  4105.   PTY_TYPE=sgttyb
  4106. -
  4107. +fi
  4108.  fi
  4109.  rm -fr conftest*
  4110.  
  4111. @@ -1279,7 +1998,11 @@ rm -fr conftest*
  4112.  # since that just controls which of pty_XXXX.c file is use and
  4113.  # pty_termios.c is set up to handle pty_termio.
  4114.  echo checking for struct termio
  4115. -cat > conftest.${ac_ext} <<EOF
  4116. +if test "$cross_compiling" = yes; then
  4117. +    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  4118. +else
  4119. +cat > conftest.$ac_ext <<EOF
  4120. +#line 2006 "configure"
  4121.  #include "confdefs.h"
  4122.  #include <termio.h>
  4123.  main()
  4124. @@ -1288,27 +2011,23 @@ main()
  4125.    exit(0);
  4126.  }
  4127.  EOF
  4128. -eval $ac_compile
  4129. +{ (eval echo configure:2015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  4130.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  4131. -  
  4132. -{
  4133. -test -n "$ac_verbose" && \
  4134. -echo "    defining HAVE_TERMIO"
  4135. -echo "#define" HAVE_TERMIO "1" >> confdefs.h
  4136. -DEFS="$DEFS -DHAVE_TERMIO=1"
  4137. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMIO\${ac_dB}HAVE_TERMIO\${ac_dC}1\${ac_dD}
  4138. -\${ac_uA}HAVE_TERMIO\${ac_uB}HAVE_TERMIO\${ac_uC}1\${ac_uD}
  4139. -\${ac_eA}HAVE_TERMIO\${ac_eB}HAVE_TERMIO\${ac_eC}1\${ac_eD}
  4140. -"
  4141. -}
  4142. +  cat >> confdefs.h <<\EOF
  4143. +#define HAVE_TERMIO 1
  4144. +EOF
  4145.   PTY_TYPE=termios
  4146. -
  4147. +fi
  4148.  fi
  4149.  rm -fr conftest*
  4150.  
  4151.  # now check for the new style ttys (not yet posix)
  4152.  echo checking for struct termios
  4153. -cat > conftest.${ac_ext} <<EOF
  4154. +if test "$cross_compiling" = yes; then
  4155. +    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  4156. +else
  4157. +cat > conftest.$ac_ext <<EOF
  4158. +#line 2031 "configure"
  4159.  #include "confdefs.h"
  4160.  #include <termios.h>
  4161.  main()
  4162. @@ -1317,28 +2036,24 @@ main()
  4163.    exit(0);
  4164.  }
  4165.  EOF
  4166. -eval $ac_compile
  4167. +{ (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  4168.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  4169. -  
  4170. -{
  4171. -test -n "$ac_verbose" && \
  4172. -echo "    defining HAVE_TERMIOS"
  4173. -echo "#define" HAVE_TERMIOS "1" >> confdefs.h
  4174. -DEFS="$DEFS -DHAVE_TERMIOS=1"
  4175. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMIOS\${ac_dB}HAVE_TERMIOS\${ac_dC}1\${ac_dD}
  4176. -\${ac_uA}HAVE_TERMIOS\${ac_uB}HAVE_TERMIOS\${ac_uC}1\${ac_uD}
  4177. -\${ac_eA}HAVE_TERMIOS\${ac_eB}HAVE_TERMIOS\${ac_eC}1\${ac_eD}
  4178. -"
  4179. -}
  4180. +  cat >> confdefs.h <<\EOF
  4181. +#define HAVE_TERMIOS 1
  4182. +EOF
  4183.   PTY_TYPE=termios
  4184. -
  4185. +fi
  4186.  fi
  4187.  rm -fr conftest*
  4188.  
  4189.  # finally check for Cray style ttys
  4190.  echo checking for Cray-style ptys
  4191.  SETUID="@:"
  4192. -cat > conftest.${ac_ext} <<EOF
  4193. +if test "$cross_compiling" = yes; then
  4194. +    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  4195. +else
  4196. +cat > conftest.$ac_ext <<EOF
  4197. +#line 2057 "configure"
  4198.  #include "confdefs.h"
  4199.  
  4200.  main(){
  4201. @@ -1350,10 +2065,10 @@ main(){
  4202.  }
  4203.  
  4204.  EOF
  4205. -eval $ac_compile
  4206. +{ (eval echo configure:2069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  4207.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  4208.    PTY_TYPE=unicos SETUID="chmod u+s"
  4209. -
  4210. +fi
  4211.  fi
  4212.  rm -fr conftest*
  4213.  #
  4214. @@ -1362,54 +2077,98 @@ rm -fr conftest*
  4215.  #
  4216.  select=0
  4217.  poll=0
  4218. -test -n "$ac_silent" || echo "checking for select"
  4219. -cat > conftest.${ac_ext} <<EOF
  4220. -#include "confdefs.h"
  4221. -#include <ctype.h>
  4222. -int main() { return 0; }
  4223. -int t() { 
  4224. +echo $ac_n "checking for select""... $ac_c" 1>&6
  4225. +if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
  4226. +  echo $ac_n "(cached) $ac_c" 1>&6
  4227. +else
  4228. +  cat > conftest.$ac_ext <<EOF
  4229. +#line 2086 "configure"
  4230. +#include "confdefs.h"
  4231. +/* System header to define __stub macros and hopefully few prototypes,
  4232. +    which can conflict with char select(); below.  */
  4233. +#include <assert.h>
  4234. +/* Override any gcc2 internal prototype to avoid an error.  */
  4235. +/* We use char because int might match the return type of a gcc2
  4236. +    builtin and then its argument prototype would still apply.  */
  4237. +char select();
  4238. +
  4239. +int main() { t(); return 0; }
  4240. +int t() {
  4241. +
  4242.  /* The GNU C library defines this for functions which it implements
  4243.      to always fail with ENOSYS.  Some functions are actually named
  4244.      something starting with __ and the normal name is an alias.  */
  4245.  #if defined (__stub_select) || defined (__stub___select)
  4246.  choke me
  4247.  #else
  4248. -/* Override any gcc2 internal prototype to avoid an error.  */
  4249. -extern char select(); select();
  4250. +select();
  4251.  #endif
  4252. +
  4253.  ; return 0; }
  4254.  EOF
  4255. -if eval $ac_compile; then
  4256. +if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4257.    rm -rf conftest*
  4258. -  select=1
  4259. -
  4260. +  eval "ac_cv_func_select=yes"
  4261. +else
  4262. +  rm -rf conftest*
  4263. +  eval "ac_cv_func_select=no"
  4264.  fi
  4265.  rm -f conftest*
  4266.  
  4267. -test -n "$ac_silent" || echo "checking for poll"
  4268. -cat > conftest.${ac_ext} <<EOF
  4269. +fi
  4270. +if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
  4271. +  echo "$ac_t""yes" 1>&6
  4272. +  select=1
  4273. +else
  4274. +  echo "$ac_t""no" 1>&6
  4275. +fi
  4276. +
  4277. +echo $ac_n "checking for poll""... $ac_c" 1>&6
  4278. +if eval "test \"`echo '$''{'ac_cv_func_poll'+set}'`\" = set"; then
  4279. +  echo $ac_n "(cached) $ac_c" 1>&6
  4280. +else
  4281. +  cat > conftest.$ac_ext <<EOF
  4282. +#line 2132 "configure"
  4283.  #include "confdefs.h"
  4284. -#include <ctype.h>
  4285. -int main() { return 0; }
  4286. -int t() { 
  4287. +/* System header to define __stub macros and hopefully few prototypes,
  4288. +    which can conflict with char poll(); below.  */
  4289. +#include <assert.h>
  4290. +/* Override any gcc2 internal prototype to avoid an error.  */
  4291. +/* We use char because int might match the return type of a gcc2
  4292. +    builtin and then its argument prototype would still apply.  */
  4293. +char poll();
  4294. +
  4295. +int main() { t(); return 0; }
  4296. +int t() {
  4297. +
  4298.  /* The GNU C library defines this for functions which it implements
  4299.      to always fail with ENOSYS.  Some functions are actually named
  4300.      something starting with __ and the normal name is an alias.  */
  4301.  #if defined (__stub_poll) || defined (__stub___poll)
  4302.  choke me
  4303.  #else
  4304. -/* Override any gcc2 internal prototype to avoid an error.  */
  4305. -extern char poll(); poll();
  4306. +poll();
  4307.  #endif
  4308. +
  4309.  ; return 0; }
  4310.  EOF
  4311. -if eval $ac_compile; then
  4312. +if { (eval echo configure:2156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4313.    rm -rf conftest*
  4314. -  poll=1
  4315. -
  4316. +  eval "ac_cv_func_poll=yes"
  4317. +else
  4318. +  rm -rf conftest*
  4319. +  eval "ac_cv_func_poll=no"
  4320.  fi
  4321.  rm -f conftest*
  4322.  
  4323. +fi
  4324. +if eval "test \"`echo '$ac_cv_func_'poll`\" = yes"; then
  4325. +  echo "$ac_t""yes" 1>&6
  4326. +  poll=1
  4327. +else
  4328. +  echo "$ac_t""no" 1>&6
  4329. +fi
  4330. +
  4331.  if test $select -eq 1 ; then
  4332.    EVENT_TYPE=select
  4333.    test -n "$verbose" && echo "    found select"
  4334. @@ -1419,94 +2178,116 @@ elif test $poll -eq 1 ; then
  4335.  else
  4336.    EVENT_TYPE=simple
  4337.      test -n "$verbose" && echo "    using simple"
  4338. -  
  4339. -{
  4340. -test -n "$ac_verbose" && \
  4341. -echo "    defining SIMPLE_EVENT"
  4342. -echo "#define" SIMPLE_EVENT "1" >> confdefs.h
  4343. -DEFS="$DEFS -DSIMPLE_EVENT=1"
  4344. -ac_sed_defs="${ac_sed_defs}\${ac_dA}SIMPLE_EVENT\${ac_dB}SIMPLE_EVENT\${ac_dC}1\${ac_dD}
  4345. -\${ac_uA}SIMPLE_EVENT\${ac_uB}SIMPLE_EVENT\${ac_uC}1\${ac_uD}
  4346. -\${ac_eA}SIMPLE_EVENT\${ac_eB}SIMPLE_EVENT\${ac_eC}1\${ac_eD}
  4347. -"
  4348. -}
  4349. +  cat >> confdefs.h <<\EOF
  4350. +#define SIMPLE_EVENT 1
  4351. +EOF
  4352.  
  4353.  fi
  4354.  
  4355.  for ac_func in getpty
  4356.  do
  4357. -ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  4358. -test -n "$ac_silent" || echo "checking for ${ac_func}"
  4359. -cat > conftest.${ac_ext} <<EOF
  4360. -#include "confdefs.h"
  4361. -#include <ctype.h>
  4362. -int main() { return 0; }
  4363. -int t() { 
  4364. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4365. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4366. +  echo $ac_n "(cached) $ac_c" 1>&6
  4367. +else
  4368. +  cat > conftest.$ac_ext <<EOF
  4369. +#line 2195 "configure"
  4370. +#include "confdefs.h"
  4371. +/* System header to define __stub macros and hopefully few prototypes,
  4372. +    which can conflict with char $ac_func(); below.  */
  4373. +#include <assert.h>
  4374. +/* Override any gcc2 internal prototype to avoid an error.  */
  4375. +/* We use char because int might match the return type of a gcc2
  4376. +    builtin and then its argument prototype would still apply.  */
  4377. +char $ac_func();
  4378. +
  4379. +int main() { t(); return 0; }
  4380. +int t() {
  4381. +
  4382.  /* The GNU C library defines this for functions which it implements
  4383.      to always fail with ENOSYS.  Some functions are actually named
  4384.      something starting with __ and the normal name is an alias.  */
  4385. -#if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  4386. +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4387.  choke me
  4388.  #else
  4389. -/* Override any gcc2 internal prototype to avoid an error.  */
  4390. -extern char ${ac_func}(); ${ac_func}();
  4391. +$ac_func();
  4392.  #endif
  4393. +
  4394.  ; return 0; }
  4395.  EOF
  4396. -if eval $ac_compile; then
  4397. +if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4398.    rm -rf conftest*
  4399. -  {
  4400. -test -n "$ac_verbose" && \
  4401. -echo "    defining ${ac_tr_func}"
  4402. -echo "#define" ${ac_tr_func} "1" >> confdefs.h
  4403. -DEFS="$DEFS -D${ac_tr_func}=1"
  4404. -ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
  4405. -\${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
  4406. -\${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
  4407. -"
  4408. -}
  4409. -
  4410. -
  4411. +  eval "ac_cv_func_$ac_func=yes"
  4412. +else
  4413. +  rm -rf conftest*
  4414. +  eval "ac_cv_func_$ac_func=no"
  4415.  fi
  4416.  rm -f conftest*
  4417. +
  4418. +fi
  4419. +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4420. +  echo "$ac_t""yes" 1>&6
  4421. +    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4422. +  cat >> confdefs.h <<EOF
  4423. +#define $ac_tr_func 1
  4424. +EOF
  4425. +else
  4426. +  echo "$ac_t""no" 1>&6
  4427. +fi
  4428.  done
  4429.  
  4430.  for ac_func in _getpty
  4431.  do
  4432. -ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  4433. -test -n "$ac_silent" || echo "checking for ${ac_func}"
  4434. -cat > conftest.${ac_ext} <<EOF
  4435. -#include "confdefs.h"
  4436. -#include <ctype.h>
  4437. -int main() { return 0; }
  4438. -int t() { 
  4439. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4440. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4441. +  echo $ac_n "(cached) $ac_c" 1>&6
  4442. +else
  4443. +  cat > conftest.$ac_ext <<EOF
  4444. +#line 2248 "configure"
  4445. +#include "confdefs.h"
  4446. +/* System header to define __stub macros and hopefully few prototypes,
  4447. +    which can conflict with char $ac_func(); below.  */
  4448. +#include <assert.h>
  4449. +/* Override any gcc2 internal prototype to avoid an error.  */
  4450. +/* We use char because int might match the return type of a gcc2
  4451. +    builtin and then its argument prototype would still apply.  */
  4452. +char $ac_func();
  4453. +
  4454. +int main() { t(); return 0; }
  4455. +int t() {
  4456. +
  4457.  /* The GNU C library defines this for functions which it implements
  4458.      to always fail with ENOSYS.  Some functions are actually named
  4459.      something starting with __ and the normal name is an alias.  */
  4460. -#if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  4461. +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4462.  choke me
  4463.  #else
  4464. -/* Override any gcc2 internal prototype to avoid an error.  */
  4465. -extern char ${ac_func}(); ${ac_func}();
  4466. +$ac_func();
  4467.  #endif
  4468. +
  4469.  ; return 0; }
  4470.  EOF
  4471. -if eval $ac_compile; then
  4472. +if { (eval echo configure:2272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4473.    rm -rf conftest*
  4474. -  {
  4475. -test -n "$ac_verbose" && \
  4476. -echo "    defining ${ac_tr_func}"
  4477. -echo "#define" ${ac_tr_func} "1" >> confdefs.h
  4478. -DEFS="$DEFS -D${ac_tr_func}=1"
  4479. -ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
  4480. -\${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
  4481. -\${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
  4482. -"
  4483. -}
  4484. -
  4485. -
  4486. +  eval "ac_cv_func_$ac_func=yes"
  4487. +else
  4488. +  rm -rf conftest*
  4489. +  eval "ac_cv_func_$ac_func=no"
  4490.  fi
  4491.  rm -f conftest*
  4492. +
  4493. +fi
  4494. +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4495. +  echo "$ac_t""yes" 1>&6
  4496. +    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4497. +  cat >> confdefs.h <<EOF
  4498. +#define $ac_tr_func 1
  4499. +EOF
  4500. +else
  4501. +  echo "$ac_t""no" 1>&6
  4502. +fi
  4503.  done
  4504.  
  4505.  
  4506. @@ -1516,66 +2297,78 @@ done
  4507.  # 
  4508.  if test "ISC_${ISC}" = "ISC_1"   ;    then
  4509.     # if on ISC check for -linet and add -linet to LIBS
  4510. -   ac_save_LIBS="${LIBS}"
  4511. -LIBS="${LIBS} -linet"
  4512. -ac_have_lib=""
  4513. -test -n "$ac_silent" || echo "checking for -linet"
  4514. -cat > conftest.${ac_ext} <<EOF
  4515. +   echo $ac_n "checking for -linet""... $ac_c" 1>&6
  4516. +if eval "test \"`echo '$''{'ac_cv_lib_inet'+set}'`\" = set"; then
  4517. +  echo $ac_n "(cached) $ac_c" 1>&6
  4518. +else
  4519. +  ac_save_LIBS="$LIBS"
  4520. +LIBS="-linet  $LIBS"
  4521. +cat > conftest.$ac_ext <<EOF
  4522. +#line 2308 "configure"
  4523.  #include "confdefs.h"
  4524.  
  4525. -int main() { return 0; }
  4526. -int t() { main();; return 0; }
  4527. +int main() { t(); return 0; }
  4528. +int t() {
  4529. +main()
  4530. +; return 0; }
  4531.  EOF
  4532. -if eval $ac_compile; then
  4533. +if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4534.    rm -rf conftest*
  4535. -  ac_have_lib="1"
  4536. -
  4537. +  ac_cv_lib_inet=yes
  4538. +else
  4539. +  rm -rf conftest*
  4540. +  ac_cv_lib_inet=no
  4541.  fi
  4542.  rm -f conftest*
  4543. -LIBS="${ac_save_LIBS}"
  4544. -if test -n "${ac_have_lib}"; then
  4545. -   
  4546. -{
  4547. -test -n "$ac_verbose" && \
  4548. -echo "    defining HAVE_LIBINET"
  4549. -echo "#define" HAVE_LIBINET "1" >> confdefs.h
  4550. -DEFS="$DEFS -DHAVE_LIBINET=1"
  4551. -ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBINET\${ac_dB}HAVE_LIBINET\${ac_dC}1\${ac_dD}
  4552. -\${ac_uA}HAVE_LIBINET\${ac_uB}HAVE_LIBINET\${ac_uC}1\${ac_uD}
  4553. -\${ac_eA}HAVE_LIBINET\${ac_eB}HAVE_LIBINET\${ac_eC}1\${ac_eD}
  4554. -"
  4555. -}
  4556. +LIBS="$ac_save_LIBS"
  4557. +
  4558. +fi
  4559. +echo "$ac_t""$ac_cv_lib_inet" 1>&6
  4560. +if test "$ac_cv_lib_inet" = yes; then
  4561. +  cat >> confdefs.h <<\EOF
  4562. +#define HAVE_LIBINET 1
  4563. +EOF
  4564. +
  4565. +  LIBS="-linet $LIBS"
  4566.  
  4567. -   LIBS="${LIBS} -linet"
  4568.  fi
  4569.  
  4570.     # if on ISC we need <sys/bsdtypes.h> to get FD_SET macros
  4571.     for ac_hdr in sys/bsdtypes.h
  4572.  do
  4573. -ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  4574. -test -n "$ac_silent" || echo "checking for ${ac_hdr}"
  4575. -cat > conftest.${ac_ext} <<EOF
  4576. -#include "confdefs.h"
  4577. -#include <${ac_hdr}>
  4578. -EOF
  4579. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  4580. +ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  4581. +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4582. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4583. +  echo $ac_n "(cached) $ac_c" 1>&6
  4584. +else
  4585. +  cat > conftest.$ac_ext <<EOF
  4586. +#line 2346 "configure"
  4587. +#include "confdefs.h"
  4588. +#include <$ac_hdr>
  4589. +EOF
  4590. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4591. +{ (eval echo configure:2351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4592. +ac_err=`grep -v '^ *+' conftest.out`
  4593.  if test -z "$ac_err"; then
  4594.    rm -rf conftest*
  4595. -  
  4596. -{
  4597. -test -n "$ac_verbose" && \
  4598. -echo "    defining ${ac_tr_hdr}"
  4599. -echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  4600. -DEFS="$DEFS -D${ac_tr_hdr}=1"
  4601. -ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
  4602. -\${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
  4603. -\${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
  4604. -"
  4605. -}
  4606. -
  4607. -
  4608. +  eval "ac_cv_header_$ac_safe=yes"
  4609. +else
  4610. +  echo "$ac_err" >&5
  4611. +  rm -rf conftest*
  4612. +  eval "ac_cv_header_$ac_safe=no"
  4613.  fi
  4614.  rm -f conftest*
  4615. +fi
  4616. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4617. +  echo "$ac_t""yes" 1>&6
  4618. +    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  4619. +  cat >> confdefs.h <<EOF
  4620. +#define $ac_tr_hdr 1
  4621. +EOF
  4622. +else
  4623. +  echo "$ac_t""no" 1>&6
  4624. +fi
  4625.  done
  4626.  
  4627.  fi
  4628. @@ -1584,172 +2377,235 @@ fi
  4629.  # Look for X11
  4630.  #
  4631.  
  4632. -# If we find X, set shell vars x_includes and x_libraries to the paths.
  4633. -no_x=true
  4634. -test -n "$ac_silent" || echo "checking for X include and library files with xmkmf"
  4635. +# If we find X, set shell vars x_includes and x_libraries to the
  4636. +# paths, otherwise set no_x=yes.
  4637. +# Uses ac_ vars as temps to allow command line to override cache and checks.
  4638. +# --without-x overrides everything else, but does not touch the cache.
  4639. +echo $ac_n "checking for X""... $ac_c" 1>&6
  4640. +
  4641. +# Check whether --with-x or --without-x was given.
  4642. +if test "${with_x+set}" = set; then
  4643. +  withval="$with_x"
  4644. +  :
  4645. +fi
  4646. +
  4647. +# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  4648. +if test "x$with_x" = xno; then
  4649. +  # The user explicitly disabled X.
  4650. +  have_x=disabled
  4651. +else
  4652. +  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  4653. +    # Both variables are already set.
  4654. +    have_x=yes
  4655. +  else
  4656. +if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  4657. +  echo $ac_n "(cached) $ac_c" 1>&6
  4658. +else
  4659. +  # One or both of the vars are not set, and there is no cached value.
  4660. +ac_x_includes=NO ac_x_libraries=NO
  4661.  rm -fr conftestdir
  4662.  if mkdir conftestdir; then
  4663.    cd conftestdir
  4664. +  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  4665.    cat > Imakefile <<'EOF'
  4666.  acfindx:
  4667. -    @echo 'ac_imake_incroot="$(INCROOT)"; ac_imake_usrlibdir="$(USRLIBDIR)"; ac_imake_libdir="$(LIBDIR)"'
  4668. +    @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  4669.  EOF
  4670.    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  4671. -    no_x=
  4672.      # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  4673. -    eval `make acfindx 2>/dev/null | grep -v make`
  4674. +    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  4675.      # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  4676. -    if test ! -f $ac_imake_usrlibdir/libX11.a && test -f $ac_imake_libdir/libX11.a; then
  4677. -      ac_imake_usrlibdir=$ac_imake_libdir
  4678. -    fi
  4679. -    case "$ac_imake_incroot" in
  4680. -    /usr/include) ;;
  4681. -    *) x_includes="$ac_imake_incroot" ;;
  4682. +    for ac_extension in a so sl; do
  4683. +      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  4684. +        test -f $ac_im_libdir/libX11.$ac_extension; then
  4685. +        ac_im_usrlibdir=$ac_im_libdir; break
  4686. +      fi
  4687. +    done
  4688. +    # Screen out bogus values from the imake configuration.
  4689. +    case "$ac_im_incroot" in
  4690. +    /ade/include) ;;
  4691. +    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  4692.      esac
  4693. -    case "$ac_imake_usrlibdir" in
  4694. -    /usr/lib | /lib) ;;
  4695. -    *) x_libraries="$ac_imake_usrlibdir" ;;
  4696. +    case "$ac_im_usrlibdir" in
  4697. +    /ade/lib) ;;
  4698. +    *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  4699.      esac
  4700.    fi
  4701.    cd ..
  4702. +  # AmigaOS hack - give lock on conftestdir time to expire before rm -fr.
  4703. +  sleep 2
  4704.    rm -fr conftestdir
  4705.  fi
  4706.  
  4707. -if test -z "$ac_imake_usrlibdir"; then
  4708. -test -n "$ac_silent" || echo "checking for X include and library files directly"
  4709. -if test ".$x_direct_test_library" = . ; then
  4710. -   x_direct_test_library='Xt'
  4711. -fi
  4712. -if test ".$x_direct_test_include" = . ; then
  4713. -   x_direct_test_include='X11/Intrinsic.h'
  4714. -fi
  4715. -cat > conftest.${ac_ext} <<EOF
  4716. +if test "$ac_x_includes" = NO; then
  4717. +  # Guess where to find include files, by looking for this one X11 .h file.
  4718. +  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  4719. +
  4720. +  # First, try using that file with no special directory specified.
  4721. +cat > conftest.$ac_ext <<EOF
  4722. +#line 2447 "configure"
  4723.  #include "confdefs.h"
  4724.  #include <$x_direct_test_include>
  4725.  EOF
  4726. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  4727. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4728. +{ (eval echo configure:2452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4729. +ac_err=`grep -v '^ *+' conftest.out`
  4730.  if test -z "$ac_err"; then
  4731.    rm -rf conftest*
  4732. -  no_x=
  4733. -
  4734. +  # We can compile using X headers with no special include directory.
  4735. +ac_x_includes=
  4736.  else
  4737. +  echo "$ac_err" >&5
  4738.    rm -rf conftest*
  4739. +  # Look for the header file in a standard set of common directories.
  4740.    for ac_dir in               \
  4741. -    /usr/X11R6/include        \
  4742. -    /usr/X11R5/include        \
  4743. -    /usr/X11R4/include        \
  4744. +    /ade/X11R6/include        \
  4745. +    /ade/X11R5/include        \
  4746. +    /ade/X11R4/include        \
  4747.                                \
  4748. -    /usr/include/X11R6        \
  4749. -    /usr/include/X11R5        \
  4750. -    /usr/include/X11R4        \
  4751. +    /ade/include/X11R6        \
  4752. +    /ade/include/X11R5        \
  4753. +    /ade/include/X11R4        \
  4754.                                \
  4755. -    /usr/local/X11R6/include  \
  4756. -    /usr/local/X11R5/include  \
  4757. -    /usr/local/X11R4/include  \
  4758. +    /local/X11R6/include  \
  4759. +    /local/X11R5/include  \
  4760. +    /local/X11R4/include  \
  4761.                                \
  4762. -    /usr/local/include/X11R6  \
  4763. -    /usr/local/include/X11R5  \
  4764. -    /usr/local/include/X11R4  \
  4765. +    /local/include/X11R6  \
  4766. +    /local/include/X11R5  \
  4767. +    /local/include/X11R4  \
  4768.                                \
  4769. -    /usr/X11/include          \
  4770. -    /usr/include/X11          \
  4771. -    /usr/local/X11/include    \
  4772. -    /usr/local/include/X11    \
  4773. +    /ade/X11/include          \
  4774. +    /ade/include/X11          \
  4775. +    /local/X11/include    \
  4776. +    /local/include/X11    \
  4777.                                \
  4778. -    /usr/openwin/include      \
  4779. -    /usr/openwin/share/include \
  4780. +    /ade/X386/include         \
  4781. +    /ade/x386/include         \
  4782. +    /ade/XFree86/include/X11  \
  4783.                                \
  4784. -    /usr/X386/include         \
  4785. -    /usr/x386/include         \
  4786. -    /usr/XFree86/include/X11  \
  4787. +    /ade/include              \
  4788. +    /local/include        \
  4789. +    /ade/unsupported/include  \
  4790. +    /ade/athena/include       \
  4791. +    /local/x11r5/include  \
  4792. +    /ade/lpp/Xamples/include  \
  4793.                                \
  4794. -    /usr/include              \
  4795. -    /usr/local/include        \
  4796. -    /usr/unsupported/include  \
  4797. -    /usr/athena/include       \
  4798. -    /usr/local/x11r5/include  \
  4799. -    /usr/lpp/Xamples/include  \
  4800. +    /ade/openwin/include      \
  4801. +    /ade/openwin/share/include \
  4802.      ; \
  4803.    do
  4804.      if test -r "$ac_dir/$x_direct_test_include"; then
  4805. -      x_includes=$ac_dir; no_x=
  4806. +      ac_x_includes=$ac_dir
  4807.        break
  4808.      fi
  4809.    done
  4810.  fi
  4811.  rm -f conftest*
  4812. +fi # $ac_x_includes = NO
  4813. +
  4814. +if test "$ac_x_libraries" = NO; then
  4815. +  # Check for the libraries.
  4816. +
  4817. +  test -z "$x_direct_test_library" && x_direct_test_library=Xt
  4818. +  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  4819.  
  4820. -# Check for the libraries.  First see if replacing the `include' by
  4821. -# `lib' works.
  4822. -ac_save_LIBS="${LIBS}"
  4823. -LIBS="${LIBS} -l"$x_direct_test_library""
  4824. -ac_have_lib=""
  4825. -test -n "$ac_silent" || echo "checking for -l"$x_direct_test_library""
  4826. -cat > conftest.${ac_ext} <<EOF
  4827. +  # See if we find them without any special options.
  4828. +  # Don't add to $LIBS permanently.
  4829. +  ac_save_LIBS="$LIBS"
  4830. +  LIBS="-l$x_direct_test_library $LIBS"
  4831. +cat > conftest.$ac_ext <<EOF
  4832. +#line 2519 "configure"
  4833.  #include "confdefs.h"
  4834.  
  4835. -int main() { return 0; }
  4836. -int t() { main();; return 0; }
  4837. +int main() { t(); return 0; }
  4838. +int t() {
  4839. +${x_direct_test_function}()
  4840. +; return 0; }
  4841.  EOF
  4842. -if eval $ac_compile; then
  4843. +if { (eval echo configure:2527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4844.    rm -rf conftest*
  4845. -  ac_have_lib="1"
  4846. -
  4847. -fi
  4848. -rm -f conftest*
  4849. -LIBS="${ac_save_LIBS}"
  4850. -if test -n "${ac_have_lib}"; then
  4851. -   :; no_x=
  4852. +  LIBS="$ac_save_LIBS"
  4853. +# We can link X programs with no special library path.
  4854. +ac_x_libraries=
  4855.  else
  4856. -   :; for ac_dir in `echo "$x_includes" | sed s/include/lib/` \
  4857. -    /usr/X11R6/lib        \
  4858. -    /usr/X11R5/lib        \
  4859. -    /usr/X11R4/lib        \
  4860. +  rm -rf conftest*
  4861. +  LIBS="$ac_save_LIBS"
  4862. +# First see if replacing the include by lib works.
  4863. +for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  4864. +    /ade/X11R6/lib        \
  4865. +    /ade/X11R5/lib        \
  4866. +    /ade/X11R4/lib        \
  4867.                            \
  4868. -    /usr/lib/X11R6        \
  4869. -    /usr/lib/X11R5        \
  4870. -    /usr/lib/X11R4        \
  4871. +    /ade/lib/X11R6        \
  4872. +    /ade/lib/X11R5        \
  4873. +    /ade/lib/X11R4        \
  4874.                            \
  4875. -    /usr/local/X11R6/lib  \
  4876. -    /usr/local/X11R5/lib  \
  4877. -    /usr/local/X11R4/lib  \
  4878. +    /local/X11R6/lib  \
  4879. +    /local/X11R5/lib  \
  4880. +    /local/X11R4/lib  \
  4881.                            \
  4882. -    /usr/local/lib/X11R6  \
  4883. -    /usr/local/lib/X11R5  \
  4884. -    /usr/local/lib/X11R4  \
  4885. +    /local/lib/X11R6  \
  4886. +    /local/lib/X11R5  \
  4887. +    /local/lib/X11R4  \
  4888.                            \
  4889. -    /usr/X11/lib          \
  4890. -    /usr/lib/X11          \
  4891. -    /usr/local/X11/lib    \
  4892. -    /usr/local/lib/X11    \
  4893. +    /ade/X11/lib          \
  4894. +    /ade/lib/X11          \
  4895. +    /local/X11/lib    \
  4896. +    /local/lib/X11    \
  4897.                            \
  4898. -    /usr/openwin/lib      \
  4899. -    /usr/openwin/share/lib \
  4900. +    /ade/X386/lib         \
  4901. +    /ade/x386/lib         \
  4902. +    /ade/XFree86/lib/X11  \
  4903.                            \
  4904. -    /usr/X386/lib         \
  4905. -    /usr/x386/lib         \
  4906. -    /usr/XFree86/lib/X11  \
  4907. +    /ade/lib              \
  4908. +    /local/lib        \
  4909. +    /ade/unsupported/lib  \
  4910. +    /ade/athena/lib       \
  4911. +    /local/x11r5/lib  \
  4912. +    /ade/lpp/Xamples/lib  \
  4913.                            \
  4914. -    /usr/lib              \
  4915. -    /usr/local/lib        \
  4916. -    /usr/unsupported/lib  \
  4917. -    /usr/athena/lib       \
  4918. -    /usr/local/x11r5/lib  \
  4919. -    /usr/lpp/Xamples/lib  \
  4920. +    /ade/openwin/lib      \
  4921. +    /ade/openwin/share/lib \
  4922.      ; \
  4923.  do
  4924.    for ac_extension in a so sl; do
  4925.      if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  4926. -      x_libraries=$ac_dir; no_x=
  4927. +      ac_x_libraries=$ac_dir
  4928.        break 2
  4929.      fi
  4930.    done
  4931.  done
  4932.  fi
  4933. +rm -f conftest*
  4934. +
  4935. +fi # $ac_x_libraries = NO
  4936. +
  4937. +if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  4938. +  # Didn't find X anywhere.  Cache the known absence of X.
  4939. +  ac_cv_have_x="have_x=no"
  4940. +else
  4941. +  # Record where we found X for the cache.
  4942. +  ac_cv_have_x="have_x=yes \
  4943. +            ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  4944. +fi
  4945. +fi
  4946. +  fi
  4947. +  eval "$ac_cv_have_x"
  4948. +fi # $with_x != no
  4949.  
  4950. +if test "$have_x" != yes; then
  4951. +  echo "$ac_t""$have_x" 1>&6
  4952. +  no_x=yes
  4953. +else
  4954. +  # If each of the values was on the command line, it overrides each guess.
  4955. +  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  4956. +  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  4957. +  # Update the cache value to reflect the command line values.
  4958. +  ac_cv_have_x="have_x=yes \
  4959. +        ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  4960. +  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  4961.  fi
  4962. -test -n "$x_includes" && test -n "$ac_verbose" && echo "    found X11 headers in $x_includes"
  4963. -test -n "$x_libraries" && test -n "$ac_verbose" && echo "    found X11 libraries in $x_libraries"
  4964.  
  4965.  
  4966.  #
  4967. @@ -1779,27 +2635,35 @@ fi
  4968.  # HP-UX wants this instead of libX11
  4969.  #
  4970.  if test x"$x_libraries" = x ; then
  4971. -  ac_save_LIBS="${LIBS}"
  4972. -LIBS="${LIBS} -lXwindow"
  4973. -ac_have_lib=""
  4974. -test -n "$ac_silent" || echo "checking for -lXwindow"
  4975. -cat > conftest.${ac_ext} <<EOF
  4976. +  echo $ac_n "checking for -lXwindow""... $ac_c" 1>&6
  4977. +if eval "test \"`echo '$''{'ac_cv_lib_Xwindow'+set}'`\" = set"; then
  4978. +  echo $ac_n "(cached) $ac_c" 1>&6
  4979. +else
  4980. +  ac_save_LIBS="$LIBS"
  4981. +LIBS="-lXwindow  $LIBS"
  4982. +cat > conftest.$ac_ext <<EOF
  4983. +#line 2646 "configure"
  4984.  #include "confdefs.h"
  4985.  
  4986. -int main() { return 0; }
  4987. -int t() { main();; return 0; }
  4988. +int main() { t(); return 0; }
  4989. +int t() {
  4990. +main()
  4991. +; return 0; }
  4992.  EOF
  4993. -if eval $ac_compile; then
  4994. +if { (eval echo configure:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4995.    rm -rf conftest*
  4996. -  ac_have_lib="1"
  4997. -
  4998. +  ac_cv_lib_Xwindow=yes
  4999. +else
  5000. +  rm -rf conftest*
  5001. +  ac_cv_lib_Xwindow=no
  5002.  fi
  5003.  rm -f conftest*
  5004. -LIBS="${ac_save_LIBS}"
  5005. -if test -n "${ac_have_lib}"; then
  5006. -   :; XLIBS="-lXwindow"
  5007. -else
  5008. -   :; 
  5009. +LIBS="$ac_save_LIBS"
  5010. +
  5011. +fi
  5012. +echo "$ac_t""$ac_cv_lib_Xwindow" 1>&6
  5013. +if test "$ac_cv_lib_Xwindow" = yes; then
  5014. +  XLIBS="-lXwindow"
  5015.  fi
  5016.  
  5017.  fi
  5018. @@ -1827,15 +2691,46 @@ fi
  5019.  
  5020.  
  5021.  
  5022. -# Set default prefixes.
  5023. -if test -n "$prefix"; then
  5024. -  test -z "$exec_prefix" && exec_prefix='${prefix}' # Let make expand it.
  5025. -  ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  5026. -fi
  5027. -if test -n "$exec_prefix"; then
  5028. -  ac_prsub="$ac_prsub
  5029. -s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  5030. +trap '' 1 2 15
  5031. +cat > confcache <<\EOF
  5032. +# This file is a shell script that caches the results of configure
  5033. +# tests run on this system so they can be shared between configure
  5034. +# scripts and configure runs.  It is not useful on other systems.
  5035. +# If it contains results you don't want to keep, you may remove or edit it.
  5036. +#
  5037. +# By default, configure uses ./config.cache as the cache file,
  5038. +# creating it if it does not exist already.  You can give configure
  5039. +# the --cache-file=FILE option to use a different cache file; that is
  5040. +# what configure does when it calls configure scripts in
  5041. +# subdirectories, so they share the cache.
  5042. +# Giving --cache-file=/dev/null disables caching, for debugging configure.
  5043. +# config.status only pays attention to the cache file if you give it the
  5044. +# --recheck option to rerun configure.
  5045. +#
  5046. +EOF
  5047. +# Ultrix sh set writes to stderr and can't be redirected directly,
  5048. +# and sets the high bit in the cache file unless we assign to the vars.
  5049. +(set) 2>&1 |
  5050. +  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  5051. +  >> confcache
  5052. +if cmp -s $cache_file confcache; then
  5053. +  :
  5054. +else
  5055. +  if test -w $cache_file; then
  5056. +    echo "updating cache $cache_file"
  5057. +    cat confcache > $cache_file
  5058. +  else
  5059. +    echo "not updating unwritable cache $cache_file"
  5060. +  fi
  5061.  fi
  5062. +rm -f confcache
  5063. +
  5064. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  5065. +
  5066. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5067. +# Let make expand exec_prefix.
  5068. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5069. +
  5070.  # Any assignment to VPATH causes Sun make to only execute
  5071.  # the first set of double-colon rules, so remove it if not needed.
  5072.  # If there is a colon in the path, we need to keep it.
  5073. @@ -1843,36 +2738,38 @@ if test "x$srcdir" = x.; then
  5074.    ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  5075.  fi
  5076.  
  5077. -# Quote sed substitution magic chars in DEFS.
  5078. -cat >conftest.def <<EOF
  5079. -$DEFS
  5080. -EOF
  5081. -ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  5082. -DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  5083. -rm -f conftest.def
  5084. -# Substitute for predefined variables.
  5085. -
  5086. -trap 'rm -f config.status; exit 1' 1 2 15
  5087. -echo creating config.status
  5088. -rm -f config.status
  5089. -cat > config.status <<EOF
  5090. -#!/bin/sh
  5091. +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  5092. +
  5093. +DEFS=-DHAVE_CONFIG_H
  5094. +
  5095. +# Without the "./", some shells look in PATH for config.status.
  5096. +: ${CONFIG_STATUS=./config.status}
  5097. +
  5098. +echo creating $CONFIG_STATUS
  5099. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  5100. +# being executed, so just move it out of the way instead.
  5101. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  5102. +cat > $CONFIG_STATUS <<EOF
  5103. +#! /bin/sh
  5104.  # Generated automatically by configure.
  5105.  # Run this file to recreate the current configuration.
  5106.  # This directory was configured as follows,
  5107.  # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  5108.  #
  5109.  # $0 $ac_configure_args
  5110. +#
  5111. +# Compiler output produced by configure, useful for debugging
  5112. +# configure, is in ./config.log if it exists.
  5113.  
  5114. -ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  5115. +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  5116.  for ac_option
  5117.  do
  5118.    case "\$ac_option" in
  5119.    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5120. -    echo running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args
  5121. -    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args ;;
  5122. +    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  5123. +    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  5124.    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  5125. -    echo "config.status generated by autoconf version 1.7.9"
  5126. +    echo "$CONFIG_STATUS generated by autoconf version 2.10"
  5127.      exit 0 ;;
  5128.    -help | --help | --hel | --he | --h)
  5129.      echo "\$ac_cs_usage"; exit 0 ;;
  5130. @@ -1880,67 +2777,44 @@ do
  5131.    esac
  5132.  done
  5133.  
  5134. -trap 'rm -fr Makefile expect_cf.h conftest*; exit 1' 1 2 15
  5135. -RANLIB='$RANLIB'
  5136. -CPP='$CPP'
  5137. -CC='$CC'
  5138. -XINCLUDES='$XINCLUDES'
  5139. -XLIBS='$XLIBS'
  5140. -XPROGS='$XPROGS'
  5141. -TCLHDIR='$TCLHDIR'
  5142. -TCLLIB='$TCLLIB'
  5143. -TKHDIR='$TKHDIR'
  5144. -TKLIB='$TKLIB'
  5145. -PTY_TYPE='$PTY_TYPE'
  5146. -EVENT_TYPE='$EVENT_TYPE'
  5147. -SETUID='$SETUID'
  5148. -LIBS='$LIBS'
  5149. -srcdir='$srcdir'
  5150. -prefix='$prefix'
  5151. -exec_prefix='$exec_prefix'
  5152. -ac_prsub='$ac_prsub'
  5153. -ac_vpsub='$ac_vpsub'
  5154. -extrasub='$extrasub'
  5155. -EOF
  5156. -cat >> config.status <<\EOF
  5157. -
  5158. -ac_top_srcdir=$srcdir
  5159. -
  5160. -CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  5161. -for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  5162. -  # Remove last slash and all that follows it.  Not all systems have dirname.
  5163. -  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  5164. -  if test "$ac_dir" != "$ac_file"; then
  5165. -    # The file is in a subdirectory.
  5166. -    test ! -d "$ac_dir" && mkdir "$ac_dir"
  5167. -    ac_dir_suffix="/$ac_dir"
  5168. -  else
  5169. -    ac_dir_suffix=
  5170. -  fi
  5171. +ac_given_srcdir=$srcdir
  5172.  
  5173. -  case "$ac_top_srcdir" in
  5174. -  .)  srcdir=. ;;
  5175. -  /*) srcdir="$ac_top_srcdir$ac_dir_suffix" ;;
  5176. -  *)
  5177. -    # Relative path.  Prepend a "../" for each directory in $ac_dir_suffix.
  5178. -    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  5179. -    srcdir="$ac_dots$ac_top_srcdir$ac_dir_suffix" ;;
  5180. -  esac
  5181. +trap 'rm -fr `echo "Makefile expect_cf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  5182. +EOF
  5183. +cat >> $CONFIG_STATUS <<EOF
  5184.  
  5185. -  echo creating "$ac_file"
  5186. -  rm -f "$ac_file"
  5187. -  comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
  5188. -  case "$ac_file" in
  5189. -    *.c | *.h | *.C | *.cc | *.m )  echo "/* $comment_str */" > "$ac_file" ;;
  5190. -    * )          echo "# $comment_str"     > "$ac_file" ;;
  5191. -  esac
  5192. -  sed -e "
  5193. -$ac_prsub
  5194. +# Protect against being on the right side of a sed subst in config.status.
  5195. +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  5196. + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  5197.  $ac_vpsub
  5198.  $extrasub
  5199. +s%@CFLAGS@%$CFLAGS%g
  5200. +s%@CPPFLAGS@%$CPPFLAGS%g
  5201. +s%@CXXFLAGS@%$CXXFLAGS%g
  5202. +s%@DEFS@%$DEFS%g
  5203. +s%@LDFLAGS@%$LDFLAGS%g
  5204. +s%@LIBS@%$LIBS%g
  5205. +s%@exec_prefix@%$exec_prefix%g
  5206. +s%@prefix@%$prefix%g
  5207. +s%@program_transform_name@%$program_transform_name%g
  5208. +s%@bindir@%$bindir%g
  5209. +s%@sbindir@%$sbindir%g
  5210. +s%@libexecdir@%$libexecdir%g
  5211. +s%@datadir@%$datadir%g
  5212. +s%@sysconfdir@%$sysconfdir%g
  5213. +s%@sharedstatedir@%$sharedstatedir%g
  5214. +s%@localstatedir@%$localstatedir%g
  5215. +s%@libdir@%$libdir%g
  5216. +s%@includedir@%$includedir%g
  5217. +s%@oldincludedir@%$oldincludedir%g
  5218. +s%@infodir@%$infodir%g
  5219. +s%@guidedir@%$guidedir%g
  5220. +s%@psdir@%$psdir%g
  5221. +s%@dvidir@%$dvidir%g
  5222. +s%@mandir@%$mandir%g
  5223.  s%@RANLIB@%$RANLIB%g
  5224. -s%@CPP@%$CPP%g
  5225.  s%@CC@%$CC%g
  5226. +s%@CPP@%$CPP%g
  5227.  s%@XINCLUDES@%$XINCLUDES%g
  5228.  s%@XLIBS@%$XLIBS%g
  5229.  s%@XPROGS@%$XPROGS%g
  5230. @@ -1951,106 +2825,159 @@ s%@TKLIB@%$TKLIB%g
  5231.  s%@PTY_TYPE@%$PTY_TYPE%g
  5232.  s%@EVENT_TYPE@%$EVENT_TYPE%g
  5233.  s%@SETUID@%$SETUID%g
  5234. -s%@LIBS@%$LIBS%g
  5235. +
  5236. +CEOF
  5237. +EOF
  5238. +cat >> $CONFIG_STATUS <<EOF
  5239. +
  5240. +CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  5241. +EOF
  5242. +cat >> $CONFIG_STATUS <<\EOF
  5243. +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  5244. +  # Support "outfile[:infile]", defaulting infile="outfile.in".
  5245. +  case "$ac_file" in
  5246. +  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  5247. +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  5248. +  *) ac_file_in="${ac_file}.in" ;;
  5249. +  esac
  5250. +
  5251. +  # Adjust relative srcdir, etc. for subdirectories.
  5252. +
  5253. +  # Remove last slash and all that follows it.  Not all systems have dirname.
  5254. +  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  5255. +  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  5256. +    # The file is in a subdirectory.
  5257. +    test ! -d "$ac_dir" && mkdir "$ac_dir"
  5258. +    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  5259. +    # A "../" for each directory in $ac_dir_suffix.
  5260. +    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  5261. +  else
  5262. +    ac_dir_suffix= ac_dots=
  5263. +  fi
  5264. +
  5265. +  case "$ac_given_srcdir" in
  5266. +  .)  srcdir=.
  5267. +      if test -z "$ac_dots"; then top_srcdir=.
  5268. +      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  5269. +  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  5270. +  *) # Relative path.
  5271. +    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  5272. +    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  5273. +  esac
  5274. +
  5275. +  echo creating "$ac_file"
  5276. +  rm -f "$ac_file"
  5277. +  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  5278. +  case "$ac_file" in
  5279. +  *Makefile*) ac_comsub="1i\\
  5280. +# $configure_input" ;;
  5281. +  *) ac_comsub= ;;
  5282. +  esac
  5283. +  sed -e "$ac_comsub
  5284. +s%@configure_input@%$configure_input%g
  5285.  s%@srcdir@%$srcdir%g
  5286. -s%@prefix@%$prefix%g
  5287. -s%@exec_prefix@%$exec_prefix%g
  5288. -s%@DEFS@%-DHAVE_CONFIG_H%" $ac_top_srcdir/${ac_file}.in >> $ac_file
  5289. +s%@top_srcdir@%$top_srcdir%g
  5290. +" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  5291.  fi; done
  5292. +rm -f conftest.subs
  5293.  
  5294. -# These sed commands are put into ac_sed_defs when defining a macro.
  5295. -# They are broken into pieces to make the sed script easier to manage.
  5296. -# They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  5297. -# is the cpp macro being defined and VALUE is the value it is being given.
  5298. -# Each defining turns into a single global substitution command.
  5299. -# Hopefully no one uses "!" as a variable value.
  5300. -# Other candidates for the sed separators, like , and @, do get used.
  5301. +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  5302. +# NAME is the cpp macro being defined and VALUE is the value it is being given.
  5303.  #
  5304.  # ac_d sets the value in "#define NAME VALUE" lines.
  5305. -ac_dA='s!^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  5306. -ac_dB='\([     ][     ]*\)[^     ]*!\1#\2'
  5307. +ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  5308. +ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  5309.  ac_dC='\3'
  5310. -ac_dD='!g'
  5311. +ac_dD='%g'
  5312.  # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  5313. -ac_uA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  5314. -ac_uB='\([     ]\)!\1#\2define\3'
  5315. +ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  5316. +ac_uB='\([     ]\)%\1#\2define\3'
  5317.  ac_uC=' '
  5318. -ac_uD='\4!g'
  5319. +ac_uD='\4%g'
  5320.  # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  5321. -ac_eA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  5322. -ac_eB='$!\1#\2define\3'
  5323. +ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  5324. +ac_eB='$%\1#\2define\3'
  5325.  ac_eC=' '
  5326. -ac_eD='!g'
  5327. -rm -f conftest.sed
  5328. +ac_eD='%g'
  5329. +
  5330. +CONFIG_HEADERS=${CONFIG_HEADERS-"expect_cf.h"}
  5331. +for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  5332. +  # Support "outfile[:infile]", defaulting infile="outfile.in".
  5333. +  case "$ac_file" in
  5334. +  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  5335. +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  5336. +  *) ac_file_in="${ac_file}.in" ;;
  5337. +  esac
  5338. +
  5339. +  echo creating $ac_file
  5340. +
  5341. +  rm -f conftest.frag conftest.in conftest.out
  5342. +  cp $ac_given_srcdir/$ac_file_in conftest.in
  5343. +
  5344.  EOF
  5345. -# Turn off quoting long enough to insert the sed commands.
  5346. -rm -f conftest.sh
  5347. -cat > conftest.sh <<EOF
  5348. -$ac_sed_defs
  5349. +
  5350. +# Transform confdefs.h into a sed script conftest.vals that substitutes
  5351. +# the proper values into config.h.in to produce config.h.  And first:
  5352. +# Protect against being on the right side of a sed subst in config.status.
  5353. +# Protect against being in an unquoted here document in config.status.
  5354. +rm -f conftest.vals
  5355. +cat > conftest.hdr <<\EOF
  5356. +s/[\\&%]/\\&/g
  5357. +s%[\\$`]%\\&%g
  5358. +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  5359. +s%ac_d%ac_u%gp
  5360. +s%ac_u%ac_e%gp
  5361.  EOF
  5362. +sed -n -f conftest.hdr confdefs.h > conftest.vals
  5363. +rm -f conftest.hdr
  5364.  
  5365. -# Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
  5366. -# on the size of here documents.
  5367. +# This sed command replaces #undef with comments.  This is necessary, for
  5368. +# example, in the case of _POSIX_SOURCE, which is predefined and required
  5369. +# on some systems where configure will not decide to define it.
  5370. +cat >> conftest.vals <<\EOF
  5371. +s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  5372. +EOF
  5373.  
  5374. +# Break up conftest.vals because some shells have a limit on
  5375. +# the size of here documents, and old seds have small limits too.
  5376.  # Maximum number of lines to put in a single here document.
  5377. -ac_max_sh_lines=9
  5378. +ac_max_here_lines=12
  5379.  
  5380. +rm -f conftest.tail
  5381.  while :
  5382.  do
  5383. -  # wc gives bogus results for an empty file on some AIX systems.
  5384. -  ac_lines=`grep -c . conftest.sh`
  5385. +  ac_lines=`grep -c . conftest.vals`
  5386. +  # grep -c gives empty output for an empty file on some AIX systems.
  5387.    if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  5388. -  rm -f conftest.s1 conftest.s2
  5389. -  sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -20.
  5390. -  sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +21.
  5391. -  # Write a limited-size here document to append to conftest.sed.
  5392. -  echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  5393. -  cat conftest.s1 >> config.status
  5394. -  echo 'CONFEOF' >> config.status
  5395. -  rm -f conftest.s1 conftest.sh
  5396. -  mv conftest.s2 conftest.sh
  5397. +  # Write a limited-size here document to conftest.frag.
  5398. +  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  5399. +  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  5400. +  echo 'CEOF
  5401. +  sed -f conftest.frag conftest.in > conftest.out
  5402. +  rm -f conftest.in
  5403. +  mv conftest.out conftest.in
  5404. +' >> $CONFIG_STATUS
  5405. +  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  5406. +  rm -f conftest.vals
  5407. +  mv conftest.tail conftest.vals
  5408.  done
  5409. -rm -f conftest.sh
  5410. -
  5411. -# Now back to your regularly scheduled config.status.
  5412. -cat >> config.status <<\EOF
  5413. -# This sed command replaces #undef's with comments.  This is necessary, for
  5414. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  5415. -# on some systems where configure will not decide to define it in
  5416. -# expect_cf.h.
  5417. -cat >> conftest.sed <<\CONFEOF
  5418. -s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  5419. -CONFEOF
  5420. -rm -f conftest.h
  5421. -# Break up the sed commands because old seds have small limits.
  5422. -ac_max_sed_lines=20
  5423. -
  5424. -CONFIG_HEADERS=${CONFIG_HEADERS-"expect_cf.h"}
  5425. -for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
  5426. -  echo creating $ac_file
  5427. +rm -f conftest.vals
  5428.  
  5429. -  cp $ac_top_srcdir/$ac_file.in conftest.h1
  5430. -  while :
  5431. -  do
  5432. -    ac_lines=`grep -c . conftest.sed`
  5433. -    if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  5434. -    rm -f conftest.s1 conftest.s2 conftest.h2
  5435. -    sed ${ac_max_sed_lines}q conftest.sed > conftest.s1 # Like head -20.
  5436. -    sed 1,${ac_max_sed_lines}d conftest.sed > conftest.s2 # Like tail +21.
  5437. -    sed -f conftest.s1 < conftest.h1 > conftest.h2
  5438. -    rm -f conftest.s1 conftest.h1 conftest.sed
  5439. -    mv conftest.h2 conftest.h1
  5440. -    mv conftest.s2 conftest.sed
  5441. -  done
  5442. -  rm -f conftest.sed conftest.h
  5443. +cat >> $CONFIG_STATUS <<\EOF
  5444. +  rm -f conftest.frag conftest.h
  5445.    echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  5446. -  cat conftest.h1 >> conftest.h
  5447. -  rm -f conftest.h1
  5448. +  cat conftest.in >> conftest.h
  5449. +  rm -f conftest.in
  5450.    if cmp -s $ac_file conftest.h 2>/dev/null; then
  5451. -    # The file exists and we would not be changing it.
  5452.      echo "$ac_file is unchanged"
  5453.      rm -f conftest.h
  5454.    else
  5455. +    # Remove last slash and all that follows it.  Not all systems have dirname.
  5456. +      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  5457. +      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  5458. +      # The file is in a subdirectory.
  5459. +      test ! -d "$ac_dir" && mkdir "$ac_dir"
  5460. +    fi
  5461.      rm -f $ac_file
  5462.      mv conftest.h $ac_file
  5463.    fi
  5464. @@ -2060,6 +2987,8 @@ fi; done
  5465.  
  5466.  exit 0
  5467.  EOF
  5468. -chmod +x config.status
  5469. -${CONFIG_SHELL-/bin/sh} config.status
  5470. +chmod +x $CONFIG_STATUS
  5471. +rm -f CONFIG.STATUS.old
  5472. +rm -fr confdefs* $ac_clean_files
  5473. +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  5474.  
  5475. diff -rup --new-file baseline/fsf/dejagnu/expect/configure.in amiga/fsf/dejagnu/expect/configure.in
  5476. --- baseline/fsf/dejagnu/expect/configure.in    Mon Apr 11 15:30:09 1994
  5477. +++ amiga/fsf/dejagnu/expect/configure.in    Sat Sep 28 00:00:00 1996
  5478. @@ -2,7 +2,8 @@ dnl Process this file with autoconf to p
  5479.  AC_INIT(expect.h)
  5480.  AC_CONFIG_HEADER(expect_cf.h)
  5481.  AC_PROGRAM_CHECK(RANLIB, ranlib, ranlib, true)
  5482. -CC=${CC-cc}
  5483. +AC_PROG_CC
  5484. +AC_PROG_CPP
  5485.  
  5486.  dnl AC_PROG_RANLIB
  5487.  
  5488. @@ -11,7 +12,7 @@ AC_PID_T
  5489.  #
  5490.  # On a few systems, libm.a is the same as libc.a
  5491.  #
  5492. -AC_FUNC_CHECK(sin, , LIBS="-lm" ; test -n "$verbose" && echo "    Adding -lm to library list")
  5493. +AC_CHECK_LIB(m, main)
  5494.  #
  5495.  # Ok, lets find the tk source trees so we can use the headers
  5496.  # If the directory (presumably symlink) named "tk" exists, use that one
  5497. @@ -171,7 +172,7 @@ WIFEXITED(x);        /* Generates compiler err
  5498.  # Pattern matching on int could be loosened.
  5499.  # Can't use ac_header_egrep since that doesn't see prototypes with K&R cpp.
  5500.  echo checking mask type of select
  5501. -if egrep "select\(size_t, int" /usr/include/sys/time.h >/dev/null 2>&1; then
  5502. +if egrep "select\(size_t, int" /ade/include/sys/time.h >/dev/null 2>&1; then
  5503.    AC_DEFINE(SELECT_MASK_TYPE, int)
  5504.  fi
  5505.  
  5506. @@ -227,7 +228,7 @@ fi
  5507.  echo checking for HP style pty allocation
  5508.  # following test fails on DECstations and other things that don't grok -c
  5509.  # but that's ok, since they don't have PTYMs anyway
  5510. -if test -c /dev/ptym/ptyp0 2>>/dev/null ; then
  5511. +if test -c /ade/dev/ptym/ptyp0 2>>/dev/null ; then
  5512.      AC_DEFINE(HAVE_PTYM)
  5513.  fi
  5514.  
  5515. @@ -235,17 +236,17 @@ echo checking for HP style pty-trapping
  5516.  AC_HEADER_EGREP([struct.*request_info], sys/ptyio.h, AC_DEFINE(HAVE_PTYTRAP), )
  5517.  
  5518.  echo checking for AIX new-style pty allocation
  5519. -if test -r /dev/ptc -a -r /dev/pts ; then
  5520. +if test -r /ade/dev/ptc -a -r /ade/dev/pts ; then
  5521.      AC_DEFINE(HAVE_PTC_PTS)
  5522.  fi
  5523.  
  5524.  echo checking for SGI old-style pty allocation
  5525. -if test -r /dev/ptc -a ! -r /dev/pts ; then
  5526. +if test -r /ade/dev/ptc -a ! -r /ade/dev/pts ; then
  5527.      AC_DEFINE(HAVE_PTC)
  5528.  fi
  5529.  
  5530.  echo checking for SVR4 style pty allocation
  5531. -if test -r /dev/ptmx ; then
  5532. +if test -r /ade/dev/ptmx ; then
  5533.    AC_DEFINE(HAVE_PTMX)
  5534.    # aargg. Some systems need libpt.a to use /dev/ptmx
  5535.      echo checking for libpt.a
  5536. @@ -255,7 +256,7 @@ fi
  5537.  # In OSF/1 case, SVR4 are somewhat different.
  5538.  # Gregory Depp <depp@osf.org> 17Aug93
  5539.  echo checking for OSF/1 style pty allocation
  5540. -if test -r /dev/ptmx_bsd ; then
  5541. +if test -r /ade/dev/ptmx_bsd ; then
  5542.      AC_DEFINE(HAVE_PTMX_BSD)
  5543.  fi
  5544.  
  5545. diff -rup --new-file baseline/fsf/dejagnu/expect/exp_clib.c amiga/fsf/dejagnu/expect/exp_clib.c
  5546. --- baseline/fsf/dejagnu/expect/exp_clib.c    Mon Mar 28 15:35:32 1994
  5547. +++ amiga/fsf/dejagnu/expect/exp_clib.c    Sat Sep 28 00:00:00 1996
  5548. @@ -17,6 +17,10 @@ would appreciate credit if this program 
  5549.  #else
  5550.  #  include <fcntl.h>
  5551.  #endif
  5552. +#ifdef __amigaos__
  5553. +#include <sys/time.h>
  5554. +#include <sys/resource.h>
  5555. +#endif
  5556.  #include <signal.h>
  5557.  /*#include <memory.h> - deprecated - ANSI C moves them into string.h */
  5558.  #include "string.h"
  5559. @@ -116,7 +120,7 @@ when trapping, see below in child half o
  5560.  
  5561.      pipe(sync_fds);
  5562.  
  5563. -    if ((exp_pid = fork()) == -1) return(-1);
  5564. +    if ((exp_pid = vfork()) == -1) return(-1);
  5565.      if (exp_pid) {
  5566.          /* parent */
  5567.          close(sync_fds[1]);
  5568. @@ -173,6 +177,10 @@ when trapping, see below in child half o
  5569.  
  5570.      /* child process - do not return from here!  all errors must exit() */
  5571.  
  5572. +#ifdef __amigaos__
  5573. +/*    setpriority(PRIO_PROCESS, 0, getpriority(PRIO_PROCESS, 0) + 1);*/
  5574. +#endif
  5575. +
  5576.      close(sync_fds[0]);
  5577.  
  5578.  #ifdef CRAY
  5579. @@ -181,7 +189,7 @@ when trapping, see below in child half o
  5580.  
  5581.  /* ultrix (at least 4.1-2) fails to obtain controlling tty if setsid */
  5582.  /* is called.  setpgrp works though.  */
  5583. -#if defined(POSIX) && !defined(ultrix)
  5584. +#if defined(POSIX) && !defined(ultrix) && !defined(amiga)
  5585.  #define DO_SETSID
  5586.  #endif
  5587.  #ifdef __convex__
  5588. @@ -855,7 +863,7 @@ exp_disconnect()
  5589.      freopen("/dev/null","w",stdout);
  5590.      freopen("/dev/null","w",stderr);
  5591.  
  5592. -#ifdef POSIX
  5593. +#if defined(POSIX) && !defined(amiga)
  5594.      setsid();
  5595.  #else
  5596.  #ifdef SYSV3
  5597. diff -rup --new-file baseline/fsf/dejagnu/expect/exp_command.c amiga/fsf/dejagnu/expect/exp_command.c
  5598. --- baseline/fsf/dejagnu/expect/exp_command.c    Mon Mar 21 17:14:08 1994
  5599. +++ amiga/fsf/dejagnu/expect/exp_command.c    Sat Sep 28 00:00:00 1996
  5600. @@ -46,6 +46,10 @@ would appreciate credit if this program 
  5601.  #include <sys/ptyio.h>
  5602.  #endif
  5603.  
  5604. +#ifdef __amigaos__
  5605. +#include <sys/time.h>
  5606. +#include <sys/resource.h>
  5607. +#endif
  5608.  
  5609.  #include <math.h>        /* for log/pow computation in send -h */
  5610.  #include <ctype.h>        /* all this for ispunct! */
  5611. @@ -548,10 +552,12 @@ char **argv;
  5612.      }
  5613.  
  5614.      stty_init = exp_get_var(interp,STTY_INIT);
  5615. +#ifndef __amigaos__
  5616.      if (stty_init) {
  5617.          slave_write_ioctls++;
  5618.          slave_opens++;
  5619.      }
  5620. +#endif
  5621.  
  5622.  /* any extraneous ioctl's that occur in slave must be accounted for
  5623.  when trapping, see below in child half of fork */
  5624. @@ -657,8 +663,8 @@ when trapping, see below in child half o
  5625.  
  5626.      pipe(sync_fds);
  5627.  
  5628. -    if ((pid = fork()) == -1) {
  5629. -        exp_error(interp,"fork: %s",Tcl_PosixError(interp));
  5630. +    if ((pid = vfork()) == -1) {
  5631. +        exp_error(interp,"vfork: %s",Tcl_PosixError(interp));
  5632.          goto parent_error;
  5633.      }
  5634.  
  5635. @@ -769,6 +775,10 @@ parent_error:
  5636.  
  5637.      /* child process - do not return from here!  all errors must exit() */
  5638.  
  5639. +#ifdef __amigaos__
  5640. +/*    setpriority(PRIO_PROCESS, 0, getpriority(PRIO_PROCESS, 0) + 1);*/
  5641. +#endif
  5642. +
  5643.      close(sync_fds[0]);
  5644.  
  5645.      if (exp_dev_tty != -1) {
  5646. @@ -782,7 +792,7 @@ parent_error:
  5647.  
  5648.  /* ultrix (at least 4.1-2) fails to obtain controlling tty if setsid */
  5649.  /* is called.  setpgrp works though.  */
  5650. -#if defined(POSIX) && !defined(ultrix)
  5651. +#if defined(POSIX) && !defined(ultrix) && !defined(amiga)
  5652.  #define DO_SETSID
  5653.  #endif
  5654.  #ifdef __convex__
  5655. @@ -2601,7 +2611,7 @@ char **argv;
  5656.          Tcl_SetResult(interp,tcl_handle,TCL_DYNAMIC);
  5657.      } else {
  5658.          if (!(fp = fdopen(m,"r+"))) {
  5659. -            exp_error(interp,"fork: %s",Tcl_PosixError(interp));
  5660. +            exp_error(interp,"vfork: %s",Tcl_PosixError(interp));
  5661.              return TCL_ERROR;
  5662.          }
  5663.          Tcl_EnterFile(interp,fp,TCL_FILE_READABLE|TCL_FILE_WRITABLE);
  5664. diff -rup --new-file baseline/fsf/dejagnu/expect/exp_select.c amiga/fsf/dejagnu/expect/exp_select.c
  5665. --- baseline/fsf/dejagnu/expect/exp_select.c    Mon Mar 28 15:35:47 1994
  5666. +++ amiga/fsf/dejagnu/expect/exp_select.c    Sat Sep 28 00:00:00 1996
  5667. @@ -120,7 +120,7 @@ int key;
  5668.  /* FIXME: This is really gross, but the folks at Lynx said their select is
  5669.   *        way hosed and to ignore all exceptions.
  5670.   */
  5671. -#ifdef __Lynx__
  5672. +#if defined(__Lynx__) || defined(amiga)
  5673.  #define EXCEP 0
  5674.  #else
  5675.  #define EXCEP &excep
  5676. @@ -173,18 +173,19 @@ int key;
  5677.      FD_ZERO(&excep);
  5678.      for (i = 0;i < n;i++) {
  5679.          FD_SET(masters[i],&rdrs);
  5680. +#ifndef amiga
  5681.          FD_SET(masters[i],&excep);
  5682. +#endif
  5683.      }
  5684.  
  5685.      /* The reason all fd masks are (seemingly) redundantly cast to */
  5686.      /* SELECT_MASK_TYPE is that the HP defines its mask in terms of */
  5687.      /* of int * and yet defines FD_SET in terms of fd_set. */
  5688. -
  5689. -    if (-1 == select(exp_fd_max+1,
  5690. +    if (-1 == (i = select(exp_fd_max+1,
  5691.              (SELECT_MASK_TYPE *)&rdrs,
  5692.              (SELECT_MASK_TYPE *)0,
  5693.              (SELECT_MASK_TYPE *)EXCEP,
  5694. -            t)) {
  5695. +            t))) {
  5696.          /* window refreshes trigger EINTR, ignore */
  5697.          if (errno == EINTR) goto restart;
  5698.          else if (errno == EBADF) {
  5699. diff -rup --new-file baseline/fsf/dejagnu/expect/expect.c amiga/fsf/dejagnu/expect/expect.c
  5700. --- baseline/fsf/dejagnu/expect/expect.c    Mon Mar 28 15:35:54 1994
  5701. +++ amiga/fsf/dejagnu/expect/expect.c    Sat Sep 28 00:00:00 1996
  5702. @@ -9,6 +9,7 @@ would appreciate credit if this program 
  5703.  */
  5704.  
  5705.  #include <sys/types.h>
  5706. +#include <sys/stat.h>
  5707.  #include <stdio.h>
  5708.  #include <signal.h>
  5709.  #include <varargs.h>
  5710. diff -rup --new-file baseline/fsf/dejagnu/expect/install.sh amiga/fsf/dejagnu/expect/install.sh
  5711. --- baseline/fsf/dejagnu/expect/install.sh    Tue Jan  4 20:57:33 1994
  5712. +++ amiga/fsf/dejagnu/expect/install.sh    Sat Sep 28 00:00:00 1996
  5713. @@ -41,8 +41,10 @@ mvcmd="$mvprog"
  5714.  src=""
  5715.  dst=""
  5716.  
  5717. -while [ x"$1" != x ]; do
  5718. +while true ; do
  5719.      case $1 in
  5720. +    "") break ;;
  5721. +
  5722.      -c) instcmd="$cpprog"
  5723.          shift
  5724.          continue;;
  5725. @@ -74,12 +76,10 @@ while [ x"$1" != x ]; do
  5726.          shift
  5727.          continue;;
  5728.  
  5729. -    *)  if [ x"$src" = x ]
  5730. -        then
  5731. -        src=$1
  5732. -        else
  5733. -        dst=$1
  5734. -        fi
  5735. +    *)  case "$src" in
  5736. +        "") src=$1 ;;
  5737. +        *)  dst=$1 ;;
  5738. +        esac
  5739.          shift
  5740.          continue;;
  5741.      esac
  5742. diff -rup --new-file baseline/fsf/dejagnu/expect/pty_termios.c amiga/fsf/dejagnu/expect/pty_termios.c
  5743. --- baseline/fsf/dejagnu/expect/pty_termios.c    Mon Mar 21 17:14:56 1994
  5744. +++ amiga/fsf/dejagnu/expect/pty_termios.c    Sat Sep 28 00:00:00 1996
  5745. @@ -15,6 +15,11 @@ would appreciate credit if you use this 
  5746.  #endif
  5747.  
  5748.  #include "expect_cf.h"
  5749. +
  5750. +#ifdef __amigaos__
  5751. +#define HAVE_GETPTY
  5752. +#endif
  5753. +
  5754.  #ifdef HAVE_UNISTD_H
  5755.  #  include <unistd.h>
  5756.  #endif
  5757. @@ -75,7 +80,11 @@ static char *slave_name;
  5758.  #endif
  5759.  
  5760.  #if defined(HAVE_GETPTY)
  5761. +#ifdef __amigaos__
  5762. +#define MAXPTYNAMELEN 32
  5763. +#else
  5764.  #include <sys/vty.h>
  5765. +#endif
  5766.  static char master_name[MAXPTYNAMELEN];
  5767.  static char slave_name[MAXPTYNAMELEN];
  5768.  #endif
  5769. @@ -114,7 +123,7 @@ char *name;        /* name of pty */
  5770.      int pid;
  5771.      
  5772.      old = signal(SIGCHLD, SIG_DFL);
  5773. -    switch (pid = fork()) {
  5774. +    switch (pid = vfork()) {
  5775.      case 0: /* child */
  5776.          exec_stty("/bin/stty","/bin/stty",s);
  5777.          break;
  5778. @@ -168,6 +177,7 @@ pty_stty(s,name)
  5779.  char *s;        /* args to stty */
  5780.  char *name;        /* name of pty */
  5781.  {
  5782. +#ifndef __amigaos__
  5783.  #define MAX_ARGLIST 10240
  5784.      char buf[MAX_ARGLIST];    /* overkill is easier */
  5785.      RETSIGTYPE (*old)();    /* save old sigalarm handler */
  5786. @@ -180,6 +190,7 @@ char *name;        /* name of pty */
  5787.      old = signal(SIGCHLD, SIG_DFL);
  5788.      system(buf);
  5789.      signal(SIGCHLD, old);    /* restore signal handler */
  5790. +#endif
  5791.  }
  5792.  
  5793.  int exp_dev_tty;    /* file descriptor to /dev/tty or -1 if none */
  5794. @@ -270,7 +281,11 @@ exp_init_pty()
  5795.  #endif /* HAVE_PTYM */
  5796.  
  5797.  
  5798. +#ifdef __amigaos__
  5799. +        exp_dev_tty = -1;
  5800. +#else
  5801.      exp_dev_tty = open("/dev/tty",O_RDWR);
  5802. +#endif
  5803.      knew_dev_tty = (exp_dev_tty != -1);
  5804.      if (knew_dev_tty) ttytype(GET_TTYTYPE,exp_dev_tty,0,0,(char *)0);
  5805.  }
  5806. @@ -281,6 +296,19 @@ exp_init_pty()
  5807.  #define W_OK 02
  5808.  #endif
  5809.  
  5810. +#ifdef __amigaos__
  5811. +static int getpty(char *master, char *slave, int mode)
  5812. +{
  5813. +  static unsigned short id;
  5814. +
  5815. +  if (id == 0)
  5816. +    id = (getpid() ^ time(NULL)) & 0xffff;
  5817. +  sprintf(master, "/fifo/expect_pty%05u/rwemks", id);
  5818. +  sprintf(slave, "/fifo/expect_pty%05u/rweksc", id++);
  5819. +  return open(master, mode);
  5820. +}
  5821. +#endif
  5822. +
  5823.  int
  5824.  getptymaster()
  5825.  {
  5826. @@ -398,6 +426,21 @@ int control;    /* if 1, enable pty trappin
  5827.  #endif /* HAVE_PTYTRAP */
  5828.  }
  5829.  
  5830. +#ifdef __amigaos__
  5831. +void set_to_raw(char *slave, char *name)
  5832. +{
  5833. +  if (name == NULL)
  5834. +    return;
  5835. +  if (strstr(name, "-echo") || (strstr(name, "raw") && !strstr(name, "-raw")) || strstr(name, "-cooked"))
  5836. +  {
  5837. +    char *p = slave + strlen(slave) - 1;
  5838. +          
  5839. +    if (*p == 'c')
  5840. +      *p = '\0';
  5841. +  }
  5842. +}
  5843. +#endif
  5844. +
  5845.  int
  5846.  getptyslave(ttycopy,ttyinit,stty_args)
  5847.  int ttycopy;
  5848. @@ -407,6 +450,9 @@ char *stty_args;
  5849.      int slave, slave2;
  5850.      char buf[10240];
  5851.  
  5852. +#ifdef __amigaos__
  5853. +        set_to_raw(slave_name, stty_args);
  5854. +#endif
  5855.      if (0 > (slave = open(slave_name, O_RDWR))) return(-1);
  5856.  
  5857.  #if defined(HAVE_PTMX_BSD)
  5858. diff -rup --new-file baseline/fsf/dejagnu/expect/tests/expect.test amiga/fsf/dejagnu/expect/tests/expect.test
  5859. --- baseline/fsf/dejagnu/expect/tests/expect.test    Mon Mar 21 17:15:46 1994
  5860. +++ amiga/fsf/dejagnu/expect/tests/expect.test    Sat Sep 28 00:00:00 1996
  5861. @@ -10,8 +10,10 @@ catch {unset x}
  5862.  
  5863.  log_user 0
  5864.  
  5865. +set stty_init raw
  5866.  spawn cat -u
  5867. -stty -echo < $spawn_out(slave,name)
  5868. +set stty_init sane
  5869. +#stty -echo < $spawn_out(slave,name)
  5870.  
  5871.  test pid-1.1 {exact pattern} {
  5872.      expect "*"
  5873. diff -rup --new-file baseline/fsf/dejagnu/expect/testsuite/expect.tests/expect-tests.exp amiga/fsf/dejagnu/expect/testsuite/expect.tests/expect-tests.exp
  5874. --- baseline/fsf/dejagnu/expect/testsuite/expect.tests/expect-tests.exp    Wed Mar 30 18:12:30 1994
  5875. +++ amiga/fsf/dejagnu/expect/testsuite/expect.tests/expect-tests.exp    Sat Sep 28 00:00:00 1996
  5876. @@ -23,6 +23,7 @@
  5877.  # the initial work on the version of these tests from the tcl release was done
  5878.  # by Mary Ann May-Pumphrey of Sun Microsystems.
  5879.  #
  5880. +
  5881.  if $tracelevel then {
  5882.      strace $tracelevel
  5883.      }
  5884. @@ -65,7 +66,7 @@ expect {
  5885.      pass [lindex $expect_out(0,string) 1]
  5886.      exp_continue
  5887.      }
  5888. -    -re "\[\r\n\]*\\+* \[a-z\]*-\[.0-9\]* FAILED\[\r\n\]*" {
  5889. +    -re "\[\r\n\]*---- \[a-z\]*-\[.0-9\]* FAILED\[\r\n\]*" {
  5890.      fail [lindex $expect_out(0,string) 1]
  5891.      exp_continue
  5892.      }
  5893. diff -rup --new-file baseline/fsf/dejagnu/manifests/bin amiga/fsf/dejagnu/manifests/bin
  5894. --- baseline/fsf/dejagnu/manifests/bin    Wed Dec 31 17:00:00 1969
  5895. +++ amiga/fsf/dejagnu/manifests/bin    Sat Sep 28 00:00:00 1996
  5896. @@ -0,0 +1,33 @@
  5897. +COPYING
  5898. +COPYING.info
  5899. +bin/expect
  5900. +bin/m68k-amigaos-runtest
  5901. +bin/runtest
  5902. +bin/tclsh
  5903. +include/Dbg.h
  5904. +include/expect.h
  5905. +include/expect_cf.h
  5906. +include/expect_comm.h
  5907. +include/expect_tcl.h
  5908. +include/tcl.h
  5909. +lib/dejagnu/bug.exp
  5910. +lib/dejagnu/config.guess
  5911. +lib/dejagnu/debugger.exp
  5912. +lib/dejagnu/framework.exp
  5913. +lib/dejagnu/remote.exp
  5914. +lib/dejagnu/runtest.exp
  5915. +lib/dejagnu/site.exp
  5916. +lib/dejagnu/udi.exp
  5917. +lib/dejagnu/util-defs.exp
  5918. +lib/dejagnu/utils.exp
  5919. +lib/dejagnu/vrtx.exp
  5920. +lib/dejagnu/vxworks.exp
  5921. +lib/libexpect.a
  5922. +lib/libtcl.a
  5923. +lib/tcl/init.tcl
  5924. +lib/tcl/parray.tcl
  5925. +lib/tcl/tclIndex
  5926. +man/man1/configure.1
  5927. +man/man1/expect.1
  5928. +man/man1/runtest.1
  5929. +man/man3/libexpect.3
  5930. diff -rup --new-file baseline/fsf/dejagnu/manifests/src amiga/fsf/dejagnu/manifests/src
  5931. --- baseline/fsf/dejagnu/manifests/src    Wed Dec 31 17:00:00 1969
  5932. +++ amiga/fsf/dejagnu/manifests/src    Sat Sep 28 00:00:00 1996
  5933. @@ -0,0 +1,419 @@
  5934. +fsf/dejagnu/.cvsignore
  5935. +fsf/dejagnu/COPYING
  5936. +fsf/dejagnu/COPYING.LIB
  5937. +fsf/dejagnu/CYGNUS
  5938. +fsf/dejagnu/ChangeLog
  5939. +fsf/dejagnu/Makefile.in
  5940. +fsf/dejagnu/Product-Info
  5941. +fsf/dejagnu/README
  5942. +fsf/dejagnu/config.guess
  5943. +fsf/dejagnu/config.sub
  5944. +fsf/dejagnu/config/ChangeLog
  5945. +fsf/dejagnu/config/mh-a68bsd
  5946. +fsf/dejagnu/config/mh-aix
  5947. +fsf/dejagnu/config/mh-aix386
  5948. +fsf/dejagnu/config/mh-apollo68
  5949. +fsf/dejagnu/config/mh-decstation
  5950. +fsf/dejagnu/config/mh-delta88
  5951. +fsf/dejagnu/config/mh-dgux
  5952. +fsf/dejagnu/config/mh-hp300
  5953. +fsf/dejagnu/config/mh-hpux
  5954. +fsf/dejagnu/config/mh-irix4
  5955. +fsf/dejagnu/config/mh-irix5
  5956. +fsf/dejagnu/config/mh-linux
  5957. +fsf/dejagnu/config/mh-lynxos
  5958. +fsf/dejagnu/config/mh-lynxosrs6k
  5959. +fsf/dejagnu/config/mh-ncr3000
  5960. +fsf/dejagnu/config/mh-riscos
  5961. +fsf/dejagnu/config/mh-sco
  5962. +fsf/dejagnu/config/mh-solaris
  5963. +fsf/dejagnu/config/mh-sun
  5964. +fsf/dejagnu/config/mh-sun3
  5965. +fsf/dejagnu/config/mh-sysv
  5966. +fsf/dejagnu/config/mh-sysv4
  5967. +fsf/dejagnu/config/mh-vaxult2
  5968. +fsf/dejagnu/configure
  5969. +fsf/dejagnu/configure.in
  5970. +fsf/dejagnu/dejagnu/ChangeLog
  5971. +fsf/dejagnu/dejagnu/Makefile.in
  5972. +fsf/dejagnu/dejagnu/README
  5973. +fsf/dejagnu/dejagnu/TODO
  5974. +fsf/dejagnu/dejagnu/config/mh-linux
  5975. +fsf/dejagnu/dejagnu/config/mh-sysv4
  5976. +fsf/dejagnu/dejagnu/configure.in
  5977. +fsf/dejagnu/dejagnu/contrib/README
  5978. +fsf/dejagnu/dejagnu/contrib/test-g++
  5979. +fsf/dejagnu/dejagnu/contrib/test-target
  5980. +fsf/dejagnu/dejagnu/contrib/test-tool
  5981. +fsf/dejagnu/dejagnu/contrib/testit
  5982. +fsf/dejagnu/dejagnu/doc/.cvsignore
  5983. +fsf/dejagnu/dejagnu/doc/Makefile.in
  5984. +fsf/dejagnu/dejagnu/doc/configure.in
  5985. +fsf/dejagnu/dejagnu/doc/dejagnu.texi
  5986. +fsf/dejagnu/dejagnu/doc/expect.texi
  5987. +fsf/dejagnu/dejagnu/doc/runtest.1
  5988. +fsf/dejagnu/dejagnu/doc/tcl.texi
  5989. +fsf/dejagnu/dejagnu/example/Makefile.in
  5990. +fsf/dejagnu/dejagnu/example/calc/Makefile.in
  5991. +fsf/dejagnu/dejagnu/example/calc/calc.1
  5992. +fsf/dejagnu/dejagnu/example/calc/calc.c
  5993. +fsf/dejagnu/dejagnu/example/calc/calc.h.in
  5994. +fsf/dejagnu/dejagnu/example/calc/configure
  5995. +fsf/dejagnu/dejagnu/example/calc/configure.in
  5996. +fsf/dejagnu/dejagnu/example/calc/testsuite/calc.test/calc.exp
  5997. +fsf/dejagnu/dejagnu/example/calc/testsuite/config/unix.exp
  5998. +fsf/dejagnu/dejagnu/example/configure.in
  5999. +fsf/dejagnu/dejagnu/lib/bug.exp
  6000. +fsf/dejagnu/dejagnu/lib/debugger.exp
  6001. +fsf/dejagnu/dejagnu/lib/framework.exp
  6002. +fsf/dejagnu/dejagnu/lib/remote.exp
  6003. +fsf/dejagnu/dejagnu/lib/udi.exp
  6004. +fsf/dejagnu/dejagnu/lib/util-defs.exp
  6005. +fsf/dejagnu/dejagnu/lib/utils.exp
  6006. +fsf/dejagnu/dejagnu/lib/vrtx.exp
  6007. +fsf/dejagnu/dejagnu/lib/vxworks.exp
  6008. +fsf/dejagnu/dejagnu/runtest
  6009. +fsf/dejagnu/dejagnu/runtest.exp
  6010. +fsf/dejagnu/dejagnu/site.tmpl
  6011. +fsf/dejagnu/dejagnu/tcl-mode.el
  6012. +fsf/dejagnu/dejagnu/testsuite/Makefile.in
  6013. +fsf/dejagnu/dejagnu/testsuite/config/default.exp
  6014. +fsf/dejagnu/dejagnu/testsuite/configure.in
  6015. +fsf/dejagnu/dejagnu/testsuite/runtest.all/options.exp
  6016. +fsf/dejagnu/etc/ChangeLog
  6017. +fsf/dejagnu/etc/Makefile.in
  6018. +fsf/dejagnu/etc/cfg-paper.texi
  6019. +fsf/dejagnu/etc/configure.in
  6020. +fsf/dejagnu/etc/configure.man
  6021. +fsf/dejagnu/etc/configure.texi
  6022. +fsf/dejagnu/etc/make-stds.texi
  6023. +fsf/dejagnu/etc/srctree.texi
  6024. +fsf/dejagnu/etc/standards.texi
  6025. +fsf/dejagnu/etc/subst-strings
  6026. +fsf/dejagnu/expect/CHANGES.2to3
  6027. +fsf/dejagnu/expect/CHANGES.3to4
  6028. +fsf/dejagnu/expect/CHANGES.4to5
  6029. +fsf/dejagnu/expect/ChangeLog
  6030. +fsf/dejagnu/expect/Dbg.c
  6031. +fsf/dejagnu/expect/Dbg.h
  6032. +fsf/dejagnu/expect/FAQ
  6033. +fsf/dejagnu/expect/HISTORY
  6034. +fsf/dejagnu/expect/INSTALL
  6035. +fsf/dejagnu/expect/Makefile.in
  6036. +fsf/dejagnu/expect/README
  6037. +fsf/dejagnu/expect/configure
  6038. +fsf/dejagnu/expect/configure.in
  6039. +fsf/dejagnu/expect/example/Makefile
  6040. +fsf/dejagnu/expect/example/archie
  6041. +fsf/dejagnu/expect/example/autopasswd
  6042. +fsf/dejagnu/expect/example/chess.exp
  6043. +fsf/dejagnu/expect/example/chesslib++.c
  6044. +fsf/dejagnu/expect/example/chesslib.c
  6045. +fsf/dejagnu/expect/example/chesslib2.c
  6046. +fsf/dejagnu/expect/example/dislocate
  6047. +fsf/dejagnu/expect/example/dislocate.man
  6048. +fsf/dejagnu/expect/example/dvorak
  6049. +fsf/dejagnu/expect/example/ftp-rfc
  6050. +fsf/dejagnu/expect/example/kibitz
  6051. +fsf/dejagnu/expect/example/kibitz.man
  6052. +fsf/dejagnu/expect/example/lpunlock
  6053. +fsf/dejagnu/expect/example/passmass
  6054. +fsf/dejagnu/expect/example/passmass.man
  6055. +fsf/dejagnu/expect/example/rftp
  6056. +fsf/dejagnu/expect/example/rlogin-cwd
  6057. +fsf/dejagnu/expect/example/robohunt
  6058. +fsf/dejagnu/expect/example/rogue.exp
  6059. +fsf/dejagnu/expect/example/timed-read
  6060. +fsf/dejagnu/expect/example/timed-run
  6061. +fsf/dejagnu/expect/example/tknewsbiff
  6062. +fsf/dejagnu/expect/example/tknewsbiff.man
  6063. +fsf/dejagnu/expect/example/tkpasswd
  6064. +fsf/dejagnu/expect/example/weather
  6065. +fsf/dejagnu/expect/example/xkibitz
  6066. +fsf/dejagnu/expect/example/xkibitz.man
  6067. +fsf/dejagnu/expect/example/xpstat
  6068. +fsf/dejagnu/expect/exp_clib.c
  6069. +fsf/dejagnu/expect/exp_command.c
  6070. +fsf/dejagnu/expect/exp_command.h
  6071. +fsf/dejagnu/expect/exp_console.c
  6072. +fsf/dejagnu/expect/exp_event.h
  6073. +fsf/dejagnu/expect/exp_glob.c
  6074. +fsf/dejagnu/expect/exp_int.h
  6075. +fsf/dejagnu/expect/exp_inter.c
  6076. +fsf/dejagnu/expect/exp_log.c
  6077. +fsf/dejagnu/expect/exp_log.h
  6078. +fsf/dejagnu/expect/exp_main_exp.c
  6079. +fsf/dejagnu/expect/exp_main_sub.c
  6080. +fsf/dejagnu/expect/exp_main_tk.c
  6081. +fsf/dejagnu/expect/exp_poll.c
  6082. +fsf/dejagnu/expect/exp_printify.c
  6083. +fsf/dejagnu/expect/exp_printify.h
  6084. +fsf/dejagnu/expect/exp_prog.h
  6085. +fsf/dejagnu/expect/exp_pty.c
  6086. +fsf/dejagnu/expect/exp_pty.h
  6087. +fsf/dejagnu/expect/exp_regexp.c
  6088. +fsf/dejagnu/expect/exp_regexp.h
  6089. +fsf/dejagnu/expect/exp_rename.h
  6090. +fsf/dejagnu/expect/exp_select.c
  6091. +fsf/dejagnu/expect/exp_simple.c
  6092. +fsf/dejagnu/expect/exp_strf.c
  6093. +fsf/dejagnu/expect/exp_test.c
  6094. +fsf/dejagnu/expect/exp_tk.c
  6095. +fsf/dejagnu/expect/exp_trap.c
  6096. +fsf/dejagnu/expect/exp_tstamp.h
  6097. +fsf/dejagnu/expect/exp_tty.c
  6098. +fsf/dejagnu/expect/exp_tty.h
  6099. +fsf/dejagnu/expect/exp_tty_in.h
  6100. +fsf/dejagnu/expect/exp_win.c
  6101. +fsf/dejagnu/expect/exp_win.h
  6102. +fsf/dejagnu/expect/expect.c
  6103. +fsf/dejagnu/expect/expect.h
  6104. +fsf/dejagnu/expect/expect.man
  6105. +fsf/dejagnu/expect/expect_cf.h.in
  6106. +fsf/dejagnu/expect/expect_comm.h
  6107. +fsf/dejagnu/expect/expect_tcl.h
  6108. +fsf/dejagnu/expect/expectk.man
  6109. +fsf/dejagnu/expect/fixcat
  6110. +fsf/dejagnu/expect/fixline1
  6111. +fsf/dejagnu/expect/install.sh
  6112. +fsf/dejagnu/expect/libexpect.man
  6113. +fsf/dejagnu/expect/pty_sgttyb.c
  6114. +fsf/dejagnu/expect/pty_termios.c
  6115. +fsf/dejagnu/expect/pty_unicos.c
  6116. +fsf/dejagnu/expect/regress.ps
  6117. +fsf/dejagnu/expect/scripts.ps
  6118. +fsf/dejagnu/expect/seminal.ps
  6119. +fsf/dejagnu/expect/sysadm.ps
  6120. +fsf/dejagnu/expect/tcl-debug.ps
  6121. +fsf/dejagnu/expect/tests/README
  6122. +fsf/dejagnu/expect/tests/all
  6123. +fsf/dejagnu/expect/tests/cat.test
  6124. +fsf/dejagnu/expect/tests/defs
  6125. +fsf/dejagnu/expect/tests/expect.test
  6126. +fsf/dejagnu/expect/tests/pid.test
  6127. +fsf/dejagnu/expect/tests/spawn.test
  6128. +fsf/dejagnu/expect/tests/stty.test
  6129. +fsf/dejagnu/expect/testsuite/ChangeLog
  6130. +fsf/dejagnu/expect/testsuite/Makefile.in
  6131. +fsf/dejagnu/expect/testsuite/config/default.exp
  6132. +fsf/dejagnu/expect/testsuite/configure.in
  6133. +fsf/dejagnu/expect/testsuite/expect.tests/expect-tests.exp
  6134. +fsf/dejagnu/expect/vgrindefs
  6135. +fsf/dejagnu/install.sh
  6136. +fsf/dejagnu/manifests/bin
  6137. +fsf/dejagnu/manifests/src
  6138. +fsf/dejagnu/move-if-change
  6139. +fsf/dejagnu/tcl/ChangeLog
  6140. +fsf/dejagnu/tcl/Makefile.in
  6141. +fsf/dejagnu/tcl/README.configure
  6142. +fsf/dejagnu/tcl/changes
  6143. +fsf/dejagnu/tcl/compat/README
  6144. +fsf/dejagnu/tcl/compat/dirent.h
  6145. +fsf/dejagnu/tcl/compat/dirent2.h
  6146. +fsf/dejagnu/tcl/compat/float.h
  6147. +fsf/dejagnu/tcl/compat/getcwd.c
  6148. +fsf/dejagnu/tcl/compat/limits.h
  6149. +fsf/dejagnu/tcl/compat/opendir.c
  6150. +fsf/dejagnu/tcl/compat/stdlib.h
  6151. +fsf/dejagnu/tcl/compat/strerror.c
  6152. +fsf/dejagnu/tcl/compat/string.h
  6153. +fsf/dejagnu/tcl/compat/strstr.c
  6154. +fsf/dejagnu/tcl/compat/strtod.c
  6155. +fsf/dejagnu/tcl/compat/strtol.c
  6156. +fsf/dejagnu/tcl/compat/strtoul.c
  6157. +fsf/dejagnu/tcl/compat/tmpnam.c
  6158. +fsf/dejagnu/tcl/compat/unistd.h
  6159. +fsf/dejagnu/tcl/compat/waitpid.c
  6160. +fsf/dejagnu/tcl/configure
  6161. +fsf/dejagnu/tcl/configure.in
  6162. +fsf/dejagnu/tcl/doc/AddErrInfo.3
  6163. +fsf/dejagnu/tcl/doc/AppInit.3
  6164. +fsf/dejagnu/tcl/doc/Async.3
  6165. +fsf/dejagnu/tcl/doc/Backslash.3
  6166. +fsf/dejagnu/tcl/doc/CallDel.3
  6167. +fsf/dejagnu/tcl/doc/CmdCmplt.3
  6168. +fsf/dejagnu/tcl/doc/Concat.3
  6169. +fsf/dejagnu/tcl/doc/CrtCommand.3
  6170. +fsf/dejagnu/tcl/doc/CrtInterp.3
  6171. +fsf/dejagnu/tcl/doc/CrtMathFnc.3
  6172. +fsf/dejagnu/tcl/doc/CrtPipelin.3
  6173. +fsf/dejagnu/tcl/doc/CrtTrace.3
  6174. +fsf/dejagnu/tcl/doc/DString.3
  6175. +fsf/dejagnu/tcl/doc/DetachPids.3
  6176. +fsf/dejagnu/tcl/doc/EnterFile.3
  6177. +fsf/dejagnu/tcl/doc/Eval.3
  6178. +fsf/dejagnu/tcl/doc/ExprLong.3
  6179. +fsf/dejagnu/tcl/doc/GetInt.3
  6180. +fsf/dejagnu/tcl/doc/Hash.3
  6181. +fsf/dejagnu/tcl/doc/Interp.3
  6182. +fsf/dejagnu/tcl/doc/LinkVar.3
  6183. +fsf/dejagnu/tcl/doc/PrintDbl.3
  6184. +fsf/dejagnu/tcl/doc/RecordEval.3
  6185. +fsf/dejagnu/tcl/doc/RegExp.3
  6186. +fsf/dejagnu/tcl/doc/SetRecLmt.3
  6187. +fsf/dejagnu/tcl/doc/SetResult.3
  6188. +fsf/dejagnu/tcl/doc/SetVar.3
  6189. +fsf/dejagnu/tcl/doc/SplitList.3
  6190. +fsf/dejagnu/tcl/doc/StrMatch.3
  6191. +fsf/dejagnu/tcl/doc/Tcl.n
  6192. +fsf/dejagnu/tcl/doc/TildeSubst.3
  6193. +fsf/dejagnu/tcl/doc/TraceVar.3
  6194. +fsf/dejagnu/tcl/doc/append.n
  6195. +fsf/dejagnu/tcl/doc/array.n
  6196. +fsf/dejagnu/tcl/doc/break.n
  6197. +fsf/dejagnu/tcl/doc/case.n
  6198. +fsf/dejagnu/tcl/doc/catch.n
  6199. +fsf/dejagnu/tcl/doc/cd.n
  6200. +fsf/dejagnu/tcl/doc/close.n
  6201. +fsf/dejagnu/tcl/doc/concat.n
  6202. +fsf/dejagnu/tcl/doc/continue.n
  6203. +fsf/dejagnu/tcl/doc/eof.n
  6204. +fsf/dejagnu/tcl/doc/error.n
  6205. +fsf/dejagnu/tcl/doc/eval.n
  6206. +fsf/dejagnu/tcl/doc/exec.n
  6207. +fsf/dejagnu/tcl/doc/exit.n
  6208. +fsf/dejagnu/tcl/doc/expr.n
  6209. +fsf/dejagnu/tcl/doc/file.n
  6210. +fsf/dejagnu/tcl/doc/flush.n
  6211. +fsf/dejagnu/tcl/doc/for.n
  6212. +fsf/dejagnu/tcl/doc/foreach.n
  6213. +fsf/dejagnu/tcl/doc/format.n
  6214. +fsf/dejagnu/tcl/doc/gets.n
  6215. +fsf/dejagnu/tcl/doc/glob.n
  6216. +fsf/dejagnu/tcl/doc/global.n
  6217. +fsf/dejagnu/tcl/doc/history.n
  6218. +fsf/dejagnu/tcl/doc/if.n
  6219. +fsf/dejagnu/tcl/doc/incr.n
  6220. +fsf/dejagnu/tcl/doc/info.n
  6221. +fsf/dejagnu/tcl/doc/join.n
  6222. +fsf/dejagnu/tcl/doc/lappend.n
  6223. +fsf/dejagnu/tcl/doc/library.n
  6224. +fsf/dejagnu/tcl/doc/lindex.n
  6225. +fsf/dejagnu/tcl/doc/linsert.n
  6226. +fsf/dejagnu/tcl/doc/list.n
  6227. +fsf/dejagnu/tcl/doc/llength.n
  6228. +fsf/dejagnu/tcl/doc/lrange.n
  6229. +fsf/dejagnu/tcl/doc/lreplace.n
  6230. +fsf/dejagnu/tcl/doc/lsearch.n
  6231. +fsf/dejagnu/tcl/doc/lsort.n
  6232. +fsf/dejagnu/tcl/doc/man.macros
  6233. +fsf/dejagnu/tcl/doc/open.n
  6234. +fsf/dejagnu/tcl/doc/pid.n
  6235. +fsf/dejagnu/tcl/doc/proc.n
  6236. +fsf/dejagnu/tcl/doc/puts.n
  6237. +fsf/dejagnu/tcl/doc/pwd.n
  6238. +fsf/dejagnu/tcl/doc/read.n
  6239. +fsf/dejagnu/tcl/doc/regexp.n
  6240. +fsf/dejagnu/tcl/doc/regsub.n
  6241. +fsf/dejagnu/tcl/doc/rename.n
  6242. +fsf/dejagnu/tcl/doc/return.n
  6243. +fsf/dejagnu/tcl/doc/scan.n
  6244. +fsf/dejagnu/tcl/doc/seek.n
  6245. +fsf/dejagnu/tcl/doc/set.n
  6246. +fsf/dejagnu/tcl/doc/source.n
  6247. +fsf/dejagnu/tcl/doc/split.n
  6248. +fsf/dejagnu/tcl/doc/string.n
  6249. +fsf/dejagnu/tcl/doc/switch.n
  6250. +fsf/dejagnu/tcl/doc/tclsh.1
  6251. +fsf/dejagnu/tcl/doc/tclvars.n
  6252. +fsf/dejagnu/tcl/doc/tell.n
  6253. +fsf/dejagnu/tcl/doc/time.n
  6254. +fsf/dejagnu/tcl/doc/trace.n
  6255. +fsf/dejagnu/tcl/doc/unknown.n
  6256. +fsf/dejagnu/tcl/doc/unset.n
  6257. +fsf/dejagnu/tcl/doc/uplevel.n
  6258. +fsf/dejagnu/tcl/doc/upvar.n
  6259. +fsf/dejagnu/tcl/doc/usenix.ps
  6260. +fsf/dejagnu/tcl/doc/usenix.text
  6261. +fsf/dejagnu/tcl/doc/while.n
  6262. +fsf/dejagnu/tcl/install.sh
  6263. +fsf/dejagnu/tcl/library/init.tcl
  6264. +fsf/dejagnu/tcl/library/parray.tcl
  6265. +fsf/dejagnu/tcl/library/tclIndex
  6266. +fsf/dejagnu/tcl/panic.c
  6267. +fsf/dejagnu/tcl/patchlevel.h
  6268. +fsf/dejagnu/tcl/porting.notes
  6269. +fsf/dejagnu/tcl/regexp.c
  6270. +fsf/dejagnu/tcl/tcl.h
  6271. +fsf/dejagnu/tcl/tclAppInit.c
  6272. +fsf/dejagnu/tcl/tclAsync.c
  6273. +fsf/dejagnu/tcl/tclBasic.c
  6274. +fsf/dejagnu/tcl/tclCkalloc.c
  6275. +fsf/dejagnu/tcl/tclCmdAH.c
  6276. +fsf/dejagnu/tcl/tclCmdIL.c
  6277. +fsf/dejagnu/tcl/tclCmdMZ.c
  6278. +fsf/dejagnu/tcl/tclEnv.c
  6279. +fsf/dejagnu/tcl/tclExpr.c
  6280. +fsf/dejagnu/tcl/tclGet.c
  6281. +fsf/dejagnu/tcl/tclGlob.c
  6282. +fsf/dejagnu/tcl/tclHash.c
  6283. +fsf/dejagnu/tcl/tclHistory.c
  6284. +fsf/dejagnu/tcl/tclInt.h
  6285. +fsf/dejagnu/tcl/tclLink.c
  6286. +fsf/dejagnu/tcl/tclMain.c
  6287. +fsf/dejagnu/tcl/tclMtherr.c
  6288. +fsf/dejagnu/tcl/tclParse.c
  6289. +fsf/dejagnu/tcl/tclProc.c
  6290. +fsf/dejagnu/tcl/tclRegexp.h
  6291. +fsf/dejagnu/tcl/tclTest.c
  6292. +fsf/dejagnu/tcl/tclUnix.h
  6293. +fsf/dejagnu/tcl/tclUnixAZ.c
  6294. +fsf/dejagnu/tcl/tclUnixStr.c
  6295. +fsf/dejagnu/tcl/tclUnixUtil.c
  6296. +fsf/dejagnu/tcl/tclUtil.c
  6297. +fsf/dejagnu/tcl/tclVar.c
  6298. +fsf/dejagnu/tcl/tests/README
  6299. +fsf/dejagnu/tcl/tests/all
  6300. +fsf/dejagnu/tcl/tests/append.test
  6301. +fsf/dejagnu/tcl/tests/async.test
  6302. +fsf/dejagnu/tcl/tests/case.test
  6303. +fsf/dejagnu/tcl/tests/cd.test
  6304. +fsf/dejagnu/tcl/tests/cmdinfo.test
  6305. +fsf/dejagnu/tcl/tests/concat.test
  6306. +fsf/dejagnu/tcl/tests/dcall.test
  6307. +fsf/dejagnu/tcl/tests/defs
  6308. +fsf/dejagnu/tcl/tests/dstring.test
  6309. +fsf/dejagnu/tcl/tests/env.test
  6310. +fsf/dejagnu/tcl/tests/error.test
  6311. +fsf/dejagnu/tcl/tests/eval.test
  6312. +fsf/dejagnu/tcl/tests/exec.test
  6313. +fsf/dejagnu/tcl/tests/expr.test
  6314. +fsf/dejagnu/tcl/tests/file.test
  6315. +fsf/dejagnu/tcl/tests/for.test
  6316. +fsf/dejagnu/tcl/tests/format.test
  6317. +fsf/dejagnu/tcl/tests/glob.test
  6318. +fsf/dejagnu/tcl/tests/history.test
  6319. +fsf/dejagnu/tcl/tests/if.test
  6320. +fsf/dejagnu/tcl/tests/incr.test
  6321. +fsf/dejagnu/tcl/tests/info.test
  6322. +fsf/dejagnu/tcl/tests/join.test
  6323. +fsf/dejagnu/tcl/tests/lindex.test
  6324. +fsf/dejagnu/tcl/tests/link.test
  6325. +fsf/dejagnu/tcl/tests/linsert.test
  6326. +fsf/dejagnu/tcl/tests/list.test
  6327. +fsf/dejagnu/tcl/tests/llength.test
  6328. +fsf/dejagnu/tcl/tests/lrange.test
  6329. +fsf/dejagnu/tcl/tests/lreplace.test
  6330. +fsf/dejagnu/tcl/tests/lsearch.test
  6331. +fsf/dejagnu/tcl/tests/lsort.test
  6332. +fsf/dejagnu/tcl/tests/misc.test
  6333. +fsf/dejagnu/tcl/tests/open.test
  6334. +fsf/dejagnu/tcl/tests/parse.test
  6335. +fsf/dejagnu/tcl/tests/pid.test
  6336. +fsf/dejagnu/tcl/tests/proc.test
  6337. +fsf/dejagnu/tcl/tests/regexp.test
  6338. +fsf/dejagnu/tcl/tests/rename.test
  6339. +fsf/dejagnu/tcl/tests/scan.test
  6340. +fsf/dejagnu/tcl/tests/set.test
  6341. +fsf/dejagnu/tcl/tests/source.test
  6342. +fsf/dejagnu/tcl/tests/split.test
  6343. +fsf/dejagnu/tcl/tests/string.test
  6344. +fsf/dejagnu/tcl/tests/switch.test
  6345. +fsf/dejagnu/tcl/tests/trace.test
  6346. +fsf/dejagnu/tcl/tests/unknown.test
  6347. +fsf/dejagnu/tcl/tests/uplevel.test
  6348. +fsf/dejagnu/tcl/tests/upvar.test
  6349. +fsf/dejagnu/tcl/tests/while.test
  6350. +fsf/dejagnu/tcl/testsuite/ChangeLog
  6351. +fsf/dejagnu/tcl/testsuite/config/default.exp
  6352. +fsf/dejagnu/tcl/testsuite/tcl.tests/tcl-test.exp
  6353. diff -rup --new-file baseline/fsf/dejagnu/tcl/Makefile.in amiga/fsf/dejagnu/tcl/Makefile.in
  6354. --- baseline/fsf/dejagnu/tcl/Makefile.in    Tue Apr  5 18:00:41 1994
  6355. +++ amiga/fsf/dejagnu/tcl/Makefile.in    Sat Sep 28 00:00:00 1996
  6356. @@ -21,7 +21,7 @@
  6357.  #
  6358.  # both these values get replaced by running configure
  6359.  #
  6360. -prefix =    /usr/local
  6361. +prefix =    /ade
  6362.  exec_prefix =    $(prefix)
  6363.  
  6364.  # Directory in which to install the library of Tcl scripts (note:
  6365. @@ -54,7 +54,7 @@ MANN_DIR =    $(MAN_DIR)/mann
  6366.  
  6367.  # To change the compiler switches, for example to change from -O
  6368.  # to -g, change the following line:
  6369. -CFLAGS = -g
  6370. +CFLAGS = -O
  6371.  
  6372.  # To disable ANSI-C procedure prototypes reverse the comment characters
  6373.  # on the following lines:
  6374. diff -rup --new-file baseline/fsf/dejagnu/tcl/configure amiga/fsf/dejagnu/tcl/configure
  6375. --- baseline/fsf/dejagnu/tcl/configure    Tue Apr 12 16:45:29 1994
  6376. +++ amiga/fsf/dejagnu/tcl/configure    Mon Sep 30 22:39:12 1996
  6377. @@ -1,53 +1,57 @@
  6378. -#!/bin/sh
  6379. +#! /bin/sh
  6380. +
  6381.  # Guess values for system-dependent variables and create Makefiles.
  6382. -# Generated automatically using autoconf version 1.7.9 
  6383. -# Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  6384. +# Generated automatically using autoconf version 2.10 
  6385. +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6386. +#
  6387. +# This configure script is free software; the Free Software Foundation
  6388. +# gives unlimited permission to copy, distribute and modify it.
  6389.  
  6390. -# This configure script is free software; you can redistribute it and/or
  6391. -# modify it under the terms of the GNU General Public License as published
  6392. -# by the Free Software Foundation; either version 2, or (at your option)
  6393. -# any later version.
  6394. -
  6395. -# This script is distributed in the hope that it will be useful, but
  6396. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  6397. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  6398. -# Public License for more details.
  6399. -
  6400. -# You should have received a copy of the GNU General Public License
  6401. -# along with this program; if not, write to the Free Software
  6402. -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  6403. -
  6404. -# Save the original args to write them into config.status later.
  6405. -ac_configure_args="$*"
  6406. -
  6407. -# Only options that might do something get documented.
  6408. -ac_usage="Usage: configure [options] [host]
  6409. -Options: [defaults in brackets]
  6410. ---enable-FEATURE[=VAL]    include FEATURE [VAL=yes]
  6411. ---exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  6412. ---help            print this message
  6413. ---prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  6414. ---quiet, --silent    do not print \`checking for...' messages
  6415. ---srcdir=DIR        find the sources in DIR [configure dir or ..]
  6416. ---verbose        print results of checks
  6417. ---version        print the version of autoconf that created configure
  6418. ---with-PACKAGE        use external PACKAGE
  6419. ---without-PACKAGE    do not use external PACKAGE"
  6420. +# Defaults:
  6421. +ac_help=
  6422. +ac_default_prefix=/usr/local
  6423. +# Any additions from configure.in:
  6424.  
  6425.  # Initialize some variables set by options.
  6426. +# The variables have the same names as the options, with
  6427. +# dashes changed to underlines.
  6428.  build=NONE
  6429. -exec_prefix=
  6430. +cache_file=./config.cache
  6431. +exec_prefix=NONE
  6432.  host=NONE
  6433. -norecursion=
  6434. -prefix=
  6435. -program_prefix=
  6436. -program_suffix=
  6437. -program_transform_name=
  6438. -ac_silent=
  6439. +no_create=
  6440. +nonopt=NONE
  6441. +no_recursion=
  6442. +prefix=NONE
  6443. +program_prefix=NONE
  6444. +program_suffix=NONE
  6445. +program_transform_name=s,x,x,
  6446. +silent=
  6447.  site=
  6448.  srcdir=
  6449.  target=NONE
  6450. -ac_verbose=
  6451. +verbose=
  6452. +x_includes=NONE
  6453. +x_libraries=NONE
  6454. +bindir='${exec_prefix}/bin'
  6455. +sbindir='${exec_prefix}/sbin'
  6456. +libexecdir='${exec_prefix}/libexec'
  6457. +datadir='${prefix}/share'
  6458. +sysconfdir='${prefix}/etc'
  6459. +sharedstatedir='${prefix}/com'
  6460. +localstatedir='${prefix}/var'
  6461. +libdir='${exec_prefix}/lib'
  6462. +includedir='${prefix}/include'
  6463. +oldincludedir='/usr/include'
  6464. +infodir='${prefix}/info'
  6465. +guidedir='${prefix}/guide'
  6466. +psdir='${prefix}/ps'
  6467. +dvidir='${prefix}/dvi'
  6468. +mandir='${prefix}/man'
  6469. +
  6470. +# Initialize some other variables.
  6471. +subdirs=
  6472. +MFLAGS= MAKEFLAGS=
  6473.  
  6474.  ac_prev=
  6475.  for ac_option
  6476. @@ -60,26 +64,52 @@ do
  6477.      continue
  6478.    fi
  6479.  
  6480. -  # Accept but ignore most of the Cygnus configure options,
  6481. -  # so we can diagnose typos and other invalid options.
  6482. -
  6483.    case "$ac_option" in
  6484. -  *=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  6485. +  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  6486.    *) ac_optarg= ;;
  6487.    esac
  6488.  
  6489. +  # Accept the important Cygnus configure options, so we can diagnose typos.
  6490. +
  6491.    case "$ac_option" in
  6492.  
  6493. -  -build | --build | --buil | --bui | --bu | --b)
  6494. +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  6495. +    ac_prev=bindir ;;
  6496. +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  6497. +    bindir="$ac_optarg" ;;
  6498. +
  6499. +  -build | --build | --buil | --bui | --bu)
  6500.      ac_prev=build ;;
  6501. -  -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  6502. +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  6503.      build="$ac_optarg" ;;
  6504.  
  6505. +  -cache-file | --cache-file | --cache-fil | --cache-fi \
  6506. +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  6507. +    ac_prev=cache_file ;;
  6508. +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  6509. +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  6510. +    cache_file="$ac_optarg" ;;
  6511. +
  6512. +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  6513. +    ac_prev=datadir ;;
  6514. +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  6515. +  | --da=*)
  6516. +    datadir="$ac_optarg" ;;
  6517. +
  6518. +  -disable-* | --disable-*)
  6519. +    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  6520. +    # Reject names that are not valid shell variable names.
  6521. +    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  6522. +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  6523. +    fi
  6524. +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  6525. +    eval "enable_${ac_feature}=no" ;;
  6526. +
  6527.    -enable-* | --enable-*)
  6528.      ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  6529. -    # Reject names that aren't valid shell variable names.
  6530. +    # Reject names that are not valid shell variable names.
  6531.      if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  6532. -      echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  6533. +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  6534.      fi
  6535.      ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  6536.      case "$ac_option" in
  6537. @@ -88,7 +118,6 @@ do
  6538.      esac
  6539.      eval "enable_${ac_feature}='$ac_optarg'" ;;
  6540.  
  6541. -  # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  6542.    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  6543.    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  6544.    | --exec | --exe | --ex)
  6545. @@ -98,12 +127,66 @@ do
  6546.    | --exec=* | --exe=* | --ex=*)
  6547.      exec_prefix="$ac_optarg" ;;
  6548.  
  6549. -  -gas | --gas | --ga | --g) with_gas=1 ;; # Obsolete; use --with-gas.
  6550. +  -gas | --gas | --ga | --g)
  6551. +    # Obsolete; use --with-gas.
  6552. +    with_gas=yes ;;
  6553.  
  6554.    -help | --help | --hel | --he)
  6555. +    # Omit some internal or obsolete options to make the list less imposing.
  6556. +    # This message is too long to be a string in the A/UX 3.1 sh.
  6557.      cat << EOF
  6558. -$ac_usage
  6559. +Usage: configure [options] [host]
  6560. +Options: [defaults in brackets after descriptions]
  6561. +Configuration:
  6562. +  --cache-file=FILE       cache test results in FILE
  6563. +  --help                  print this message
  6564. +  --no-create             do not create output files
  6565. +  --quiet, --silent       do not print \`checking...' messages
  6566. +  --version               print the version of autoconf that created configure
  6567. +Directory and file names:
  6568. +  --prefix=PREFIX         install architecture-independent files in PREFIX
  6569. +                          [$ac_default_prefix]
  6570. +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  6571. +                          [same as prefix]
  6572. +  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  6573. +  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  6574. +  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  6575. +  --datadir=DIR           read-only architecture-independent data in DIR
  6576. +                          [PREFIX/share]
  6577. +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  6578. +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  6579. +                          [PREFIX/com]
  6580. +  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  6581. +  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  6582. +  --includedir=DIR        C header files in DIR [PREFIX/include]
  6583. +  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  6584. +  --infodir=DIR           info documentation in DIR [PREFIX/info]
  6585. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  6586. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  6587. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  6588. +  --mandir=DIR            man documentation in DIR [PREFIX/man]
  6589. +  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  6590. +  --program-prefix=PREFIX prepend PREFIX to installed program names
  6591. +  --program-suffix=SUFFIX append SUFFIX to installed program names
  6592. +  --program-transform-name=PROGRAM
  6593. +                          run sed PROGRAM on installed program names
  6594.  EOF
  6595. +    cat << EOF
  6596. +Host type:
  6597. +  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  6598. +  --host=HOST             configure for HOST [guessed]
  6599. +  --target=TARGET         configure for TARGET [TARGET=HOST]
  6600. +Features and packages:
  6601. +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  6602. +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  6603. +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  6604. +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  6605. +  --x-includes=DIR        X include files are in DIR
  6606. +  --x-libraries=DIR       X library files are in DIR
  6607. +EOF
  6608. +    if test -n "$ac_help"; then
  6609. +      echo "--enable and --with options recognized:$ac_help"
  6610. +    fi
  6611.      exit 0 ;;
  6612.  
  6613.    -host | --host | --hos | --ho)
  6614. @@ -111,11 +194,76 @@ EOF
  6615.    -host=* | --host=* | --hos=* | --ho=*)
  6616.      host="$ac_optarg" ;;
  6617.  
  6618. -  -nfp | --nfp | --nf) with_fp=no ;; # Obsolete; use --without-fp.
  6619. -
  6620. -  -norecursion | --norecursion | --norecursio | --norecursi \
  6621. -  | --norecurs | --norecur | --norecu | --norec | --nore | --nor | --no)
  6622. -  norecursion=yes ;;
  6623. +  -includedir | --includedir | --includedi | --included | --include \
  6624. +  | --includ | --inclu | --incl | --inc)
  6625. +    ac_prev=includedir ;;
  6626. +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  6627. +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  6628. +    includedir="$ac_optarg" ;;
  6629. +
  6630. +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  6631. +    ac_prev=infodir ;;
  6632. +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  6633. +    infodir="$ac_optarg" ;;
  6634. +
  6635. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  6636. +   ac_prev=guidedir ;;
  6637. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  6638. +
  6639. + -psdir | --psdir | --psdi | --psd | --ps)
  6640. +   ac_prev=psdir ;;
  6641. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  6642. +
  6643. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  6644. +   ac_prev=dvidir ;;
  6645. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  6646. +
  6647. +  -libdir | --libdir | --libdi | --libd)
  6648. +    ac_prev=libdir ;;
  6649. +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  6650. +    libdir="$ac_optarg" ;;
  6651. +
  6652. +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  6653. +  | --libexe | --libex | --libe)
  6654. +    ac_prev=libexecdir ;;
  6655. +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  6656. +  | --libexe=* | --libex=* | --libe=*)
  6657. +    libexecdir="$ac_optarg" ;;
  6658. +
  6659. +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  6660. +  | --localstate | --localstat | --localsta | --localst \
  6661. +  | --locals | --local | --loca | --loc | --lo)
  6662. +    ac_prev=localstatedir ;;
  6663. +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  6664. +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  6665. +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  6666. +    localstatedir="$ac_optarg" ;;
  6667. +
  6668. +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  6669. +    ac_prev=mandir ;;
  6670. +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  6671. +    mandir="$ac_optarg" ;;
  6672. +
  6673. +  -nfp | --nfp | --nf)
  6674. +    # Obsolete; use --without-fp.
  6675. +    with_fp=no ;;
  6676. +
  6677. +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  6678. +  | --no-cr | --no-c)
  6679. +    no_create=yes ;;
  6680. +
  6681. +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  6682. +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  6683. +    no_recursion=yes ;;
  6684. +
  6685. +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  6686. +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  6687. +  | --oldin | --oldi | --old | --ol | --o)
  6688. +    ac_prev=oldincludedir ;;
  6689. +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  6690. +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  6691. +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  6692. +    oldincludedir="$ac_optarg" ;;
  6693.  
  6694.    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  6695.      ac_prev=prefix ;;
  6696. @@ -155,11 +303,28 @@ EOF
  6697.  
  6698.    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6699.    | -silent | --silent | --silen | --sile | --sil)
  6700. -    ac_silent=yes ;;
  6701. +    silent=yes ;;
  6702. +
  6703. +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  6704. +    ac_prev=sbindir ;;
  6705. +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  6706. +  | --sbi=* | --sb=*)
  6707. +    sbindir="$ac_optarg" ;;
  6708. +
  6709. +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  6710. +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  6711. +  | --sharedst | --shareds | --shared | --share | --shar \
  6712. +  | --sha | --sh)
  6713. +    ac_prev=sharedstatedir ;;
  6714. +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  6715. +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  6716. +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  6717. +  | --sha=* | --sh=*)
  6718. +    sharedstatedir="$ac_optarg" ;;
  6719.  
  6720.    -site | --site | --sit)
  6721.      ac_prev=site ;;
  6722. -  -site= | --site=* | --sit=*)
  6723. +  -site=* | --site=* | --sit=*)
  6724.      site="$ac_optarg" ;;
  6725.  
  6726.    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  6727. @@ -167,23 +332,30 @@ EOF
  6728.    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  6729.      srcdir="$ac_optarg" ;;
  6730.  
  6731. +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  6732. +  | --syscon | --sysco | --sysc | --sys | --sy)
  6733. +    ac_prev=sysconfdir ;;
  6734. +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  6735. +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  6736. +    sysconfdir="$ac_optarg" ;;
  6737. +
  6738.    -target | --target | --targe | --targ | --tar | --ta | --t)
  6739.      ac_prev=target ;;
  6740.    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  6741.      target="$ac_optarg" ;;
  6742.  
  6743.    -v | -verbose | --verbose | --verbos | --verbo | --verb)
  6744. -      ac_verbose=yes ;;
  6745. +    verbose=yes ;;
  6746.  
  6747.    -version | --version | --versio | --versi | --vers)
  6748. -    echo "configure generated by autoconf version 1.7.9"
  6749. +    echo "configure generated by autoconf version 2.10"
  6750.      exit 0 ;;
  6751.  
  6752.    -with-* | --with-*)
  6753.      ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  6754. -    # Reject names that aren't valid shell variable names.
  6755. +    # Reject names that are not valid shell variable names.
  6756.      if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  6757. -      echo "configure: $ac_package: invalid package name" >&2; exit 1
  6758. +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  6759.      fi
  6760.      ac_package=`echo $ac_package| sed 's/-/_/g'`
  6761.      case "$ac_option" in
  6762. @@ -194,42 +366,95 @@ EOF
  6763.  
  6764.    -without-* | --without-*)
  6765.      ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  6766. -    # Reject names that aren't valid shell variable names.
  6767. +    # Reject names that are not valid shell variable names.
  6768.      if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  6769. -      echo "configure: $ac_package: invalid package name" >&2; exit 1
  6770. +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  6771.      fi
  6772.      ac_package=`echo $ac_package| sed 's/-/_/g'`
  6773.      eval "with_${ac_package}=no" ;;
  6774.  
  6775. -  --x) with_x=1 ;; # Obsolete; use --with-x.
  6776. +  --x)
  6777. +    # Obsolete; use --with-x.
  6778. +    with_x=yes ;;
  6779. +
  6780. +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  6781. +  | --x-incl | --x-inc | --x-in | --x-i)
  6782. +    ac_prev=x_includes ;;
  6783. +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  6784. +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  6785. +    x_includes="$ac_optarg" ;;
  6786. +
  6787. +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  6788. +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  6789. +    ac_prev=x_libraries ;;
  6790. +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  6791. +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  6792. +    x_libraries="$ac_optarg" ;;
  6793.  
  6794. -  -*) echo "configure: warning: $ac_option: invalid option; use --help to show usage" >&2
  6795. +  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  6796.      ;;
  6797.  
  6798. -  *) 
  6799. -    if test -n "`echo $ac_option| sed 's/[-a-z0-9]//g'`"; then
  6800. -      echo "configure: warning: $ac_option: invalid host type" >&2
  6801. +  *)
  6802. +    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  6803. +      echo "configure: warning: $ac_option: invalid host type" 1>&2
  6804. +    fi
  6805. +    if test "x$nonopt" != xNONE; then
  6806. +      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  6807.      fi
  6808. +    nonopt="$ac_option"
  6809.      ;;
  6810.  
  6811.    esac
  6812.  done
  6813.  
  6814.  if test -n "$ac_prev"; then
  6815. -  echo "configure: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  6816. +  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  6817.  fi
  6818.  
  6819. -trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  6820. -trap 'rm -fr confdefs* $ac_clean_files' 0
  6821. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  6822.  
  6823. -# Save the original args if we used an alternate arg parser.
  6824. -ac_configure_args="${ac_configure_args-$*}"
  6825. +# File descriptor usage:
  6826. +# 0 standard input
  6827. +# 1 file creation
  6828. +# 2 errors and warnings
  6829. +# 3 some systems may open it to /dev/tty
  6830. +# 4 used on the Kubota Titan
  6831. +# 6 checking for... messages and results
  6832. +# 5 compiler messages saved in config.log
  6833. +if test "$silent" = yes; then
  6834. +  exec 6>/dev/null
  6835. +else
  6836. +  exec 6>&1
  6837. +fi
  6838. +exec 5>./config.log
  6839. +
  6840. +echo "\
  6841. +This file contains any messages produced by compilers while
  6842. +running configure, to aid debugging if configure makes a mistake.
  6843. +" 1>&5
  6844. +
  6845. +# Strip out --no-create and --no-recursion so they do not pile up.
  6846. +# Also quote any args containing shell metacharacters.
  6847. +ac_configure_args=
  6848. +for ac_arg
  6849. +do
  6850. +  case "$ac_arg" in
  6851. +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  6852. +  | --no-cr | --no-c) ;;
  6853. +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  6854. +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  6855. +  *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  6856. +  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  6857. +  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  6858. +  esac
  6859. +done
  6860.  
  6861.  # NLS nuisances.
  6862. +# Only set LANG and LC_ALL to C if already set.
  6863.  # These must not be set unconditionally because not all systems understand
  6864.  # e.g. LANG=C (notably SCO).
  6865. -if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  6866. -if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  6867. +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  6868. +if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  6869.  
  6870.  # confdefs.h avoids OS command line length limits that DEFS can exceed.
  6871.  rm -rf conftest* confdefs.h
  6872. @@ -243,7 +468,7 @@ ac_unique_file=tcl.h
  6873.  # Find the source files, if location was not specified.
  6874.  if test -z "$srcdir"; then
  6875.    ac_srcdir_defaulted=yes
  6876. -  # Try the directory containing this script, then `..'.
  6877. +  # Try the directory containing this script, then its parent.
  6878.    ac_prog=$0
  6879.    ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  6880.    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  6881. @@ -251,102 +476,312 @@ if test -z "$srcdir"; then
  6882.    if test ! -r $srcdir/$ac_unique_file; then
  6883.      srcdir=..
  6884.    fi
  6885. +else
  6886. +  ac_srcdir_defaulted=no
  6887.  fi
  6888.  if test ! -r $srcdir/$ac_unique_file; then
  6889. -  if test x$ac_srcdir_defaulted = xyes; then
  6890. -    echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  6891. +  if test "$ac_srcdir_defaulted" = yes; then
  6892. +    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  6893. +  else
  6894. +    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  6895. +  fi
  6896. +fi
  6897. +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  6898. +
  6899. +# Prefer explicitly selected file to automatically selected ones.
  6900. +if test -z "$CONFIG_SITE"; then
  6901. +  if test "x$prefix" != xNONE; then
  6902. +    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  6903.    else
  6904. -    echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  6905. +    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  6906.    fi
  6907.  fi
  6908. +for ac_site_file in $CONFIG_SITE; do
  6909. +  if test -r "$ac_site_file"; then
  6910. +    echo "loading site script $ac_site_file"
  6911. +    . "$ac_site_file"
  6912. +  fi
  6913. +done
  6914. +
  6915. +if test -r "$cache_file"; then
  6916. +  echo "loading cache $cache_file"
  6917. +  . $cache_file
  6918. +else
  6919. +  echo "creating cache $cache_file"
  6920. +  > $cache_file
  6921. +fi
  6922.  
  6923.  ac_ext=c
  6924. -ac_cpp='${CPP} $CFLAGS'
  6925. -ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  6926. +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6927. +ac_cpp='$CPP $CPPFLAGS'
  6928. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6929. +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6930. +
  6931. +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  6932. +  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  6933. +  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  6934. +    ac_n= ac_c='
  6935. +' ac_t='    '
  6936. +  else
  6937. +    ac_n=-n ac_c= ac_t=
  6938. +  fi
  6939. +else
  6940. +  ac_n= ac_c='\c' ac_t=
  6941. +fi
  6942. +
  6943. +
  6944. +# Extract the first word of "ranlib", so it can be a program name with args.
  6945. +set dummy ranlib; ac_word=$2
  6946. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6947. +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  6948. +  echo $ac_n "(cached) $ac_c" 1>&6
  6949. +else
  6950. +  if test -n "$RANLIB"; then
  6951. +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6952. +else
  6953. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  6954. +  for ac_dir in $PATH; do
  6955. +    test -z "$ac_dir" && ac_dir=.
  6956. +    if test -f $ac_dir/$ac_word; then
  6957. +      ac_cv_prog_RANLIB="ranlib"
  6958. +      break
  6959. +    fi
  6960. +  done
  6961. +  IFS="$ac_save_ifs"
  6962. +  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  6963. +fi
  6964. +fi
  6965. +RANLIB="$ac_cv_prog_RANLIB"
  6966. +if test -n "$RANLIB"; then
  6967. +  echo "$ac_t""$RANLIB" 1>&6
  6968. +else
  6969. +  echo "$ac_t""no" 1>&6
  6970. +fi
  6971.  
  6972. -if test -z "$RANLIB"; then
  6973. -  # Extract the first word of `ranlib', so it can be a program name with args.
  6974. -  set ac_dummy ranlib; ac_word=$2
  6975. -  test -n "$ac_silent" || echo "checking for $ac_word"
  6976. +# Extract the first word of "gcc", so it can be a program name with args.
  6977. +set dummy gcc; ac_word=$2
  6978. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6979. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  6980. +  echo $ac_n "(cached) $ac_c" 1>&6
  6981. +else
  6982. +  if test -n "$CC"; then
  6983. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  6984. +else
  6985. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  6986. +  for ac_dir in $PATH; do
  6987. +    test -z "$ac_dir" && ac_dir=.
  6988. +    if test -f $ac_dir/$ac_word; then
  6989. +      ac_cv_prog_CC="gcc"
  6990. +      break
  6991. +    fi
  6992. +  done
  6993. +  IFS="$ac_save_ifs"
  6994. +fi
  6995. +fi
  6996. +CC="$ac_cv_prog_CC"
  6997. +if test -n "$CC"; then
  6998. +  echo "$ac_t""$CC" 1>&6
  6999. +else
  7000. +  echo "$ac_t""no" 1>&6
  7001. +fi
  7002. +
  7003. +if test -z "$CC"; then
  7004. +  # Extract the first word of "cc", so it can be a program name with args.
  7005. +set dummy cc; ac_word=$2
  7006. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  7007. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  7008. +  echo $ac_n "(cached) $ac_c" 1>&6
  7009. +else
  7010. +  if test -n "$CC"; then
  7011. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  7012. +else
  7013.    IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  7014. +  ac_prog_rejected=no
  7015.    for ac_dir in $PATH; do
  7016.      test -z "$ac_dir" && ac_dir=.
  7017.      if test -f $ac_dir/$ac_word; then
  7018. -      RANLIB="ranlib"
  7019. +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  7020. +        ac_prog_rejected=yes
  7021. +    continue
  7022. +      fi
  7023. +      ac_cv_prog_CC="cc"
  7024.        break
  7025.      fi
  7026.    done
  7027.    IFS="$ac_save_ifs"
  7028. +if test $ac_prog_rejected = yes; then
  7029. +  # We found a bogon in the path, so make sure we never use it.
  7030. +  set dummy $ac_cv_prog_CC
  7031. +  shift
  7032. +  if test $# -gt 0; then
  7033. +    # We chose a different compiler from the bogus one.
  7034. +    # However, it has the same basename, so the bogon will be chosen
  7035. +    # first if we set CC to just the basename; use the full file name.
  7036. +    shift
  7037. +    set dummy "$ac_dir/$ac_word" "$@"
  7038. +    shift
  7039. +    ac_cv_prog_CC="$@"
  7040. +  fi
  7041. +fi
  7042. +fi
  7043. +fi
  7044. +CC="$ac_cv_prog_CC"
  7045. +if test -n "$CC"; then
  7046. +  echo "$ac_t""$CC" 1>&6
  7047. +else
  7048. +  echo "$ac_t""no" 1>&6
  7049. +fi
  7050. +
  7051. +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  7052. +fi
  7053. +
  7054. +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  7055. +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  7056. +  echo $ac_n "(cached) $ac_c" 1>&6
  7057. +else
  7058. +  cat > conftest.c <<EOF
  7059. +#ifdef __GNUC__
  7060. +  yes;
  7061. +#endif
  7062. +EOF
  7063. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  7064. +  ac_cv_prog_gcc=yes
  7065. +else
  7066. +  ac_cv_prog_gcc=no
  7067. +fi
  7068. +fi
  7069. +
  7070. +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  7071. +if test $ac_cv_prog_gcc = yes; then
  7072. +  GCC=yes
  7073. +  if test "${CFLAGS+set}" != set; then
  7074. +    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  7075. +if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  7076. +  echo $ac_n "(cached) $ac_c" 1>&6
  7077. +else
  7078. +  echo 'void f(){}' > conftest.c
  7079. +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  7080. +  ac_cv_prog_gcc_g=yes
  7081. +else
  7082. +  ac_cv_prog_gcc_g=no
  7083. +fi
  7084. +rm -f conftest*
  7085. +
  7086. +fi
  7087. +
  7088. +echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  7089. +    if test $ac_cv_prog_gcc_g = yes; then
  7090. +      CFLAGS="-g -O2"
  7091. +    else
  7092. +      CFLAGS="-O2"
  7093. +    fi
  7094. +  fi
  7095. +else
  7096. +  GCC=
  7097. +  test "${CFLAGS+set}" = set || CFLAGS="-g"
  7098.  fi
  7099. -test -z "$RANLIB" && RANLIB=":"
  7100. -test -n "$RANLIB" && test -n "$ac_verbose" && echo "    setting RANLIB to $RANLIB"
  7101.  
  7102. -test -n "$ac_silent" || echo "checking how to run the C preprocessor"
  7103. +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  7104. +# On Suns, sometimes $CPP names a directory.
  7105. +if test -n "$CPP" && test -d "$CPP"; then
  7106. +  CPP=
  7107. +fi
  7108.  if test -z "$CPP"; then
  7109. -  # This must be in double quotes, not single quotes, because CPP may get
  7110. -  # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  7111. -  # make.  It must be expanded now.
  7112. +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  7113. +  echo $ac_n "(cached) $ac_c" 1>&6
  7114. +else
  7115. +    # This must be in double quotes, not single quotes, because CPP may get
  7116. +  # substituted into the Makefile and "${CC-cc}" will confuse make.
  7117.    CPP="${CC-cc} -E"
  7118. -  cat > conftest.${ac_ext} <<EOF
  7119. +  # On the NeXT, cc -E runs the code through the compiler's parser,
  7120. +  # not just through cpp.
  7121. +  cat > conftest.$ac_ext <<EOF
  7122. +#line 700 "configure"
  7123.  #include "confdefs.h"
  7124. -#include <stdio.h>
  7125. +#include <assert.h>
  7126.  Syntax Error
  7127.  EOF
  7128. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  7129. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7130. +{ (eval echo configure:706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7131. +ac_err=`grep -v '^ *+' conftest.out`
  7132.  if test -z "$ac_err"; then
  7133.    :
  7134.  else
  7135. +  echo "$ac_err" >&5
  7136.    rm -rf conftest*
  7137.    CPP="${CC-cc} -E -traditional-cpp"
  7138. -  cat > conftest.${ac_ext} <<EOF
  7139. +  cat > conftest.$ac_ext <<EOF
  7140. +#line 715 "configure"
  7141.  #include "confdefs.h"
  7142. -#include <stdio.h>
  7143. +#include <assert.h>
  7144.  Syntax Error
  7145.  EOF
  7146. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  7147. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7148. +{ (eval echo configure:721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7149. +ac_err=`grep -v '^ *+' conftest.out`
  7150.  if test -z "$ac_err"; then
  7151.    :
  7152.  else
  7153. +  echo "$ac_err" >&5
  7154.    rm -rf conftest*
  7155.    CPP=/lib/cpp
  7156.  fi
  7157.  rm -f conftest*
  7158.  fi
  7159.  rm -f conftest*
  7160. +  ac_cv_prog_CPP="$CPP"
  7161. +fi
  7162. +  CPP="$ac_cv_prog_CPP"
  7163. +else
  7164. +  ac_cv_prog_CPP="$CPP"
  7165.  fi
  7166. -test -n "$ac_verbose" && echo "    setting CPP to $CPP"
  7167. +echo "$ac_t""$CPP" 1>&6
  7168.  
  7169. -CC=${CC-cc}
  7170.  
  7171.  
  7172.  #--------------------------------------------------------------------
  7173.  # On a few rare braindead systems, libm.a is the same as libc.a
  7174.  #--------------------------------------------------------------------
  7175.  
  7176. -test -n "$ac_silent" || echo "checking for sin"
  7177. -cat > conftest.${ac_ext} <<EOF
  7178. +echo $ac_n "checking for -lm""... $ac_c" 1>&6
  7179. +ac_lib_var=`echo m'_'main | tr './+\055' '__p_'`
  7180. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7181. +  echo $ac_n "(cached) $ac_c" 1>&6
  7182. +else
  7183. +  ac_save_LIBS="$LIBS"
  7184. +LIBS="-lm  $LIBS"
  7185. +cat > conftest.$ac_ext <<EOF
  7186. +#line 755 "configure"
  7187.  #include "confdefs.h"
  7188. -#include <ctype.h>
  7189. -int main() { return 0; }
  7190. -int t() { 
  7191. -/* The GNU C library defines this for functions which it implements
  7192. -    to always fail with ENOSYS.  Some functions are actually named
  7193. -    something starting with __ and the normal name is an alias.  */
  7194. -#if defined (__stub_sin) || defined (__stub___sin)
  7195. -choke me
  7196. -#else
  7197. -/* Override any gcc2 internal prototype to avoid an error.  */
  7198. -extern char sin(); sin();
  7199. -#endif
  7200. +
  7201. +int main() { t(); return 0; }
  7202. +int t() {
  7203. +main()
  7204.  ; return 0; }
  7205.  EOF
  7206. -if eval $ac_compile; then
  7207. -  :
  7208. +if { (eval echo configure:763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  7209. +  rm -rf conftest*
  7210. +  eval "ac_cv_lib_$ac_lib_var=yes"
  7211.  else
  7212.    rm -rf conftest*
  7213. -  LIBS="-lm" ; test -n "$verbose" && echo "    Adding -lm to library list"
  7214. +  eval "ac_cv_lib_$ac_lib_var=no"
  7215.  fi
  7216.  rm -f conftest*
  7217. +LIBS="$ac_save_LIBS"
  7218. +
  7219. +fi
  7220. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7221. +  echo "$ac_t""yes" 1>&6
  7222. +    ac_tr_lib=HAVE_LIB`echo m | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  7223. +  cat >> confdefs.h <<EOF
  7224. +#define $ac_tr_lib 1
  7225. +EOF
  7226. +
  7227. +  LIBS="-lm $LIBS"
  7228. +
  7229. +else
  7230. +  echo "$ac_t""no" 1>&6
  7231. +fi
  7232.  
  7233.  
  7234.  #--------------------------------------------------------------------
  7235. @@ -356,157 +791,256 @@ rm -f conftest*
  7236.  
  7237.  for ac_func in getcwd opendir strerror strstr
  7238.  do
  7239. -test -n "$ac_silent" || echo "checking for ${ac_func}"
  7240. -cat > conftest.${ac_ext} <<EOF
  7241. -#include "confdefs.h"
  7242. -#include <ctype.h>
  7243. -int main() { return 0; }
  7244. -int t() { 
  7245. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7246. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7247. +  echo $ac_n "(cached) $ac_c" 1>&6
  7248. +else
  7249. +  cat > conftest.$ac_ext <<EOF
  7250. +#line 800 "configure"
  7251. +#include "confdefs.h"
  7252. +/* System header to define __stub macros and hopefully few prototypes,
  7253. +    which can conflict with char $ac_func(); below.  */
  7254. +#include <assert.h>
  7255. +/* Override any gcc2 internal prototype to avoid an error.  */
  7256. +/* We use char because int might match the return type of a gcc2
  7257. +    builtin and then its argument prototype would still apply.  */
  7258. +char $ac_func();
  7259. +
  7260. +int main() { t(); return 0; }
  7261. +int t() {
  7262. +
  7263.  /* The GNU C library defines this for functions which it implements
  7264.      to always fail with ENOSYS.  Some functions are actually named
  7265.      something starting with __ and the normal name is an alias.  */
  7266. -#if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  7267. +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7268.  choke me
  7269.  #else
  7270. -/* Override any gcc2 internal prototype to avoid an error.  */
  7271. -extern char ${ac_func}(); ${ac_func}();
  7272. +$ac_func();
  7273.  #endif
  7274. +
  7275.  ; return 0; }
  7276.  EOF
  7277. -if eval $ac_compile; then
  7278. -  :
  7279. +if { (eval echo configure:824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  7280. +  rm -rf conftest*
  7281. +  eval "ac_cv_func_$ac_func=yes"
  7282.  else
  7283.    rm -rf conftest*
  7284. -  LIBOBJS="$LIBOBJS ${ac_func}.o"
  7285. -test -n "$ac_verbose" && echo "    using ${ac_func}.o instead"
  7286. +  eval "ac_cv_func_$ac_func=no"
  7287.  fi
  7288.  rm -f conftest*
  7289.  
  7290. +fi
  7291. +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7292. +  echo "$ac_t""yes" 1>&6
  7293. +  :
  7294. +else
  7295. +  echo "$ac_t""no" 1>&6
  7296. +LIBOBJS="$LIBOBJS ${ac_func}.o"
  7297. +fi
  7298. +
  7299.  done
  7300.  
  7301.  for ac_func in strtol tmpnam waitpid
  7302.  do
  7303. -test -n "$ac_silent" || echo "checking for ${ac_func}"
  7304. -cat > conftest.${ac_ext} <<EOF
  7305. -#include "confdefs.h"
  7306. -#include <ctype.h>
  7307. -int main() { return 0; }
  7308. -int t() { 
  7309. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7310. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7311. +  echo $ac_n "(cached) $ac_c" 1>&6
  7312. +else
  7313. +  cat > conftest.$ac_ext <<EOF
  7314. +#line 851 "configure"
  7315. +#include "confdefs.h"
  7316. +/* System header to define __stub macros and hopefully few prototypes,
  7317. +    which can conflict with char $ac_func(); below.  */
  7318. +#include <assert.h>
  7319. +/* Override any gcc2 internal prototype to avoid an error.  */
  7320. +/* We use char because int might match the return type of a gcc2
  7321. +    builtin and then its argument prototype would still apply.  */
  7322. +char $ac_func();
  7323. +
  7324. +int main() { t(); return 0; }
  7325. +int t() {
  7326. +
  7327.  /* The GNU C library defines this for functions which it implements
  7328.      to always fail with ENOSYS.  Some functions are actually named
  7329.      something starting with __ and the normal name is an alias.  */
  7330. -#if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  7331. +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7332.  choke me
  7333.  #else
  7334. -/* Override any gcc2 internal prototype to avoid an error.  */
  7335. -extern char ${ac_func}(); ${ac_func}();
  7336. +$ac_func();
  7337.  #endif
  7338. +
  7339.  ; return 0; }
  7340.  EOF
  7341. -if eval $ac_compile; then
  7342. -  :
  7343. +if { (eval echo configure:875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  7344. +  rm -rf conftest*
  7345. +  eval "ac_cv_func_$ac_func=yes"
  7346.  else
  7347.    rm -rf conftest*
  7348. -  LIBOBJS="$LIBOBJS ${ac_func}.o"
  7349. -test -n "$ac_verbose" && echo "    using ${ac_func}.o instead"
  7350. +  eval "ac_cv_func_$ac_func=no"
  7351.  fi
  7352.  rm -f conftest*
  7353.  
  7354. +fi
  7355. +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7356. +  echo "$ac_t""yes" 1>&6
  7357. +  :
  7358. +else
  7359. +  echo "$ac_t""no" 1>&6
  7360. +LIBOBJS="$LIBOBJS ${ac_func}.o"
  7361. +fi
  7362. +
  7363.  done
  7364.  
  7365. -test -n "$ac_silent" || echo "checking for gettimeofday"
  7366. -cat > conftest.${ac_ext} <<EOF
  7367. -#include "confdefs.h"
  7368. -#include <ctype.h>
  7369. -int main() { return 0; }
  7370. -int t() { 
  7371. +echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
  7372. +if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
  7373. +  echo $ac_n "(cached) $ac_c" 1>&6
  7374. +else
  7375. +  cat > conftest.$ac_ext <<EOF
  7376. +#line 900 "configure"
  7377. +#include "confdefs.h"
  7378. +/* System header to define __stub macros and hopefully few prototypes,
  7379. +    which can conflict with char gettimeofday(); below.  */
  7380. +#include <assert.h>
  7381. +/* Override any gcc2 internal prototype to avoid an error.  */
  7382. +/* We use char because int might match the return type of a gcc2
  7383. +    builtin and then its argument prototype would still apply.  */
  7384. +char gettimeofday();
  7385. +
  7386. +int main() { t(); return 0; }
  7387. +int t() {
  7388. +
  7389.  /* The GNU C library defines this for functions which it implements
  7390.      to always fail with ENOSYS.  Some functions are actually named
  7391.      something starting with __ and the normal name is an alias.  */
  7392.  #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
  7393.  choke me
  7394.  #else
  7395. -/* Override any gcc2 internal prototype to avoid an error.  */
  7396. -extern char gettimeofday(); gettimeofday();
  7397. +gettimeofday();
  7398.  #endif
  7399. +
  7400.  ; return 0; }
  7401.  EOF
  7402. -if eval $ac_compile; then
  7403. -  :
  7404. +if { (eval echo configure:924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  7405. +  rm -rf conftest*
  7406. +  eval "ac_cv_func_gettimeofday=yes"
  7407.  else
  7408.    rm -rf conftest*
  7409. -  {
  7410. -test -n "$ac_verbose" && \
  7411. -echo "    defining NO_GETTOD"
  7412. -echo "#define" NO_GETTOD "1" >> confdefs.h
  7413. -DEFS="$DEFS -DNO_GETTOD=1"
  7414. -}
  7415. -
  7416. +  eval "ac_cv_func_gettimeofday=no"
  7417.  fi
  7418.  rm -f conftest*
  7419.  
  7420. -test -n "$ac_silent" || echo "checking for getwd"
  7421. -cat > conftest.${ac_ext} <<EOF
  7422. +fi
  7423. +if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
  7424. +  echo "$ac_t""yes" 1>&6
  7425. +  :
  7426. +else
  7427. +  echo "$ac_t""no" 1>&6
  7428. +cat >> confdefs.h <<\EOF
  7429. +#define NO_GETTOD 1
  7430. +EOF
  7431. +
  7432. +fi
  7433. +
  7434. +echo $ac_n "checking for getwd""... $ac_c" 1>&6
  7435. +if eval "test \"`echo '$''{'ac_cv_func_getwd'+set}'`\" = set"; then
  7436. +  echo $ac_n "(cached) $ac_c" 1>&6
  7437. +else
  7438. +  cat > conftest.$ac_ext <<EOF
  7439. +#line 950 "configure"
  7440.  #include "confdefs.h"
  7441. -#include <ctype.h>
  7442. -int main() { return 0; }
  7443. -int t() { 
  7444. +/* System header to define __stub macros and hopefully few prototypes,
  7445. +    which can conflict with char getwd(); below.  */
  7446. +#include <assert.h>
  7447. +/* Override any gcc2 internal prototype to avoid an error.  */
  7448. +/* We use char because int might match the return type of a gcc2
  7449. +    builtin and then its argument prototype would still apply.  */
  7450. +char getwd();
  7451. +
  7452. +int main() { t(); return 0; }
  7453. +int t() {
  7454. +
  7455.  /* The GNU C library defines this for functions which it implements
  7456.      to always fail with ENOSYS.  Some functions are actually named
  7457.      something starting with __ and the normal name is an alias.  */
  7458.  #if defined (__stub_getwd) || defined (__stub___getwd)
  7459.  choke me
  7460.  #else
  7461. -/* Override any gcc2 internal prototype to avoid an error.  */
  7462. -extern char getwd(); getwd();
  7463. +getwd();
  7464.  #endif
  7465. +
  7466.  ; return 0; }
  7467.  EOF
  7468. -if eval $ac_compile; then
  7469. -  :
  7470. +if { (eval echo configure:974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  7471. +  rm -rf conftest*
  7472. +  eval "ac_cv_func_getwd=yes"
  7473.  else
  7474.    rm -rf conftest*
  7475. -  {
  7476. -test -n "$ac_verbose" && \
  7477. -echo "    defining NO_GETWD"
  7478. -echo "#define" NO_GETWD "1" >> confdefs.h
  7479. -DEFS="$DEFS -DNO_GETWD=1"
  7480. -}
  7481. -
  7482. +  eval "ac_cv_func_getwd=no"
  7483.  fi
  7484.  rm -f conftest*
  7485.  
  7486. -test -n "$ac_silent" || echo "checking for wait3"
  7487. -cat > conftest.${ac_ext} <<EOF
  7488. +fi
  7489. +if eval "test \"`echo '$ac_cv_func_'getwd`\" = yes"; then
  7490. +  echo "$ac_t""yes" 1>&6
  7491. +  :
  7492. +else
  7493. +  echo "$ac_t""no" 1>&6
  7494. +cat >> confdefs.h <<\EOF
  7495. +#define NO_GETWD 1
  7496. +EOF
  7497. +
  7498. +fi
  7499. +
  7500. +echo $ac_n "checking for wait3""... $ac_c" 1>&6
  7501. +if eval "test \"`echo '$''{'ac_cv_func_wait3'+set}'`\" = set"; then
  7502. +  echo $ac_n "(cached) $ac_c" 1>&6
  7503. +else
  7504. +  cat > conftest.$ac_ext <<EOF
  7505. +#line 1000 "configure"
  7506.  #include "confdefs.h"
  7507. -#include <ctype.h>
  7508. -int main() { return 0; }
  7509. -int t() { 
  7510. +/* System header to define __stub macros and hopefully few prototypes,
  7511. +    which can conflict with char wait3(); below.  */
  7512. +#include <assert.h>
  7513. +/* Override any gcc2 internal prototype to avoid an error.  */
  7514. +/* We use char because int might match the return type of a gcc2
  7515. +    builtin and then its argument prototype would still apply.  */
  7516. +char wait3();
  7517. +
  7518. +int main() { t(); return 0; }
  7519. +int t() {
  7520. +
  7521.  /* The GNU C library defines this for functions which it implements
  7522.      to always fail with ENOSYS.  Some functions are actually named
  7523.      something starting with __ and the normal name is an alias.  */
  7524.  #if defined (__stub_wait3) || defined (__stub___wait3)
  7525.  choke me
  7526.  #else
  7527. -/* Override any gcc2 internal prototype to avoid an error.  */
  7528. -extern char wait3(); wait3();
  7529. +wait3();
  7530.  #endif
  7531. +
  7532.  ; return 0; }
  7533.  EOF
  7534. -if eval $ac_compile; then
  7535. -  :
  7536. +if { (eval echo configure:1024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  7537. +  rm -rf conftest*
  7538. +  eval "ac_cv_func_wait3=yes"
  7539.  else
  7540.    rm -rf conftest*
  7541. -  {
  7542. -test -n "$ac_verbose" && \
  7543. -echo "    defining NO_WAIT3"
  7544. -echo "#define" NO_WAIT3 "1" >> confdefs.h
  7545. -DEFS="$DEFS -DNO_WAIT3=1"
  7546. -}
  7547. -
  7548. +  eval "ac_cv_func_wait3=no"
  7549.  fi
  7550.  rm -f conftest*
  7551.  
  7552. +fi
  7553. +if eval "test \"`echo '$ac_cv_func_'wait3`\" = yes"; then
  7554. +  echo "$ac_t""yes" 1>&6
  7555. +  :
  7556. +else
  7557. +  echo "$ac_t""no" 1>&6
  7558. +cat >> confdefs.h <<\EOF
  7559. +#define NO_WAIT3 1
  7560. +EOF
  7561. +
  7562. +fi
  7563. +
  7564.  
  7565.  #--------------------------------------------------------------------
  7566.  #    Supply substitutes for missing POSIX header files.  Special
  7567. @@ -517,13 +1051,15 @@ rm -f conftest*
  7568.  #        - some versions of string.h don't declare procedures such
  7569.  #          as strstr
  7570.  #--------------------------------------------------------------------
  7571. -test -n "$ac_silent" || echo "checking for dirent.h"
  7572. -cat > conftest.${ac_ext} <<EOF
  7573. +echo "checking for dirent.h" 1>&6
  7574. +cat > conftest.$ac_ext <<EOF
  7575. +#line 1057 "configure"
  7576.  #include "confdefs.h"
  7577.  #include <sys/types.h>
  7578.  #include <dirent.h>
  7579. -int main() { return 0; }
  7580. -int t() { 
  7581. +int main() { t(); return 0; }
  7582. +int t() {
  7583. +
  7584.  #ifndef _POSIX_SOURCE
  7585.  #ifdef __Lynx__
  7586.  #error "Lynx headers are usually only valid if really in the POSIX environment"
  7587. @@ -536,12 +1072,12 @@ d = opendir("foobar");
  7588.  entryPtr = readdir(d);
  7589.  p = entryPtr->d_name;
  7590.  closedir(d);
  7591. +
  7592.  ; return 0; }
  7593.  EOF
  7594. -if eval $ac_compile; then
  7595. +if { (eval echo configure:1079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  7596.    rm -rf conftest*
  7597.    tcl_ok=1
  7598. -
  7599.  else
  7600.    rm -rf conftest*
  7601.    tcl_ok=0
  7602. @@ -549,109 +1085,179 @@ fi
  7603.  rm -f conftest*
  7604.  
  7605.  
  7606. -test -n "$ac_silent" || echo "checking for unistd.h"
  7607. -cat > conftest.${ac_ext} <<EOF
  7608. +ac_safe=`echo "unistd.h" | tr './\055' '___'`
  7609. +echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
  7610. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7611. +  echo $ac_n "(cached) $ac_c" 1>&6
  7612. +else
  7613. +  cat > conftest.$ac_ext <<EOF
  7614. +#line 1095 "configure"
  7615.  #include "confdefs.h"
  7616.  #include <unistd.h>
  7617.  EOF
  7618. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  7619. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7620. +{ (eval echo configure:1100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7621. +ac_err=`grep -v '^ *+' conftest.out`
  7622.  if test -z "$ac_err"; then
  7623.    rm -rf conftest*
  7624. -  
  7625. -{
  7626. -test -n "$ac_verbose" && \
  7627. -echo "    defining HAVE_UNISTD_H"
  7628. -echo "#define" HAVE_UNISTD_H "1" >> confdefs.h
  7629. -DEFS="$DEFS -DHAVE_UNISTD_H=1"
  7630. -}
  7631. -
  7632. -
  7633. +  eval "ac_cv_header_$ac_safe=yes"
  7634. +else
  7635. +  echo "$ac_err" >&5
  7636. +  rm -rf conftest*
  7637. +  eval "ac_cv_header_$ac_safe=no"
  7638.  fi
  7639.  rm -f conftest*
  7640. +fi
  7641. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7642. +  echo "$ac_t""yes" 1>&6
  7643. +  cat >> confdefs.h <<\EOF
  7644. +#define HAVE_UNISTD_H 1
  7645. +EOF
  7646. +
  7647. +else
  7648. +  echo "$ac_t""no" 1>&6
  7649. +fi
  7650.  
  7651. -test -n "$ac_silent" || echo "checking for errno.h"
  7652. -cat > conftest.${ac_ext} <<EOF
  7653. +ac_safe=`echo "errno.h" | tr './\055' '___'`
  7654. +echo $ac_n "checking for errno.h""... $ac_c" 1>&6
  7655. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7656. +  echo $ac_n "(cached) $ac_c" 1>&6
  7657. +else
  7658. +  cat > conftest.$ac_ext <<EOF
  7659. +#line 1128 "configure"
  7660.  #include "confdefs.h"
  7661.  #include <errno.h>
  7662.  EOF
  7663. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  7664. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7665. +{ (eval echo configure:1133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7666. +ac_err=`grep -v '^ *+' conftest.out`
  7667.  if test -z "$ac_err"; then
  7668. -  :
  7669. +  rm -rf conftest*
  7670. +  eval "ac_cv_header_$ac_safe=yes"
  7671.  else
  7672. +  echo "$ac_err" >&5
  7673.    rm -rf conftest*
  7674. -  
  7675. -{
  7676. -test -n "$ac_verbose" && \
  7677. -echo "    defining NO_ERRNO_H"
  7678. -echo "#define" NO_ERRNO_H "1" >> confdefs.h
  7679. -DEFS="$DEFS -DNO_ERRNO_H=1"
  7680. -}
  7681. -
  7682. +  eval "ac_cv_header_$ac_safe=no"
  7683.  fi
  7684.  rm -f conftest*
  7685. +fi
  7686. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7687. +  echo "$ac_t""yes" 1>&6
  7688. +  :
  7689. +else
  7690. +  echo "$ac_t""no" 1>&6
  7691. +cat >> confdefs.h <<\EOF
  7692. +#define NO_ERRNO_H 1
  7693. +EOF
  7694. +
  7695. +fi
  7696.  
  7697. -test -n "$ac_silent" || echo "checking for float.h"
  7698. -cat > conftest.${ac_ext} <<EOF
  7699. +ac_safe=`echo "float.h" | tr './\055' '___'`
  7700. +echo $ac_n "checking for float.h""... $ac_c" 1>&6
  7701. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7702. +  echo $ac_n "(cached) $ac_c" 1>&6
  7703. +else
  7704. +  cat > conftest.$ac_ext <<EOF
  7705. +#line 1162 "configure"
  7706.  #include "confdefs.h"
  7707.  #include <float.h>
  7708.  EOF
  7709. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  7710. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7711. +{ (eval echo configure:1167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7712. +ac_err=`grep -v '^ *+' conftest.out`
  7713.  if test -z "$ac_err"; then
  7714. -  :
  7715. +  rm -rf conftest*
  7716. +  eval "ac_cv_header_$ac_safe=yes"
  7717.  else
  7718. +  echo "$ac_err" >&5
  7719.    rm -rf conftest*
  7720. -  
  7721. -{
  7722. -test -n "$ac_verbose" && \
  7723. -echo "    defining NO_FLOAT_H"
  7724. -echo "#define" NO_FLOAT_H "1" >> confdefs.h
  7725. -DEFS="$DEFS -DNO_FLOAT_H=1"
  7726. -}
  7727. -
  7728. +  eval "ac_cv_header_$ac_safe=no"
  7729.  fi
  7730.  rm -f conftest*
  7731. +fi
  7732. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7733. +  echo "$ac_t""yes" 1>&6
  7734. +  :
  7735. +else
  7736. +  echo "$ac_t""no" 1>&6
  7737. +cat >> confdefs.h <<\EOF
  7738. +#define NO_FLOAT_H 1
  7739. +EOF
  7740. +
  7741. +fi
  7742.  
  7743. -test -n "$ac_silent" || echo "checking for limits.h"
  7744. -cat > conftest.${ac_ext} <<EOF
  7745. +ac_safe=`echo "limits.h" | tr './\055' '___'`
  7746. +echo $ac_n "checking for limits.h""... $ac_c" 1>&6
  7747. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7748. +  echo $ac_n "(cached) $ac_c" 1>&6
  7749. +else
  7750. +  cat > conftest.$ac_ext <<EOF
  7751. +#line 1196 "configure"
  7752.  #include "confdefs.h"
  7753.  #include <limits.h>
  7754.  EOF
  7755. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  7756. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7757. +{ (eval echo configure:1201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7758. +ac_err=`grep -v '^ *+' conftest.out`
  7759.  if test -z "$ac_err"; then
  7760. -  :
  7761. +  rm -rf conftest*
  7762. +  eval "ac_cv_header_$ac_safe=yes"
  7763.  else
  7764. +  echo "$ac_err" >&5
  7765.    rm -rf conftest*
  7766. -  
  7767. -{
  7768. -test -n "$ac_verbose" && \
  7769. -echo "    defining NO_LIMITS_H"
  7770. -echo "#define" NO_LIMITS_H "1" >> confdefs.h
  7771. -DEFS="$DEFS -DNO_LIMITS_H=1"
  7772. -}
  7773. -
  7774. +  eval "ac_cv_header_$ac_safe=no"
  7775.  fi
  7776.  rm -f conftest*
  7777. +fi
  7778. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7779. +  echo "$ac_t""yes" 1>&6
  7780. +  :
  7781. +else
  7782. +  echo "$ac_t""no" 1>&6
  7783. +cat >> confdefs.h <<\EOF
  7784. +#define NO_LIMITS_H 1
  7785. +EOF
  7786. +
  7787. +fi
  7788.  
  7789. -test -n "$ac_silent" || echo "checking for stdlib.h"
  7790. -cat > conftest.${ac_ext} <<EOF
  7791. +ac_safe=`echo "stdlib.h" | tr './\055' '___'`
  7792. +echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
  7793. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7794. +  echo $ac_n "(cached) $ac_c" 1>&6
  7795. +else
  7796. +  cat > conftest.$ac_ext <<EOF
  7797. +#line 1230 "configure"
  7798.  #include "confdefs.h"
  7799.  #include <stdlib.h>
  7800.  EOF
  7801. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  7802. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7803. +{ (eval echo configure:1235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7804. +ac_err=`grep -v '^ *+' conftest.out`
  7805.  if test -z "$ac_err"; then
  7806.    rm -rf conftest*
  7807. -  tcl_ok=1
  7808. -
  7809. +  eval "ac_cv_header_$ac_safe=yes"
  7810.  else
  7811. +  echo "$ac_err" >&5
  7812.    rm -rf conftest*
  7813. -  tcl_ok=0
  7814. +  eval "ac_cv_header_$ac_safe=no"
  7815.  fi
  7816.  rm -f conftest*
  7817. +fi
  7818. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7819. +  echo "$ac_t""yes" 1>&6
  7820. +  tcl_ok=1
  7821. +else
  7822. +  echo "$ac_t""no" 1>&6
  7823. +tcl_ok=0
  7824. +fi
  7825.  
  7826. -echo '#include "confdefs.h"
  7827. -#include <stdlib.h>' > conftest.${ac_ext}
  7828. -eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  7829. -if egrep "strtol" conftest.out >/dev/null 2>&1; then
  7830. +cat > conftest.$ac_ext <<EOF
  7831. +#line 1256 "configure"
  7832. +#include "confdefs.h"
  7833. +#include <stdlib.h>
  7834. +EOF
  7835. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7836. +  egrep "strtol" >/dev/null 2>&1; then
  7837.    :
  7838.  else
  7839.    rm -rf conftest*
  7840. @@ -659,21 +1265,27 @@ else
  7841.  fi
  7842.  rm -f conftest*
  7843.  
  7844. -echo '#include "confdefs.h"
  7845. -#include <stdlib.h>' > conftest.${ac_ext}
  7846. -eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  7847. -if egrep "strtoul" conftest.out >/dev/null 2>&1; then
  7848. -  :
  7849. +cat > conftest.$ac_ext <<EOF
  7850. +#line 1270 "configure"
  7851. +#include "confdefs.h"
  7852. +#include <stdlib.h>
  7853. +EOF
  7854. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7855. +  egrep "strtoul" >/dev/null 2>&1; then
  7856. +  :
  7857.  else
  7858.    rm -rf conftest*
  7859.    tcl_ok=0
  7860.  fi
  7861.  rm -f conftest*
  7862.  
  7863. -echo '#include "confdefs.h"
  7864. -#include <stdlib.h>' > conftest.${ac_ext}
  7865. -eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  7866. -if egrep "strtod" conftest.out >/dev/null 2>&1; then
  7867. +cat > conftest.$ac_ext <<EOF
  7868. +#line 1284 "configure"
  7869. +#include "confdefs.h"
  7870. +#include <stdlib.h>
  7871. +EOF
  7872. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7873. +  egrep "strtod" >/dev/null 2>&1; then
  7874.    :
  7875.  else
  7876.    rm -rf conftest*
  7877. @@ -682,35 +1294,49 @@ fi
  7878.  rm -f conftest*
  7879.  
  7880.  if test $tcl_ok = 0; then
  7881. -    
  7882. -{
  7883. -test -n "$ac_verbose" && \
  7884. -echo "    defining NO_STDLIB_H"
  7885. -echo "#define" NO_STDLIB_H "1" >> confdefs.h
  7886. -DEFS="$DEFS -DNO_STDLIB_H=1"
  7887. -}
  7888. +    cat >> confdefs.h <<\EOF
  7889. +#define NO_STDLIB_H 1
  7890. +EOF
  7891.  
  7892.  fi
  7893. -test -n "$ac_silent" || echo "checking for string.h"
  7894. -cat > conftest.${ac_ext} <<EOF
  7895. +ac_safe=`echo "string.h" | tr './\055' '___'`
  7896. +echo $ac_n "checking for string.h""... $ac_c" 1>&6
  7897. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7898. +  echo $ac_n "(cached) $ac_c" 1>&6
  7899. +else
  7900. +  cat > conftest.$ac_ext <<EOF
  7901. +#line 1309 "configure"
  7902.  #include "confdefs.h"
  7903.  #include <string.h>
  7904.  EOF
  7905. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  7906. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7907. +{ (eval echo configure:1314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7908. +ac_err=`grep -v '^ *+' conftest.out`
  7909.  if test -z "$ac_err"; then
  7910.    rm -rf conftest*
  7911. -  tcl_ok=1
  7912. -
  7913. +  eval "ac_cv_header_$ac_safe=yes"
  7914.  else
  7915. +  echo "$ac_err" >&5
  7916.    rm -rf conftest*
  7917. -  tcl_ok=0
  7918. +  eval "ac_cv_header_$ac_safe=no"
  7919.  fi
  7920.  rm -f conftest*
  7921. +fi
  7922. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7923. +  echo "$ac_t""yes" 1>&6
  7924. +  tcl_ok=1
  7925. +else
  7926. +  echo "$ac_t""no" 1>&6
  7927. +tcl_ok=0
  7928. +fi
  7929.  
  7930. -echo '#include "confdefs.h"
  7931. -#include <string.h>' > conftest.${ac_ext}
  7932. -eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  7933. -if egrep "strstr" conftest.out >/dev/null 2>&1; then
  7934. +cat > conftest.$ac_ext <<EOF
  7935. +#line 1335 "configure"
  7936. +#include "confdefs.h"
  7937. +#include <string.h>
  7938. +EOF
  7939. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7940. +  egrep "strstr" >/dev/null 2>&1; then
  7941.    :
  7942.  else
  7943.    rm -rf conftest*
  7944. @@ -718,10 +1344,13 @@ else
  7945.  fi
  7946.  rm -f conftest*
  7947.  
  7948. -echo '#include "confdefs.h"
  7949. -#include <string.h>' > conftest.${ac_ext}
  7950. -eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  7951. -if egrep "strerror" conftest.out >/dev/null 2>&1; then
  7952. +cat > conftest.$ac_ext <<EOF
  7953. +#line 1349 "configure"
  7954. +#include "confdefs.h"
  7955. +#include <string.h>
  7956. +EOF
  7957. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7958. +  egrep "strerror" >/dev/null 2>&1; then
  7959.    :
  7960.  else
  7961.    rm -rf conftest*
  7962. @@ -730,56 +1359,78 @@ fi
  7963.  rm -f conftest*
  7964.  
  7965.  if test $tcl_ok = 0; then
  7966. -    
  7967. -{
  7968. -test -n "$ac_verbose" && \
  7969. -echo "    defining NO_STRING_H"
  7970. -echo "#define" NO_STRING_H "1" >> confdefs.h
  7971. -DEFS="$DEFS -DNO_STRING_H=1"
  7972. -}
  7973. +    cat >> confdefs.h <<\EOF
  7974. +#define NO_STRING_H 1
  7975. +EOF
  7976.  
  7977.  fi
  7978. -test -n "$ac_silent" || echo "checking for sys/time.h"
  7979. -cat > conftest.${ac_ext} <<EOF
  7980. +ac_safe=`echo "sys/time.h" | tr './\055' '___'`
  7981. +echo $ac_n "checking for sys/time.h""... $ac_c" 1>&6
  7982. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7983. +  echo $ac_n "(cached) $ac_c" 1>&6
  7984. +else
  7985. +  cat > conftest.$ac_ext <<EOF
  7986. +#line 1374 "configure"
  7987.  #include "confdefs.h"
  7988.  #include <sys/time.h>
  7989.  EOF
  7990. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  7991. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7992. +{ (eval echo configure:1379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7993. +ac_err=`grep -v '^ *+' conftest.out`
  7994.  if test -z "$ac_err"; then
  7995. -  :
  7996. +  rm -rf conftest*
  7997. +  eval "ac_cv_header_$ac_safe=yes"
  7998.  else
  7999. +  echo "$ac_err" >&5
  8000.    rm -rf conftest*
  8001. -  
  8002. -{
  8003. -test -n "$ac_verbose" && \
  8004. -echo "    defining NO_SYS_TIME_H"
  8005. -echo "#define" NO_SYS_TIME_H "1" >> confdefs.h
  8006. -DEFS="$DEFS -DNO_SYS_TIME_H=1"
  8007. -}
  8008. -
  8009. +  eval "ac_cv_header_$ac_safe=no"
  8010.  fi
  8011.  rm -f conftest*
  8012. +fi
  8013. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8014. +  echo "$ac_t""yes" 1>&6
  8015. +  :
  8016. +else
  8017. +  echo "$ac_t""no" 1>&6
  8018. +cat >> confdefs.h <<\EOF
  8019. +#define NO_SYS_TIME_H 1
  8020. +EOF
  8021. +
  8022. +fi
  8023.  
  8024. -test -n "$ac_silent" || echo "checking for sys/wait.h"
  8025. -cat > conftest.${ac_ext} <<EOF
  8026. +ac_safe=`echo "sys/wait.h" | tr './\055' '___'`
  8027. +echo $ac_n "checking for sys/wait.h""... $ac_c" 1>&6
  8028. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  8029. +  echo $ac_n "(cached) $ac_c" 1>&6
  8030. +else
  8031. +  cat > conftest.$ac_ext <<EOF
  8032. +#line 1408 "configure"
  8033.  #include "confdefs.h"
  8034.  #include <sys/wait.h>
  8035.  EOF
  8036. -ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  8037. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8038. +{ (eval echo configure:1413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8039. +ac_err=`grep -v '^ *+' conftest.out`
  8040.  if test -z "$ac_err"; then
  8041. -  :
  8042. +  rm -rf conftest*
  8043. +  eval "ac_cv_header_$ac_safe=yes"
  8044.  else
  8045. +  echo "$ac_err" >&5
  8046.    rm -rf conftest*
  8047. -  
  8048. -{
  8049. -test -n "$ac_verbose" && \
  8050. -echo "    defining NO_SYS_WAIT_H"
  8051. -echo "#define" NO_SYS_WAIT_H "1" >> confdefs.h
  8052. -DEFS="$DEFS -DNO_SYS_WAIT_H=1"
  8053. -}
  8054. -
  8055. +  eval "ac_cv_header_$ac_safe=no"
  8056.  fi
  8057.  rm -f conftest*
  8058. +fi
  8059. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  8060. +  echo "$ac_t""yes" 1>&6
  8061. +  :
  8062. +else
  8063. +  echo "$ac_t""no" 1>&6
  8064. +cat >> confdefs.h <<\EOF
  8065. +#define NO_SYS_WAIT_H 1
  8066. +EOF
  8067. +
  8068. +fi
  8069.  
  8070.  
  8071.  #--------------------------------------------------------------------
  8072. @@ -788,7 +1439,37 @@ rm -f conftest*
  8073.  #--------------------------------------------------------------------
  8074.  
  8075.  echo "checking for strstr.o"
  8076. -cat > conftest.${ac_ext} <<EOF
  8077. +# If we cannot run a trivial program, we must be cross compiling.
  8078. +echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  8079. +if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  8080. +  echo $ac_n "(cached) $ac_c" 1>&6
  8081. +else
  8082. +  if test "$cross_compiling" = yes; then
  8083. +  ac_cv_c_cross=yes
  8084. +else
  8085. +cat > conftest.$ac_ext <<EOF
  8086. +#line 1452 "configure"
  8087. +#include "confdefs.h"
  8088. +main(){return(0);}
  8089. +EOF
  8090. +{ (eval echo configure:1456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  8091. +if test -s conftest && (./conftest; exit) 2>/dev/null; then
  8092. +  ac_cv_c_cross=no
  8093. +else
  8094. +  ac_cv_c_cross=yes
  8095. +fi
  8096. +fi
  8097. +rm -fr conftest*
  8098. +fi
  8099. +
  8100. +echo "$ac_t""$ac_cv_c_cross" 1>&6
  8101. +cross_compiling=$ac_cv_c_cross
  8102. +
  8103. +if test "$cross_compiling" = yes; then
  8104. +    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  8105. +else
  8106. +cat > conftest.$ac_ext <<EOF
  8107. +#line 1473 "configure"
  8108.  #include "confdefs.h"
  8109.  
  8110.  extern int strstr();
  8111. @@ -798,12 +1479,13 @@ int main()
  8112.  }
  8113.  
  8114.  EOF
  8115. -eval $ac_compile
  8116. +{ (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  8117.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  8118.    :
  8119.  else
  8120.    LIBOBJS="$LIBOBJS strstr.o" 
  8121.  fi
  8122. +fi
  8123.  rm -fr conftest*
  8124.  
  8125.  #--------------------------------------------------------------------
  8126. @@ -812,34 +1494,58 @@ rm -fr conftest*
  8127.  #    pointer for the string "0".
  8128.  #--------------------------------------------------------------------
  8129.  
  8130. -test -n "$ac_silent" || echo "checking for strtoul"
  8131. -cat > conftest.${ac_ext} <<EOF
  8132. -#include "confdefs.h"
  8133. -#include <ctype.h>
  8134. -int main() { return 0; }
  8135. -int t() { 
  8136. +echo $ac_n "checking for strtoul""... $ac_c" 1>&6
  8137. +if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
  8138. +  echo $ac_n "(cached) $ac_c" 1>&6
  8139. +else
  8140. +  cat > conftest.$ac_ext <<EOF
  8141. +#line 1503 "configure"
  8142. +#include "confdefs.h"
  8143. +/* System header to define __stub macros and hopefully few prototypes,
  8144. +    which can conflict with char strtoul(); below.  */
  8145. +#include <assert.h>
  8146. +/* Override any gcc2 internal prototype to avoid an error.  */
  8147. +/* We use char because int might match the return type of a gcc2
  8148. +    builtin and then its argument prototype would still apply.  */
  8149. +char strtoul();
  8150. +
  8151. +int main() { t(); return 0; }
  8152. +int t() {
  8153. +
  8154.  /* The GNU C library defines this for functions which it implements
  8155.      to always fail with ENOSYS.  Some functions are actually named
  8156.      something starting with __ and the normal name is an alias.  */
  8157.  #if defined (__stub_strtoul) || defined (__stub___strtoul)
  8158.  choke me
  8159.  #else
  8160. -/* Override any gcc2 internal prototype to avoid an error.  */
  8161. -extern char strtoul(); strtoul();
  8162. +strtoul();
  8163.  #endif
  8164. +
  8165.  ; return 0; }
  8166.  EOF
  8167. -if eval $ac_compile; then
  8168. +if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  8169.    rm -rf conftest*
  8170. -  tcl_ok=1
  8171. -
  8172. +  eval "ac_cv_func_strtoul=yes"
  8173.  else
  8174.    rm -rf conftest*
  8175. -  tcl_ok=0
  8176. +  eval "ac_cv_func_strtoul=no"
  8177.  fi
  8178.  rm -f conftest*
  8179.  
  8180. -cat > conftest.${ac_ext} <<EOF
  8181. +fi
  8182. +if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
  8183. +  echo "$ac_t""yes" 1>&6
  8184. +  tcl_ok=1
  8185. +else
  8186. +  echo "$ac_t""no" 1>&6
  8187. +tcl_ok=0
  8188. +fi
  8189. +
  8190. +if test "$cross_compiling" = yes; then
  8191. +    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  8192. +else
  8193. +cat > conftest.$ac_ext <<EOF
  8194. +#line 1549 "configure"
  8195.  #include "confdefs.h"
  8196.  
  8197.  extern int strtoul();
  8198. @@ -855,12 +1561,13 @@ int main()
  8199.      exit(0);
  8200.  }
  8201.  EOF
  8202. -eval $ac_compile
  8203. +{ (eval echo configure:1565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  8204.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  8205.    :
  8206.  else
  8207.    tcl_ok=0
  8208.  fi
  8209. +fi
  8210.  rm -fr conftest*
  8211.  if test $tcl_ok = 0; then
  8212.      test -n "$verbose" && echo "    Adding strtoul.o."
  8213. @@ -872,34 +1579,58 @@ fi
  8214.  #    some versions of Linux it mis-parses the string "+".
  8215.  #--------------------------------------------------------------------
  8216.  
  8217. -test -n "$ac_silent" || echo "checking for strtod"
  8218. -cat > conftest.${ac_ext} <<EOF
  8219. -#include "confdefs.h"
  8220. -#include <ctype.h>
  8221. -int main() { return 0; }
  8222. -int t() { 
  8223. +echo $ac_n "checking for strtod""... $ac_c" 1>&6
  8224. +if eval "test \"`echo '$''{'ac_cv_func_strtod'+set}'`\" = set"; then
  8225. +  echo $ac_n "(cached) $ac_c" 1>&6
  8226. +else
  8227. +  cat > conftest.$ac_ext <<EOF
  8228. +#line 1588 "configure"
  8229. +#include "confdefs.h"
  8230. +/* System header to define __stub macros and hopefully few prototypes,
  8231. +    which can conflict with char strtod(); below.  */
  8232. +#include <assert.h>
  8233. +/* Override any gcc2 internal prototype to avoid an error.  */
  8234. +/* We use char because int might match the return type of a gcc2
  8235. +    builtin and then its argument prototype would still apply.  */
  8236. +char strtod();
  8237. +
  8238. +int main() { t(); return 0; }
  8239. +int t() {
  8240. +
  8241.  /* The GNU C library defines this for functions which it implements
  8242.      to always fail with ENOSYS.  Some functions are actually named
  8243.      something starting with __ and the normal name is an alias.  */
  8244.  #if defined (__stub_strtod) || defined (__stub___strtod)
  8245.  choke me
  8246.  #else
  8247. -/* Override any gcc2 internal prototype to avoid an error.  */
  8248. -extern char strtod(); strtod();
  8249. +strtod();
  8250.  #endif
  8251. +
  8252.  ; return 0; }
  8253.  EOF
  8254. -if eval $ac_compile; then
  8255. +if { (eval echo configure:1612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  8256.    rm -rf conftest*
  8257. -  tcl_ok=1
  8258. -
  8259. +  eval "ac_cv_func_strtod=yes"
  8260.  else
  8261.    rm -rf conftest*
  8262. -  tcl_ok=0
  8263. +  eval "ac_cv_func_strtod=no"
  8264.  fi
  8265.  rm -f conftest*
  8266.  
  8267. -cat > conftest.${ac_ext} <<EOF
  8268. +fi
  8269. +if eval "test \"`echo '$ac_cv_func_'strtod`\" = yes"; then
  8270. +  echo "$ac_t""yes" 1>&6
  8271. +  tcl_ok=1
  8272. +else
  8273. +  echo "$ac_t""no" 1>&6
  8274. +tcl_ok=0
  8275. +fi
  8276. +
  8277. +if test "$cross_compiling" = yes; then
  8278. +    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  8279. +else
  8280. +cat > conftest.$ac_ext <<EOF
  8281. +#line 1634 "configure"
  8282.  #include "confdefs.h"
  8283.  
  8284.  extern double strtod();
  8285. @@ -915,12 +1646,13 @@ int main()
  8286.      exit(0);
  8287.  }
  8288.  EOF
  8289. -eval $ac_compile
  8290. +{ (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  8291.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  8292.    :
  8293.  else
  8294.    tcl_ok=0
  8295.  fi
  8296. +fi
  8297.  rm -fr conftest*
  8298.  if test $tcl_ok = 0; then
  8299.      test -n "$verbose" && echo "    Adding strtod.o."
  8300. @@ -932,89 +1664,229 @@ fi
  8301.  #    they don't exist.
  8302.  #--------------------------------------------------------------------
  8303.  
  8304. -test -n "$ac_silent" || echo "checking for mode_t in sys/types.h"
  8305. -echo '#include "confdefs.h"
  8306. -#include <sys/types.h>' > conftest.${ac_ext}
  8307. -eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  8308. -if egrep "mode_t" conftest.out >/dev/null 2>&1; then
  8309. -  :
  8310. +echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  8311. +if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  8312. +  echo $ac_n "(cached) $ac_c" 1>&6
  8313.  else
  8314. +  cat > conftest.$ac_ext <<EOF
  8315. +#line 1673 "configure"
  8316. +#include "confdefs.h"
  8317. +#include <stdlib.h>
  8318. +#include <stdarg.h>
  8319. +#include <string.h>
  8320. +#include <float.h>
  8321. +EOF
  8322. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8323. +{ (eval echo configure:1681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8324. +ac_err=`grep -v '^ *+' conftest.out`
  8325. +if test -z "$ac_err"; then
  8326.    rm -rf conftest*
  8327. -  
  8328. -{
  8329. -test -n "$ac_verbose" && \
  8330. -echo "    defining" mode_t to be "int"
  8331. -echo "#define" mode_t "int" >> confdefs.h
  8332. -DEFS="$DEFS -Dmode_t=int"
  8333. -}
  8334. -
  8335. +  ac_cv_header_stdc=yes
  8336. +else
  8337. +  echo "$ac_err" >&5
  8338. +  rm -rf conftest*
  8339. +  ac_cv_header_stdc=no
  8340.  fi
  8341.  rm -f conftest*
  8342.  
  8343. -test -n "$ac_silent" || echo "checking for pid_t in sys/types.h"
  8344. -echo '#include "confdefs.h"
  8345. -#include <sys/types.h>' > conftest.${ac_ext}
  8346. -eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  8347. -if egrep "pid_t" conftest.out >/dev/null 2>&1; then
  8348. +if test $ac_cv_header_stdc = yes; then
  8349. +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8350. +cat > conftest.$ac_ext <<EOF
  8351. +#line 1696 "configure"
  8352. +#include "confdefs.h"
  8353. +#include <string.h>
  8354. +EOF
  8355. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8356. +  egrep "memchr" >/dev/null 2>&1; then
  8357.    :
  8358.  else
  8359.    rm -rf conftest*
  8360. -  
  8361. -{
  8362. -test -n "$ac_verbose" && \
  8363. -echo "    defining" pid_t to be "int"
  8364. -echo "#define" pid_t "int" >> confdefs.h
  8365. -DEFS="$DEFS -Dpid_t=int"
  8366. -}
  8367. +  ac_cv_header_stdc=no
  8368. +fi
  8369. +rm -f conftest*
  8370. +
  8371. +fi
  8372.  
  8373. +if test $ac_cv_header_stdc = yes; then
  8374. +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8375. +cat > conftest.$ac_ext <<EOF
  8376. +#line 1714 "configure"
  8377. +#include "confdefs.h"
  8378. +#include <stdlib.h>
  8379. +EOF
  8380. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8381. +  egrep "free" >/dev/null 2>&1; then
  8382. +  :
  8383. +else
  8384. +  rm -rf conftest*
  8385. +  ac_cv_header_stdc=no
  8386.  fi
  8387.  rm -f conftest*
  8388.  
  8389. -test -n "$ac_silent" || echo "checking for size_t in sys/types.h"
  8390. -echo '#include "confdefs.h"
  8391. -#include <sys/types.h>' > conftest.${ac_ext}
  8392. -eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  8393. -if egrep "size_t" conftest.out >/dev/null 2>&1; then
  8394. +fi
  8395. +
  8396. +if test $ac_cv_header_stdc = yes; then
  8397. +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8398. +if test "$cross_compiling" = yes; then
  8399. +  :
  8400. +else
  8401. +cat > conftest.$ac_ext <<EOF
  8402. +#line 1735 "configure"
  8403. +#include "confdefs.h"
  8404. +#include <ctype.h>
  8405. +#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8406. +#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8407. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8408. +int main () { int i; for (i = 0; i < 256; i++)
  8409. +if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  8410. +exit (0); }
  8411. +
  8412. +EOF
  8413. +{ (eval echo configure:1746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  8414. +if test -s conftest && (./conftest; exit) 2>/dev/null; then
  8415.    :
  8416.  else
  8417. +  ac_cv_header_stdc=no
  8418. +fi
  8419. +fi
  8420. +rm -fr conftest*
  8421. +fi
  8422. +fi
  8423. +
  8424. +echo "$ac_t""$ac_cv_header_stdc" 1>&6
  8425. +if test $ac_cv_header_stdc = yes; then
  8426. +  cat >> confdefs.h <<\EOF
  8427. +#define STDC_HEADERS 1
  8428. +EOF
  8429. +
  8430. +fi
  8431. +
  8432. +echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  8433. +if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  8434. +  echo $ac_n "(cached) $ac_c" 1>&6
  8435. +else
  8436. +  cat > conftest.$ac_ext <<EOF
  8437. +#line 1770 "configure"
  8438. +#include "confdefs.h"
  8439. +#include <sys/types.h>
  8440. +#if STDC_HEADERS
  8441. +#include <stdlib.h>
  8442. +#endif
  8443. +EOF
  8444. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8445. +  egrep "mode_t" >/dev/null 2>&1; then
  8446.    rm -rf conftest*
  8447. -  
  8448. -{
  8449. -test -n "$ac_verbose" && \
  8450. -echo "    defining" size_t to be "unsigned"
  8451. -echo "#define" size_t "unsigned" >> confdefs.h
  8452. -DEFS="$DEFS -Dsize_t=unsigned"
  8453. -}
  8454. +  ac_cv_type_mode_t=yes
  8455. +else
  8456. +  rm -rf conftest*
  8457. +  ac_cv_type_mode_t=no
  8458. +fi
  8459. +rm -f conftest*
  8460. +
  8461. +fi
  8462. +echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  8463. +if test $ac_cv_type_mode_t = no; then
  8464. +  cat >> confdefs.h <<\EOF
  8465. +#define mode_t int
  8466. +EOF
  8467. +
  8468. +fi
  8469.  
  8470. +echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  8471. +if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  8472. +  echo $ac_n "(cached) $ac_c" 1>&6
  8473. +else
  8474. +  cat > conftest.$ac_ext <<EOF
  8475. +#line 1801 "configure"
  8476. +#include "confdefs.h"
  8477. +#include <sys/types.h>
  8478. +#if STDC_HEADERS
  8479. +#include <stdlib.h>
  8480. +#endif
  8481. +EOF
  8482. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8483. +  egrep "pid_t" >/dev/null 2>&1; then
  8484. +  rm -rf conftest*
  8485. +  ac_cv_type_pid_t=yes
  8486. +else
  8487. +  rm -rf conftest*
  8488. +  ac_cv_type_pid_t=no
  8489.  fi
  8490.  rm -f conftest*
  8491.  
  8492. -test -n "$ac_silent" || echo "checking for uid_t in sys/types.h"
  8493. -echo '#include "confdefs.h"
  8494. -#include <sys/types.h>' > conftest.${ac_ext}
  8495. -eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  8496. -if egrep "uid_t" conftest.out >/dev/null 2>&1; then
  8497. -  :
  8498. +fi
  8499. +echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  8500. +if test $ac_cv_type_pid_t = no; then
  8501. +  cat >> confdefs.h <<\EOF
  8502. +#define pid_t int
  8503. +EOF
  8504. +
  8505. +fi
  8506. +
  8507. +echo $ac_n "checking for size_t""... $ac_c" 1>&6
  8508. +if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  8509. +  echo $ac_n "(cached) $ac_c" 1>&6
  8510. +else
  8511. +  cat > conftest.$ac_ext <<EOF
  8512. +#line 1832 "configure"
  8513. +#include "confdefs.h"
  8514. +#include <sys/types.h>
  8515. +#if STDC_HEADERS
  8516. +#include <stdlib.h>
  8517. +#endif
  8518. +EOF
  8519. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8520. +  egrep "size_t" >/dev/null 2>&1; then
  8521. +  rm -rf conftest*
  8522. +  ac_cv_type_size_t=yes
  8523.  else
  8524.    rm -rf conftest*
  8525. -  
  8526. -{
  8527. -test -n "$ac_verbose" && \
  8528. -echo "    defining" uid_t to be "int"
  8529. -echo "#define" uid_t "int" >> confdefs.h
  8530. -DEFS="$DEFS -Duid_t=int"
  8531. -}
  8532. -{
  8533. -test -n "$ac_verbose" && \
  8534. -echo "    defining" gid_t to be "int"
  8535. -echo "#define" gid_t "int" >> confdefs.h
  8536. -DEFS="$DEFS -Dgid_t=int"
  8537. -}
  8538. +  ac_cv_type_size_t=no
  8539. +fi
  8540. +rm -f conftest*
  8541. +
  8542. +fi
  8543. +echo "$ac_t""$ac_cv_type_size_t" 1>&6
  8544. +if test $ac_cv_type_size_t = no; then
  8545. +  cat >> confdefs.h <<\EOF
  8546. +#define size_t unsigned
  8547. +EOF
  8548.  
  8549.  fi
  8550. +
  8551. +echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  8552. +if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  8553. +  echo $ac_n "(cached) $ac_c" 1>&6
  8554. +else
  8555. +  cat > conftest.$ac_ext <<EOF
  8556. +#line 1863 "configure"
  8557. +#include "confdefs.h"
  8558. +#include <sys/types.h>
  8559. +EOF
  8560. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8561. +  egrep "uid_t" >/dev/null 2>&1; then
  8562. +  rm -rf conftest*
  8563. +  ac_cv_type_uid_t=yes
  8564. +else
  8565. +  rm -rf conftest*
  8566. +  ac_cv_type_uid_t=no
  8567. +fi
  8568.  rm -f conftest*
  8569.  
  8570. +fi
  8571. +
  8572. +echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  8573. +if test $ac_cv_type_uid_t = no; then
  8574. +  cat >> confdefs.h <<\EOF
  8575. +#define uid_t int
  8576. +EOF
  8577. +
  8578. +  cat >> confdefs.h <<\EOF
  8579. +#define gid_t int
  8580. +EOF
  8581. +
  8582. +fi
  8583. +
  8584.  
  8585.  #--------------------------------------------------------------------
  8586.  #    If a system doesn't have an opendir function (man, that's old!)
  8587. @@ -1023,37 +1895,56 @@ rm -f conftest*
  8588.  #    provided.  This version only works with V7-style directories.
  8589.  #--------------------------------------------------------------------
  8590.  
  8591. -test -n "$ac_silent" || echo "checking for opendir"
  8592. -cat > conftest.${ac_ext} <<EOF
  8593. -#include "confdefs.h"
  8594. -#include <ctype.h>
  8595. -int main() { return 0; }
  8596. -int t() { 
  8597. +echo $ac_n "checking for opendir""... $ac_c" 1>&6
  8598. +if eval "test \"`echo '$''{'ac_cv_func_opendir'+set}'`\" = set"; then
  8599. +  echo $ac_n "(cached) $ac_c" 1>&6
  8600. +else
  8601. +  cat > conftest.$ac_ext <<EOF
  8602. +#line 1904 "configure"
  8603. +#include "confdefs.h"
  8604. +/* System header to define __stub macros and hopefully few prototypes,
  8605. +    which can conflict with char opendir(); below.  */
  8606. +#include <assert.h>
  8607. +/* Override any gcc2 internal prototype to avoid an error.  */
  8608. +/* We use char because int might match the return type of a gcc2
  8609. +    builtin and then its argument prototype would still apply.  */
  8610. +char opendir();
  8611. +
  8612. +int main() { t(); return 0; }
  8613. +int t() {
  8614. +
  8615.  /* The GNU C library defines this for functions which it implements
  8616.      to always fail with ENOSYS.  Some functions are actually named
  8617.      something starting with __ and the normal name is an alias.  */
  8618.  #if defined (__stub_opendir) || defined (__stub___opendir)
  8619.  choke me
  8620.  #else
  8621. -/* Override any gcc2 internal prototype to avoid an error.  */
  8622. -extern char opendir(); opendir();
  8623. +opendir();
  8624.  #endif
  8625. +
  8626.  ; return 0; }
  8627.  EOF
  8628. -if eval $ac_compile; then
  8629. -  :
  8630. +if { (eval echo configure:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  8631. +  rm -rf conftest*
  8632. +  eval "ac_cv_func_opendir=yes"
  8633.  else
  8634.    rm -rf conftest*
  8635. -  {
  8636. -test -n "$ac_verbose" && \
  8637. -echo "    defining USE_DIRENT2_H"
  8638. -echo "#define" USE_DIRENT2_H "1" >> confdefs.h
  8639. -DEFS="$DEFS -DUSE_DIRENT2_H=1"
  8640. -}
  8641. -
  8642. +  eval "ac_cv_func_opendir=no"
  8643.  fi
  8644.  rm -f conftest*
  8645.  
  8646. +fi
  8647. +if eval "test \"`echo '$ac_cv_func_'opendir`\" = yes"; then
  8648. +  echo "$ac_t""yes" 1>&6
  8649. +  :
  8650. +else
  8651. +  echo "$ac_t""no" 1>&6
  8652. +cat >> confdefs.h <<\EOF
  8653. +#define USE_DIRENT2_H 1
  8654. +EOF
  8655. +
  8656. +fi
  8657. +
  8658.  
  8659.  #--------------------------------------------------------------------
  8660.  #    Check for the existence of sys_errlist (this is only needed if
  8661. @@ -1061,28 +1952,27 @@ rm -f conftest*
  8662.  #    check).
  8663.  #--------------------------------------------------------------------
  8664.  
  8665. -test -n "$ac_silent" || echo "checking for sys_errlist"
  8666. -cat > conftest.${ac_ext} <<EOF
  8667. +echo "checking for sys_errlist" 1>&6
  8668. +cat > conftest.$ac_ext <<EOF
  8669. +#line 1958 "configure"
  8670.  #include "confdefs.h"
  8671.  
  8672. -int main() { return 0; }
  8673. -int t() { 
  8674. +int main() { t(); return 0; }
  8675. +int t() {
  8676. +
  8677.  extern char *sys_errlist[];
  8678.  extern int sys_nerr;
  8679.  sys_errlist[sys_nerr-1][0] = 0;
  8680. +
  8681.  ; return 0; }
  8682.  EOF
  8683. -if eval $ac_compile; then
  8684. +if { (eval echo configure:1970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  8685.    :
  8686.  else
  8687.    rm -rf conftest*
  8688. -  
  8689. -{
  8690. -test -n "$ac_verbose" && \
  8691. -echo "    defining NO_SYS_ERRLIST"
  8692. -echo "#define" NO_SYS_ERRLIST "1" >> confdefs.h
  8693. -DEFS="$DEFS -DNO_SYS_ERRLIST=1"
  8694. -}
  8695. +  cat >> confdefs.h <<\EOF
  8696. +#define NO_SYS_ERRLIST 1
  8697. +EOF
  8698.  
  8699.  fi
  8700.  rm -f conftest*
  8701. @@ -1096,29 +1986,28 @@ rm -f conftest*
  8702.  #    the trick.
  8703.  #--------------------------------------------------------------------
  8704.  
  8705. -test -n "$ac_silent" || echo "checking for union wait"
  8706. -cat > conftest.${ac_ext} <<EOF
  8707. +echo "checking for union wait" 1>&6
  8708. +cat > conftest.$ac_ext <<EOF
  8709. +#line 1992 "configure"
  8710.  #include "confdefs.h"
  8711.  #include <sys/types.h> 
  8712.  #include <sys/wait.h>
  8713. -int main() { return 0; }
  8714. -int t() { 
  8715. +int main() { t(); return 0; }
  8716. +int t() {
  8717. +
  8718.  union wait x;
  8719.  WIFEXITED(x);        /* Generates compiler error if WIFEXITED
  8720.               * uses an int. */
  8721. +
  8722.  ; return 0; }
  8723.  EOF
  8724. -if eval $ac_compile; then
  8725. +if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  8726.    :
  8727.  else
  8728.    rm -rf conftest*
  8729. -  
  8730. -{
  8731. -test -n "$ac_verbose" && \
  8732. -echo "    defining NO_UNION_WAIT"
  8733. -echo "#define" NO_UNION_WAIT "1" >> confdefs.h
  8734. -DEFS="$DEFS -DNO_UNION_WAIT=1"
  8735. -}
  8736. +  cat >> confdefs.h <<\EOF
  8737. +#define NO_UNION_WAIT 1
  8738. +EOF
  8739.  
  8740.  fi
  8741.  rm -f conftest*
  8742. @@ -1129,41 +2018,70 @@ rm -f conftest*
  8743.  #    and its associated type "struct exception".
  8744.  #--------------------------------------------------------------------
  8745.  
  8746. -test -n "$ac_silent" || echo "checking for matherr support"
  8747. -cat > conftest.${ac_ext} <<EOF
  8748. +echo "checking for matherr support" 1>&6
  8749. +cat > conftest.$ac_ext <<EOF
  8750. +#line 2024 "configure"
  8751.  #include "confdefs.h"
  8752.  #include <math.h>
  8753. -int main() { return 0; }
  8754. -int t() { 
  8755. +int main() { t(); return 0; }
  8756. +int t() {
  8757. +
  8758.  struct exception x;
  8759.  x.type = DOMAIN;
  8760.  x.type = SING;
  8761. +
  8762.  ; return 0; }
  8763.  EOF
  8764. -if eval $ac_compile; then
  8765. +if { (eval echo configure:2036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  8766.    rm -rf conftest*
  8767. -  LIBOBJS="$LIBOBJS tclMtherr.o"; 
  8768. -{
  8769. -test -n "$ac_verbose" && \
  8770. -echo "    defining NEED_MATHERR"
  8771. -echo "#define" NEED_MATHERR "1" >> confdefs.h
  8772. -DEFS="$DEFS -DNEED_MATHERR=1"
  8773. -}
  8774. -
  8775. +  LIBOBJS="$LIBOBJS tclMtherr.o"; cat >> confdefs.h <<\EOF
  8776. +#define NEED_MATHERR 1
  8777. +EOF
  8778.  
  8779.  fi
  8780.  rm -f conftest*
  8781.  
  8782.  
  8783. -# Set default prefixes.
  8784. -if test -n "$prefix"; then
  8785. -  test -z "$exec_prefix" && exec_prefix='${prefix}' # Let make expand it.
  8786. -  ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  8787. -fi
  8788. -if test -n "$exec_prefix"; then
  8789. -  ac_prsub="$ac_prsub
  8790. -s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  8791. +trap '' 1 2 15
  8792. +cat > confcache <<\EOF
  8793. +# This file is a shell script that caches the results of configure
  8794. +# tests run on this system so they can be shared between configure
  8795. +# scripts and configure runs.  It is not useful on other systems.
  8796. +# If it contains results you don't want to keep, you may remove or edit it.
  8797. +#
  8798. +# By default, configure uses ./config.cache as the cache file,
  8799. +# creating it if it does not exist already.  You can give configure
  8800. +# the --cache-file=FILE option to use a different cache file; that is
  8801. +# what configure does when it calls configure scripts in
  8802. +# subdirectories, so they share the cache.
  8803. +# Giving --cache-file=/dev/null disables caching, for debugging configure.
  8804. +# config.status only pays attention to the cache file if you give it the
  8805. +# --recheck option to rerun configure.
  8806. +#
  8807. +EOF
  8808. +# Ultrix sh set writes to stderr and can't be redirected directly,
  8809. +# and sets the high bit in the cache file unless we assign to the vars.
  8810. +(set) 2>&1 |
  8811. +  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  8812. +  >> confcache
  8813. +if cmp -s $cache_file confcache; then
  8814. +  :
  8815. +else
  8816. +  if test -w $cache_file; then
  8817. +    echo "updating cache $cache_file"
  8818. +    cat confcache > $cache_file
  8819. +  else
  8820. +    echo "not updating unwritable cache $cache_file"
  8821. +  fi
  8822.  fi
  8823. +rm -f confcache
  8824. +
  8825. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  8826. +
  8827. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8828. +# Let make expand exec_prefix.
  8829. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8830. +
  8831.  # Any assignment to VPATH causes Sun make to only execute
  8832.  # the first set of double-colon rules, so remove it if not needed.
  8833.  # If there is a colon in the path, we need to keep it.
  8834. @@ -1171,36 +2089,50 @@ if test "x$srcdir" = x.; then
  8835.    ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  8836.  fi
  8837.  
  8838. -# Quote sed substitution magic chars in DEFS.
  8839. -cat >conftest.def <<EOF
  8840. -$DEFS
  8841. -EOF
  8842. -ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  8843. -DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  8844. -rm -f conftest.def
  8845. -# Substitute for predefined variables.
  8846. -
  8847. -trap 'rm -f config.status; exit 1' 1 2 15
  8848. -echo creating config.status
  8849. -rm -f config.status
  8850. -cat > config.status <<EOF
  8851. -#!/bin/sh
  8852. +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  8853. +
  8854. +# Transform confdefs.h into DEFS.
  8855. +# Protect against shell expansion while executing Makefile rules.
  8856. +# Protect against Makefile macro expansion.
  8857. +cat > conftest.defs <<\EOF
  8858. +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  8859. +s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  8860. +s%\[%\\&%g
  8861. +s%\]%\\&%g
  8862. +s%\$%$$%g
  8863. +EOF
  8864. +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  8865. +rm -f conftest.defs
  8866. +
  8867. +
  8868. +# Without the "./", some shells look in PATH for config.status.
  8869. +: ${CONFIG_STATUS=./config.status}
  8870. +
  8871. +echo creating $CONFIG_STATUS
  8872. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  8873. +# being executed, so just move it out of the way instead.
  8874. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  8875. +cat > $CONFIG_STATUS <<EOF
  8876. +#! /bin/sh
  8877.  # Generated automatically by configure.
  8878.  # Run this file to recreate the current configuration.
  8879.  # This directory was configured as follows,
  8880.  # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8881.  #
  8882.  # $0 $ac_configure_args
  8883. +#
  8884. +# Compiler output produced by configure, useful for debugging
  8885. +# configure, is in ./config.log if it exists.
  8886.  
  8887. -ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  8888. +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  8889.  for ac_option
  8890.  do
  8891.    case "\$ac_option" in
  8892.    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8893. -    echo running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args
  8894. -    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args ;;
  8895. +    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  8896. +    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  8897.    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  8898. -    echo "config.status generated by autoconf version 1.7.9"
  8899. +    echo "$CONFIG_STATUS generated by autoconf version 2.10"
  8900.      exit 0 ;;
  8901.    -help | --help | --hel | --he | --h)
  8902.      echo "\$ac_cs_usage"; exit 0 ;;
  8903. @@ -1208,71 +2140,107 @@ do
  8904.    esac
  8905.  done
  8906.  
  8907. -trap 'rm -f Makefile; exit 1' 1 2 15
  8908. -RANLIB='$RANLIB'
  8909. -CPP='$CPP'
  8910. -CC='$CC'
  8911. -LIBOBJS='$LIBOBJS'
  8912. -LIBS='$LIBS'
  8913. -srcdir='$srcdir'
  8914. -prefix='$prefix'
  8915. -exec_prefix='$exec_prefix'
  8916. -DEFS='$DEFS'
  8917. -ac_prsub='$ac_prsub'
  8918. -ac_vpsub='$ac_vpsub'
  8919. -extrasub='$extrasub'
  8920. +ac_given_srcdir=$srcdir
  8921. +
  8922. +trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  8923.  EOF
  8924. -cat >> config.status <<\EOF
  8925. +cat >> $CONFIG_STATUS <<EOF
  8926. +
  8927. +# Protect against being on the right side of a sed subst in config.status.
  8928. +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  8929. + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  8930. +$ac_vpsub
  8931. +$extrasub
  8932. +s%@CFLAGS@%$CFLAGS%g
  8933. +s%@CPPFLAGS@%$CPPFLAGS%g
  8934. +s%@CXXFLAGS@%$CXXFLAGS%g
  8935. +s%@DEFS@%$DEFS%g
  8936. +s%@LDFLAGS@%$LDFLAGS%g
  8937. +s%@LIBS@%$LIBS%g
  8938. +s%@exec_prefix@%$exec_prefix%g
  8939. +s%@prefix@%$prefix%g
  8940. +s%@program_transform_name@%$program_transform_name%g
  8941. +s%@bindir@%$bindir%g
  8942. +s%@sbindir@%$sbindir%g
  8943. +s%@libexecdir@%$libexecdir%g
  8944. +s%@datadir@%$datadir%g
  8945. +s%@sysconfdir@%$sysconfdir%g
  8946. +s%@sharedstatedir@%$sharedstatedir%g
  8947. +s%@localstatedir@%$localstatedir%g
  8948. +s%@libdir@%$libdir%g
  8949. +s%@includedir@%$includedir%g
  8950. +s%@oldincludedir@%$oldincludedir%g
  8951. +s%@infodir@%$infodir%g
  8952. +s%@guidedir@%$guidedir%g
  8953. +s%@psdir@%$psdir%g
  8954. +s%@dvidir@%$dvidir%g
  8955. +s%@mandir@%$mandir%g
  8956. +s%@RANLIB@%$RANLIB%g
  8957. +s%@CC@%$CC%g
  8958. +s%@CPP@%$CPP%g
  8959. +s%@LIBOBJS@%$LIBOBJS%g
  8960.  
  8961. -ac_top_srcdir=$srcdir
  8962. +CEOF
  8963. +EOF
  8964. +cat >> $CONFIG_STATUS <<EOF
  8965. +
  8966. +CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  8967. +EOF
  8968. +cat >> $CONFIG_STATUS <<\EOF
  8969. +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  8970. +  # Support "outfile[:infile]", defaulting infile="outfile.in".
  8971. +  case "$ac_file" in
  8972. +  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  8973. +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  8974. +  *) ac_file_in="${ac_file}.in" ;;
  8975. +  esac
  8976. +
  8977. +  # Adjust relative srcdir, etc. for subdirectories.
  8978.  
  8979. -CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  8980. -for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  8981.    # Remove last slash and all that follows it.  Not all systems have dirname.
  8982.    ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  8983. -  if test "$ac_dir" != "$ac_file"; then
  8984. +  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  8985.      # The file is in a subdirectory.
  8986.      test ! -d "$ac_dir" && mkdir "$ac_dir"
  8987. -    ac_dir_suffix="/$ac_dir"
  8988. +    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  8989. +    # A "../" for each directory in $ac_dir_suffix.
  8990. +    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  8991.    else
  8992. -    ac_dir_suffix=
  8993. +    ac_dir_suffix= ac_dots=
  8994.    fi
  8995.  
  8996. -  case "$ac_top_srcdir" in
  8997. -  .)  srcdir=. ;;
  8998. -  /*) srcdir="$ac_top_srcdir$ac_dir_suffix" ;;
  8999. -  *)
  9000. -    # Relative path.  Prepend a "../" for each directory in $ac_dir_suffix.
  9001. -    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  9002. -    srcdir="$ac_dots$ac_top_srcdir$ac_dir_suffix" ;;
  9003. +  case "$ac_given_srcdir" in
  9004. +  .)  srcdir=.
  9005. +      if test -z "$ac_dots"; then top_srcdir=.
  9006. +      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  9007. +  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  9008. +  *) # Relative path.
  9009. +    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  9010. +    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  9011.    esac
  9012.  
  9013.    echo creating "$ac_file"
  9014.    rm -f "$ac_file"
  9015. -  comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
  9016. +  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  9017.    case "$ac_file" in
  9018. -    *.c | *.h | *.C | *.cc | *.m )  echo "/* $comment_str */" > "$ac_file" ;;
  9019. -    * )          echo "# $comment_str"     > "$ac_file" ;;
  9020. +  *Makefile*) ac_comsub="1i\\
  9021. +# $configure_input" ;;
  9022. +  *) ac_comsub= ;;
  9023.    esac
  9024. -  sed -e "
  9025. -$ac_prsub
  9026. -$ac_vpsub
  9027. -$extrasub
  9028. -s%@RANLIB@%$RANLIB%g
  9029. -s%@CPP@%$CPP%g
  9030. -s%@CC@%$CC%g
  9031. -s%@LIBOBJS@%$LIBOBJS%g
  9032. -s%@LIBS@%$LIBS%g
  9033. +  sed -e "$ac_comsub
  9034. +s%@configure_input@%$configure_input%g
  9035.  s%@srcdir@%$srcdir%g
  9036. -s%@prefix@%$prefix%g
  9037. -s%@exec_prefix@%$exec_prefix%g
  9038. -s%@DEFS@%$DEFS%
  9039. -" $ac_top_srcdir/${ac_file}.in >> $ac_file
  9040. +s%@top_srcdir@%$top_srcdir%g
  9041. +" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  9042.  fi; done
  9043. +rm -f conftest.subs
  9044. +
  9045.  
  9046.  
  9047.  exit 0
  9048.  EOF
  9049. -chmod +x config.status
  9050. -${CONFIG_SHELL-/bin/sh} config.status
  9051. +chmod +x $CONFIG_STATUS
  9052. +rm -f CONFIG.STATUS.old
  9053. +rm -fr confdefs* $ac_clean_files
  9054. +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  9055.  
  9056. diff -rup --new-file baseline/fsf/dejagnu/tcl/configure.in amiga/fsf/dejagnu/tcl/configure.in
  9057. --- baseline/fsf/dejagnu/tcl/configure.in    Thu Mar 31 14:41:09 1994
  9058. +++ amiga/fsf/dejagnu/tcl/configure.in    Sat Sep 28 00:00:00 1996
  9059. @@ -3,15 +3,15 @@ dnl    generate the file "configure", which
  9060.  dnl    to configure the system for the local environment.
  9061.  AC_INIT(tcl.h)
  9062.  AC_PROG_RANLIB
  9063. +AC_PROG_CC
  9064.  AC_PROG_CPP
  9065. -CC=${CC-cc}
  9066.  AC_SUBST(CC)
  9067.  
  9068.  #--------------------------------------------------------------------
  9069.  # On a few rare braindead systems, libm.a is the same as libc.a
  9070.  #--------------------------------------------------------------------
  9071.  
  9072. -AC_FUNC_CHECK(sin, , LIBS="-lm" ; test -n "$verbose" && echo "    Adding -lm to library list")
  9073. +AC_CHECK_LIB(m, main)
  9074.  
  9075.  #--------------------------------------------------------------------
  9076.  #    Supply substitutes for missing POSIX library procedures, or
  9077. diff -rup --new-file baseline/fsf/dejagnu/tcl/regexp.c amiga/fsf/dejagnu/tcl/regexp.c
  9078. --- baseline/fsf/dejagnu/tcl/regexp.c    Tue Jan  4 18:13:30 1994
  9079. +++ amiga/fsf/dejagnu/tcl/regexp.c    Sat Sep 28 00:00:00 1996
  9080. @@ -131,7 +131,7 @@
  9081.  /*
  9082.   * Utility definitions.
  9083.   */
  9084. -#ifndef CHARBITS
  9085. +#if !defined(CHARBITS) || defined(__amigaos__)
  9086.  #define    UCHARAT(p)    ((int)*(unsigned char *)(p))
  9087.  #else
  9088.  #define    UCHARAT(p)    ((int)*(p)&CHARBITS)
  9089. diff -rup --new-file baseline/fsf/dejagnu/tcl/tclUnixUtil.c amiga/fsf/dejagnu/tcl/tclUnixUtil.c
  9090. --- baseline/fsf/dejagnu/tcl/tclUnixUtil.c    Tue Jan  4 19:13:24 1994
  9091. +++ amiga/fsf/dejagnu/tcl/tclUnixUtil.c    Sat Sep 28 00:00:00 1996
  9092. @@ -576,8 +576,12 @@ Tcl_CreatePipeline(interp, argc, argv, p
  9093.  
  9094.      if (errFilePtr != NULL) {
  9095.      char errName[L_tmpnam];
  9096. +    static unsigned short cnt;
  9097.  
  9098. -    tmpnam(errName);
  9099. +        if (cnt == 0)
  9100. +          cnt = (getpid() & 0xffff) | 1;
  9101. +
  9102. +        sprintf(errName, "/t/tmp.tcl.%05u", cnt++);
  9103.      *errFilePtr = open(errName, O_RDONLY|O_CREAT|O_TRUNC, 0600);
  9104.      if (*errFilePtr < 0) {
  9105.          errFileError:
  9106. @@ -668,7 +672,7 @@ Tcl_CreatePipeline(interp, argc, argv, p
  9107.          }
  9108.      }
  9109.      execName = Tcl_TildeSubst(interp, argv[firstArg], &buffer);
  9110. -    pid = fork();
  9111. +    pid = vfork();
  9112.      if (pid == 0) {
  9113.          char errSpace[200];
  9114.  
  9115. @@ -678,7 +682,7 @@ Tcl_CreatePipeline(interp, argc, argv, p
  9116.              || (!joinThisError && (errorId != -1)
  9117.                  && (dup2(errorId, 2) == -1))) {
  9118.          char *err;
  9119. -        err = "forked process couldn't set up input/output\n";
  9120. +        err = "vforked process couldn't set up input/output\n";
  9121.          write(errorId < 0 ? 2 : errorId, err, (size_t) strlen(err));
  9122.          _exit(1);
  9123.          }
  9124. @@ -694,7 +698,7 @@ Tcl_CreatePipeline(interp, argc, argv, p
  9125.      }
  9126.      Tcl_DStringFree(&buffer);
  9127.      if (pid == -1) {
  9128. -        Tcl_AppendResult(interp, "couldn't fork child process: ",
  9129. +        Tcl_AppendResult(interp, "couldn't vfork child process: ",
  9130.              Tcl_PosixError(interp), (char *) NULL);
  9131.          goto error;
  9132.      }
  9133. diff -rup --new-file baseline/fsf/dejagnu/tcl/tests/defs amiga/fsf/dejagnu/tcl/tests/defs
  9134. --- baseline/fsf/dejagnu/tcl/tests/defs    Tue Jan  4 18:25:35 1994
  9135. +++ amiga/fsf/dejagnu/tcl/tests/defs    Sat Sep 28 00:00:00 1996
  9136. @@ -81,7 +81,7 @@ proc test {test_name test_description co
  9137.          $answer 
  9138.      puts stdout "---- Result should have been:"
  9139.      puts stdout "$passing_results"
  9140. -    puts stdout "---- $test_name FAILED" 
  9141. +    puts stdout "++++ $test_name FAILED" 
  9142.      }
  9143.  }
  9144.  
  9145. diff -rup --new-file baseline/fsf/dejagnu/tcl/tests/format.test amiga/fsf/dejagnu/tcl/tests/format.test
  9146. --- baseline/fsf/dejagnu/tcl/tests/format.test    Tue Jan  4 19:16:52 1994
  9147. +++ amiga/fsf/dejagnu/tcl/tests/format.test    Sat Sep 28 00:00:00 1996
  9148. @@ -219,13 +219,13 @@ test format-5.2 {floating-point zeroes} 
  9149.  } {0.0000e+00 0.0000 0}
  9150.  test format-5.3 {floating-point zeroes} {
  9151.      format "%#.4e %#.4f %#.4g" 0.0 0.0 0.0 0.0
  9152. -} {0.0000e+00 0.0000 0.000}
  9153. +} {0.0000e+00 0.0000 0.0000}
  9154.  test format-5.4 {floating-point zeroes} {
  9155.      format "%.0e %.0f %.0g" 0.0 0.0 0.0 0.0
  9156.  } {0e+00 0 0}
  9157.  test format-5.5 {floating-point zeroes} {
  9158.      format "%#.0e %#.0f %#.0g" 0.0 0.0 0.0 0.0
  9159. -} {0.e+00 0. 0.}
  9160. +} {0.e+00 0. 0.0}
  9161.  test format-5.6 {floating-point zeroes} {
  9162.      format "%3.0f %3.0f %3.0f %3.0f" 0.0 0.0 0.0 0.0
  9163.  } {  0   0   0   0}
  9164. diff -rup --new-file baseline/fsf/dejagnu/tcl/tests/open.test amiga/fsf/dejagnu/tcl/tests/open.test
  9165. --- baseline/fsf/dejagnu/tcl/tests/open.test    Tue Jan  4 19:17:20 1994
  9166. +++ amiga/fsf/dejagnu/tcl/tests/open.test    Sat Sep 28 00:00:00 1996
  9167. @@ -311,7 +311,7 @@ test open-8.8 {read command} {
  9168.      close $f
  9169.      set x
  9170.  } {1 {expected integer but got "12z"} NONE}
  9171. -test open-898 {read command} {
  9172. +test open-8.9 {read command} {
  9173.      set f [open test1]
  9174.      set x [list [catch {read $f z} msg] $msg $errorCode]
  9175.      close $f
  9176. diff -rup --new-file baseline/fsf/dejagnu/tcl/testsuite/tcl.tests/tcl-test.exp amiga/fsf/dejagnu/tcl/testsuite/tcl.tests/tcl-test.exp
  9177. --- baseline/fsf/dejagnu/tcl/testsuite/tcl.tests/tcl-test.exp    Thu Mar 31 12:56:07 1994
  9178. +++ amiga/fsf/dejagnu/tcl/testsuite/tcl.tests/tcl-test.exp    Sat Sep 28 00:00:00 1996
  9179. @@ -62,13 +62,13 @@ expect {
  9180.      set timeoutmsg "Never got to the end of "
  9181.      exp_continue
  9182.      }
  9183. +    -re "\[\r\n\]*\\+* \[a-z\]*-\[.0-9\]* FAILED\[\r\n\]*" {
  9184. +    fail [lindex $expect_out(0,string) 1]
  9185. +    exp_continue
  9186. +    }
  9187.      -re "\[\r\n\]*\\+\\+\\+\\+ \[a-z\]*-\[.0-9\]* PASSED\[\r\n\]*" {
  9188.      pass [lindex $expect_out(0,string) 1]
  9189.      set timetol 0
  9190. -    exp_continue
  9191. -    }
  9192. -    -re "\[\r\n\]*\\+* \[a-z\]*-\[.0-9\]* FAILED\[\r\n\]*" {
  9193. -    fail [lindex $expect_out(0,string) 1]
  9194.      exp_continue
  9195.      }
  9196.      -re "\[x\]+ \[a-i\]+ \[A-K\]+ \[0-9\]+ " {
  9197.