home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / findutils-4.1-diffs.gz / findutils-4.1-diffs
Text File  |  1996-10-13  |  120KB  |  3,764 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/findutils/ChangeLog amiga/fsf/findutils/ChangeLog
  12. --- baseline/fsf/findutils/ChangeLog    Sat Nov  5 07:52:35 1994
  13. +++ amiga/fsf/findutils/ChangeLog    Sat Sep 28 00:00:00 1996
  14. @@ -1,3 +1,16 @@
  15. +Mon Sep 16 11:59:59 1996  Kristof Depraetere <Kristof.Depraetere@rug.ac.be>
  16. +    
  17. +    * Makefile.in, doc/Makefile.in, find/Makefile.in, lib/Makefile.in
  18. +          locate/Makefile.in, testsuite/Makefile.in, xargs/Makefile.in: added 
  19. +          a guide entry.
  20. +
  21. +Tue Aug 20 14:09:40 1996  Fred Fish  <fnf@ninemoons.com>
  22. +
  23. +    * find/find.c (main): For __amigaos__ set no_leaf_check to default
  24. +    to true (essentially force --noleaf option) because ixemul.library
  25. +    always sets st_nlink to 2 instead of 2 plus the number of files in
  26. +    the directory.
  27. +
  28.  Thu Nov  3 09:23:33 1994  David J. MacKenzie  <djm@duality.gnu.ai.mit.edu>
  29.  
  30.      * Version 4.1.
  31. diff -rup --new-file baseline/fsf/findutils/INSTALL amiga/fsf/findutils/INSTALL
  32. --- baseline/fsf/findutils/INSTALL    Tue Oct 18 13:30:28 1994
  33. +++ amiga/fsf/findutils/INSTALL    Sat Sep 28 00:00:00 1996
  34. @@ -76,8 +76,8 @@ Installation Names
  35.  ==================
  36.  
  37.     By default, `make install' will install the package's files in
  38. -`/usr/local/bin', `/usr/local/man', etc.  You can specify an
  39. -installation prefix other than `/usr/local' by giving `configure' the
  40. +`/gnu/bin', `/gnu/man', etc.  You can specify an
  41. +installation prefix other than `/gnu' by giving `configure' the
  42.  option `--prefix=PATH'.
  43.  
  44.     You can specify separate installation prefixes for
  45. diff -rup --new-file baseline/fsf/findutils/Makefile.in amiga/fsf/findutils/Makefile.in
  46. --- baseline/fsf/findutils/Makefile.in    Sat Nov  5 07:45:56 1994
  47. +++ amiga/fsf/findutils/Makefile.in    Sat Sep 28 00:00:00 1996
  48. @@ -25,13 +25,17 @@ exec_prefix = @exec_prefix@
  49.  
  50.  bindir = $(exec_prefix)/bin
  51.  sbindir = $(exec_prefix)/sbin
  52. -libexecdir = $(exec_prefix)/libexec
  53.  datadir = $(prefix)/share
  54.  sysconfdir = $(prefix)/etc
  55.  sharedstatedir = $(prefix)/com
  56. -localstatedir = $(prefix)/var
  57. +# Put this in /local, since $(prefix) might be on read-only media. -fnf
  58. +localstatedir = /local/var
  59.  libdir = $(exec_prefix)/lib
  60. +# It seems hokey to me to have the libexec dir visible at what is the
  61. +# equivalent of the root directory, so put it under libdir instead.  -fnf
  62. +libexecdir = $(libdir)/libexec
  63.  infodir = $(prefix)/info
  64. +guidedir = $(prefix)/guide
  65.  mandir = $(prefix)/man
  66.  includedir = $(prefix)/include
  67.  oldincludedir = /usr/include
  68. @@ -47,7 +51,7 @@ SOURCES = 
  69.  DIST_CONF = Makefile.am Makefile.in README INSTALL NEWS \
  70.      configure configure.in ${ACLOCAL} ${ACCONFIG} ${CONFIG_TOP} \
  71.      ${CONFIG_BOT} mkinstalldirs
  72. -DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(MANS) $(DIST_OTHER)
  73. +DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(GUIDES) $(MANS) $(DIST_OTHER)
  74.  
  75.  DIST_OTHER = COPYING ChangeLog TODO install-sh config.h.in stamp-h.in
  76.  SUBDIRS = lib find xargs locate doc testsuite
  77. @@ -64,7 +68,7 @@ all:: ${ALL}
  78.  
  79.  @SET_MAKE@
  80.  
  81. -all install install-info uninstall check tags TAGS info dvi::
  82. +all install install-info install-guide uninstall check tags TAGS info guide dvi::
  83.      for subdir in $(SUBDIRS); do \
  84.        echo making $@ in $$subdir ; \
  85.        (cd $$subdir; $(MAKE) $@); \
  86. @@ -125,7 +129,7 @@ dist: $(DIST_FILES) $(DIST_DIRS) distnam
  87.      tar -chozf `cat distname`.tar.gz `cat distname`
  88.      rm -rf `cat distname` distname
  89.  
  90. -check dvi info install uninstall::
  91. +check dvi info guide install uninstall::
  92.  
  93.  tags:: TAGS
  94.  
  95. diff -rup --new-file baseline/fsf/findutils/Product-Info amiga/fsf/findutils/Product-Info
  96. --- baseline/fsf/findutils/Product-Info    Wed Dec 31 17:00:00 1969
  97. +++ amiga/fsf/findutils/Product-Info    Sat Sep 28 00:00:00 1996
  98. @@ -0,0 +1,40 @@
  99. +.name
  100. +findutils
  101. +.fullname
  102. +GNU find, xargs, and locate
  103. +.type
  104. +Programmer Tool
  105. +.short
  106. +GNU find, xargs, and locate
  107. +.description
  108. +This package contains the GNU find, xargs, and locate programs.  This
  109. +version of find and xargs comply with POSIX 1003.2, and also support
  110. +some additional options, some borrowed from Unix and some unique to
  111. +GNU.
  112. +
  113. +To gain speed, GNU find now avoids statting files whenever possible.
  114. +It does this by: (1) Checking the number of links to directories and
  115. +not statting files that it knows aren't directories until it
  116. +encounters a test or action that needs the stat info.  (2) Rearranging
  117. +the command line, where possible, so that it can do tests that don't
  118. +require a stat before tests that do, in hopes that the latter will be
  119. +skipped because of an OR or AND.  (But it only does this where it will
  120. +leave the output unchanged.)
  121. +
  122. +The locate utility is based on James Woods' public domain fast-find
  123. +code, which is also distributed with the 4.3BSD find.  Because POSIX
  124. +requires `find foo' to have the same effect as `find foo -print', the
  125. +fast-find searching has been moved to a separate program, `locate';
  126. +the same thing has been done in 4.3BSD-reno/4.4BSD.  If you use
  127. +locate, you should run the included `updatedb' script from cron
  128. +periodically (typically nightly).
  129. +.version
  130. +4.1
  131. +.author
  132. +Free Software Foundation
  133. +.requirements
  134. +Amiga binaries require ixemul.library.
  135. +.distribution
  136. +GNU Public License
  137. +.described-by
  138. +Fred Fish (fnf@amigalib.com)
  139. diff -rup --new-file baseline/fsf/findutils/configure amiga/fsf/findutils/configure
  140. --- baseline/fsf/findutils/configure    Fri Nov  4 07:47:50 1994
  141. +++ amiga/fsf/findutils/configure    Mon Sep 30 22:40:39 1996
  142. @@ -1,8 +1,8 @@
  143. -#!/bin/sh
  144. +#! /bin/sh
  145.  
  146.  # Guess values for system-dependent variables and create Makefiles.
  147. -# Generated automatically using autoconf version 2.1 
  148. -# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  149. +# Generated automatically using autoconf version 2.10 
  150. +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  151.  #
  152.  # This configure script is free software; the Free Software Foundation
  153.  # gives unlimited permission to copy, distribute and modify it.
  154. @@ -37,9 +37,25 @@ target=NONE
  155.  verbose=
  156.  x_includes=NONE
  157.  x_libraries=NONE
  158. +bindir='${exec_prefix}/bin'
  159. +sbindir='${exec_prefix}/sbin'
  160. +libexecdir='${exec_prefix}/libexec'
  161. +datadir='${prefix}/share'
  162. +sysconfdir='${prefix}/etc'
  163. +sharedstatedir='${prefix}/com'
  164. +localstatedir='${prefix}/var'
  165. +libdir='${exec_prefix}/lib'
  166. +includedir='${prefix}/include'
  167. +oldincludedir='/usr/include'
  168. +infodir='${prefix}/info'
  169. +guidedir='${prefix}/guide'
  170. +psdir='${prefix}/ps'
  171. +dvidir='${prefix}/dvi'
  172. +mandir='${prefix}/man'
  173.  
  174.  # Initialize some other variables.
  175.  subdirs=
  176. +MFLAGS= MAKEFLAGS=
  177.  
  178.  ac_prev=
  179.  for ac_option
  180. @@ -61,9 +77,14 @@ do
  181.  
  182.    case "$ac_option" in
  183.  
  184. -  -build | --build | --buil | --bui | --bu | --b)
  185. +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  186. +    ac_prev=bindir ;;
  187. +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  188. +    bindir="$ac_optarg" ;;
  189. +
  190. +  -build | --build | --buil | --bui | --bu)
  191.      ac_prev=build ;;
  192. -  -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  193. +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  194.      build="$ac_optarg" ;;
  195.  
  196.    -cache-file | --cache-file | --cache-fil | --cache-fi \
  197. @@ -73,6 +94,12 @@ do
  198.    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  199.      cache_file="$ac_optarg" ;;
  200.  
  201. +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  202. +    ac_prev=datadir ;;
  203. +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  204. +  | --da=*)
  205. +    datadir="$ac_optarg" ;;
  206. +
  207.    -disable-* | --disable-*)
  208.      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  209.      # Reject names that are not valid shell variable names.
  210. @@ -123,12 +150,32 @@ Configuration:
  211.  Directory and file names:
  212.    --prefix=PREFIX         install architecture-independent files in PREFIX
  213.                            [$ac_default_prefix]
  214. -  --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  215. +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  216.                            [same as prefix]
  217. +  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  218. +  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  219. +  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  220. +  --datadir=DIR           read-only architecture-independent data in DIR
  221. +                          [PREFIX/share]
  222. +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  223. +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  224. +                          [PREFIX/com]
  225. +  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  226. +  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  227. +  --includedir=DIR        C header files in DIR [PREFIX/include]
  228. +  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  229. +  --infodir=DIR           info documentation in DIR [PREFIX/info]
  230. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  231. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  232. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  233. +  --mandir=DIR            man documentation in DIR [PREFIX/man]
  234.    --srcdir=DIR            find the sources in DIR [configure dir or ..]
  235.    --program-prefix=PREFIX prepend PREFIX to installed program names
  236.    --program-suffix=SUFFIX append SUFFIX to installed program names
  237. -  --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  238. +  --program-transform-name=PROGRAM
  239. +                          run sed PROGRAM on installed program names
  240. +EOF
  241. +    cat << EOF
  242.  Host type:
  243.    --build=BUILD           configure for building on BUILD [BUILD=HOST]
  244.    --host=HOST             configure for HOST [guessed]
  245. @@ -140,8 +187,10 @@ Features and packages:
  246.    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  247.    --x-includes=DIR        X include files are in DIR
  248.    --x-libraries=DIR       X library files are in DIR
  249. ---enable and --with options recognized:$ac_help
  250.  EOF
  251. +    if test -n "$ac_help"; then
  252. +      echo "--enable and --with options recognized:$ac_help"
  253. +    fi
  254.      exit 0 ;;
  255.  
  256.    -host | --host | --hos | --ho)
  257. @@ -149,6 +198,56 @@ EOF
  258.    -host=* | --host=* | --hos=* | --ho=*)
  259.      host="$ac_optarg" ;;
  260.  
  261. +  -includedir | --includedir | --includedi | --included | --include \
  262. +  | --includ | --inclu | --incl | --inc)
  263. +    ac_prev=includedir ;;
  264. +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  265. +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  266. +    includedir="$ac_optarg" ;;
  267. +
  268. +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  269. +    ac_prev=infodir ;;
  270. +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  271. +    infodir="$ac_optarg" ;;
  272. +
  273. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  274. +   ac_prev=guidedir ;;
  275. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  276. +
  277. + -psdir | --psdir | --psdi | --psd | --ps)
  278. +   ac_prev=psdir ;;
  279. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  280. +
  281. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  282. +   ac_prev=dvidir ;;
  283. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  284. +
  285. +  -libdir | --libdir | --libdi | --libd)
  286. +    ac_prev=libdir ;;
  287. +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  288. +    libdir="$ac_optarg" ;;
  289. +
  290. +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  291. +  | --libexe | --libex | --libe)
  292. +    ac_prev=libexecdir ;;
  293. +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  294. +  | --libexe=* | --libex=* | --libe=*)
  295. +    libexecdir="$ac_optarg" ;;
  296. +
  297. +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  298. +  | --localstate | --localstat | --localsta | --localst \
  299. +  | --locals | --local | --loca | --loc | --lo)
  300. +    ac_prev=localstatedir ;;
  301. +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  302. +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  303. +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  304. +    localstatedir="$ac_optarg" ;;
  305. +
  306. +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  307. +    ac_prev=mandir ;;
  308. +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  309. +    mandir="$ac_optarg" ;;
  310. +
  311.    -nfp | --nfp | --nf)
  312.      # Obsolete; use --without-fp.
  313.      with_fp=no ;;
  314. @@ -161,6 +260,15 @@ EOF
  315.    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  316.      no_recursion=yes ;;
  317.  
  318. +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  319. +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  320. +  | --oldin | --oldi | --old | --ol | --o)
  321. +    ac_prev=oldincludedir ;;
  322. +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  323. +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  324. +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  325. +    oldincludedir="$ac_optarg" ;;
  326. +
  327.    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  328.      ac_prev=prefix ;;
  329.    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  330. @@ -201,6 +309,23 @@ EOF
  331.    | -silent | --silent | --silen | --sile | --sil)
  332.      silent=yes ;;
  333.  
  334. +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  335. +    ac_prev=sbindir ;;
  336. +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  337. +  | --sbi=* | --sb=*)
  338. +    sbindir="$ac_optarg" ;;
  339. +
  340. +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  341. +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  342. +  | --sharedst | --shareds | --shared | --share | --shar \
  343. +  | --sha | --sh)
  344. +    ac_prev=sharedstatedir ;;
  345. +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  346. +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  347. +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  348. +  | --sha=* | --sh=*)
  349. +    sharedstatedir="$ac_optarg" ;;
  350. +
  351.    -site | --site | --sit)
  352.      ac_prev=site ;;
  353.    -site=* | --site=* | --sit=*)
  354. @@ -211,6 +336,13 @@ EOF
  355.    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  356.      srcdir="$ac_optarg" ;;
  357.  
  358. +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  359. +  | --syscon | --sysco | --sysc | --sys | --sy)
  360. +    ac_prev=sysconfdir ;;
  361. +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  362. +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  363. +    sysconfdir="$ac_optarg" ;;
  364. +
  365.    -target | --target | --targe | --targ | --tar | --ta | --t)
  366.      ac_prev=target ;;
  367.    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  368. @@ -220,7 +352,7 @@ EOF
  369.      verbose=yes ;;
  370.  
  371.    -version | --version | --versio | --versi | --vers)
  372. -    echo "configure generated by autoconf version 2.1"
  373. +    echo "configure generated by autoconf version 2.10"
  374.      exit 0 ;;
  375.  
  376.    -with-* | --with-*)
  377. @@ -266,7 +398,7 @@ EOF
  378.    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  379.      ;;
  380.  
  381. -  *) 
  382. +  *)
  383.      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  384.        echo "configure: warning: $ac_option: invalid host type" 1>&2
  385.      fi
  386. @@ -283,19 +415,20 @@ if test -n "$ac_prev"; then
  387.    { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  388.  fi
  389.  
  390. -trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  391. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  392.  
  393.  # File descriptor usage:
  394. -# 0 unused; standard input
  395. +# 0 standard input
  396.  # 1 file creation
  397.  # 2 errors and warnings
  398. -# 3 unused; some systems may open it to /dev/tty
  399. -# 4 checking for... messages and results
  400. +# 3 some systems may open it to /dev/tty
  401. +# 4 used on the Kubota Titan
  402. +# 6 checking for... messages and results
  403.  # 5 compiler messages saved in config.log
  404.  if test "$silent" = yes; then
  405. -  exec 4>/dev/null
  406. +  exec 6>/dev/null
  407.  else
  408. -  exec 4>&1
  409. +  exec 6>&1
  410.  fi
  411.  exec 5>./config.log
  412.  
  413. @@ -385,8 +518,8 @@ fi
  414.  ac_ext=c
  415.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  416.  ac_cpp='$CPP $CPPFLAGS'
  417. -ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
  418. -ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  419. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  420. +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  421.  
  422.  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  423.    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  424. @@ -404,8 +537,8 @@ fi
  425.  
  426.  
  427.  # Check whether --enable-id-cache or --disable-id-cache was given.
  428. -enableval="$enable_id_cache"
  429. -if test -n "$enableval"; then
  430. +if test "${enable_id_cache+set}" = set; then
  431. +  enableval="$enable_id_cache"
  432.    cat >> confdefs.h <<\EOF
  433.  #define CACHE_IDS 1
  434.  EOF
  435. @@ -413,8 +546,8 @@ EOF
  436.  fi
  437.  
  438.  # Check whether --with-afs or --without-afs was given.
  439. -withval="$with_afs"
  440. -if test -n "$withval"; then
  441. +if test "${with_afs+set}" = set; then
  442. +  withval="$with_afs"
  443.      cat >> confdefs.h <<\EOF
  444.  #define AFS 1
  445.  EOF
  446. @@ -426,8 +559,10 @@ fi
  447.  if test "$program_transform_name" = s,x,x,; then
  448.    program_transform_name=
  449.  else
  450. -  # Double any \ or $.
  451. -  echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
  452. +  # Double any \ or $.  echo might interpret backslashes.
  453. +  cat <<\EOF_SED > conftestsed
  454. +s,\\,\\\\,g; s,\$,$$,g
  455. +EOF_SED
  456.    program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  457.    rm -f conftestsed
  458.  fi
  459. @@ -443,9 +578,9 @@ test "$program_transform_name" = "" && p
  460.  
  461.  # Extract the first word of "gcc", so it can be a program name with args.
  462.  set dummy gcc; ac_word=$2
  463. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  464. -if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  465. -  echo $ac_n "(cached) $ac_c" 1>&4
  466. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  467. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  468. +  echo $ac_n "(cached) $ac_c" 1>&6
  469.  else
  470.    if test -n "$CC"; then
  471.    ac_cv_prog_CC="$CC" # Let the user override the test.
  472. @@ -459,39 +594,88 @@ else
  473.      fi
  474.    done
  475.    IFS="$ac_save_ifs"
  476. -  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  477.  fi
  478.  fi
  479.  CC="$ac_cv_prog_CC"
  480.  if test -n "$CC"; then
  481. -  echo "$ac_t""$CC" 1>&4
  482. +  echo "$ac_t""$CC" 1>&6
  483.  else
  484. -  echo "$ac_t""no" 1>&4
  485. +  echo "$ac_t""no" 1>&6
  486.  fi
  487.  
  488. +if test -z "$CC"; then
  489. +  # Extract the first word of "cc", so it can be a program name with args.
  490. +set dummy cc; ac_word=$2
  491. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  492. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  493. +  echo $ac_n "(cached) $ac_c" 1>&6
  494. +else
  495. +  if test -n "$CC"; then
  496. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  497. +else
  498. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  499. +  ac_prog_rejected=no
  500. +  for ac_dir in $PATH; do
  501. +    test -z "$ac_dir" && ac_dir=.
  502. +    if test -f $ac_dir/$ac_word; then
  503. +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  504. +        ac_prog_rejected=yes
  505. +    continue
  506. +      fi
  507. +      ac_cv_prog_CC="cc"
  508. +      break
  509. +    fi
  510. +  done
  511. +  IFS="$ac_save_ifs"
  512. +if test $ac_prog_rejected = yes; then
  513. +  # We found a bogon in the path, so make sure we never use it.
  514. +  set dummy $ac_cv_prog_CC
  515. +  shift
  516. +  if test $# -gt 0; then
  517. +    # We chose a different compiler from the bogus one.
  518. +    # However, it has the same basename, so the bogon will be chosen
  519. +    # first if we set CC to just the basename; use the full file name.
  520. +    shift
  521. +    set dummy "$ac_dir/$ac_word" "$@"
  522. +    shift
  523. +    ac_cv_prog_CC="$@"
  524. +  fi
  525. +fi
  526. +fi
  527. +fi
  528. +CC="$ac_cv_prog_CC"
  529. +if test -n "$CC"; then
  530. +  echo "$ac_t""$CC" 1>&6
  531. +else
  532. +  echo "$ac_t""no" 1>&6
  533. +fi
  534. +
  535. +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  536. +fi
  537.  
  538. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  539. -if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  540. -  echo $ac_n "(cached) $ac_c" 1>&4
  541. +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  542. +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  543. +  echo $ac_n "(cached) $ac_c" 1>&6
  544.  else
  545.    cat > conftest.c <<EOF
  546.  #ifdef __GNUC__
  547.    yes;
  548.  #endif
  549.  EOF
  550. -if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  551. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  552.    ac_cv_prog_gcc=yes
  553.  else
  554.    ac_cv_prog_gcc=no
  555.  fi
  556.  fi
  557. -echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  558. +
  559. +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  560.  if test $ac_cv_prog_gcc = yes; then
  561.    GCC=yes
  562.    if test "${CFLAGS+set}" != set; then
  563. -    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  564. -if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  565. -  echo $ac_n "(cached) $ac_c" 1>&4
  566. +    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  567. +if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  568. +  echo $ac_n "(cached) $ac_c" 1>&6
  569.  else
  570.    echo 'void f(){}' > conftest.c
  571.  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  572. @@ -502,11 +686,12 @@ fi
  573.  rm -f conftest*
  574.  
  575.  fi
  576. -    echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  577. +
  578. +echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  579.      if test $ac_cv_prog_gcc_g = yes; then
  580. -      CFLAGS="-g -O"
  581. +      CFLAGS="-g -O2"
  582.      else
  583. -      CFLAGS="-O"
  584. +      CFLAGS="-O2"
  585.      fi
  586.    fi
  587.  else
  588. @@ -514,14 +699,14 @@ else
  589.    test "${CFLAGS+set}" = set || CFLAGS="-g"
  590.  fi
  591.  
  592. -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  593. +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  594.  # On Suns, sometimes $CPP names a directory.
  595.  if test -n "$CPP" && test -d "$CPP"; then
  596.    CPP=
  597.  fi
  598.  if test -z "$CPP"; then
  599. -if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  600. -  echo $ac_n "(cached) $ac_c" 1>&4
  601. +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  602. +  echo $ac_n "(cached) $ac_c" 1>&6
  603.  else
  604.      # This must be in double quotes, not single quotes, because CPP may get
  605.    # substituted into the Makefile and "${CC-cc}" will confuse make.
  606. @@ -529,12 +714,13 @@ else
  607.    # On the NeXT, cc -E runs the code through the compiler's parser,
  608.    # not just through cpp.
  609.    cat > conftest.$ac_ext <<EOF
  610. -#line 533 "configure"
  611. +#line 718 "configure"
  612.  #include "confdefs.h"
  613.  #include <assert.h>
  614.  Syntax Error
  615.  EOF
  616. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  617. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  618. +{ (eval echo configure:724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  619.  ac_err=`grep -v '^ *+' conftest.out`
  620.  if test -z "$ac_err"; then
  621.    :
  622. @@ -543,12 +729,13 @@ else
  623.    rm -rf conftest*
  624.    CPP="${CC-cc} -E -traditional-cpp"
  625.    cat > conftest.$ac_ext <<EOF
  626. -#line 547 "configure"
  627. +#line 733 "configure"
  628.  #include "confdefs.h"
  629.  #include <assert.h>
  630.  Syntax Error
  631.  EOF
  632. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  633. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  634. +{ (eval echo configure:739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  635.  ac_err=`grep -v '^ *+' conftest.out`
  636.  if test -z "$ac_err"; then
  637.    :
  638. @@ -562,9 +749,11 @@ fi
  639.  rm -f conftest*
  640.    ac_cv_prog_CPP="$CPP"
  641.  fi
  642. +  CPP="$ac_cv_prog_CPP"
  643. +else
  644. +  ac_cv_prog_CPP="$CPP"
  645.  fi
  646. -CPP="$ac_cv_prog_CPP"
  647. -echo "$ac_t""$CPP" 1>&4
  648. +echo "$ac_t""$CPP" 1>&6
  649.  
  650.  ac_aux_dir=
  651.  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  652. @@ -592,18 +781,20 @@ ac_configure=$ac_aux_dir/configure # Thi
  653.  # SunOS /usr/etc/install
  654.  # IRIX /sbin/install
  655.  # AIX /bin/install
  656. +# AmigaOS /c/install
  657.  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  658.  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  659.  # ./install, which can be erroneously created by make from ./install.sh.
  660. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  661. +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  662.  if test -z "$INSTALL"; then
  663. -if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  664. -  echo $ac_n "(cached) $ac_c" 1>&4
  665. +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  666. +  echo $ac_n "(cached) $ac_c" 1>&6
  667.  else
  668.      IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  669.    for ac_dir in $PATH; do
  670. -    case "$ac_dir" in
  671. -    ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
  672. +    # Account for people who put trailing slashes in PATH elements.
  673. +    case "$ac_dir/" in
  674. +    /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  675.      *)
  676.        # OSF1 and SCO ODT 3.0 have their own names for install.
  677.        for ac_prog in ginstall installbsd scoinst install; do
  678. @@ -623,12 +814,19 @@ else
  679.      esac
  680.    done
  681.    IFS="$ac_save_ifs"
  682. -  # As a last resort, use the slow shell script.
  683. -  test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  684. +
  685.  fi
  686. -  INSTALL="$ac_cv_path_install"
  687. +  if test "${ac_cv_path_install+set}" = set; then
  688. +    INSTALL="$ac_cv_path_install"
  689. +  else
  690. +    # As a last resort, use the slow shell script.  We don't cache a
  691. +    # path for INSTALL within a source directory, because that will
  692. +    # break other packages using the cache if that directory is
  693. +    # removed, or if the path is relative.
  694. +    INSTALL="$ac_install_sh"
  695. +  fi
  696.  fi
  697. -echo "$ac_t""$INSTALL" 1>&4
  698. +echo "$ac_t""$INSTALL" 1>&6
  699.  
  700.  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  701.  # It thinks the first close brace ends the variable substitution.
  702. @@ -638,9 +836,9 @@ test -z "$INSTALL_DATA" && INSTALL_DATA=
  703.  
  704.  # Extract the first word of "ranlib", so it can be a program name with args.
  705.  set dummy ranlib; ac_word=$2
  706. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  707. -if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  708. -  echo $ac_n "(cached) $ac_c" 1>&4
  709. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  710. +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  711. +  echo $ac_n "(cached) $ac_c" 1>&6
  712.  else
  713.    if test -n "$RANLIB"; then
  714.    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  715. @@ -659,15 +857,15 @@ fi
  716.  fi
  717.  RANLIB="$ac_cv_prog_RANLIB"
  718.  if test -n "$RANLIB"; then
  719. -  echo "$ac_t""$RANLIB" 1>&4
  720. +  echo "$ac_t""$RANLIB" 1>&6
  721.  else
  722. -  echo "$ac_t""no" 1>&4
  723. +  echo "$ac_t""no" 1>&6
  724.  fi
  725.  
  726. -echo $ac_n "checking whether ${MAKE-make} sets \$MAKE""... $ac_c" 1>&4
  727. +echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  728.  set dummy ${MAKE-make}; ac_make=$2
  729. -if eval "test \"`echo '${'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  730. -  echo $ac_n "(cached) $ac_c" 1>&4
  731. +if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  732. +  echo $ac_n "(cached) $ac_c" 1>&6
  733.  else
  734.    cat > conftestmake <<\EOF
  735.  all:
  736. @@ -683,17 +881,17 @@ fi
  737.  rm -f conftestmake
  738.  fi
  739.  if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  740. -  echo "$ac_t""yes" 1>&4
  741. +  echo "$ac_t""yes" 1>&6
  742.    SET_MAKE=
  743.  else
  744. -  echo "$ac_t""no" 1>&4
  745. +  echo "$ac_t""no" 1>&6
  746.    SET_MAKE="MAKE=${MAKE-make}"
  747.  fi
  748.  
  749.  
  750. -echo $ac_n "checking for AIX""... $ac_c" 1>&4
  751. +echo $ac_n "checking for AIX""... $ac_c" 1>&6
  752.  cat > conftest.$ac_ext <<EOF
  753. -#line 697 "configure"
  754. +#line 895 "configure"
  755.  #include "confdefs.h"
  756.  #ifdef _AIX
  757.    yes
  758. @@ -703,28 +901,29 @@ EOF
  759.  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  760.    egrep "yes" >/dev/null 2>&1; then
  761.    rm -rf conftest*
  762. -  echo "$ac_t""yes" 1>&4; cat >> confdefs.h <<\EOF
  763. +  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  764.  #define _ALL_SOURCE 1
  765.  EOF
  766.  
  767.  else
  768.    rm -rf conftest*
  769. -  echo "$ac_t""no" 1>&4
  770. +  echo "$ac_t""no" 1>&6
  771.  fi
  772.  rm -f conftest*
  773.  
  774.  
  775.  ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  776. -echo $ac_n "checking for minix/config.h""... $ac_c" 1>&4
  777. -if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  778. -  echo $ac_n "(cached) $ac_c" 1>&4
  779. +echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  780. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  781. +  echo $ac_n "(cached) $ac_c" 1>&6
  782.  else
  783.    cat > conftest.$ac_ext <<EOF
  784. -#line 724 "configure"
  785. +#line 922 "configure"
  786.  #include "confdefs.h"
  787.  #include <minix/config.h>
  788.  EOF
  789. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  790. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  791. +{ (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  792.  ac_err=`grep -v '^ *+' conftest.out`
  793.  if test -z "$ac_err"; then
  794.    rm -rf conftest*
  795. @@ -737,10 +936,10 @@ fi
  796.  rm -f conftest*
  797.  fi
  798.  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  799. -  echo "$ac_t""yes" 1>&4
  800. +  echo "$ac_t""yes" 1>&6
  801.    MINIX=yes
  802.  else
  803. -  echo "$ac_t""no" 1>&4
  804. +  echo "$ac_t""no" 1>&6
  805.  MINIX=
  806.  fi
  807.  
  808. @@ -759,11 +958,11 @@ EOF
  809.  
  810.  fi
  811.  
  812. -echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&4
  813. +echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  814.  if test -d /etc/conf/kconfig.d &&
  815.    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  816.  then
  817. -  echo "$ac_t""yes" 1>&4
  818. +  echo "$ac_t""yes" 1>&6
  819.    ISC=yes # If later tests want to check for ISC.
  820.    cat >> confdefs.h <<\EOF
  821.  #define _POSIX_SOURCE 1
  822. @@ -775,64 +974,70 @@ EOF
  823.      CC="$CC -Xp"
  824.    fi
  825.  else
  826. -  echo "$ac_t""no" 1>&4
  827. +  echo "$ac_t""no" 1>&6
  828.    ISC=
  829.  fi
  830.  
  831.  
  832. -echo $ac_n "checking for -lsun""... $ac_c" 1>&4
  833. -if eval "test \"`echo '${'ac_cv_lib_sun'+set}'`\" = set"; then
  834. -  echo $ac_n "(cached) $ac_c" 1>&4
  835. +echo $ac_n "checking for -lsun""... $ac_c" 1>&6
  836. +ac_lib_var=`echo sun'_'getpwnam | tr './+\055' '__p_'`
  837. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  838. +  echo $ac_n "(cached) $ac_c" 1>&6
  839.  else
  840.    ac_save_LIBS="$LIBS"
  841. -LIBS="$LIBS -lsun "
  842. +LIBS="-lsun  $LIBS"
  843.  cat > conftest.$ac_ext <<EOF
  844. -#line 791 "configure"
  845. +#line 991 "configure"
  846.  #include "confdefs.h"
  847. +/* Override any gcc2 internal prototype to avoid an error.  */
  848. +/* We use char because int might match the return type of a gcc2
  849. +    builtin and then its argument prototype would still apply.  */
  850. +char getpwnam();
  851.  
  852. -int main() { return 0; }
  853. +int main() { t(); return 0; }
  854.  int t() {
  855.  getpwnam()
  856.  ; return 0; }
  857.  EOF
  858. -if eval $ac_link; then
  859. +if { (eval echo configure:1003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  860.    rm -rf conftest*
  861. -  eval "ac_cv_lib_sun=yes"
  862. +  eval "ac_cv_lib_$ac_lib_var=yes"
  863.  else
  864.    rm -rf conftest*
  865. -  eval "ac_cv_lib_sun=no"
  866. +  eval "ac_cv_lib_$ac_lib_var=no"
  867.  fi
  868.  rm -f conftest*
  869.  LIBS="$ac_save_LIBS"
  870.  
  871.  fi
  872. -if eval "test \"`echo '$ac_cv_lib_'sun`\" = yes"; then
  873. -  echo "$ac_t""yes" 1>&4
  874. -    ac_tr_lib=HAVE_LIB`echo sun | tr '[a-z]' '[A-Z]'`
  875. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  876. +  echo "$ac_t""yes" 1>&6
  877. +    ac_tr_lib=HAVE_LIB`echo sun | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  878.    cat >> confdefs.h <<EOF
  879.  #define $ac_tr_lib 1
  880.  EOF
  881.  
  882. -  LIBS="$LIBS -lsun"
  883. +  LIBS="-lsun $LIBS"
  884.  
  885.  else
  886. -  echo "$ac_t""no" 1>&4
  887. +  echo "$ac_t""no" 1>&6
  888.  fi
  889.  
  890.  
  891.  for ac_hdr in fcntl.h string.h limits.h unistd.h
  892.  do
  893.  ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  894. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  895. -if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  896. -  echo $ac_n "(cached) $ac_c" 1>&4
  897. +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  898. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  899. +  echo $ac_n "(cached) $ac_c" 1>&6
  900.  else
  901.    cat > conftest.$ac_ext <<EOF
  902. -#line 832 "configure"
  903. +#line 1036 "configure"
  904.  #include "confdefs.h"
  905.  #include <$ac_hdr>
  906.  EOF
  907. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  908. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  909. +{ (eval echo configure:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  910.  ac_err=`grep -v '^ *+' conftest.out`
  911.  if test -z "$ac_err"; then
  912.    rm -rf conftest*
  913. @@ -845,31 +1050,31 @@ fi
  914.  rm -f conftest*
  915.  fi
  916.  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  917. -  echo "$ac_t""yes" 1>&4
  918. -    ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  919. +  echo "$ac_t""yes" 1>&6
  920. +    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  921.    cat >> confdefs.h <<EOF
  922.  #define $ac_tr_hdr 1
  923.  EOF
  924.   
  925.  else
  926. -  echo "$ac_t""no" 1>&4
  927. +  echo "$ac_t""no" 1>&6
  928.  fi
  929.  done
  930.  
  931.  # If we cannot run a trivial program, we must be cross compiling.
  932. -echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  933. -if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  934. -  echo $ac_n "(cached) $ac_c" 1>&4
  935. +echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  936. +if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  937. +  echo $ac_n "(cached) $ac_c" 1>&6
  938.  else
  939.    if test "$cross_compiling" = yes; then
  940. -  ac_cv_cross=yes
  941. +  ac_cv_c_cross=yes
  942.  else
  943.  cat > conftest.$ac_ext <<EOF
  944. -#line 869 "configure"
  945. +#line 1074 "configure"
  946.  #include "confdefs.h"
  947.  main(){return(0);}
  948.  EOF
  949. -eval $ac_link
  950. +{ (eval echo configure:1078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  951.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  952.    ac_cv_c_cross=no
  953.  else
  954. @@ -878,22 +1083,24 @@ fi
  955.  fi
  956.  rm -fr conftest*
  957.  fi
  958. +
  959. +echo "$ac_t""$ac_cv_c_cross" 1>&6
  960.  cross_compiling=$ac_cv_c_cross
  961. -echo "$ac_t""$ac_cv_c_cross" 1>&4
  962.  
  963. -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  964. -if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  965. -  echo $ac_n "(cached) $ac_c" 1>&4
  966. +echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  967. +if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  968. +  echo $ac_n "(cached) $ac_c" 1>&6
  969.  else
  970.    cat > conftest.$ac_ext <<EOF
  971. -#line 890 "configure"
  972. +#line 1096 "configure"
  973.  #include "confdefs.h"
  974.  #include <stdlib.h>
  975.  #include <stdarg.h>
  976.  #include <string.h>
  977.  #include <float.h>
  978.  EOF
  979. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  980. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  981. +{ (eval echo configure:1104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  982.  ac_err=`grep -v '^ *+' conftest.out`
  983.  if test -z "$ac_err"; then
  984.    rm -rf conftest*
  985. @@ -908,7 +1115,7 @@ rm -f conftest*
  986.  if test $ac_cv_header_stdc = yes; then
  987.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  988.  cat > conftest.$ac_ext <<EOF
  989. -#line 912 "configure"
  990. +#line 1119 "configure"
  991.  #include "confdefs.h"
  992.  #include <string.h>
  993.  EOF
  994. @@ -926,7 +1133,7 @@ fi
  995.  if test $ac_cv_header_stdc = yes; then
  996.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  997.  cat > conftest.$ac_ext <<EOF
  998. -#line 930 "configure"
  999. +#line 1137 "configure"
  1000.  #include "confdefs.h"
  1001.  #include <stdlib.h>
  1002.  EOF
  1003. @@ -944,10 +1151,10 @@ fi
  1004.  if test $ac_cv_header_stdc = yes; then
  1005.    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1006.  if test "$cross_compiling" = yes; then
  1007. -  ac_cv_header_stdc=no
  1008. +  :
  1009.  else
  1010.  cat > conftest.$ac_ext <<EOF
  1011. -#line 951 "configure"
  1012. +#line 1158 "configure"
  1013.  #include "confdefs.h"
  1014.  #include <ctype.h>
  1015.  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1016. @@ -958,7 +1165,7 @@ if (XOR (islower (i), ISLOWER (i)) || to
  1017.  exit (0); }
  1018.  
  1019.  EOF
  1020. -eval $ac_link
  1021. +{ (eval echo configure:1169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1022.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1023.    :
  1024.  else
  1025. @@ -968,7 +1175,8 @@ fi
  1026.  rm -fr conftest*
  1027.  fi
  1028.  fi
  1029. -echo "$ac_t""$ac_cv_header_stdc" 1>&4
  1030. +
  1031. +echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1032.  if test $ac_cv_header_stdc = yes; then
  1033.    cat >> confdefs.h <<\EOF
  1034.  #define STDC_HEADERS 1
  1035. @@ -976,20 +1184,20 @@ EOF
  1036.  
  1037.  fi
  1038.  
  1039. -echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&4
  1040. -if eval "test \"`echo '${'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
  1041. -  echo $ac_n "(cached) $ac_c" 1>&4
  1042. +echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
  1043. +if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
  1044. +  echo $ac_n "(cached) $ac_c" 1>&6
  1045.  else
  1046.    cat > conftest.$ac_ext <<EOF
  1047. -#line 985 "configure"
  1048. +#line 1193 "configure"
  1049.  #include "confdefs.h"
  1050.  #include <sys/types.h>
  1051. -int main() { return 0; }
  1052. +int main() { t(); return 0; }
  1053.  int t() {
  1054.  return makedev(0, 0);
  1055.  ; return 0; }
  1056.  EOF
  1057. -if eval $ac_link; then
  1058. +if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1059.    rm -rf conftest*
  1060.    ac_cv_header_sys_types_h_makedev=yes
  1061.  else
  1062. @@ -1000,20 +1208,22 @@ rm -f conftest*
  1063.  
  1064.  
  1065.  fi
  1066. -echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&4
  1067. +
  1068. +echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
  1069.  
  1070.  if test $ac_cv_header_sys_types_h_makedev = no; then
  1071.  ac_safe=`echo "sys/mkdev.h" | tr './\055' '___'`
  1072. -echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&4
  1073. -if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1074. -  echo $ac_n "(cached) $ac_c" 1>&4
  1075. +echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
  1076. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1077. +  echo $ac_n "(cached) $ac_c" 1>&6
  1078.  else
  1079.    cat > conftest.$ac_ext <<EOF
  1080. -#line 1013 "configure"
  1081. +#line 1222 "configure"
  1082.  #include "confdefs.h"
  1083.  #include <sys/mkdev.h>
  1084.  EOF
  1085. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1086. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1087. +{ (eval echo configure:1227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1088.  ac_err=`grep -v '^ *+' conftest.out`
  1089.  if test -z "$ac_err"; then
  1090.    rm -rf conftest*
  1091. @@ -1026,28 +1236,29 @@ fi
  1092.  rm -f conftest*
  1093.  fi
  1094.  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1095. -  echo "$ac_t""yes" 1>&4
  1096. +  echo "$ac_t""yes" 1>&6
  1097.    cat >> confdefs.h <<\EOF
  1098.  #define MAJOR_IN_MKDEV 1
  1099.  EOF
  1100.  
  1101.  else
  1102. -  echo "$ac_t""no" 1>&4
  1103. +  echo "$ac_t""no" 1>&6
  1104.  fi
  1105.  
  1106.  
  1107.    if test $ac_cv_header_sys_mkdev_h = no; then
  1108.  ac_safe=`echo "sys/sysmacros.h" | tr './\055' '___'`
  1109. -echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&4
  1110. -if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1111. -  echo $ac_n "(cached) $ac_c" 1>&4
  1112. +echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
  1113. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1114. +  echo $ac_n "(cached) $ac_c" 1>&6
  1115.  else
  1116.    cat > conftest.$ac_ext <<EOF
  1117. -#line 1047 "configure"
  1118. +#line 1257 "configure"
  1119.  #include "confdefs.h"
  1120.  #include <sys/sysmacros.h>
  1121.  EOF
  1122. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1123. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1124. +{ (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1125.  ac_err=`grep -v '^ *+' conftest.out`
  1126.  if test -z "$ac_err"; then
  1127.    rm -rf conftest*
  1128. @@ -1060,13 +1271,13 @@ fi
  1129.  rm -f conftest*
  1130.  fi
  1131.  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1132. -  echo "$ac_t""yes" 1>&4
  1133. +  echo "$ac_t""yes" 1>&6
  1134.    cat >> confdefs.h <<\EOF
  1135.  #define MAJOR_IN_SYSMACROS 1
  1136.  EOF
  1137.  
  1138.  else
  1139. -  echo "$ac_t""no" 1>&4
  1140. +  echo "$ac_t""no" 1>&6
  1141.  fi
  1142.  
  1143.    fi
  1144. @@ -1076,12 +1287,12 @@ ac_header_dirent=no
  1145.  for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1146.  do
  1147.  ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1148. -echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&4
  1149. -if eval "test \"`echo '${'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1150. -  echo $ac_n "(cached) $ac_c" 1>&4
  1151. +echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1152. +if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1153. +  echo $ac_n "(cached) $ac_c" 1>&6
  1154.  else
  1155.    cat > conftest.$ac_ext <<EOF
  1156. -#line 1085 "configure"
  1157. +#line 1296 "configure"
  1158.  #include "confdefs.h"
  1159.  #include <sys/types.h>
  1160.  #include <$ac_hdr>
  1161. @@ -1090,7 +1301,7 @@ int t() {
  1162.  DIR *dirp = 0;
  1163.  ; return 0; }
  1164.  EOF
  1165. -if eval $ac_compile; then
  1166. +if { (eval echo configure:1305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1167.    rm -rf conftest*
  1168.    eval "ac_cv_header_dirent_$ac_safe=yes"
  1169.  else
  1170. @@ -1101,114 +1312,126 @@ rm -f conftest*
  1171.  
  1172.  fi
  1173.  if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1174. -  echo "$ac_t""yes" 1>&4
  1175. -    ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1176. +  echo "$ac_t""yes" 1>&6
  1177. +    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  1178.    cat >> confdefs.h <<EOF
  1179.  #define $ac_tr_hdr 1
  1180.  EOF
  1181.   ac_header_dirent=$ac_hdr; break
  1182.  else
  1183. -  echo "$ac_t""no" 1>&4
  1184. +  echo "$ac_t""no" 1>&6
  1185.  fi
  1186.  done
  1187.  # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1188.  if test $ac_header_dirent = dirent.h; then
  1189. -echo $ac_n "checking for -ldir""... $ac_c" 1>&4
  1190. -if eval "test \"`echo '${'ac_cv_lib_dir'+set}'`\" = set"; then
  1191. -  echo $ac_n "(cached) $ac_c" 1>&4
  1192. +echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  1193. +ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
  1194. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1195. +  echo $ac_n "(cached) $ac_c" 1>&6
  1196.  else
  1197.    ac_save_LIBS="$LIBS"
  1198. -LIBS="$LIBS -ldir "
  1199. +LIBS="-ldir  $LIBS"
  1200.  cat > conftest.$ac_ext <<EOF
  1201. -#line 1124 "configure"
  1202. +#line 1336 "configure"
  1203.  #include "confdefs.h"
  1204. +/* Override any gcc2 internal prototype to avoid an error.  */
  1205. +/* We use char because int might match the return type of a gcc2
  1206. +    builtin and then its argument prototype would still apply.  */
  1207. +char opendir();
  1208.  
  1209. -int main() { return 0; }
  1210. +int main() { t(); return 0; }
  1211.  int t() {
  1212.  opendir()
  1213.  ; return 0; }
  1214.  EOF
  1215. -if eval $ac_link; then
  1216. +if { (eval echo configure:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1217.    rm -rf conftest*
  1218. -  eval "ac_cv_lib_dir=yes"
  1219. +  eval "ac_cv_lib_$ac_lib_var=yes"
  1220.  else
  1221.    rm -rf conftest*
  1222. -  eval "ac_cv_lib_dir=no"
  1223. +  eval "ac_cv_lib_$ac_lib_var=no"
  1224.  fi
  1225.  rm -f conftest*
  1226.  LIBS="$ac_save_LIBS"
  1227.  
  1228.  fi
  1229. -if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
  1230. -  echo "$ac_t""yes" 1>&4
  1231. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1232. +  echo "$ac_t""yes" 1>&6
  1233.    LIBS="$LIBS -ldir"
  1234.  else
  1235. -  echo "$ac_t""no" 1>&4
  1236. +  echo "$ac_t""no" 1>&6
  1237.  fi
  1238.  
  1239.  else
  1240. -echo $ac_n "checking for -lx""... $ac_c" 1>&4
  1241. -if eval "test \"`echo '${'ac_cv_lib_x'+set}'`\" = set"; then
  1242. -  echo $ac_n "(cached) $ac_c" 1>&4
  1243. +echo $ac_n "checking for -lx""... $ac_c" 1>&6
  1244. +ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
  1245. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1246. +  echo $ac_n "(cached) $ac_c" 1>&6
  1247.  else
  1248.    ac_save_LIBS="$LIBS"
  1249. -LIBS="$LIBS -lx "
  1250. +LIBS="-lx  $LIBS"
  1251.  cat > conftest.$ac_ext <<EOF
  1252. -#line 1158 "configure"
  1253. +#line 1375 "configure"
  1254.  #include "confdefs.h"
  1255. +/* Override any gcc2 internal prototype to avoid an error.  */
  1256. +/* We use char because int might match the return type of a gcc2
  1257. +    builtin and then its argument prototype would still apply.  */
  1258. +char opendir();
  1259.  
  1260. -int main() { return 0; }
  1261. +int main() { t(); return 0; }
  1262.  int t() {
  1263.  opendir()
  1264.  ; return 0; }
  1265.  EOF
  1266. -if eval $ac_link; then
  1267. +if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1268.    rm -rf conftest*
  1269. -  eval "ac_cv_lib_x=yes"
  1270. +  eval "ac_cv_lib_$ac_lib_var=yes"
  1271.  else
  1272.    rm -rf conftest*
  1273. -  eval "ac_cv_lib_x=no"
  1274. +  eval "ac_cv_lib_$ac_lib_var=no"
  1275.  fi
  1276.  rm -f conftest*
  1277.  LIBS="$ac_save_LIBS"
  1278.  
  1279.  fi
  1280. -if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
  1281. -  echo "$ac_t""yes" 1>&4
  1282. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1283. +  echo "$ac_t""yes" 1>&6
  1284.    LIBS="$LIBS -lx"
  1285.  else
  1286. -  echo "$ac_t""no" 1>&4
  1287. +  echo "$ac_t""no" 1>&6
  1288.  fi
  1289.  
  1290.  fi
  1291.  
  1292. -echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&4
  1293. -if eval "test \"`echo '${'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1294. -  echo $ac_n "(cached) $ac_c" 1>&4
  1295. +echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  1296. +if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1297. +  echo $ac_n "(cached) $ac_c" 1>&6
  1298.  else
  1299.    cat > conftest.$ac_ext <<EOF
  1300. -#line 1191 "configure"
  1301. +#line 1412 "configure"
  1302.  #include "confdefs.h"
  1303.  #include <sys/types.h>
  1304.  #include <sys/stat.h>
  1305. -#ifdef S_ISBLK
  1306. +
  1307. +#if defined(S_ISBLK) && defined(S_IFDIR)
  1308.  # if S_ISBLK (S_IFDIR)
  1309.  You lose.
  1310.  # endif
  1311. -# ifdef S_IFCHR
  1312. -#  if S_ISBLK (S_IFCHR)
  1313. +#endif
  1314. +
  1315. +#if defined(S_ISBLK) && defined(S_IFCHR)
  1316. +# if S_ISBLK (S_IFCHR)
  1317.  You lose.
  1318. -#  endif
  1319.  # endif
  1320.  #endif
  1321.  
  1322. -#ifdef S_ISLNK
  1323. +#if defined(S_ISLNK) && defined(S_IFREG)
  1324.  # if S_ISLNK (S_IFREG)
  1325.  You lose.
  1326.  # endif
  1327.  #endif
  1328.  
  1329. -#ifdef S_ISSOCK
  1330. +#if defined(S_ISSOCK) && defined(S_IFREG)
  1331.  # if S_ISSOCK (S_IFREG)
  1332.  You lose.
  1333.  # endif
  1334. @@ -1226,7 +1449,8 @@ fi
  1335.  rm -f conftest*
  1336.  
  1337.  fi
  1338. -echo "$ac_t""$ac_cv_header_stat_broken" 1>&4
  1339. +
  1340. +echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  1341.  if test $ac_cv_header_stat_broken = yes; then
  1342.    cat >> confdefs.h <<\EOF
  1343.  #define STAT_MACROS_BROKEN 1
  1344. @@ -1234,12 +1458,12 @@ EOF
  1345.  
  1346.  fi
  1347.  
  1348. -echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&4
  1349. -if eval "test \"`echo '${'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1350. -  echo $ac_n "(cached) $ac_c" 1>&4
  1351. +echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  1352. +if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1353. +  echo $ac_n "(cached) $ac_c" 1>&6
  1354.  else
  1355.    cat > conftest.$ac_ext <<EOF
  1356. -#line 1243 "configure"
  1357. +#line 1467 "configure"
  1358.  #include "confdefs.h"
  1359.  #include <sys/types.h>
  1360.  #include <sys/wait.h>
  1361. @@ -1256,7 +1480,7 @@ wait (&s);
  1362.  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  1363.  ; return 0; }
  1364.  EOF
  1365. -if eval $ac_compile; then
  1366. +if { (eval echo configure:1484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1367.    rm -rf conftest*
  1368.    ac_cv_header_sys_wait_h=yes
  1369.  else
  1370. @@ -1266,7 +1490,8 @@ fi
  1371.  rm -f conftest*
  1372.  
  1373.  fi
  1374. -echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&4
  1375. +
  1376. +echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  1377.  if test $ac_cv_header_sys_wait_h = yes; then
  1378.    cat >> confdefs.h <<\EOF
  1379.  #define HAVE_SYS_WAIT_H 1
  1380. @@ -1275,16 +1500,17 @@ EOF
  1381.  fi
  1382.  
  1383.  
  1384. -echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&4
  1385. +echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
  1386.  fstype=no
  1387.  # The order of these tests is important.
  1388.  cat > conftest.$ac_ext <<EOF
  1389. -#line 1283 "configure"
  1390. +#line 1508 "configure"
  1391.  #include "confdefs.h"
  1392.  #include <sys/statvfs.h>
  1393.  #include <sys/fstyp.h>
  1394.  EOF
  1395. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1396. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1397. +{ (eval echo configure:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1398.  ac_err=`grep -v '^ *+' conftest.out`
  1399.  if test -z "$ac_err"; then
  1400.    rm -rf conftest*
  1401. @@ -1298,12 +1524,13 @@ fi
  1402.  rm -f conftest*
  1403.  if test $fstype = no; then
  1404.  cat > conftest.$ac_ext <<EOF
  1405. -#line 1302 "configure"
  1406. +#line 1528 "configure"
  1407.  #include "confdefs.h"
  1408.  #include <sys/statfs.h>
  1409.  #include <sys/fstyp.h>
  1410.  EOF
  1411. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1412. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1413. +{ (eval echo configure:1534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1414.  ac_err=`grep -v '^ *+' conftest.out`
  1415.  if test -z "$ac_err"; then
  1416.    rm -rf conftest*
  1417. @@ -1318,12 +1545,13 @@ rm -f conftest*
  1418.  fi
  1419.  if test $fstype = no; then
  1420.  cat > conftest.$ac_ext <<EOF
  1421. -#line 1322 "configure"
  1422. +#line 1549 "configure"
  1423.  #include "confdefs.h"
  1424.  #include <sys/statfs.h>
  1425.  #include <sys/vmount.h>
  1426.  EOF
  1427. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1428. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1429. +{ (eval echo configure:1555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1430.  ac_err=`grep -v '^ *+' conftest.out`
  1431.  if test -z "$ac_err"; then
  1432.    rm -rf conftest*
  1433. @@ -1338,11 +1566,12 @@ rm -f conftest*
  1434.  fi
  1435.  if test $fstype = no; then  
  1436.  cat > conftest.$ac_ext <<EOF
  1437. -#line 1342 "configure"
  1438. +#line 1570 "configure"
  1439.  #include "confdefs.h"
  1440.  #include <mntent.h>
  1441.  EOF
  1442. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1443. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1444. +{ (eval echo configure:1575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1445.  ac_err=`grep -v '^ *+' conftest.out`
  1446.  if test -z "$ac_err"; then
  1447.    rm -rf conftest*
  1448. @@ -1357,7 +1586,7 @@ rm -f conftest*
  1449.  fi
  1450.  if test $fstype = no; then  
  1451.  cat > conftest.$ac_ext <<EOF
  1452. -#line 1361 "configure"
  1453. +#line 1590 "configure"
  1454.  #include "confdefs.h"
  1455.  #include <sys/mount.h>
  1456.  EOF
  1457. @@ -1374,12 +1603,13 @@ rm -f conftest*
  1458.  fi
  1459.  if test $fstype = no; then  
  1460.  cat > conftest.$ac_ext <<EOF
  1461. -#line 1378 "configure"
  1462. +#line 1607 "configure"
  1463.  #include "confdefs.h"
  1464.  #include <sys/mount.h>
  1465.  #include <sys/fs_types.h>
  1466.  EOF
  1467. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1468. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1469. +{ (eval echo configure:1613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1470.  ac_err=`grep -v '^ *+' conftest.out`
  1471.  if test -z "$ac_err"; then
  1472.    rm -rf conftest*
  1473. @@ -1392,15 +1622,15 @@ else
  1474.  fi
  1475.  rm -f conftest*
  1476.  fi
  1477. -echo "$ac_t""$fstype" 1>&4
  1478. +echo "$ac_t""$fstype" 1>&6
  1479.  
  1480.  
  1481. -echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&4
  1482. -if eval "test \"`echo '${'ac_cv_type_uid_t'+set}'`\" = set"; then
  1483. -  echo $ac_n "(cached) $ac_c" 1>&4
  1484. +echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  1485. +if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  1486. +  echo $ac_n "(cached) $ac_c" 1>&6
  1487.  else
  1488.    cat > conftest.$ac_ext <<EOF
  1489. -#line 1404 "configure"
  1490. +#line 1634 "configure"
  1491.  #include "confdefs.h"
  1492.  #include <sys/types.h>
  1493.  EOF
  1494. @@ -1415,7 +1645,8 @@ fi
  1495.  rm -f conftest*
  1496.  
  1497.  fi
  1498. -echo "$ac_t""$ac_cv_type_uid_t" 1>&4
  1499. +
  1500. +echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  1501.  if test $ac_cv_type_uid_t = no; then
  1502.    cat >> confdefs.h <<\EOF
  1503.  #define uid_t int
  1504. @@ -1427,12 +1658,12 @@ EOF
  1505.  
  1506.  fi
  1507.  
  1508. -echo $ac_n "checking for size_t""... $ac_c" 1>&4
  1509. -if eval "test \"`echo '${'ac_cv_type_size_t'+set}'`\" = set"; then
  1510. -  echo $ac_n "(cached) $ac_c" 1>&4
  1511. +echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1512. +if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1513. +  echo $ac_n "(cached) $ac_c" 1>&6
  1514.  else
  1515.    cat > conftest.$ac_ext <<EOF
  1516. -#line 1436 "configure"
  1517. +#line 1667 "configure"
  1518.  #include "confdefs.h"
  1519.  #include <sys/types.h>
  1520.  #if STDC_HEADERS
  1521. @@ -1450,7 +1681,7 @@ fi
  1522.  rm -f conftest*
  1523.  
  1524.  fi
  1525. -echo "$ac_t""$ac_cv_type_size_t" 1>&4
  1526. +echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1527.  if test $ac_cv_type_size_t = no; then
  1528.    cat >> confdefs.h <<\EOF
  1529.  #define size_t unsigned
  1530. @@ -1458,12 +1689,12 @@ EOF
  1531.  
  1532.  fi
  1533.  
  1534. -echo $ac_n "checking for pid_t""... $ac_c" 1>&4
  1535. -if eval "test \"`echo '${'ac_cv_type_pid_t'+set}'`\" = set"; then
  1536. -  echo $ac_n "(cached) $ac_c" 1>&4
  1537. +echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  1538. +if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  1539. +  echo $ac_n "(cached) $ac_c" 1>&6
  1540.  else
  1541.    cat > conftest.$ac_ext <<EOF
  1542. -#line 1467 "configure"
  1543. +#line 1698 "configure"
  1544.  #include "confdefs.h"
  1545.  #include <sys/types.h>
  1546.  #if STDC_HEADERS
  1547. @@ -1481,7 +1712,7 @@ fi
  1548.  rm -f conftest*
  1549.  
  1550.  fi
  1551. -echo "$ac_t""$ac_cv_type_pid_t" 1>&4
  1552. +echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  1553.  if test $ac_cv_type_pid_t = no; then
  1554.    cat >> confdefs.h <<\EOF
  1555.  #define pid_t int
  1556. @@ -1489,12 +1720,12 @@ EOF
  1557.  
  1558.  fi
  1559.  
  1560. -echo $ac_n "checking for ino_t""... $ac_c" 1>&4
  1561. -if eval "test \"`echo '${'ac_cv_type_ino_t'+set}'`\" = set"; then
  1562. -  echo $ac_n "(cached) $ac_c" 1>&4
  1563. +echo $ac_n "checking for ino_t""... $ac_c" 1>&6
  1564. +if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
  1565. +  echo $ac_n "(cached) $ac_c" 1>&6
  1566.  else
  1567.    cat > conftest.$ac_ext <<EOF
  1568. -#line 1498 "configure"
  1569. +#line 1729 "configure"
  1570.  #include "confdefs.h"
  1571.  #include <sys/types.h>
  1572.  #if STDC_HEADERS
  1573. @@ -1512,7 +1743,7 @@ fi
  1574.  rm -f conftest*
  1575.  
  1576.  fi
  1577. -echo "$ac_t""$ac_cv_type_ino_t" 1>&4
  1578. +echo "$ac_t""$ac_cv_type_ino_t" 1>&6
  1579.  if test $ac_cv_type_ino_t = no; then
  1580.    cat >> confdefs.h <<\EOF
  1581.  #define ino_t unsigned long
  1582. @@ -1520,12 +1751,12 @@ EOF
  1583.  
  1584.  fi
  1585.  
  1586. -echo $ac_n "checking for dev_t""... $ac_c" 1>&4
  1587. -if eval "test \"`echo '${'ac_cv_type_dev_t'+set}'`\" = set"; then
  1588. -  echo $ac_n "(cached) $ac_c" 1>&4
  1589. +echo $ac_n "checking for dev_t""... $ac_c" 1>&6
  1590. +if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
  1591. +  echo $ac_n "(cached) $ac_c" 1>&6
  1592.  else
  1593.    cat > conftest.$ac_ext <<EOF
  1594. -#line 1529 "configure"
  1595. +#line 1760 "configure"
  1596.  #include "confdefs.h"
  1597.  #include <sys/types.h>
  1598.  #if STDC_HEADERS
  1599. @@ -1543,7 +1774,7 @@ fi
  1600.  rm -f conftest*
  1601.  
  1602.  fi
  1603. -echo "$ac_t""$ac_cv_type_dev_t" 1>&4
  1604. +echo "$ac_t""$ac_cv_type_dev_t" 1>&6
  1605.  if test $ac_cv_type_dev_t = no; then
  1606.    cat >> confdefs.h <<\EOF
  1607.  #define dev_t unsigned long
  1608. @@ -1551,12 +1782,12 @@ EOF
  1609.  
  1610.  fi
  1611.  
  1612. -echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&4
  1613. -if eval "test \"`echo '${'ac_cv_struct_st_blocks'+set}'`\" = set"; then
  1614. -  echo $ac_n "(cached) $ac_c" 1>&4
  1615. +echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
  1616. +if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
  1617. +  echo $ac_n "(cached) $ac_c" 1>&6
  1618.  else
  1619.    cat > conftest.$ac_ext <<EOF
  1620. -#line 1560 "configure"
  1621. +#line 1791 "configure"
  1622.  #include "confdefs.h"
  1623.  #include <sys/types.h>
  1624.  #include <sys/stat.h>
  1625. @@ -1565,7 +1796,7 @@ int t() {
  1626.  struct stat s; s.st_blocks;
  1627.  ; return 0; }
  1628.  EOF
  1629. -if eval $ac_compile; then
  1630. +if { (eval echo configure:1800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1631.    rm -rf conftest*
  1632.    ac_cv_struct_st_blocks=yes
  1633.  else
  1634. @@ -1575,7 +1806,8 @@ fi
  1635.  rm -f conftest*
  1636.  
  1637.  fi
  1638. -echo "$ac_t""$ac_cv_struct_st_blocks" 1>&4
  1639. +
  1640. +echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
  1641.  if test $ac_cv_struct_st_blocks = yes; then
  1642.    cat >> confdefs.h <<\EOF
  1643.  #define HAVE_ST_BLOCKS 1
  1644. @@ -1585,12 +1817,12 @@ else
  1645.    LIBOBJS="$LIBOBJS fileblocks.o"
  1646.  fi
  1647.  
  1648. -echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&4
  1649. -if eval "test \"`echo '${'ac_cv_struct_st_rdev'+set}'`\" = set"; then
  1650. -  echo $ac_n "(cached) $ac_c" 1>&4
  1651. +echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
  1652. +if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
  1653. +  echo $ac_n "(cached) $ac_c" 1>&6
  1654.  else
  1655.    cat > conftest.$ac_ext <<EOF
  1656. -#line 1594 "configure"
  1657. +#line 1826 "configure"
  1658.  #include "confdefs.h"
  1659.  #include <sys/types.h>
  1660.  #include <sys/stat.h>
  1661. @@ -1599,7 +1831,7 @@ int t() {
  1662.  struct stat s; s.st_rdev;
  1663.  ; return 0; }
  1664.  EOF
  1665. -if eval $ac_compile; then
  1666. +if { (eval echo configure:1835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1667.    rm -rf conftest*
  1668.    ac_cv_struct_st_rdev=yes
  1669.  else
  1670. @@ -1609,7 +1841,8 @@ fi
  1671.  rm -f conftest*
  1672.  
  1673.  fi
  1674. -echo "$ac_t""$ac_cv_struct_st_rdev" 1>&4
  1675. +
  1676. +echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
  1677.  if test $ac_cv_struct_st_rdev = yes; then
  1678.    cat >> confdefs.h <<\EOF
  1679.  #define HAVE_ST_RDEV 1
  1680. @@ -1617,12 +1850,12 @@ EOF
  1681.  
  1682.  fi
  1683.  
  1684. -echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&4
  1685. -if eval "test \"`echo '${'ac_cv_struct_tm'+set}'`\" = set"; then
  1686. -  echo $ac_n "(cached) $ac_c" 1>&4
  1687. +echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  1688. +if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  1689. +  echo $ac_n "(cached) $ac_c" 1>&6
  1690.  else
  1691.    cat > conftest.$ac_ext <<EOF
  1692. -#line 1626 "configure"
  1693. +#line 1859 "configure"
  1694.  #include "confdefs.h"
  1695.  #include <sys/types.h>
  1696.  #include <time.h>
  1697. @@ -1631,7 +1864,7 @@ int t() {
  1698.  struct tm *tp; tp->tm_sec;
  1699.  ; return 0; }
  1700.  EOF
  1701. -if eval $ac_compile; then
  1702. +if { (eval echo configure:1868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1703.    rm -rf conftest*
  1704.    ac_cv_struct_tm=time.h
  1705.  else
  1706. @@ -1641,7 +1874,8 @@ fi
  1707.  rm -f conftest*
  1708.  
  1709.  fi
  1710. -echo "$ac_t""$ac_cv_struct_tm" 1>&4
  1711. +
  1712. +echo "$ac_t""$ac_cv_struct_tm" 1>&6
  1713.  if test $ac_cv_struct_tm = sys/time.h; then
  1714.    cat >> confdefs.h <<\EOF
  1715.  #define TM_IN_SYS_TIME 1
  1716. @@ -1649,12 +1883,12 @@ EOF
  1717.  
  1718.  fi
  1719.  
  1720. -echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&4
  1721. -if eval "test \"`echo '${'ac_cv_struct_tm_zone'+set}'`\" = set"; then
  1722. -  echo $ac_n "(cached) $ac_c" 1>&4
  1723. +echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
  1724. +if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
  1725. +  echo $ac_n "(cached) $ac_c" 1>&6
  1726.  else
  1727.    cat > conftest.$ac_ext <<EOF
  1728. -#line 1658 "configure"
  1729. +#line 1892 "configure"
  1730.  #include "confdefs.h"
  1731.  #include <sys/types.h>
  1732.  #include <$ac_cv_struct_tm>
  1733. @@ -1663,7 +1897,7 @@ int t() {
  1734.  struct tm tm; tm.tm_zone;
  1735.  ; return 0; }
  1736.  EOF
  1737. -if eval $ac_compile; then
  1738. +if { (eval echo configure:1901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1739.    rm -rf conftest*
  1740.    ac_cv_struct_tm_zone=yes
  1741.  else
  1742. @@ -1673,30 +1907,31 @@ fi
  1743.  rm -f conftest*
  1744.  
  1745.  fi
  1746. -echo "$ac_t""$ac_cv_struct_tm_zone" 1>&4
  1747. +
  1748. +echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
  1749.  if test "$ac_cv_struct_tm_zone" = yes; then
  1750.    cat >> confdefs.h <<\EOF
  1751.  #define HAVE_TM_ZONE 1
  1752.  EOF
  1753.  
  1754.  else
  1755. -  echo $ac_n "checking for tzname""... $ac_c" 1>&4
  1756. -if eval "test \"`echo '${'ac_cv_var_tzname'+set}'`\" = set"; then
  1757. -  echo $ac_n "(cached) $ac_c" 1>&4
  1758. +  echo $ac_n "checking for tzname""... $ac_c" 1>&6
  1759. +if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
  1760. +  echo $ac_n "(cached) $ac_c" 1>&6
  1761.  else
  1762.    cat > conftest.$ac_ext <<EOF
  1763. -#line 1689 "configure"
  1764. +#line 1924 "configure"
  1765.  #include "confdefs.h"
  1766.  #include <time.h>
  1767.  #ifndef tzname /* For SGI.  */
  1768.  extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
  1769.  #endif
  1770. -int main() { return 0; }
  1771. +int main() { t(); return 0; }
  1772.  int t() {
  1773.  atoi(*tzname);
  1774.  ; return 0; }
  1775.  EOF
  1776. -if eval $ac_link; then
  1777. +if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1778.    rm -rf conftest*
  1779.    ac_cv_var_tzname=yes
  1780.  else
  1781. @@ -1706,7 +1941,8 @@ fi
  1782.  rm -f conftest*
  1783.  
  1784.  fi
  1785. -  echo "$ac_t""$ac_cv_var_tzname" 1>&4
  1786. +
  1787. +echo "$ac_t""$ac_cv_var_tzname" 1>&6
  1788.    if test $ac_cv_var_tzname = yes; then
  1789.      cat >> confdefs.h <<\EOF
  1790.  #define HAVE_TZNAME 1
  1791. @@ -1715,12 +1951,12 @@ EOF
  1792.    fi
  1793.  fi
  1794.  
  1795. -echo $ac_n "checking for working const""... $ac_c" 1>&4
  1796. -if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
  1797. -  echo $ac_n "(cached) $ac_c" 1>&4
  1798. +echo $ac_n "checking for working const""... $ac_c" 1>&6
  1799. +if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1800. +  echo $ac_n "(cached) $ac_c" 1>&6
  1801.  else
  1802.    cat > conftest.$ac_ext <<EOF
  1803. -#line 1724 "configure"
  1804. +#line 1960 "configure"
  1805.  #include "confdefs.h"
  1806.  
  1807.  int main() { return 0; }
  1808. @@ -1733,7 +1969,7 @@ char const *const *ccp;
  1809.  char **p;
  1810.  /* NEC SVR4.0.2 mips cc rejects this.  */
  1811.  struct point {int x, y;};
  1812. -static struct point const zero;
  1813. +static struct point const zero = {0,0};
  1814.  /* AIX XL C 1.02.0.0 rejects this.
  1815.     It does not let you subtract one const X* pointer from another in an arm
  1816.     of an if-expression whose if-part is not a constant expression */
  1817. @@ -1770,7 +2006,7 @@ ccp = (char const *const *) p;
  1818.  
  1819.  ; return 0; }
  1820.  EOF
  1821. -if eval $ac_compile; then
  1822. +if { (eval echo configure:2010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1823.    rm -rf conftest*
  1824.    ac_cv_c_const=yes
  1825.  else
  1826. @@ -1780,7 +2016,8 @@ fi
  1827.  rm -f conftest*
  1828.  
  1829.  fi
  1830. -echo "$ac_t""$ac_cv_c_const" 1>&4
  1831. +
  1832. +echo "$ac_t""$ac_cv_c_const" 1>&6
  1833.  if test $ac_cv_c_const = no; then
  1834.    cat >> confdefs.h <<\EOF
  1835.  #define const 
  1836. @@ -1792,18 +2029,22 @@ fi
  1837.  
  1838.  for ac_func in memcmp memset mktime stpcpy strdup strftime strspn strstr strtol
  1839.  do
  1840. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1841. -if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1842. -  echo $ac_n "(cached) $ac_c" 1>&4
  1843. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1844. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1845. +  echo $ac_n "(cached) $ac_c" 1>&6
  1846.  else
  1847.    cat > conftest.$ac_ext <<EOF
  1848. -#line 1801 "configure"
  1849. +#line 2038 "configure"
  1850.  #include "confdefs.h"
  1851. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1852. +/* System header to define __stub macros and hopefully few prototypes,
  1853. +    which can conflict with char $ac_func(); below.  */
  1854. +#include <assert.h>
  1855.  /* Override any gcc2 internal prototype to avoid an error.  */
  1856. -char $ac_func(); 
  1857. +/* We use char because int might match the return type of a gcc2
  1858. +    builtin and then its argument prototype would still apply.  */
  1859. +char $ac_func();
  1860.  
  1861. -int main() { return 0; }
  1862. +int main() { t(); return 0; }
  1863.  int t() {
  1864.  
  1865.  /* The GNU C library defines this for functions which it implements
  1866. @@ -1817,7 +2058,7 @@ $ac_func();
  1867.  
  1868.  ; return 0; }
  1869.  EOF
  1870. -if eval $ac_link; then
  1871. +if { (eval echo configure:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1872.    rm -rf conftest*
  1873.    eval "ac_cv_func_$ac_func=yes"
  1874.  else
  1875. @@ -1828,10 +2069,10 @@ rm -f conftest*
  1876.  
  1877.  fi
  1878.  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1879. -  echo "$ac_t""yes" 1>&4
  1880. +  echo "$ac_t""yes" 1>&6
  1881.    :
  1882.  else
  1883. -  echo "$ac_t""no" 1>&4
  1884. +  echo "$ac_t""no" 1>&6
  1885.  LIBOBJS="$LIBOBJS ${ac_func}.o"
  1886.  fi
  1887.  
  1888. @@ -1839,18 +2080,22 @@ done
  1889.  
  1890.  for ac_func in fchdir getcwd strerror
  1891.  do
  1892. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1893. -if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1894. -  echo $ac_n "(cached) $ac_c" 1>&4
  1895. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1896. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1897. +  echo $ac_n "(cached) $ac_c" 1>&6
  1898.  else
  1899.    cat > conftest.$ac_ext <<EOF
  1900. -#line 1848 "configure"
  1901. +#line 2089 "configure"
  1902.  #include "confdefs.h"
  1903. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1904. +/* System header to define __stub macros and hopefully few prototypes,
  1905. +    which can conflict with char $ac_func(); below.  */
  1906. +#include <assert.h>
  1907.  /* Override any gcc2 internal prototype to avoid an error.  */
  1908. -char $ac_func(); 
  1909. +/* We use char because int might match the return type of a gcc2
  1910. +    builtin and then its argument prototype would still apply.  */
  1911. +char $ac_func();
  1912.  
  1913. -int main() { return 0; }
  1914. +int main() { t(); return 0; }
  1915.  int t() {
  1916.  
  1917.  /* The GNU C library defines this for functions which it implements
  1918. @@ -1864,7 +2109,7 @@ $ac_func();
  1919.  
  1920.  ; return 0; }
  1921.  EOF
  1922. -if eval $ac_link; then
  1923. +if { (eval echo configure:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1924.    rm -rf conftest*
  1925.    eval "ac_cv_func_$ac_func=yes"
  1926.  else
  1927. @@ -1875,63 +2120,72 @@ rm -f conftest*
  1928.  
  1929.  fi
  1930.  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1931. -  echo "$ac_t""yes" 1>&4
  1932. -    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1933. +  echo "$ac_t""yes" 1>&6
  1934. +    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1935.    cat >> confdefs.h <<EOF
  1936.  #define $ac_tr_func 1
  1937.  EOF
  1938.   
  1939.  else
  1940. -  echo "$ac_t""no" 1>&4
  1941. +  echo "$ac_t""no" 1>&6
  1942.  fi
  1943.  done
  1944.  
  1945.  # strftime is in -lintl on SCO UNIX.
  1946. -echo $ac_n "checking for -lintl""... $ac_c" 1>&4
  1947. -if eval "test \"`echo '${'ac_cv_lib_intl'+set}'`\" = set"; then
  1948. -  echo $ac_n "(cached) $ac_c" 1>&4
  1949. +echo $ac_n "checking for -lintl""... $ac_c" 1>&6
  1950. +ac_lib_var=`echo intl'_'strftime | tr './+\055' '__p_'`
  1951. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1952. +  echo $ac_n "(cached) $ac_c" 1>&6
  1953.  else
  1954.    ac_save_LIBS="$LIBS"
  1955. -LIBS="$LIBS -lintl "
  1956. +LIBS="-lintl  $LIBS"
  1957.  cat > conftest.$ac_ext <<EOF
  1958. -#line 1898 "configure"
  1959. +#line 2144 "configure"
  1960.  #include "confdefs.h"
  1961. +/* Override any gcc2 internal prototype to avoid an error.  */
  1962. +/* We use char because int might match the return type of a gcc2
  1963. +    builtin and then its argument prototype would still apply.  */
  1964. +char strftime();
  1965.  
  1966. -int main() { return 0; }
  1967. +int main() { t(); return 0; }
  1968.  int t() {
  1969.  strftime()
  1970.  ; return 0; }
  1971.  EOF
  1972. -if eval $ac_link; then
  1973. +if { (eval echo configure:2156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1974.    rm -rf conftest*
  1975. -  eval "ac_cv_lib_intl=yes"
  1976. +  eval "ac_cv_lib_$ac_lib_var=yes"
  1977.  else
  1978.    rm -rf conftest*
  1979. -  eval "ac_cv_lib_intl=no"
  1980. +  eval "ac_cv_lib_$ac_lib_var=no"
  1981.  fi
  1982.  rm -f conftest*
  1983.  LIBS="$ac_save_LIBS"
  1984.  
  1985.  fi
  1986. -if eval "test \"`echo '$ac_cv_lib_'intl`\" = yes"; then
  1987. -  echo "$ac_t""yes" 1>&4
  1988. -  LIBS="$LIBS -lintl"
  1989. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1990. +  echo "$ac_t""yes" 1>&6
  1991. +  LIBS="-lintl $LIBS"
  1992.  else
  1993. -  echo "$ac_t""no" 1>&4
  1994. +  echo "$ac_t""no" 1>&6
  1995.  fi
  1996.  
  1997. -echo $ac_n "checking for strftime""... $ac_c" 1>&4
  1998. -if eval "test \"`echo '${'ac_cv_func_strftime'+set}'`\" = set"; then
  1999. -  echo $ac_n "(cached) $ac_c" 1>&4
  2000. +echo $ac_n "checking for strftime""... $ac_c" 1>&6
  2001. +if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
  2002. +  echo $ac_n "(cached) $ac_c" 1>&6
  2003.  else
  2004.    cat > conftest.$ac_ext <<EOF
  2005. -#line 1929 "configure"
  2006. +#line 2179 "configure"
  2007.  #include "confdefs.h"
  2008. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2009. +/* System header to define __stub macros and hopefully few prototypes,
  2010. +    which can conflict with char strftime(); below.  */
  2011. +#include <assert.h>
  2012.  /* Override any gcc2 internal prototype to avoid an error.  */
  2013. -char strftime(); 
  2014. +/* We use char because int might match the return type of a gcc2
  2015. +    builtin and then its argument prototype would still apply.  */
  2016. +char strftime();
  2017.  
  2018. -int main() { return 0; }
  2019. +int main() { t(); return 0; }
  2020.  int t() {
  2021.  
  2022.  /* The GNU C library defines this for functions which it implements
  2023. @@ -1945,7 +2199,7 @@ strftime();
  2024.  
  2025.  ; return 0; }
  2026.  EOF
  2027. -if eval $ac_link; then
  2028. +if { (eval echo configure:2203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2029.    rm -rf conftest*
  2030.    eval "ac_cv_func_strftime=yes"
  2031.  else
  2032. @@ -1956,27 +2210,31 @@ rm -f conftest*
  2033.  
  2034.  fi
  2035.  if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
  2036. -  echo "$ac_t""yes" 1>&4
  2037. +  echo "$ac_t""yes" 1>&6
  2038.    cat >> confdefs.h <<\EOF
  2039.  #define HAVE_STRFTIME 1
  2040.  EOF
  2041.  
  2042.  else
  2043. -  echo "$ac_t""no" 1>&4
  2044. +  echo "$ac_t""no" 1>&6
  2045.  fi
  2046.  
  2047. -echo $ac_n "checking for vprintf""... $ac_c" 1>&4
  2048. -if eval "test \"`echo '${'ac_cv_func_vprintf'+set}'`\" = set"; then
  2049. -  echo $ac_n "(cached) $ac_c" 1>&4
  2050. +echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  2051. +if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  2052. +  echo $ac_n "(cached) $ac_c" 1>&6
  2053.  else
  2054.    cat > conftest.$ac_ext <<EOF
  2055. -#line 1974 "configure"
  2056. +#line 2228 "configure"
  2057.  #include "confdefs.h"
  2058. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2059. +/* System header to define __stub macros and hopefully few prototypes,
  2060. +    which can conflict with char vprintf(); below.  */
  2061. +#include <assert.h>
  2062.  /* Override any gcc2 internal prototype to avoid an error.  */
  2063. -char vprintf(); 
  2064. +/* We use char because int might match the return type of a gcc2
  2065. +    builtin and then its argument prototype would still apply.  */
  2066. +char vprintf();
  2067.  
  2068. -int main() { return 0; }
  2069. +int main() { t(); return 0; }
  2070.  int t() {
  2071.  
  2072.  /* The GNU C library defines this for functions which it implements
  2073. @@ -1990,7 +2248,7 @@ vprintf();
  2074.  
  2075.  ; return 0; }
  2076.  EOF
  2077. -if eval $ac_link; then
  2078. +if { (eval echo configure:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2079.    rm -rf conftest*
  2080.    eval "ac_cv_func_vprintf=yes"
  2081.  else
  2082. @@ -2001,28 +2259,32 @@ rm -f conftest*
  2083.  
  2084.  fi
  2085.  if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  2086. -  echo "$ac_t""yes" 1>&4
  2087. +  echo "$ac_t""yes" 1>&6
  2088.    cat >> confdefs.h <<\EOF
  2089.  #define HAVE_VPRINTF 1
  2090.  EOF
  2091.  
  2092.  else
  2093. -  echo "$ac_t""no" 1>&4
  2094. +  echo "$ac_t""no" 1>&6
  2095.  fi
  2096.  
  2097.  if test "$ac_cv_func_vprintf" != yes; then
  2098. -echo $ac_n "checking for _doprnt""... $ac_c" 1>&4
  2099. -if eval "test \"`echo '${'ac_cv_func__doprnt'+set}'`\" = set"; then
  2100. -  echo $ac_n "(cached) $ac_c" 1>&4
  2101. +echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  2102. +if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  2103. +  echo $ac_n "(cached) $ac_c" 1>&6
  2104.  else
  2105.    cat > conftest.$ac_ext <<EOF
  2106. -#line 2020 "configure"
  2107. +#line 2278 "configure"
  2108.  #include "confdefs.h"
  2109. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2110. +/* System header to define __stub macros and hopefully few prototypes,
  2111. +    which can conflict with char _doprnt(); below.  */
  2112. +#include <assert.h>
  2113.  /* Override any gcc2 internal prototype to avoid an error.  */
  2114. -char _doprnt(); 
  2115. +/* We use char because int might match the return type of a gcc2
  2116. +    builtin and then its argument prototype would still apply.  */
  2117. +char _doprnt();
  2118.  
  2119. -int main() { return 0; }
  2120. +int main() { t(); return 0; }
  2121.  int t() {
  2122.  
  2123.  /* The GNU C library defines this for functions which it implements
  2124. @@ -2036,7 +2298,7 @@ _doprnt();
  2125.  
  2126.  ; return 0; }
  2127.  EOF
  2128. -if eval $ac_link; then
  2129. +if { (eval echo configure:2302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2130.    rm -rf conftest*
  2131.    eval "ac_cv_func__doprnt=yes"
  2132.  else
  2133. @@ -2047,33 +2309,33 @@ rm -f conftest*
  2134.  
  2135.  fi
  2136.  if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  2137. -  echo "$ac_t""yes" 1>&4
  2138. +  echo "$ac_t""yes" 1>&6
  2139.    cat >> confdefs.h <<\EOF
  2140.  #define HAVE_DOPRNT 1
  2141.  EOF
  2142.  
  2143.  else
  2144. -  echo "$ac_t""no" 1>&4
  2145. +  echo "$ac_t""no" 1>&6
  2146.  fi
  2147.  
  2148.  fi
  2149.  
  2150.  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  2151.  # for constant arguments.  Useless!
  2152. -echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
  2153. -if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
  2154. -  echo $ac_n "(cached) $ac_c" 1>&4
  2155. +echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  2156. +if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  2157. +  echo $ac_n "(cached) $ac_c" 1>&6
  2158.  else
  2159.    cat > conftest.$ac_ext <<EOF
  2160. -#line 2069 "configure"
  2161. +#line 2331 "configure"
  2162.  #include "confdefs.h"
  2163.  #include <alloca.h>
  2164. -int main() { return 0; }
  2165. +int main() { t(); return 0; }
  2166.  int t() {
  2167.  char *p = alloca(2 * sizeof(int));
  2168.  ; return 0; }
  2169.  EOF
  2170. -if eval $ac_link; then
  2171. +if { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2172.    rm -rf conftest*
  2173.    ac_cv_header_alloca_h=yes
  2174.  else
  2175. @@ -2083,7 +2345,8 @@ fi
  2176.  rm -f conftest*
  2177.  
  2178.  fi
  2179. -echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
  2180. +
  2181. +echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  2182.  if test $ac_cv_header_alloca_h = yes; then
  2183.    cat >> confdefs.h <<\EOF
  2184.  #define HAVE_ALLOCA_H 1
  2185. @@ -2091,12 +2354,12 @@ EOF
  2186.  
  2187.  fi
  2188.  
  2189. -echo $ac_n "checking for alloca""... $ac_c" 1>&4
  2190. -if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
  2191. -  echo $ac_n "(cached) $ac_c" 1>&4
  2192. +echo $ac_n "checking for alloca""... $ac_c" 1>&6
  2193. +if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  2194. +  echo $ac_n "(cached) $ac_c" 1>&6
  2195.  else
  2196.    cat > conftest.$ac_ext <<EOF
  2197. -#line 2100 "configure"
  2198. +#line 2363 "configure"
  2199.  #include "confdefs.h"
  2200.  
  2201.  #ifdef __GNUC__
  2202. @@ -2115,12 +2378,12 @@ char *alloca ();
  2203.  # endif
  2204.  #endif
  2205.  
  2206. -int main() { return 0; }
  2207. +int main() { t(); return 0; }
  2208.  int t() {
  2209.  char *p = (char *) alloca(1);
  2210.  ; return 0; }
  2211.  EOF
  2212. -if eval $ac_link; then
  2213. +if { (eval echo configure:2387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2214.    rm -rf conftest*
  2215.    ac_cv_func_alloca=yes
  2216.  else
  2217. @@ -2130,7 +2393,8 @@ fi
  2218.  rm -f conftest*
  2219.  
  2220.  fi
  2221. -echo "$ac_t""$ac_cv_func_alloca" 1>&4
  2222. +
  2223. +echo "$ac_t""$ac_cv_func_alloca" 1>&6
  2224.  if test $ac_cv_func_alloca = yes; then
  2225.    cat >> confdefs.h <<\EOF
  2226.  #define HAVE_ALLOCA 1
  2227. @@ -2149,12 +2413,12 @@ if test $ac_cv_func_alloca = no; then
  2228.  EOF
  2229.  
  2230.  
  2231. -echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
  2232. -if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
  2233. -  echo $ac_n "(cached) $ac_c" 1>&4
  2234. +echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  2235. +if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  2236. +  echo $ac_n "(cached) $ac_c" 1>&6
  2237.  else
  2238.    cat > conftest.$ac_ext <<EOF
  2239. -#line 2158 "configure"
  2240. +#line 2422 "configure"
  2241.  #include "confdefs.h"
  2242.  #if defined(CRAY) && ! defined(CRAY2)
  2243.  webecray
  2244. @@ -2174,154 +2438,72 @@ fi
  2245.  rm -f conftest*
  2246.  
  2247.  fi
  2248. -echo "$ac_t""$ac_cv_os_cray" 1>&4
  2249. -if test $ac_cv_os_cray = yes; then
  2250. -echo $ac_n "checking for _getb67""... $ac_c" 1>&4
  2251. -if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
  2252. -  echo $ac_n "(cached) $ac_c" 1>&4
  2253. -else
  2254. -  cat > conftest.$ac_ext <<EOF
  2255. -#line 2185 "configure"
  2256. -#include "confdefs.h"
  2257. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2258. -/* Override any gcc2 internal prototype to avoid an error.  */
  2259. -char _getb67(); 
  2260.  
  2261. -int main() { return 0; }
  2262. -int t() {
  2263. -
  2264. -/* The GNU C library defines this for functions which it implements
  2265. -    to always fail with ENOSYS.  Some functions are actually named
  2266. -    something starting with __ and the normal name is an alias.  */
  2267. -#if defined (__stub__getb67) || defined (__stub____getb67)
  2268. -choke me
  2269. -#else
  2270. -_getb67();
  2271. -#endif
  2272. -
  2273. -; return 0; }
  2274. -EOF
  2275. -if eval $ac_link; then
  2276. -  rm -rf conftest*
  2277. -  eval "ac_cv_func__getb67=yes"
  2278. -else
  2279. -  rm -rf conftest*
  2280. -  eval "ac_cv_func__getb67=no"
  2281. -fi
  2282. -rm -f conftest*
  2283. -
  2284. -fi
  2285. -if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
  2286. -  echo "$ac_t""yes" 1>&4
  2287. -  cat >> confdefs.h <<\EOF
  2288. -#define CRAY_STACKSEG_END _getb67
  2289. -EOF
  2290. -
  2291. -else
  2292. -  echo "$ac_t""no" 1>&4
  2293. -echo $ac_n "checking for GETB67""... $ac_c" 1>&4
  2294. -if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
  2295. -  echo $ac_n "(cached) $ac_c" 1>&4
  2296. -else
  2297. -  cat > conftest.$ac_ext <<EOF
  2298. -#line 2228 "configure"
  2299. -#include "confdefs.h"
  2300. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2301. -/* Override any gcc2 internal prototype to avoid an error.  */
  2302. -char GETB67(); 
  2303. -
  2304. -int main() { return 0; }
  2305. -int t() {
  2306. -
  2307. -/* The GNU C library defines this for functions which it implements
  2308. -    to always fail with ENOSYS.  Some functions are actually named
  2309. -    something starting with __ and the normal name is an alias.  */
  2310. -#if defined (__stub_GETB67) || defined (__stub___GETB67)
  2311. -choke me
  2312. -#else
  2313. -GETB67();
  2314. -#endif
  2315. -
  2316. -; return 0; }
  2317. -EOF
  2318. -if eval $ac_link; then
  2319. -  rm -rf conftest*
  2320. -  eval "ac_cv_func_GETB67=yes"
  2321. -else
  2322. -  rm -rf conftest*
  2323. -  eval "ac_cv_func_GETB67=no"
  2324. -fi
  2325. -rm -f conftest*
  2326. -
  2327. -fi
  2328. -if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
  2329. -  echo "$ac_t""yes" 1>&4
  2330. -  cat >> confdefs.h <<\EOF
  2331. -#define CRAY_STACKSEG_END GETB67
  2332. -EOF
  2333. -
  2334. -else
  2335. -  echo "$ac_t""no" 1>&4
  2336. -echo $ac_n "checking for getb67""... $ac_c" 1>&4
  2337. -if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
  2338. -  echo $ac_n "(cached) $ac_c" 1>&4
  2339. +echo "$ac_t""$ac_cv_os_cray" 1>&6
  2340. +if test $ac_cv_os_cray = yes; then
  2341. +for ac_func in _getb67 GETB67 getb67; do
  2342. +  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2343. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2344. +  echo $ac_n "(cached) $ac_c" 1>&6
  2345.  else
  2346.    cat > conftest.$ac_ext <<EOF
  2347. -#line 2271 "configure"
  2348. +#line 2451 "configure"
  2349.  #include "confdefs.h"
  2350. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2351. +/* System header to define __stub macros and hopefully few prototypes,
  2352. +    which can conflict with char $ac_func(); below.  */
  2353. +#include <assert.h>
  2354.  /* Override any gcc2 internal prototype to avoid an error.  */
  2355. -char getb67(); 
  2356. +/* We use char because int might match the return type of a gcc2
  2357. +    builtin and then its argument prototype would still apply.  */
  2358. +char $ac_func();
  2359.  
  2360. -int main() { return 0; }
  2361. +int main() { t(); return 0; }
  2362.  int t() {
  2363.  
  2364.  /* The GNU C library defines this for functions which it implements
  2365.      to always fail with ENOSYS.  Some functions are actually named
  2366.      something starting with __ and the normal name is an alias.  */
  2367. -#if defined (__stub_getb67) || defined (__stub___getb67)
  2368. +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2369.  choke me
  2370.  #else
  2371. -getb67();
  2372. +$ac_func();
  2373.  #endif
  2374.  
  2375.  ; return 0; }
  2376.  EOF
  2377. -if eval $ac_link; then
  2378. +if { (eval echo configure:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2379.    rm -rf conftest*
  2380. -  eval "ac_cv_func_getb67=yes"
  2381. +  eval "ac_cv_func_$ac_func=yes"
  2382.  else
  2383.    rm -rf conftest*
  2384. -  eval "ac_cv_func_getb67=no"
  2385. +  eval "ac_cv_func_$ac_func=no"
  2386.  fi
  2387.  rm -f conftest*
  2388.  
  2389.  fi
  2390. -if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
  2391. -  echo "$ac_t""yes" 1>&4
  2392. -  cat >> confdefs.h <<\EOF
  2393. -#define CRAY_STACKSEG_END getb67
  2394. +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2395. +  echo "$ac_t""yes" 1>&6
  2396. +  cat >> confdefs.h <<EOF
  2397. +#define CRAY_STACKSEG_END $ac_func
  2398.  EOF
  2399.  
  2400. +  break
  2401.  else
  2402. -  echo "$ac_t""no" 1>&4
  2403. -fi
  2404. -
  2405. -fi
  2406. -
  2407. +  echo "$ac_t""no" 1>&6
  2408.  fi
  2409.  
  2410. +done
  2411.  fi
  2412.  
  2413. -echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
  2414. -if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
  2415. -  echo $ac_n "(cached) $ac_c" 1>&4
  2416. +echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  2417. +if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  2418. +  echo $ac_n "(cached) $ac_c" 1>&6
  2419.  else
  2420.    if test "$cross_compiling" = yes; then
  2421.    ac_cv_c_stack_direction=0
  2422.  else
  2423.  cat > conftest.$ac_ext <<EOF
  2424. -#line 2325 "configure"
  2425. +#line 2507 "configure"
  2426.  #include "confdefs.h"
  2427.  find_stack_direction ()
  2428.  {
  2429. @@ -2340,7 +2522,7 @@ main ()
  2430.    exit (find_stack_direction() < 0);
  2431.  }
  2432.  EOF
  2433. -eval $ac_link
  2434. +{ (eval echo configure:2526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2435.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2436.    ac_cv_c_stack_direction=1
  2437.  else
  2438. @@ -2349,92 +2531,145 @@ fi
  2439.  fi
  2440.  rm -fr conftest*
  2441.  fi
  2442. -echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
  2443. +
  2444. +echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  2445.  cat >> confdefs.h <<EOF
  2446.  #define STACK_DIRECTION $ac_cv_c_stack_direction
  2447.  EOF
  2448.  
  2449.  fi
  2450.  
  2451. -# getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX.
  2452. -echo $ac_n "checking for -lsun""... $ac_c" 1>&4
  2453. -if eval "test \"`echo '${'ac_cv_lib_sun'+set}'`\" = set"; then
  2454. -  echo $ac_n "(cached) $ac_c" 1>&4
  2455. +# getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
  2456. +echo $ac_n "checking for -lsun""... $ac_c" 1>&6
  2457. +ac_lib_var=`echo sun'_'getmntent | tr './+\055' '__p_'`
  2458. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2459. +  echo $ac_n "(cached) $ac_c" 1>&6
  2460.  else
  2461.    ac_save_LIBS="$LIBS"
  2462. -LIBS="$LIBS -lsun "
  2463. +LIBS="-lsun  $LIBS"
  2464.  cat > conftest.$ac_ext <<EOF
  2465. -#line 2368 "configure"
  2466. +#line 2552 "configure"
  2467.  #include "confdefs.h"
  2468. +/* Override any gcc2 internal prototype to avoid an error.  */
  2469. +/* We use char because int might match the return type of a gcc2
  2470. +    builtin and then its argument prototype would still apply.  */
  2471. +char getmntent();
  2472.  
  2473. -int main() { return 0; }
  2474. +int main() { t(); return 0; }
  2475.  int t() {
  2476.  getmntent()
  2477.  ; return 0; }
  2478.  EOF
  2479. -if eval $ac_link; then
  2480. +if { (eval echo configure:2564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2481.    rm -rf conftest*
  2482. -  eval "ac_cv_lib_sun=yes"
  2483. +  eval "ac_cv_lib_$ac_lib_var=yes"
  2484.  else
  2485.    rm -rf conftest*
  2486. -  eval "ac_cv_lib_sun=no"
  2487. +  eval "ac_cv_lib_$ac_lib_var=no"
  2488.  fi
  2489.  rm -f conftest*
  2490.  LIBS="$ac_save_LIBS"
  2491.  
  2492.  fi
  2493. -if eval "test \"`echo '$ac_cv_lib_'sun`\" = yes"; then
  2494. -  echo "$ac_t""yes" 1>&4
  2495. -  LIBS="$LIBS -lsun"
  2496. -else
  2497. -  echo "$ac_t""no" 1>&4
  2498. -echo $ac_n "checking for -lseq""... $ac_c" 1>&4
  2499. -if eval "test \"`echo '${'ac_cv_lib_seq'+set}'`\" = set"; then
  2500. -  echo $ac_n "(cached) $ac_c" 1>&4
  2501. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2502. +  echo "$ac_t""yes" 1>&6
  2503. +  LIBS="-lsun $LIBS"
  2504. +else
  2505. +  echo "$ac_t""no" 1>&6
  2506. +echo $ac_n "checking for -lseq""... $ac_c" 1>&6
  2507. +ac_lib_var=`echo seq'_'getmntent | tr './+\055' '__p_'`
  2508. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2509. +  echo $ac_n "(cached) $ac_c" 1>&6
  2510.  else
  2511.    ac_save_LIBS="$LIBS"
  2512. -LIBS="$LIBS -lseq "
  2513. +LIBS="-lseq  $LIBS"
  2514.  cat > conftest.$ac_ext <<EOF
  2515. -#line 2399 "configure"
  2516. +#line 2588 "configure"
  2517.  #include "confdefs.h"
  2518. +/* Override any gcc2 internal prototype to avoid an error.  */
  2519. +/* We use char because int might match the return type of a gcc2
  2520. +    builtin and then its argument prototype would still apply.  */
  2521. +char getmntent();
  2522.  
  2523. -int main() { return 0; }
  2524. +int main() { t(); return 0; }
  2525. +int t() {
  2526. +getmntent()
  2527. +; return 0; }
  2528. +EOF
  2529. +if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2530. +  rm -rf conftest*
  2531. +  eval "ac_cv_lib_$ac_lib_var=yes"
  2532. +else
  2533. +  rm -rf conftest*
  2534. +  eval "ac_cv_lib_$ac_lib_var=no"
  2535. +fi
  2536. +rm -f conftest*
  2537. +LIBS="$ac_save_LIBS"
  2538. +
  2539. +fi
  2540. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2541. +  echo "$ac_t""yes" 1>&6
  2542. +  LIBS="-lseq $LIBS"
  2543. +else
  2544. +  echo "$ac_t""no" 1>&6
  2545. +echo $ac_n "checking for -lgen""... $ac_c" 1>&6
  2546. +ac_lib_var=`echo gen'_'getmntent | tr './+\055' '__p_'`
  2547. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2548. +  echo $ac_n "(cached) $ac_c" 1>&6
  2549. +else
  2550. +  ac_save_LIBS="$LIBS"
  2551. +LIBS="-lgen  $LIBS"
  2552. +cat > conftest.$ac_ext <<EOF
  2553. +#line 2624 "configure"
  2554. +#include "confdefs.h"
  2555. +/* Override any gcc2 internal prototype to avoid an error.  */
  2556. +/* We use char because int might match the return type of a gcc2
  2557. +    builtin and then its argument prototype would still apply.  */
  2558. +char getmntent();
  2559. +
  2560. +int main() { t(); return 0; }
  2561.  int t() {
  2562.  getmntent()
  2563.  ; return 0; }
  2564.  EOF
  2565. -if eval $ac_link; then
  2566. +if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2567.    rm -rf conftest*
  2568. -  eval "ac_cv_lib_seq=yes"
  2569. +  eval "ac_cv_lib_$ac_lib_var=yes"
  2570.  else
  2571.    rm -rf conftest*
  2572. -  eval "ac_cv_lib_seq=no"
  2573. +  eval "ac_cv_lib_$ac_lib_var=no"
  2574.  fi
  2575.  rm -f conftest*
  2576.  LIBS="$ac_save_LIBS"
  2577.  
  2578.  fi
  2579. -if eval "test \"`echo '$ac_cv_lib_'seq`\" = yes"; then
  2580. -  echo "$ac_t""yes" 1>&4
  2581. -  LIBS="$LIBS -lseq"
  2582. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2583. +  echo "$ac_t""yes" 1>&6
  2584. +  LIBS="-lgen $LIBS"
  2585.  else
  2586. -  echo "$ac_t""no" 1>&4
  2587. +  echo "$ac_t""no" 1>&6
  2588.  fi
  2589.  
  2590.  fi
  2591.  
  2592. -echo $ac_n "checking for getmntent""... $ac_c" 1>&4
  2593. -if eval "test \"`echo '${'ac_cv_func_getmntent'+set}'`\" = set"; then
  2594. -  echo $ac_n "(cached) $ac_c" 1>&4
  2595. +fi
  2596. +
  2597. +echo $ac_n "checking for getmntent""... $ac_c" 1>&6
  2598. +if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
  2599. +  echo $ac_n "(cached) $ac_c" 1>&6
  2600.  else
  2601.    cat > conftest.$ac_ext <<EOF
  2602. -#line 2432 "configure"
  2603. +#line 2663 "configure"
  2604.  #include "confdefs.h"
  2605. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2606. +/* System header to define __stub macros and hopefully few prototypes,
  2607. +    which can conflict with char getmntent(); below.  */
  2608. +#include <assert.h>
  2609.  /* Override any gcc2 internal prototype to avoid an error.  */
  2610. -char getmntent(); 
  2611. +/* We use char because int might match the return type of a gcc2
  2612. +    builtin and then its argument prototype would still apply.  */
  2613. +char getmntent();
  2614.  
  2615. -int main() { return 0; }
  2616. +int main() { t(); return 0; }
  2617.  int t() {
  2618.  
  2619.  /* The GNU C library defines this for functions which it implements
  2620. @@ -2448,7 +2683,7 @@ getmntent();
  2621.  
  2622.  ; return 0; }
  2623.  EOF
  2624. -if eval $ac_link; then
  2625. +if { (eval echo configure:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2626.    rm -rf conftest*
  2627.    eval "ac_cv_func_getmntent=yes"
  2628.  else
  2629. @@ -2459,30 +2694,30 @@ rm -f conftest*
  2630.  
  2631.  fi
  2632.  if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
  2633. -  echo "$ac_t""yes" 1>&4
  2634. +  echo "$ac_t""yes" 1>&6
  2635.    cat >> confdefs.h <<\EOF
  2636.  #define HAVE_GETMNTENT 1
  2637.  EOF
  2638.  
  2639.  else
  2640. -  echo "$ac_t""no" 1>&4
  2641. +  echo "$ac_t""no" 1>&6
  2642.  fi
  2643.  
  2644. -echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&4
  2645. -if eval "test \"`echo '${'ac_cv_func_closedir_void'+set}'`\" = set"; then
  2646. -  echo $ac_n "(cached) $ac_c" 1>&4
  2647. +echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
  2648. +if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
  2649. +  echo $ac_n "(cached) $ac_c" 1>&6
  2650.  else
  2651.    if test "$cross_compiling" = yes; then
  2652. -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2653. +  ac_cv_func_closedir_void=yes
  2654.  else
  2655.  cat > conftest.$ac_ext <<EOF
  2656. -#line 2480 "configure"
  2657. +#line 2715 "configure"
  2658.  #include "confdefs.h"
  2659.  #include <sys/types.h>
  2660.  #include <$ac_header_dirent>
  2661.  int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  2662.  EOF
  2663. -eval $ac_link
  2664. +{ (eval echo configure:2721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2665.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2666.    ac_cv_func_closedir_void=no
  2667.  else
  2668. @@ -2491,7 +2726,8 @@ fi
  2669.  fi
  2670.  rm -fr conftest*
  2671.  fi
  2672. -echo "$ac_t""$ac_cv_func_closedir_void" 1>&4
  2673. +
  2674. +echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
  2675.  if test $ac_cv_func_closedir_void = yes; then
  2676.    cat >> confdefs.h <<\EOF
  2677.  #define CLOSEDIR_VOID 1
  2678. @@ -2501,9 +2737,7 @@ fi
  2679.  
  2680.  
  2681.  trap '' 1 2 15
  2682. -if test -w $cache_file; then
  2683. -echo "updating cache $cache_file"
  2684. -cat > $cache_file <<\EOF
  2685. +cat > confcache <<\EOF
  2686.  # This file is a shell script that caches the results of configure
  2687.  # tests run on this system so they can be shared between configure
  2688.  # scripts and configure runs.  It is not useful on other systems.
  2689. @@ -2519,15 +2753,24 @@ cat > $cache_file <<\EOF
  2690.  # --recheck option to rerun configure.
  2691.  #
  2692.  EOF
  2693. -# Ultrix sh set writes to stderr and can't be redirected directly.
  2694. +# Ultrix sh set writes to stderr and can't be redirected directly,
  2695. +# and sets the high bit in the cache file unless we assign to the vars.
  2696.  (set) 2>&1 |
  2697. -  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  2698. -  >> $cache_file
  2699. +  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2700. +  >> confcache
  2701. +if cmp -s $cache_file confcache; then
  2702. +  :
  2703.  else
  2704. -echo "not updating unwritable cache $cache_file"
  2705. +  if test -w $cache_file; then
  2706. +    echo "updating cache $cache_file"
  2707. +    cat confcache > $cache_file
  2708. +  else
  2709. +    echo "not updating unwritable cache $cache_file"
  2710. +  fi
  2711.  fi
  2712. +rm -f confcache
  2713.  
  2714. -trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  2715. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2716.  
  2717.  test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2718.  # Let make expand exec_prefix.
  2719. @@ -2548,9 +2791,11 @@ DEFS=-DHAVE_CONFIG_H
  2720.  : ${CONFIG_STATUS=./config.status}
  2721.  
  2722.  echo creating $CONFIG_STATUS
  2723. -rm -f $CONFIG_STATUS
  2724. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  2725. +# being executed, so just move it out of the way instead.
  2726. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2727.  cat > $CONFIG_STATUS <<EOF
  2728. -#!/bin/sh
  2729. +#! /bin/sh
  2730.  # Generated automatically by configure.
  2731.  # Run this file to recreate the current configuration.
  2732.  # This directory was configured as follows,
  2733. @@ -2569,7 +2814,7 @@ do
  2734.      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2735.      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2736.    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2737. -    echo "$CONFIG_STATUS generated by autoconf version 2.1"
  2738. +    echo "$CONFIG_STATUS generated by autoconf version 2.10"
  2739.      exit 0 ;;
  2740.    -help | --help | --hel | --he | --h)
  2741.      echo "\$ac_cs_usage"; exit 0 ;;
  2742. @@ -2580,12 +2825,14 @@ done
  2743.  ac_given_srcdir=$srcdir
  2744.  ac_given_INSTALL="$INSTALL"
  2745.  
  2746. -trap 'rm -fr Makefile lib/Makefile find/Makefile xargs/Makefile \
  2747. -locate/Makefile doc/Makefile testsuite/Makefile config.h conftest*; exit 1' 1 2 15
  2748. +trap 'rm -fr `echo "Makefile lib/Makefile find/Makefile xargs/Makefile \
  2749. +locate/Makefile doc/Makefile testsuite/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2750. +EOF
  2751. +cat >> $CONFIG_STATUS <<EOF
  2752.  
  2753. -# Protect against being on the right side of a sed subst in config.status. 
  2754. -sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  2755. - s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  2756. +# Protect against being on the right side of a sed subst in config.status.
  2757. +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2758. + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2759.  $ac_vpsub
  2760.  $extrasub
  2761.  s%@CFLAGS@%$CFLAGS%g
  2762. @@ -2597,6 +2844,21 @@ s%@LIBS@%$LIBS%g
  2763.  s%@exec_prefix@%$exec_prefix%g
  2764.  s%@prefix@%$prefix%g
  2765.  s%@program_transform_name@%$program_transform_name%g
  2766. +s%@bindir@%$bindir%g
  2767. +s%@sbindir@%$sbindir%g
  2768. +s%@libexecdir@%$libexecdir%g
  2769. +s%@datadir@%$datadir%g
  2770. +s%@sysconfdir@%$sysconfdir%g
  2771. +s%@sharedstatedir@%$sharedstatedir%g
  2772. +s%@localstatedir@%$localstatedir%g
  2773. +s%@libdir@%$libdir%g
  2774. +s%@includedir@%$includedir%g
  2775. +s%@oldincludedir@%$oldincludedir%g
  2776. +s%@infodir@%$infodir%g
  2777. +s%@guidedir@%$guidedir%g
  2778. +s%@psdir@%$psdir%g
  2779. +s%@dvidir@%$dvidir%g
  2780. +s%@mandir@%$mandir%g
  2781.  s%@INCLUDES@%$INCLUDES%g
  2782.  s%@CC@%$CC%g
  2783.  s%@CPP@%$CPP%g
  2784. @@ -2630,7 +2892,7 @@ for ac_file in .. $CONFIG_FILES; do if t
  2785.    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2786.      # The file is in a subdirectory.
  2787.      test ! -d "$ac_dir" && mkdir "$ac_dir"
  2788. -    ac_dir_suffix="/$ac_dir"
  2789. +    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2790.      # A "../" for each directory in $ac_dir_suffix.
  2791.      ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2792.    else
  2793. @@ -2705,13 +2967,13 @@ EOF
  2794.  
  2795.  # Transform confdefs.h into a sed script conftest.vals that substitutes
  2796.  # the proper values into config.h.in to produce config.h.  And first:
  2797. -# Protect against being on the right side of a sed subst in config.status. 
  2798. +# Protect against being on the right side of a sed subst in config.status.
  2799.  # Protect against being in an unquoted here document in config.status.
  2800.  rm -f conftest.vals
  2801.  cat > conftest.hdr <<\EOF
  2802.  s/[\\&%]/\\&/g
  2803.  s%[\\$`]%\\&%g
  2804. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2805. +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2806.  s%ac_d%ac_u%gp
  2807.  s%ac_u%ac_e%gp
  2808.  EOF
  2809. @@ -2759,6 +3021,12 @@ cat >> $CONFIG_STATUS <<\EOF
  2810.      echo "$ac_file is unchanged"
  2811.      rm -f conftest.h
  2812.    else
  2813. +    # Remove last slash and all that follows it.  Not all systems have dirname.
  2814. +      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2815. +      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2816. +      # The file is in a subdirectory.
  2817. +      test ! -d "$ac_dir" && mkdir "$ac_dir"
  2818. +    fi
  2819.      rm -f $ac_file
  2820.      mv conftest.h $ac_file
  2821.    fi
  2822. @@ -2769,6 +3037,7 @@ date > stamp-h
  2823.  exit 0
  2824.  EOF
  2825.  chmod +x $CONFIG_STATUS
  2826. +rm -f CONFIG.STATUS.old
  2827.  rm -fr confdefs* $ac_clean_files
  2828. -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
  2829. +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2830.  
  2831. diff -rup --new-file baseline/fsf/findutils/doc/Makefile.in amiga/fsf/findutils/doc/Makefile.in
  2832. --- baseline/fsf/findutils/doc/Makefile.in    Sat Nov  5 07:44:12 1994
  2833. +++ amiga/fsf/findutils/doc/Makefile.in    Sat Sep 28 00:00:00 1996
  2834. @@ -25,13 +25,17 @@ exec_prefix = @exec_prefix@
  2835.  
  2836.  bindir = $(exec_prefix)/bin
  2837.  sbindir = $(exec_prefix)/sbin
  2838. -libexecdir = $(exec_prefix)/libexec
  2839.  datadir = $(prefix)/share
  2840.  sysconfdir = $(prefix)/etc
  2841.  sharedstatedir = $(prefix)/com
  2842. -localstatedir = $(prefix)/var
  2843. +# Put this in /local, since $(prefix) might be on read-only media. -fnf
  2844. +localstatedir = /local/var
  2845.  libdir = $(exec_prefix)/lib
  2846. +# It seems hokey to me to have the libexec dir visible at what is the
  2847. +# equivalent of the root directory, so put it under libdir instead.  -fnf
  2848. +libexecdir = $(libdir)/libexec
  2849.  infodir = $(prefix)/info
  2850. +guidedir = $(prefix)/guide
  2851.  mandir = $(prefix)/man
  2852.  includedir = $(prefix)/include
  2853.  oldincludedir = /usr/include
  2854. @@ -48,30 +52,37 @@ TEXI2DVI = texi2dvi
  2855.  TEXFILES = *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.log *.pg *.toc *.tp *.vr
  2856.  
  2857.  INFOS = find.info*
  2858. +GUIDES = find.guide
  2859.  INFO_DEPS = find.info
  2860. +GUIDE_DEPS = find.guide
  2861.  DVIS = find.dvi
  2862.  SOURCES = 
  2863.  DIST_CONF = Makefile.am Makefile.in
  2864. -DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(MANS) $(DIST_OTHER)
  2865. +DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(GUIDES) $(MANS) $(DIST_OTHER)
  2866.  
  2867.  TEXINFOS = find.texi
  2868.  DIST_OTHER = perm.texi texinfo.tex
  2869.  
  2870.  all:: ${ALL}
  2871.  
  2872. -.SUFFIXES: .texi .info .dvi
  2873. +.SUFFIXES: .texi .info .guide .dvi
  2874.  
  2875.  .texi.info:
  2876.      $(MAKEINFO) -I$(srcdir) $<
  2877.  
  2878. +.texi.guide:
  2879. +    $(MAKEINFO) --amiga-39 -I$(srcdir) $< -o find.guide
  2880. +
  2881.  .texi.dvi:
  2882.      TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
  2883.  
  2884.  info:: $(INFO_DEPS)
  2885.  
  2886. +guide:: $(GUIDE_DEPS)
  2887. +
  2888.  dvi:: $(DVIS)
  2889.  
  2890. -install:: install-info
  2891. +install:: install-info install-guide
  2892.  
  2893.  install-info: $(INFO_DEPS)
  2894.      $(top_srcdir)/mkinstalldirs $(infodir)
  2895. @@ -79,13 +90,24 @@ install-info: $(INFO_DEPS)
  2896.        $(INSTALL_DATA) $$file $(infodir)/$$file; \
  2897.      done
  2898.  
  2899. -uninstall:: uninstall-info
  2900. +install-guide: $(GUIDE_DEPS)
  2901. +    $(top_srcdir)/mkinstalldirs $(guidedir)
  2902. +    for file in *.guide; do \
  2903. +      $(INSTALL_DATA) $$file $(guidedir)/$$file; \
  2904. +    done
  2905. +
  2906. +uninstall:: uninstall-info uninstall-guide
  2907.  
  2908.  uninstall-info:
  2909.      cd $(srcdir); for file in *.info*; do \
  2910.        rm -f $(infodir)/$$file; \
  2911.      done
  2912.  
  2913. +uninstall-guide:
  2914. +    for file in *.guide; do \
  2915. +      rm -f $(guidedir)/$$file; \
  2916. +    done
  2917. +
  2918.  mostlyclean:
  2919.      rm -f *.o core
  2920.  
  2921. @@ -97,7 +119,7 @@ distclean: clean
  2922.      rm -f config.cache config.log config.status ${CONFIG_HEADER} stamp-h
  2923.  
  2924.  realclean: distclean
  2925. -    rm -f TAGS $(INFOS)
  2926. +    rm -f TAGS $(INFOS) $(GUIDES)
  2927.  
  2928.  dist: $(DIST_FILES) $(DIST_DIRS)
  2929.      -mkdir ../`cat ../distname`/$(subdir)
  2930. @@ -107,7 +129,7 @@ dist: $(DIST_FILES) $(DIST_DIRS)
  2931.          { echo copying $$file instead; cp -p $(srcdir)/$$file ../`cat ../distname`/$(subdir)/$$file;}; \
  2932.      done
  2933.  
  2934. -check dvi info install uninstall::
  2935. +check dvi info guide install uninstall::
  2936.  
  2937.  tags:: TAGS
  2938.  
  2939. @@ -118,4 +140,4 @@ TAGS::
  2940.  # Otherwise a system limit (for SysV at least) may be exceeded.
  2941.  .NOEXPORT:
  2942.  
  2943. -find.info find.dvi: perm.texi
  2944. +find.info find.guide find.dvi: perm.texi
  2945. diff -rup --new-file baseline/fsf/findutils/doc/find.info amiga/fsf/findutils/doc/find.info
  2946. --- baseline/fsf/findutils/doc/find.info    Thu Nov  3 21:22:49 1994
  2947. +++ amiga/fsf/findutils/doc/find.info    Sat Sep 28 00:00:00 1996
  2948. @@ -1,5 +1,5 @@
  2949. -This is Info file find.info, produced by Makeinfo-1.55 from the input
  2950. -file find.texi.
  2951. +This is Info file find.info, produced by Makeinfo-1.63 from the input
  2952. +file /ade-src/fsf/findutils/doc/find.texi.
  2953.  
  2954.  START-INFO-DIR-ENTRY
  2955.  * Finding Files: (find).        Listing and operating on files
  2956. @@ -27,87 +27,87 @@ translation approved by the Foundation.
  2957.  
  2958.  
  2959.  Indirect:
  2960. -find.info-1: 1097
  2961. -find.info-2: 50752
  2962. +find.info-1: 1124
  2963. +find.info-2: 50779
  2964.  
  2965.  Tag Table:
  2966.  (Indirect)
  2967. -Node: Top1097
  2968. -Node: Introduction1909
  2969. -Node: Scope3080
  2970. -Node: Overview5000
  2971. -Node: find Expressions6758
  2972. -Node: Finding Files8379
  2973. -Node: Name8845
  2974. -Node: Base Name Patterns9469
  2975. -Node: Full Name Patterns10008
  2976. -Node: Fast Full Name Search10993
  2977. -Node: Shell Pattern Matching13148
  2978. -Node: Links14989
  2979. -Node: Symbolic Links15419
  2980. -Node: Hard Links16367
  2981. -Node: Time17403
  2982. -Node: Age Ranges17918
  2983. -Node: Comparing Timestamps18851
  2984. -Node: Size20130
  2985. -Node: Type20945
  2986. -Node: Owner21757
  2987. -Node: Permissions22570
  2988. -Node: Contents23255
  2989. -Node: Directories24423
  2990. -Node: Filesystems26897
  2991. -Node: Combining Primaries With Operators28169
  2992. -Node: Actions29470
  2993. -Node: Print File Name30017
  2994. -Node: Print File Information30621
  2995. -Node: Escapes32856
  2996. -Node: Format Directives33516
  2997. -Node: Name Directives34214
  2998. -Node: Ownership Directives34745
  2999. -Node: Size Directives35170
  3000. -Node: Location Directives35466
  3001. -Node: Time Directives36018
  3002. -Node: Time Formats36886
  3003. -Node: Time Components37313
  3004. -Node: Date Components37806
  3005. -Node: Combined Time Formats38616
  3006. -Node: Run Commands39100
  3007. -Node: Single File39453
  3008. -Node: Multiple Files40303
  3009. -Node: Unsafe File Name Handling42106
  3010. -Node: Safe File Name Handling43656
  3011. -Node: Limiting Command Size44342
  3012. -Node: Interspersing File Names46097
  3013. -Node: Querying47158
  3014. -Node: Adding Tests48074
  3015. -Node: Common Tasks50336
  3016. -Node: Viewing And Editing50752
  3017. -Node: Archiving51263
  3018. -Node: Cleaning Up52895
  3019. -Node: Strange File Names54456
  3020. -Node: Fixing Permissions56086
  3021. -Node: Classifying Files56645
  3022. -Node: Databases57363
  3023. -Node: Database Locations57977
  3024. -Node: Database Formats59501
  3025. -Node: New Database Format60152
  3026. -Node: Sample Database61714
  3027. -Node: Old Database Format62353
  3028. -Node: File Permissions64083
  3029. -Node: Mode Structure64651
  3030. -Node: Symbolic Modes66779
  3031. -Node: Setting Permissions67777
  3032. -Node: Copying Permissions70314
  3033. -Node: Changing Special Permissions71115
  3034. -Node: Conditional Executability72951
  3035. -Node: Multiple Changes73568
  3036. -Node: Umask and Protection75216
  3037. -Node: Numeric Modes76305
  3038. -Node: Reference78135
  3039. -Node: Invoking find78433
  3040. -Node: Invoking locate79480
  3041. -Node: Invoking updatedb80163
  3042. -Node: Invoking xargs80932
  3043. -Node: Primary Index84002
  3044. +Node: Top1124
  3045. +Node: Introduction1936
  3046. +Node: Scope3107
  3047. +Node: Overview5027
  3048. +Node: find Expressions6785
  3049. +Node: Finding Files8406
  3050. +Node: Name8872
  3051. +Node: Base Name Patterns9496
  3052. +Node: Full Name Patterns10035
  3053. +Node: Fast Full Name Search11020
  3054. +Node: Shell Pattern Matching13175
  3055. +Node: Links15016
  3056. +Node: Symbolic Links15446
  3057. +Node: Hard Links16394
  3058. +Node: Time17430
  3059. +Node: Age Ranges17945
  3060. +Node: Comparing Timestamps18878
  3061. +Node: Size20157
  3062. +Node: Type20972
  3063. +Node: Owner21784
  3064. +Node: Permissions22597
  3065. +Node: Contents23282
  3066. +Node: Directories24450
  3067. +Node: Filesystems26924
  3068. +Node: Combining Primaries With Operators28196
  3069. +Node: Actions29497
  3070. +Node: Print File Name30044
  3071. +Node: Print File Information30648
  3072. +Node: Escapes32883
  3073. +Node: Format Directives33543
  3074. +Node: Name Directives34241
  3075. +Node: Ownership Directives34772
  3076. +Node: Size Directives35197
  3077. +Node: Location Directives35493
  3078. +Node: Time Directives36045
  3079. +Node: Time Formats36913
  3080. +Node: Time Components37340
  3081. +Node: Date Components37833
  3082. +Node: Combined Time Formats38643
  3083. +Node: Run Commands39127
  3084. +Node: Single File39480
  3085. +Node: Multiple Files40330
  3086. +Node: Unsafe File Name Handling42133
  3087. +Node: Safe File Name Handling43683
  3088. +Node: Limiting Command Size44369
  3089. +Node: Interspersing File Names46124
  3090. +Node: Querying47185
  3091. +Node: Adding Tests48101
  3092. +Node: Common Tasks50363
  3093. +Node: Viewing And Editing50779
  3094. +Node: Archiving51290
  3095. +Node: Cleaning Up52922
  3096. +Node: Strange File Names54483
  3097. +Node: Fixing Permissions56113
  3098. +Node: Classifying Files56672
  3099. +Node: Databases57390
  3100. +Node: Database Locations58004
  3101. +Node: Database Formats59528
  3102. +Node: New Database Format60179
  3103. +Node: Sample Database61741
  3104. +Node: Old Database Format62380
  3105. +Node: File Permissions64110
  3106. +Node: Mode Structure64678
  3107. +Node: Symbolic Modes66806
  3108. +Node: Setting Permissions67804
  3109. +Node: Copying Permissions70341
  3110. +Node: Changing Special Permissions71142
  3111. +Node: Conditional Executability72978
  3112. +Node: Multiple Changes73595
  3113. +Node: Umask and Protection75243
  3114. +Node: Numeric Modes76332
  3115. +Node: Reference78162
  3116. +Node: Invoking find78460
  3117. +Node: Invoking locate79507
  3118. +Node: Invoking updatedb80190
  3119. +Node: Invoking xargs80959
  3120. +Node: Primary Index84029
  3121.  
  3122.  End Tag Table
  3123. diff -rup --new-file baseline/fsf/findutils/doc/find.info-1 amiga/fsf/findutils/doc/find.info-1
  3124. --- baseline/fsf/findutils/doc/find.info-1    Thu Nov  3 21:22:49 1994
  3125. +++ amiga/fsf/findutils/doc/find.info-1    Sat Sep 28 00:00:00 1996
  3126. @@ -1,5 +1,5 @@
  3127. -This is Info file find.info, produced by Makeinfo-1.55 from the input
  3128. -file find.texi.
  3129. +This is Info file find.info, produced by Makeinfo-1.63 from the input
  3130. +file /ade-src/fsf/findutils/doc/find.texi.
  3131.  
  3132.  START-INFO-DIR-ENTRY
  3133.  * Finding Files: (find).        Listing and operating on files
  3134. diff -rup --new-file baseline/fsf/findutils/doc/find.info-2 amiga/fsf/findutils/doc/find.info-2
  3135. --- baseline/fsf/findutils/doc/find.info-2    Thu Nov  3 21:22:49 1994
  3136. +++ amiga/fsf/findutils/doc/find.info-2    Sat Sep 28 00:00:00 1996
  3137. @@ -1,5 +1,5 @@
  3138. -This is Info file find.info, produced by Makeinfo-1.55 from the input
  3139. -file find.texi.
  3140. +This is Info file find.info, produced by Makeinfo-1.63 from the input
  3141. +file /ade-src/fsf/findutils/doc/find.texi.
  3142.  
  3143.  START-INFO-DIR-ENTRY
  3144.  * Finding Files: (find).        Listing and operating on files
  3145. diff -rup --new-file baseline/fsf/findutils/find/Makefile.in amiga/fsf/findutils/find/Makefile.in
  3146. --- baseline/fsf/findutils/find/Makefile.in    Sat Nov  5 07:43:52 1994
  3147. +++ amiga/fsf/findutils/find/Makefile.in    Sat Sep 28 00:00:00 1996
  3148. @@ -25,13 +25,17 @@ exec_prefix = @exec_prefix@
  3149.  
  3150.  bindir = $(exec_prefix)/bin
  3151.  sbindir = $(exec_prefix)/sbin
  3152. -libexecdir = $(exec_prefix)/libexec
  3153.  datadir = $(prefix)/share
  3154.  sysconfdir = $(prefix)/etc
  3155.  sharedstatedir = $(prefix)/com
  3156. -localstatedir = $(prefix)/var
  3157. +# Put this in /local, since $(prefix) might be on read-only media. -fnf
  3158. +localstatedir = /local/var
  3159.  libdir = $(exec_prefix)/lib
  3160. +# It seems hokey to me to have the libexec dir visible at what is the
  3161. +# equivalent of the root directory, so put it under libdir instead.  -fnf
  3162. +libexecdir = $(libdir)/libexec
  3163.  infodir = $(prefix)/info
  3164. +guidedir = $(prefix)/guide
  3165.  mandir = $(prefix)/man
  3166.  includedir = $(prefix)/include
  3167.  oldincludedir = /usr/include
  3168. @@ -58,7 +62,7 @@ NROFF = nroff
  3169.  
  3170.  SOURCES =  ${find_SOURCES}
  3171.  DIST_CONF = Makefile.am Makefile.in
  3172. -DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(MANS) $(DIST_OTHER)
  3173. +DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(GUIDES) $(MANS) $(DIST_OTHER)
  3174.  
  3175.  PROGRAMS = find
  3176.  find_SOURCES = find.c fstype.c parser.c pred.c tree.c util.c version.c
  3177. @@ -131,7 +135,7 @@ distclean: clean
  3178.      rm -f config.cache config.log config.status ${CONFIG_HEADER} stamp-h
  3179.  
  3180.  realclean: distclean
  3181. -    rm -f TAGS $(INFOS)
  3182. +    rm -f TAGS $(INFOS) $(GUIDES)
  3183.  
  3184.  dist: $(DIST_FILES) $(DIST_DIRS)
  3185.      -mkdir ../`cat ../distname`/$(subdir)
  3186. @@ -141,7 +145,7 @@ dist: $(DIST_FILES) $(DIST_DIRS)
  3187.          { echo copying $$file instead; cp -p $(srcdir)/$$file ../`cat ../distname`/$(subdir)/$$file;}; \
  3188.      done
  3189.  
  3190. -check dvi info install uninstall::
  3191. +check dvi info guide install uninstall::
  3192.  
  3193.  tags:: TAGS
  3194.  
  3195. diff -rup --new-file baseline/fsf/findutils/find/find.c amiga/fsf/findutils/find/find.c
  3196. --- baseline/fsf/findutils/find/find.c    Wed Oct 12 14:21:11 1994
  3197. +++ amiga/fsf/findutils/find/find.c    Sat Sep 28 00:00:00 1996
  3198. @@ -131,7 +131,7 @@ debug_stat (file, bufp)
  3199.  }
  3200.  #endif /* DEBUG_STAT */
  3201.  
  3202. -void
  3203. +int
  3204.  main (argc, argv)
  3205.       int argc;
  3206.       char *argv[];
  3207. @@ -149,7 +149,13 @@ main (argc, argv)
  3208.    maxdepth = mindepth = -1;
  3209.    cur_day_start = time ((time_t *) 0) - DAYSECS;
  3210.    full_days = false;
  3211. +/* ixemul.library always sets st_nlink to 2 instead of 2 + number of
  3212. +   files in directory */
  3213. +#ifdef __amigaos__
  3214. +  no_leaf_check = true;
  3215. +#else
  3216.    no_leaf_check = false;
  3217. +#endif
  3218.    stay_on_filesystem = false;
  3219.    exit_status = 0;
  3220.    dereference = false;
  3221. diff -rup --new-file baseline/fsf/findutils/find/fstype.c amiga/fsf/findutils/find/fstype.c
  3222. --- baseline/fsf/findutils/find/fstype.c    Thu Nov  3 09:33:48 1994
  3223. +++ amiga/fsf/findutils/find/fstype.c    Sat Sep 28 00:00:00 1996
  3224. @@ -48,8 +48,19 @@ static int xatoi P_((char *cp));
  3225.  #endif
  3226.  #endif
  3227.  
  3228. +/* The above "defs.h" includes "regex.h", which defines RE_DUP_MAX.  However
  3229. +   on some systems, <param.h> includes <sys/syslimits.h>, which wants to 
  3230. +   unconditionally define RE_DUP_MAX.  So to work around this problem, we
  3231. +   save the value set by regex.h and then restore it later after including
  3232. +   param.h.  This is a hack, but the alternative is to reorder the includes,
  3233. +   which is more dangerous. */
  3234. +#define RE_DUP_MAX_SAVE RE_DUP_MAX
  3235. +#undef RE_DUP_MAX
  3236. +
  3237.  #ifdef FSTYPE_GETMNT        /* Ultrix.  */
  3238.  #include <sys/param.h>
  3239. +#undef RE_DUP_MAX /* See notes above */
  3240. +#define RE_DUP_MAX RE_DUP_MAX_SAVE
  3241.  #include <sys/mount.h>
  3242.  #include <sys/fs_types.h>
  3243.  #endif
  3244. @@ -66,6 +77,8 @@ static int xatoi P_((char *cp));
  3245.  
  3246.  #ifdef FSTYPE_STATFS        /* 4.4BSD.  */
  3247.  #include <sys/param.h>        /* NetBSD needs this.  */
  3248. +#undef RE_DUP_MAX /* See notes above */
  3249. +#define RE_DUP_MAX RE_DUP_MAX_SAVE
  3250.  #include <sys/mount.h>
  3251.  
  3252.  #ifndef MFSNAMELEN        /* NetBSD defines this.  */
  3253. diff -rup --new-file baseline/fsf/findutils/find/pred.c amiga/fsf/findutils/find/pred.c
  3254. --- baseline/fsf/findutils/find/pred.c    Wed Nov  2 13:59:23 1994
  3255. +++ amiga/fsf/findutils/find/pred.c    Sat Sep 28 00:00:00 1996
  3256. @@ -19,11 +19,14 @@
  3257.  #include <sys/types.h>
  3258.  #include <sys/stat.h>
  3259.  #include <stdio.h>
  3260. -#include <fnmatch.h>
  3261.  #include <signal.h>
  3262.  #include <pwd.h>
  3263.  #include <grp.h>
  3264.  #include "defs.h"
  3265. +/* Put fnmatch.h after defs.h, since defs.h includes unistd.h, which on
  3266. +   some systems defines FNM_PATHNAME, which fnmatch.h then wants to undef
  3267. +   and do it's own way. */
  3268. +#include <fnmatch.h>
  3269.  #include "modetype.h"
  3270.  #include "wait.h"
  3271.  
  3272. @@ -1337,7 +1340,7 @@ launch (pred_ptr)
  3273.        signal (SIGCHLD, SIG_DFL);
  3274.      }
  3275.  
  3276. -  child_pid = fork ();
  3277. +  child_pid = vfork ();
  3278.    if (child_pid == -1)
  3279.      error (1, errno, "cannot fork");
  3280.    if (child_pid == 0)
  3281. diff -rup --new-file baseline/fsf/findutils/lib/Makefile.in amiga/fsf/findutils/lib/Makefile.in
  3282. --- baseline/fsf/findutils/lib/Makefile.in    Sat Nov  5 07:43:58 1994
  3283. +++ amiga/fsf/findutils/lib/Makefile.in    Sat Sep 28 00:00:00 1996
  3284. @@ -25,13 +25,17 @@ exec_prefix = @exec_prefix@
  3285.  
  3286.  bindir = $(exec_prefix)/bin
  3287.  sbindir = $(exec_prefix)/sbin
  3288. -libexecdir = $(exec_prefix)/libexec
  3289.  datadir = $(prefix)/share
  3290.  sysconfdir = $(prefix)/etc
  3291.  sharedstatedir = $(prefix)/com
  3292. -localstatedir = $(prefix)/var
  3293. +# Put this in /local, since $(prefix) might be on read-only media. -fnf
  3294. +localstatedir = /local/var
  3295.  libdir = $(exec_prefix)/lib
  3296. +# It seems hokey to me to have the libexec dir visible at what is the
  3297. +# equivalent of the root directory, so put it under libdir instead.  -fnf
  3298. +libexecdir = $(libdir)/libexec
  3299.  infodir = $(prefix)/info
  3300. +guidedir = $(prefix)/guide
  3301.  mandir = $(prefix)/man
  3302.  includedir = $(prefix)/include
  3303.  oldincludedir = /usr/include
  3304. @@ -62,7 +66,7 @@ LIBOBJS = @LIBOBJS@
  3305.  
  3306.  SOURCES =  ${find_SOURCES}
  3307.  DIST_CONF = Makefile.am Makefile.in
  3308. -DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(MANS) $(DIST_OTHER)
  3309. +DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(GUIDES) $(MANS) $(DIST_OTHER)
  3310.  
  3311.  LIBRARIES = find
  3312.  find_SOURCES = regex.c dirname.c error.c filemode.c getopt.c getopt1.c \
  3313. @@ -108,7 +112,7 @@ distclean: clean
  3314.      rm -f config.cache config.log config.status ${CONFIG_HEADER} stamp-h
  3315.  
  3316.  realclean: distclean
  3317. -    rm -f TAGS $(INFOS)
  3318. +    rm -f TAGS $(INFOS) $(GUIDES)
  3319.  
  3320.  dist: $(DIST_FILES) $(DIST_DIRS)
  3321.      -mkdir ../`cat ../distname`/$(subdir)
  3322. @@ -118,7 +122,7 @@ dist: $(DIST_FILES) $(DIST_DIRS)
  3323.          { echo copying $$file instead; cp -p $(srcdir)/$$file ../`cat ../distname`/$(subdir)/$$file;}; \
  3324.      done
  3325.  
  3326. -check dvi info install uninstall::
  3327. +check dvi info guide install uninstall::
  3328.  
  3329.  tags:: TAGS
  3330.  
  3331. diff -rup --new-file baseline/fsf/findutils/lib/fnmatch.h amiga/fsf/findutils/lib/fnmatch.h
  3332. --- baseline/fsf/findutils/lib/fnmatch.h    Mon Sep 26 15:03:58 1994
  3333. +++ amiga/fsf/findutils/lib/fnmatch.h    Sat Sep 28 00:00:00 1996
  3334. @@ -41,6 +41,10 @@ extern "C" {
  3335.  #undef    FNM_NOESCAPE
  3336.  #undef    FNM_PERIOD
  3337.  
  3338. +#ifdef FNM_PATHNAME
  3339. +#undef FNM_PATHNAME    /* Defined in some <unistd.h> files?  -fnf */
  3340. +#endif
  3341. +
  3342.  /* Bits set in the FLAGS argument to `fnmatch'.  */
  3343.  #define    FNM_PATHNAME    (1 << 0) /* No wildcard can ever match `/'.  */
  3344.  #define    FNM_NOESCAPE    (1 << 1) /* Backslashes don't quote special chars.  */
  3345. diff -rup --new-file baseline/fsf/findutils/locate/Makefile.in amiga/fsf/findutils/locate/Makefile.in
  3346. --- baseline/fsf/findutils/locate/Makefile.in    Sat Nov  5 07:44:08 1994
  3347. +++ amiga/fsf/findutils/locate/Makefile.in    Sat Sep 28 00:00:00 1996
  3348. @@ -25,13 +25,17 @@ exec_prefix = @exec_prefix@
  3349.  
  3350.  bindir = $(exec_prefix)/bin
  3351.  sbindir = $(exec_prefix)/sbin
  3352. -libexecdir = $(exec_prefix)/libexec
  3353.  datadir = $(prefix)/share
  3354.  sysconfdir = $(prefix)/etc
  3355.  sharedstatedir = $(prefix)/com
  3356. -localstatedir = $(prefix)/var
  3357. +# Put this in /local, since $(prefix) might be on read-only media. -fnf
  3358. +localstatedir = /local/var
  3359.  libdir = $(exec_prefix)/lib
  3360. +# It seems hokey to me to have the libexec dir visible at what is the
  3361. +# equivalent of the root directory, so put it under libdir instead.  -fnf
  3362. +libexecdir = $(libdir)/libexec
  3363.  infodir = $(prefix)/info
  3364. +guidedir = $(prefix)/guide
  3365.  mandir = $(prefix)/man
  3366.  includedir = $(prefix)/include
  3367.  oldincludedir = /usr/include
  3368. @@ -65,7 +69,7 @@ NROFF = nroff
  3369.  
  3370.  SOURCES =  locate.c frcode.c code.c bigram.c
  3371.  DIST_CONF = Makefile.am Makefile.in
  3372. -DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(MANS) $(DIST_OTHER)
  3373. +DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(GUIDES) $(MANS) $(DIST_OTHER)
  3374.  
  3375.  # The default database to build and search.
  3376.  LOCATE_DB = $(localstatedir)/locatedb
  3377. @@ -173,7 +177,7 @@ distclean: clean
  3378.      rm -f config.cache config.log config.status ${CONFIG_HEADER} stamp-h
  3379.  
  3380.  realclean: distclean
  3381. -    rm -f TAGS $(INFOS)
  3382. +    rm -f TAGS $(INFOS) $(GUIDES)
  3383.  
  3384.  dist: $(DIST_FILES) $(DIST_DIRS)
  3385.      -mkdir ../`cat ../distname`/$(subdir)
  3386. @@ -183,7 +187,7 @@ dist: $(DIST_FILES) $(DIST_DIRS)
  3387.          { echo copying $$file instead; cp -p $(srcdir)/$$file ../`cat ../distname`/$(subdir)/$$file;}; \
  3388.      done
  3389.  
  3390. -check dvi info install uninstall::
  3391. +check dvi info guide install uninstall::
  3392.  
  3393.  tags:: TAGS
  3394.  
  3395. @@ -203,9 +207,10 @@ updatedb: updatedb.sh
  3396.      frcode=`echo frcode|sed '$(transform)'`; \
  3397.      bigram=`echo bigram|sed '$(transform)'`; \
  3398.      code=`echo code|sed '$(transform)'`; \
  3399. +    # Amiga hack - avoid autoconf substitutions of @bindir@ & @libexecdir@
  3400.      sed \
  3401. -    -e "s,@bindir@,$(bindir)," \
  3402. -    -e "s,@libexecdir@,$(libexecdir)," \
  3403. +    -e "s,@bin.*dir@,$(bindir)," \
  3404. +    -e "s,@lib.*execdir@,$(libexecdir)," \
  3405.      -e "s,@LOCATE_DB@,$(LOCATE_DB)," \
  3406.      -e "s,@version@,$$version," \
  3407.      -e "s,@find@,$$find," \
  3408. diff -rup --new-file baseline/fsf/findutils/locate/bigram.c amiga/fsf/findutils/locate/bigram.c
  3409. --- baseline/fsf/findutils/locate/bigram.c    Fri Oct  7 10:21:35 1994
  3410. +++ amiga/fsf/findutils/locate/bigram.c    Sat Sep 28 00:00:00 1996
  3411. @@ -61,7 +61,7 @@ prefix_length (s1, s2)
  3412.    return s1 - start;
  3413.  }
  3414.  
  3415. -void
  3416. +int
  3417.  main (argc, argv)
  3418.       int argc;
  3419.       char **argv;
  3420. diff -rup --new-file baseline/fsf/findutils/locate/code.c amiga/fsf/findutils/locate/code.c
  3421. --- baseline/fsf/findutils/locate/code.c    Mon Sep 26 15:06:09 1994
  3422. +++ amiga/fsf/findutils/locate/code.c    Sat Sep 28 00:00:00 1996
  3423. @@ -102,7 +102,7 @@ prefix_length (s1, s2)
  3424.    return s1 - start;
  3425.  }
  3426.  
  3427. -void
  3428. +int
  3429.  main (argc, argv)
  3430.       int argc;
  3431.       char **argv;
  3432. diff -rup --new-file baseline/fsf/findutils/locate/frcode.c amiga/fsf/findutils/locate/frcode.c
  3433. --- baseline/fsf/findutils/locate/frcode.c    Mon Sep 26 15:06:11 1994
  3434. +++ amiga/fsf/findutils/locate/frcode.c    Sat Sep 28 00:00:00 1996
  3435. @@ -106,7 +106,6 @@ prefix_length (s1, s2)
  3436.    return s1 - start;
  3437.  }
  3438.  
  3439. -void
  3440.  main (argc, argv)
  3441.       int argc;
  3442.       char **argv;
  3443. diff -rup --new-file baseline/fsf/findutils/locate/locate.c amiga/fsf/findutils/locate/locate.c
  3444. --- baseline/fsf/findutils/locate/locate.c    Mon Sep 26 15:06:14 1994
  3445. +++ amiga/fsf/findutils/locate/locate.c    Sat Sep 28 00:00:00 1996
  3446. @@ -355,7 +355,7 @@ static struct option const longopts[] =
  3447.    {NULL, no_argument, NULL, 0}
  3448.  };
  3449.  
  3450. -void
  3451. +int
  3452.  main (argc, argv)
  3453.       int argc;
  3454.       char **argv;
  3455. diff -rup --new-file baseline/fsf/findutils/locate/updatedb.sh amiga/fsf/findutils/locate/updatedb.sh
  3456. --- baseline/fsf/findutils/locate/updatedb.sh    Tue Oct  4 19:24:18 1994
  3457. +++ amiga/fsf/findutils/locate/updatedb.sh    Sat Sep 28 00:00:00 1996
  3458. @@ -63,11 +63,7 @@ test -z "$PRUNEREGEX" &&
  3459.  : ${LOCATE_DB=@LOCATE_DB@}
  3460.  
  3461.  # Directory to hold intermediate files.
  3462. -if test -d /var/tmp; then
  3463. -  : ${TMPDIR=/var/tmp}
  3464. -else
  3465. -  : ${TMPDIR=/usr/tmp}
  3466. -fi
  3467. +: ${TMPDIR=/tmp}
  3468.  
  3469.  # The user to search network directories as.
  3470.  : ${NETUSER=daemon}
  3471. @@ -84,7 +80,7 @@ fi
  3472.  : ${bigram=@bigram@}
  3473.  : ${code=@code@}
  3474.  
  3475. -PATH=$LIBEXECDIR:$BINDIR:/usr/ucb:/bin:/usr/bin:$PATH export PATH
  3476. +PATH=$LIBEXECDIR:$BINDIR:/bin:$PATH export PATH
  3477.  
  3478.  # Make and code the file list.
  3479.  # Sort case insensitively for users' convenience.
  3480. diff -rup --new-file baseline/fsf/findutils/manifests/bin amiga/fsf/findutils/manifests/bin
  3481. --- baseline/fsf/findutils/manifests/bin    Wed Dec 31 17:00:00 1969
  3482. +++ amiga/fsf/findutils/manifests/bin    Wed Oct  9 23:24:11 1996
  3483. @@ -0,0 +1,23 @@
  3484. +COPYING
  3485. +COPYING.info
  3486. +bin/find
  3487. +bin/locate
  3488. +bin/updatedb
  3489. +bin/xargs
  3490. +guide/find.guide
  3491. +info/find.info
  3492. +info/find.info-1
  3493. +info/find.info-2
  3494. +lib/libexec/bigram
  3495. +lib/libexec/code
  3496. +lib/libexec/frcode
  3497. +man/cat1/find.1
  3498. +man/cat1/locate.1
  3499. +man/cat1/updatedb.1
  3500. +man/cat1/xargs.1
  3501. +man/cat5/locatedb.5
  3502. +man/man1/find.1
  3503. +man/man1/locate.1
  3504. +man/man1/updatedb.1
  3505. +man/man1/xargs.1
  3506. +man/man5/locatedb.5
  3507. diff -rup --new-file baseline/fsf/findutils/manifests/src amiga/fsf/findutils/manifests/src
  3508. --- baseline/fsf/findutils/manifests/src    Wed Dec 31 17:00:00 1969
  3509. +++ amiga/fsf/findutils/manifests/src    Sat Sep 28 00:00:00 1996
  3510. @@ -0,0 +1,126 @@
  3511. +fsf/findutils/COPYING
  3512. +fsf/findutils/ChangeLog
  3513. +fsf/findutils/INSTALL
  3514. +fsf/findutils/Makefile.am
  3515. +fsf/findutils/Makefile.in
  3516. +fsf/findutils/NEWS
  3517. +fsf/findutils/Product-Info
  3518. +fsf/findutils/README
  3519. +fsf/findutils/TODO
  3520. +fsf/findutils/acconfig.h
  3521. +fsf/findutils/config.h.in
  3522. +fsf/findutils/configure
  3523. +fsf/findutils/configure.in
  3524. +fsf/findutils/doc/Makefile.am
  3525. +fsf/findutils/doc/Makefile.in
  3526. +fsf/findutils/doc/find.info
  3527. +fsf/findutils/doc/find.info-1
  3528. +fsf/findutils/doc/find.info-2
  3529. +fsf/findutils/doc/find.texi
  3530. +fsf/findutils/doc/perm.texi
  3531. +fsf/findutils/doc/texinfo.tex
  3532. +fsf/findutils/find/Makefile.am
  3533. +fsf/findutils/find/Makefile.in
  3534. +fsf/findutils/find/defs.h
  3535. +fsf/findutils/find/find.1
  3536. +fsf/findutils/find/find.c
  3537. +fsf/findutils/find/fstype.c
  3538. +fsf/findutils/find/parser.c
  3539. +fsf/findutils/find/pred.c
  3540. +fsf/findutils/find/tree.c
  3541. +fsf/findutils/find/util.c
  3542. +fsf/findutils/find/version.c
  3543. +fsf/findutils/install-sh
  3544. +fsf/findutils/lib/Makefile.am
  3545. +fsf/findutils/lib/Makefile.in
  3546. +fsf/findutils/lib/alloca.c
  3547. +fsf/findutils/lib/dirname.c
  3548. +fsf/findutils/lib/error.c
  3549. +fsf/findutils/lib/fileblocks.c
  3550. +fsf/findutils/lib/filemode.c
  3551. +fsf/findutils/lib/fnmatch.c
  3552. +fsf/findutils/lib/fnmatch.h
  3553. +fsf/findutils/lib/getline.c
  3554. +fsf/findutils/lib/getopt.c
  3555. +fsf/findutils/lib/getopt.h
  3556. +fsf/findutils/lib/getopt1.c
  3557. +fsf/findutils/lib/idcache.c
  3558. +fsf/findutils/lib/listfile.c
  3559. +fsf/findutils/lib/memcmp.c
  3560. +fsf/findutils/lib/memset.c
  3561. +fsf/findutils/lib/mktime.c
  3562. +fsf/findutils/lib/modechange.c
  3563. +fsf/findutils/lib/modechange.h
  3564. +fsf/findutils/lib/modetype.h
  3565. +fsf/findutils/lib/nextelem.c
  3566. +fsf/findutils/lib/pathmax.h
  3567. +fsf/findutils/lib/regex.c
  3568. +fsf/findutils/lib/regex.h
  3569. +fsf/findutils/lib/savedir.c
  3570. +fsf/findutils/lib/stpcpy.c
  3571. +fsf/findutils/lib/strdup.c
  3572. +fsf/findutils/lib/strftime.c
  3573. +fsf/findutils/lib/strspn.c
  3574. +fsf/findutils/lib/strstr.c
  3575. +fsf/findutils/lib/strtol.c
  3576. +fsf/findutils/lib/wait.h
  3577. +fsf/findutils/lib/xgetcwd.c
  3578. +fsf/findutils/lib/xmalloc.c
  3579. +fsf/findutils/lib/xstrdup.c
  3580. +fsf/findutils/locate/Makefile.am
  3581. +fsf/findutils/locate/Makefile.in
  3582. +fsf/findutils/locate/bigram.c
  3583. +fsf/findutils/locate/code.c
  3584. +fsf/findutils/locate/frcode.c
  3585. +fsf/findutils/locate/locate.1
  3586. +fsf/findutils/locate/locate.c
  3587. +fsf/findutils/locate/locatedb.5
  3588. +fsf/findutils/locate/locatedb.h
  3589. +fsf/findutils/locate/updatedb.1
  3590. +fsf/findutils/locate/updatedb.sh
  3591. +fsf/findutils/manifests/bin
  3592. +fsf/findutils/manifests/src
  3593. +fsf/findutils/mkinstalldirs
  3594. +fsf/findutils/stamp-h.in
  3595. +fsf/findutils/testsuite/Makefile.am
  3596. +fsf/findutils/testsuite/Makefile.in
  3597. +fsf/findutils/testsuite/config/unix.exp
  3598. +fsf/findutils/testsuite/inputs/eof.xi
  3599. +fsf/findutils/testsuite/inputs/eofstr.xi
  3600. +fsf/findutils/testsuite/inputs/files.xi
  3601. +fsf/findutils/testsuite/inputs/files0.xi
  3602. +fsf/findutils/testsuite/inputs/quotes.xi
  3603. +fsf/findutils/testsuite/xargs.gnu/0n3.exp
  3604. +fsf/findutils/testsuite/xargs.gnu/0n3.xo
  3605. +fsf/findutils/testsuite/xargs.gnu/nothing.exp
  3606. +fsf/findutils/testsuite/xargs.gnu/nothing.xo
  3607. +fsf/findutils/testsuite/xargs.gnu/r.exp
  3608. +fsf/findutils/testsuite/xargs.posix/hithere.exp
  3609. +fsf/findutils/testsuite/xargs.posix/hithere.xo
  3610. +fsf/findutils/testsuite/xargs.posix/n3.exp
  3611. +fsf/findutils/testsuite/xargs.posix/n3.xo
  3612. +fsf/findutils/testsuite/xargs.posix/quotes.exp
  3613. +fsf/findutils/testsuite/xargs.posix/quotes.xo
  3614. +fsf/findutils/testsuite/xargs.posix/s47.exp
  3615. +fsf/findutils/testsuite/xargs.posix/s47.xo
  3616. +fsf/findutils/testsuite/xargs.posix/s470.exp
  3617. +fsf/findutils/testsuite/xargs.posix/s470.xo
  3618. +fsf/findutils/testsuite/xargs.posix/s48.exp
  3619. +fsf/findutils/testsuite/xargs.posix/s48.xo
  3620. +fsf/findutils/testsuite/xargs.posix/s6.exp
  3621. +fsf/findutils/testsuite/xargs.sysv/eEOF.exp
  3622. +fsf/findutils/testsuite/xargs.sysv/eEOF.xo
  3623. +fsf/findutils/testsuite/xargs.sysv/eof.exp
  3624. +fsf/findutils/testsuite/xargs.sysv/eof.xo
  3625. +fsf/findutils/testsuite/xargs.sysv/iARG.exp
  3626. +fsf/findutils/testsuite/xargs.sysv/iARG.xo
  3627. +fsf/findutils/testsuite/xargs.sysv/iquotes.exp
  3628. +fsf/findutils/testsuite/xargs.sysv/iquotes.xo
  3629. +fsf/findutils/testsuite/xargs.sysv/l1n4.exp
  3630. +fsf/findutils/testsuite/xargs.sysv/l1n4.xo
  3631. +fsf/findutils/testsuite/xargs.sysv/l2.exp
  3632. +fsf/findutils/testsuite/xargs.sysv/l2.xo
  3633. +fsf/findutils/xargs/Makefile.am
  3634. +fsf/findutils/xargs/Makefile.in
  3635. +fsf/findutils/xargs/xargs.1
  3636. +fsf/findutils/xargs/xargs.c
  3637. diff -rup --new-file baseline/fsf/findutils/testsuite/Makefile.in amiga/fsf/findutils/testsuite/Makefile.in
  3638. --- baseline/fsf/findutils/testsuite/Makefile.in    Sat Nov  5 07:44:25 1994
  3639. +++ amiga/fsf/findutils/testsuite/Makefile.in    Sat Sep 28 00:00:00 1996
  3640. @@ -25,13 +25,17 @@ exec_prefix = @exec_prefix@
  3641.  
  3642.  bindir = $(exec_prefix)/bin
  3643.  sbindir = $(exec_prefix)/sbin
  3644. -libexecdir = $(exec_prefix)/libexec
  3645.  datadir = $(prefix)/share
  3646.  sysconfdir = $(prefix)/etc
  3647.  sharedstatedir = $(prefix)/com
  3648. -localstatedir = $(prefix)/var
  3649. +# Put this in /local, since $(prefix) might be on read-only media. -fnf
  3650. +localstatedir = /local/var
  3651.  libdir = $(exec_prefix)/lib
  3652. +# It seems hokey to me to have the libexec dir visible at what is the
  3653. +# equivalent of the root directory, so put it under libdir instead.  -fnf
  3654. +libexecdir = $(libdir)/libexec
  3655.  infodir = $(prefix)/info
  3656. +guidedir = $(prefix)/guide
  3657.  mandir = $(prefix)/man
  3658.  includedir = $(prefix)/include
  3659.  oldincludedir = /usr/include
  3660. @@ -44,7 +48,7 @@ transform = @program_transform_name@
  3661.  ALL = ${PROGRAMS} ${LIBPROGRAMS} ${SCRIPTS} ${LIBSCRIPTS} ${LIBFILES}
  3662.  SOURCES = 
  3663.  DIST_CONF = Makefile.am Makefile.in
  3664. -DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(MANS) $(DIST_OTHER)
  3665. +DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(GUIDES) $(MANS) $(DIST_OTHER)
  3666.  
  3667.  XARGS = ../xargs/xargs
  3668.  XARGSFLAGS =
  3669. @@ -70,7 +74,7 @@ distclean: clean
  3670.      rm -f config.cache config.log config.status ${CONFIG_HEADER} stamp-h
  3671.  
  3672.  realclean: distclean
  3673. -    rm -f TAGS $(INFOS)
  3674. +    rm -f TAGS $(INFOS) $(GUIDES)
  3675.  
  3676.  dist: $(DIST_FILES) $(DIST_DIRS)
  3677.      -mkdir ../`cat ../distname`/$(subdir)
  3678. @@ -80,7 +84,7 @@ dist: $(DIST_FILES) $(DIST_DIRS)
  3679.          { echo copying $$file instead; cp -p $(srcdir)/$$file ../`cat ../distname`/$(subdir)/$$file;}; \
  3680.      done
  3681.  
  3682. -check dvi info install uninstall::
  3683. +check dvi info guide install uninstall::
  3684.  
  3685.  tags:: TAGS
  3686.  
  3687. diff -rup --new-file baseline/fsf/findutils/xargs/Makefile.in amiga/fsf/findutils/xargs/Makefile.in
  3688. --- baseline/fsf/findutils/xargs/Makefile.in    Sat Nov  5 07:44:18 1994
  3689. +++ amiga/fsf/findutils/xargs/Makefile.in    Sat Sep 28 00:00:00 1996
  3690. @@ -25,13 +25,17 @@ exec_prefix = @exec_prefix@
  3691.  
  3692.  bindir = $(exec_prefix)/bin
  3693.  sbindir = $(exec_prefix)/sbin
  3694. -libexecdir = $(exec_prefix)/libexec
  3695.  datadir = $(prefix)/share
  3696.  sysconfdir = $(prefix)/etc
  3697.  sharedstatedir = $(prefix)/com
  3698. -localstatedir = $(prefix)/var
  3699. +# Put this in /local, since $(prefix) might be on read-only media. -fnf
  3700. +localstatedir = /local/var
  3701.  libdir = $(exec_prefix)/lib
  3702. +# It seems hokey to me to have the libexec dir visible at what is the
  3703. +# equivalent of the root directory, so put it under libdir instead.  -fnf
  3704. +libexecdir = $(libdir)/libexec
  3705.  infodir = $(prefix)/info
  3706. +guidedir = $(prefix)/guide
  3707.  mandir = $(prefix)/man
  3708.  includedir = $(prefix)/include
  3709.  oldincludedir = /usr/include
  3710. @@ -59,7 +63,7 @@ NROFF = nroff
  3711.  
  3712.  SOURCES =  xargs.c
  3713.  DIST_CONF = Makefile.am Makefile.in
  3714. -DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(MANS) $(DIST_OTHER)
  3715. +DIST_FILES = $(DIST_CONF) $(SOURCES) $(TEXINFOS) $(INFOS) $(GUIDES) $(MANS) $(DIST_OTHER)
  3716.  
  3717.  PROGRAMS = xargs
  3718.  MANS = xargs.1
  3719. @@ -130,7 +134,7 @@ distclean: clean
  3720.      rm -f config.cache config.log config.status ${CONFIG_HEADER} stamp-h
  3721.  
  3722.  realclean: distclean
  3723. -    rm -f TAGS $(INFOS)
  3724. +    rm -f TAGS $(INFOS) $(GUIDES)
  3725.  
  3726.  dist: $(DIST_FILES) $(DIST_DIRS)
  3727.      -mkdir ../`cat ../distname`/$(subdir)
  3728. @@ -140,7 +144,7 @@ dist: $(DIST_FILES) $(DIST_DIRS)
  3729.          { echo copying $$file instead; cp -p $(srcdir)/$$file ../`cat ../distname`/$(subdir)/$$file;}; \
  3730.      done
  3731.  
  3732. -check dvi info install uninstall::
  3733. +check dvi info guide install uninstall::
  3734.  
  3735.  tags:: TAGS
  3736.  
  3737. diff -rup --new-file baseline/fsf/findutils/xargs/xargs.c amiga/fsf/findutils/xargs/xargs.c
  3738. --- baseline/fsf/findutils/xargs/xargs.c    Fri Oct  7 10:21:39 1994
  3739. +++ amiga/fsf/findutils/xargs/xargs.c    Sat Sep 28 00:00:00 1996
  3740. @@ -248,7 +248,7 @@ static long parse_num P_ ((char *str, in
  3741.  static long env_size P_ ((char **envp));
  3742.  static void usage P_ ((FILE * stream, int status));
  3743.  
  3744. -void
  3745. +int
  3746.  main (argc, argv)
  3747.       int argc;
  3748.       char **argv;
  3749. @@ -752,12 +752,12 @@ do_exec ()
  3750.      print_args (false);
  3751.        /* If we run out of processes, wait for a child to return and
  3752.           try again.  */
  3753. -      while ((child = fork ()) < 0 && errno == EAGAIN && procs_executing)
  3754. +      while ((child = vfork ()) < 0 && errno == EAGAIN && procs_executing)
  3755.      wait_for_proc (false);
  3756.        switch (child)
  3757.      {
  3758.      case -1:
  3759. -      error (1, errno, "cannot fork");
  3760. +      error (1, errno, "cannot vfork");
  3761.  
  3762.      case 0:        /* Child.  */
  3763.        execvp (cmd_argv[0], cmd_argv);
  3764.