home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / bbs / gnu / fileutils-3.9-diffs.lha / GNU / src / diffs / fileutils-3.9.diffs
Encoding:
Text File  |  1994-09-07  |  146.2 KB  |  5,207 lines

  1. diff -rc --new-file fileutils-3.9/INSTALL /gnu/src/amiga/fileutils-3.9/INSTALL
  2. *** fileutils-3.9/INSTALL    Wed Sep 15 23:05:10 1993
  3. --- /gnu/src/amiga/fileutils-3.9/INSTALL    Mon Feb 21 23:54:32 1994
  4. ***************
  5. *** 35,42 ****
  6.   where DIR is the directory that contains the source code.
  7.   
  8.      By default, `make install' will install the package's files in
  9. ! `/usr/local/bin', `/usr/local/man', etc.  You can specify an
  10. ! installation prefix other than `/usr/local' by giving `configure' the
  11.   option `--prefix=PATH'.  Alternately, you can do so by consistently
  12.   giving a value for the `prefix' variable when you run `make', e.g.,
  13.        make prefix=/usr/gnu
  14. --- 35,42 ----
  15.   where DIR is the directory that contains the source code.
  16.   
  17.      By default, `make install' will install the package's files in
  18. ! `/gnu/bin', `/gnu/man', etc.  You can specify an
  19. ! installation prefix other than `/gnu' by giving `configure' the
  20.   option `--prefix=PATH'.  Alternately, you can do so by consistently
  21.   giving a value for the `prefix' variable when you run `make', e.g.,
  22.        make prefix=/usr/gnu
  23. diff -rc --new-file fileutils-3.9/Makefile.in /gnu/src/amiga/fileutils-3.9/Makefile.in
  24. *** fileutils-3.9/Makefile.in    Tue Oct 12 04:02:44 1993
  25. --- /gnu/src/amiga/fileutils-3.9/Makefile.in    Sun Jul 10 10:29:49 1994
  26. ***************
  27. *** 25,31 ****
  28.   srcdir = @srcdir@
  29.   VPATH = @srcdir@
  30.   
  31. ! prefix = /usr/local
  32.   exec_prefix = $(prefix)
  33.   bindir = $(exec_prefix)/bin
  34.   libdir = $(exec_prefix)/lib
  35. --- 25,31 ----
  36.   srcdir = @srcdir@
  37.   VPATH = @srcdir@
  38.   
  39. ! prefix = /gnu
  40.   exec_prefix = $(prefix)
  41.   bindir = $(exec_prefix)/bin
  42.   libdir = $(exec_prefix)/lib
  43. ***************
  44. *** 45,51 ****
  45.   SUBDIRS = lib src man
  46.   
  47.   all:
  48. !     for dir in $(SUBDIRS); do \
  49.         echo making $@ in $$dir ; \
  50.         (cd $$dir; $(MAKE) $@) ; \
  51.       done
  52. --- 45,51 ----
  53.   SUBDIRS = lib src man
  54.   
  55.   all:
  56. !     @for dir in $(SUBDIRS); do \
  57.         echo making $@ in $$dir ; \
  58.         (cd $$dir; $(MAKE) $@) ; \
  59.       done
  60. ***************
  61. *** 58,65 ****
  62.   installcheck:
  63.   
  64.   $(PROGS):
  65. !     cd lib; $(MAKE) all
  66. !     cd src; $(MAKE) $@
  67.   
  68.   config.h: stamp-config ;
  69.   stamp-config: config.status $(srcdir)/config.h.in
  70. --- 58,65 ----
  71.   installcheck:
  72.   
  73.   $(PROGS):
  74. !     @cd lib; $(MAKE) all
  75. !     @cd src; $(MAKE) $@
  76.   
  77.   config.h: stamp-config ;
  78.   stamp-config: config.status $(srcdir)/config.h.in
  79. ***************
  80. *** 86,92 ****
  81.   install:: installdirs
  82.   
  83.   install uninstall TAGS clean mostlyclean distclean realclean::
  84. !     for dir in $(SUBDIRS); do \
  85.         echo making $@ in $$dir ; \
  86.         (cd $$dir; $(MAKE) $@) ; \
  87.       done
  88. --- 86,92 ----
  89.   install:: installdirs
  90.   
  91.   install uninstall TAGS clean mostlyclean distclean realclean::
  92. !     @for dir in $(SUBDIRS); do \
  93.         echo making $@ in $$dir ; \
  94.         (cd $$dir; $(MAKE) $@) ; \
  95.       done
  96. ***************
  97. *** 100,106 ****
  98.       rm -rf `cat .fname`
  99.       mkdir `cat .fname`
  100.       ln $(DISTFILES) `cat .fname`
  101. !     for dir in $(SUBDIRS); do \
  102.         mkdir `cat .fname`/$$dir; \
  103.         (cd $$dir; $(MAKE) $@); \
  104.       done
  105. --- 100,106 ----
  106.       rm -rf `cat .fname`
  107.       mkdir `cat .fname`
  108.       ln $(DISTFILES) `cat .fname`
  109. !     @for dir in $(SUBDIRS); do \
  110.         mkdir `cat .fname`/$$dir; \
  111.         (cd $$dir; $(MAKE) $@); \
  112.       done
  113. diff -rc --new-file fileutils-3.9/Product-Info /gnu/src/amiga/fileutils-3.9/Product-Info
  114. *** fileutils-3.9/Product-Info    Thu Jan  1 00:00:00 1970
  115. --- /gnu/src/amiga/fileutils-3.9/Product-Info    Tue Jul 12 17:07:46 1994
  116. ***************
  117. *** 0 ****
  118. --- 1,29 ----
  119. + .name
  120. + fileutils
  121. + .fullname
  122. + File management utilities
  123. + .type
  124. + Miscellaneous
  125. + .short
  126. + File management utilities.
  127. + .description
  128. + These are the GNU file management utilities.  Most of these programs
  129. + have significant advantages over their Unix counterparts, such as
  130. + greater speed, additional options, and fewer arbitrary limits.
  131. + The programs that can be built with this package are: chgrp, chown,
  132. + chmod, cp, dd, df, du, install, ln, dir, vdir, ls, mkdir, mvdir,
  133. + mkfifo, mknod, mv, rm, rmdir and touch.  But mvdir is built only on
  134. + systems that lack the rename system call.
  135. + The programs cat, cut, expand, head, paste, split, tac, tail and
  136. + unexpand, which used to be part of the fileutils, are now part of the
  137. + textutils.  Cmp is now part of the diff distribution.
  138. + .version
  139. + 3.9
  140. + .author
  141. + Free Software Foundation
  142. + .distribution
  143. + GNU Public License
  144. + .described-by
  145. + Fred Fish (fnf@amigalib.com)
  146. diff -rc --new-file fileutils-3.9/configure /gnu/src/amiga/fileutils-3.9/configure
  147. *** fileutils-3.9/configure    Wed Oct 13 21:55:55 1993
  148. --- /gnu/src/amiga/fileutils-3.9/configure    Mon Apr 25 13:56:43 1994
  149. ***************
  150. *** 1,154 ****
  151.   #!/bin/sh
  152.   # Guess values for system-dependent variables and create Makefiles.
  153. ! # Generated automatically using autoconf.
  154. ! # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  155.   
  156. ! # This program is free software; you can redistribute it and/or modify
  157. ! # it under the terms of the GNU General Public License as published by
  158. ! # the Free Software Foundation; either version 2, or (at your option)
  159.   # any later version.
  160.   
  161. ! # This program is distributed in the hope that it will be useful,
  162. ! # but WITHOUT ANY WARRANTY; without even the implied warranty of
  163. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  164. ! # GNU General Public License for more details.
  165.   
  166.   # You should have received a copy of the GNU General Public License
  167.   # along with this program; if not, write to the Free Software
  168.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  169.   
  170. ! # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp]
  171. ! #        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE[=VALUE]]
  172. ! # Ignores all args except --srcdir, --prefix, --exec-prefix, and
  173. ! # --with-PACKAGE[=VALUE] unless this script has special code to handle it.
  174.   
  175. ! for arg
  176.   do
  177. -   # Handle --exec-prefix with a space before the argument.
  178. -   if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  179. -   # Handle --host with a space before the argument.
  180. -   elif test x$next_host = xyes; then next_host=
  181. -   # Handle --prefix with a space before the argument.
  182. -   elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  183. -   # Handle --srcdir with a space before the argument.
  184. -   elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  185. -   else
  186. -     case $arg in
  187. -      # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  188. -      -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  189. -     exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  190. -      -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  191. -     next_exec_prefix=yes ;;
  192. -      -gas | --gas | --ga | --g) ;;
  193. -      -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  194. -      -host | --host | --hos | --ho | --h)
  195. -     next_host=yes ;;
  196. -      -nfp | --nfp | --nf) ;;
  197. -      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  198. -     prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  199. -      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  200. -     next_prefix=yes ;;
  201. -      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  202. -     srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  203. -      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  204. -     next_srcdir=yes ;;
  205. -      -with-* | --with-*)
  206. -        package=`echo $arg|sed -e 's/-*with-//' -e 's/=.*//'`
  207. -        # Reject names that aren't valid shell variable names.
  208. -        if test -n "`echo $package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  209. -          echo "configure: $package: invalid package name" >&2; exit 1
  210. -        fi
  211. -        package=`echo $package| sed 's/-/_/g'`
  212. -        case "$arg" in
  213. -          *=*) val="`echo $arg|sed 's/[^=]*=//'`" ;;
  214. -          *) val=1 ;;
  215. -        esac
  216. -        eval "with_$package='$val'" ;;
  217.   
  218. !      -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
  219. !        verbose=yes ;;
  220.   
  221. !      *) ;;
  222.       esac
  223. !   fi
  224.   done
  225.   
  226. ! trap 'rm -fr conftest* confdefs* core; exit 1' 1 3 15
  227. ! trap 'rm -f confdefs*' 0
  228.   
  229.   # NLS nuisances.
  230.   # These must not be set unconditionally because not all systems understand
  231.   # e.g. LANG=C (notably SCO).
  232. ! if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi
  233. ! if test "${LANG+set}"   = 'set' ; then LANG=C;   export LANG;   fi
  234.   
  235. ! rm -f conftest* confdefs.h
  236. ! > confdefs.h
  237. ! compile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  238.   
  239.   # A filename unique to this package, relative to the directory that
  240.   # configure is in, which we can look for to find out if srcdir is correct.
  241. ! unique_file=src/ls.c
  242.   
  243.   # Find the source files, if location was not specified.
  244.   if test -z "$srcdir"; then
  245. !   srcdirdefaulted=yes
  246.     # Try the directory containing this script, then `..'.
  247. !   prog=$0
  248. !   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  249. !   test "X$confdir" = "X$prog" && confdir=.
  250. !   srcdir=$confdir
  251. !   if test ! -r $srcdir/$unique_file; then
  252.       srcdir=..
  253.     fi
  254.   fi
  255. ! if test ! -r $srcdir/$unique_file; then
  256. !   if test x$srcdirdefaulted = xyes; then
  257. !     echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  258.     else
  259. !     echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  260.     fi
  261. -   exit 1
  262.   fi
  263. ! # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  264. ! # But we can't avoid them for `..', to make subdirectories work.
  265. ! case $srcdir in
  266. !   .|/*|~*) ;;
  267. !   *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  268. ! esac
  269.   
  270. - # Save the original args to write them into config.status later.
  271. - configure_args="$*"
  272.   
  273.   
  274.   
  275.   # We want these before the checks, so the checks can modify their values.
  276. ! test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
  277. ! test -z "$LDFLAGS" && LDFLAGS=-g
  278.   
  279.   if test -z "$CC"; then
  280.     # Extract the first word of `gcc', so it can be a program name with args.
  281. !   set dummy gcc; word=$2
  282. !   echo checking for $word
  283. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  284. !   for dir in $PATH; do
  285. !     test -z "$dir" && dir=.
  286. !     if test -f $dir/$word; then
  287.         CC="gcc"
  288.         break
  289.       fi
  290.     done
  291. !   IFS="$saveifs"
  292.   fi
  293.   test -z "$CC" && CC="cc"
  294. ! test -n "$CC" && test -n "$verbose" && echo "    setting CC to $CC"
  295.   
  296.   # Find out if we are using GNU C, under whatever name.
  297.   cat > conftest.c <<EOF
  298. --- 1,341 ----
  299.   #!/bin/sh
  300.   # Guess values for system-dependent variables and create Makefiles.
  301. ! # Generated automatically using autoconf version 1.9 
  302. ! # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  303.   
  304. ! # This configure script is free software; you can redistribute it and/or
  305. ! # modify it under the terms of the GNU General Public License as published
  306. ! # by the Free Software Foundation; either version 2, or (at your option)
  307.   # any later version.
  308.   
  309. ! # This script is distributed in the hope that it will be useful, but
  310. ! # WITHOUT ANY WARRANTY; without even the implied warranty of
  311. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  312. ! # Public License for more details.
  313.   
  314.   # You should have received a copy of the GNU General Public License
  315.   # along with this program; if not, write to the Free Software
  316.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  317.   
  318. ! # Save the original args to write them into config.status later.
  319. ! configure_args="$*"
  320. ! # Only options that might do something get documented.
  321. ! ac_usage="Usage: configure [options] [host]
  322. ! Options: [defaults in brackets after descriptions]
  323. ! --build=BUILD        configure for building on BUILD [BUILD=HOST]
  324. ! --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  325. ! --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  326. ! --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  327. ! --help            print this message
  328. ! --host=HOST        configure for HOST [guessed]
  329. ! --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  330. ! --quiet, --silent    do not print \`checking for...' messages
  331. ! --srcdir=DIR        find the sources in DIR [configure dir or ..]
  332. ! --target=TARGET        configure for TARGET [TARGET=HOST]
  333. ! --verbose        print results of checks
  334. ! --version        print the version of autoconf that created configure
  335. ! --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  336. ! --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  337. ! --x-includes=DIR    X include files are in DIR
  338. ! --x-libraries=DIR    X library files are in DIR"
  339. ! # Initialize some variables set by options.
  340. ! # The variables have the same names as the options, with
  341. ! # dashes changed to underlines.
  342. ! build=NONE
  343. ! exec_prefix=
  344. ! host=NONE
  345. ! no_create=
  346. ! nonopt=NONE
  347. ! norecursion=
  348. ! prefix=
  349. ! program_prefix=
  350. ! program_suffix=
  351. ! program_transform_name=
  352. ! silent=
  353. ! srcdir=
  354. ! target=NONE
  355. ! verbose=
  356. ! x_includes=
  357. ! x_libraries=
  358.   
  359. ! ac_prev=
  360. ! for ac_option
  361.   do
  362.   
  363. !   # If the previous option needs an argument, assign it.
  364. !   if test -n "$ac_prev"; then
  365. !     eval "$ac_prev=\$ac_option"
  366. !     ac_prev=
  367. !     continue
  368. !   fi
  369. !   # Accept (but ignore some of) the important Cygnus configure
  370. !   # options, so we can diagnose typos.
  371. !   case "$ac_option" in
  372. !   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  373. !   *) ac_optarg= ;;
  374. !   esac
  375. !   case "$ac_option" in
  376. !   -build | --build | --buil | --bui | --bu | --b)
  377. !     ac_prev=build ;;
  378. !   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  379. !     build="$ac_optarg" ;;
  380. !   -disable-* | --disable-*)
  381. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  382. !     # Reject names that aren't valid shell variable names.
  383. !     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  384. !       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  385. !     fi
  386. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  387. !     eval "enable_${ac_feature}=no" ;;
  388.   
  389. !   -enable-* | --enable-*)
  390. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  391. !     # Reject names that aren't valid shell variable names.
  392. !     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  393. !       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  394. !     fi
  395. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  396. !     case "$ac_option" in
  397. !       *=*) ;;
  398. !       *) ac_optarg=yes ;;
  399.       esac
  400. !     eval "enable_${ac_feature}='$ac_optarg'" ;;
  401. !   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  402. !   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  403. !   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  404. !   | --exec | --exe | --ex)
  405. !     ac_prev=exec_prefix ;;
  406. !   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  407. !   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  408. !   | --exec=* | --exe=* | --ex=*)
  409. !     exec_prefix="$ac_optarg" ;;
  410. !   -gas | --gas | --ga | --g)
  411. !     with_gas=yes ;; # Obsolete; use --with-gas.
  412. !   -help | --help | --hel | --he)
  413. !     cat << EOF
  414. ! $ac_usage
  415. ! EOF
  416. !     exit 0 ;;
  417. !   -host | --host | --hos | --ho)
  418. !     ac_prev=host ;;
  419. !   -host=* | --host=* | --hos=* | --ho=*)
  420. !     host="$ac_optarg" ;;
  421. !   -nfp | --nfp | --nf)
  422. !     with_fp=no ;; # Obsolete; use --without-fp.
  423. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  424. !   | --no-cr | --no-c)
  425. !     no_create=yes ;;
  426. !   -norecursion | --norecursion | --norecursio | --norecursi \
  427. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  428. !     norecursion=yes ;;
  429. !   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  430. !     ac_prev=prefix ;;
  431. !   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  432. !     prefix="$ac_optarg" ;;
  433. !   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  434. !   | --program-pre | --program-pr | --program-p)
  435. !     ac_prev=program_prefix ;;
  436. !   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  437. !   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  438. !     program_prefix="$ac_optarg" ;;
  439. !   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  440. !   | --program-suf | --program-su | --program-s)
  441. !     ac_prev=program_suffix ;;
  442. !   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  443. !   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  444. !     program_suffix="$ac_optarg" ;;
  445. !   -program-transform-name | --program-transform-name \
  446. !   | --program-transform-nam | --program-transform-na \
  447. !   | --program-transform-n | --program-transform- \
  448. !   | --program-transform | --program-transfor \
  449. !   | --program-transfo | --program-transf \
  450. !   | --program-trans | --program-tran \
  451. !   | --progr-tra | --program-tr | --program-t)
  452. !     ac_prev=program_transform_name ;;
  453. !   -program-transform-name=* | --program-transform-name=* \
  454. !   | --program-transform-nam=* | --program-transform-na=* \
  455. !   | --program-transform-n=* | --program-transform-=* \
  456. !   | --program-transform=* | --program-transfor=* \
  457. !   | --program-transfo=* | --program-transf=* \
  458. !   | --program-trans=* | --program-tran=* \
  459. !   | --progr-tra=* | --program-tr=* | --program-t=*)
  460. !     program_transform_name="$ac_optarg" ;;
  461. !   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  462. !   | -silent | --silent | --silen | --sile | --sil)
  463. !     silent=yes ;;
  464. !   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  465. !     ac_prev=srcdir ;;
  466. !   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  467. !     srcdir="$ac_optarg" ;;
  468. !   -target | --target | --targe | --targ | --tar | --ta | --t)
  469. !     ac_prev=target ;;
  470. !   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  471. !     target="$ac_optarg" ;;
  472. !   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  473. !     verbose=yes ;;
  474. !   -version | --version | --versio | --versi | --vers)
  475. !     /bin/echo "configure generated by autoconf version 1.9"
  476. !     exit 0 ;;
  477. !   -with-* | --with-*)
  478. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  479. !     # Reject names that aren't valid shell variable names.
  480. !     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  481. !       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  482. !     fi
  483. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  484. !     case "$ac_option" in
  485. !       *=*) ;;
  486. !       *) ac_optarg=yes ;;
  487. !     esac
  488. !     eval "with_${ac_package}='$ac_optarg'" ;;
  489. !   -without-* | --without-*)
  490. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  491. !     # Reject names that aren't valid shell variable names.
  492. !     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  493. !       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  494. !     fi
  495. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  496. !     eval "with_${ac_package}=no" ;;
  497. !   --x) with_x=yes ;; # Obsolete; use --with-x.
  498. !   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  499. !   | --x-incl | --x-inc | --x-in | --x-i)
  500. !     ac_prev=x_includes ;;
  501. !   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  502. !   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  503. !     x_includes="$ac_optarg" ;;
  504. !   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  505. !   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  506. !     ac_prev=x_libraries ;;
  507. !   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  508. !   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  509. !     x_libraries="$ac_optarg" ;;
  510. !   -*) /bin/echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  511. !     ;;
  512. !   *) 
  513. !     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  514. !       /bin/echo "configure: warning: $ac_option: invalid host type" >&2
  515. !     fi
  516. !     if test "x$nonopt" != xNONE; then
  517. !       /bin/echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  518. !     fi
  519. !     nonopt="$ac_option"
  520. !     ;;
  521. !   esac
  522.   done
  523.   
  524. ! if test -n "$ac_prev"; then
  525. !   /bin/echo "configure: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  526. ! fi
  527. ! trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  528. ! trap 'rm -fr confdefs* $ac_clean_files' 0
  529. ! # Save the original args if we used an alternate arg parser.
  530. ! ac_configure_temp="${configure_args-$*}"
  531. ! # Strip out --no-create and --norecursion so they don't pile up.
  532. ! configure_args=
  533. ! for ac_arg in $ac_configure_temp; do
  534. !   case "$ac_arg" in
  535. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  536. !   | --no-cr | --no-c) ;;
  537. !   -norecursion | --norecursion | --norecursio | --norecursi \
  538. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  539. !   *) configure_args="$configure_args $ac_arg" ;;
  540. !   esac
  541. ! done
  542.   
  543.   # NLS nuisances.
  544.   # These must not be set unconditionally because not all systems understand
  545.   # e.g. LANG=C (notably SCO).
  546. ! if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  547. ! if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  548.   
  549. ! # confdefs.h avoids OS command line length limits that DEFS can exceed.
  550. ! rm -rf conftest* confdefs.h
  551. ! # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  552. ! /bin/echo > confdefs.h
  553.   
  554.   # A filename unique to this package, relative to the directory that
  555.   # configure is in, which we can look for to find out if srcdir is correct.
  556. ! ac_unique_file=src/ls.c
  557.   
  558.   # Find the source files, if location was not specified.
  559.   if test -z "$srcdir"; then
  560. !   ac_srcdir_defaulted=yes
  561.     # Try the directory containing this script, then `..'.
  562. !   ac_prog=$0
  563. !   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  564. !   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  565. !   srcdir=$ac_confdir
  566. !   if test ! -r $srcdir/$ac_unique_file; then
  567.       srcdir=..
  568.     fi
  569.   fi
  570. ! if test ! -r $srcdir/$ac_unique_file; then
  571. !   if test x$ac_srcdir_defaulted = xyes; then
  572. !     /bin/echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  573.     else
  574. !     /bin/echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  575.     fi
  576.   fi
  577. ! ac_ext=c
  578. ! ac_cpp='${CPP} $CFLAGS'
  579. ! ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  580.   
  581.   
  582.   
  583.   
  584.   # We want these before the checks, so the checks can modify their values.
  585. ! test -z "$CFLAGS" && CFLAGS= auto_cflags=1
  586. ! test -z "$LDFLAGS" && LDFLAGS=
  587.   
  588.   if test -z "$CC"; then
  589.     # Extract the first word of `gcc', so it can be a program name with args.
  590. !   set ac_dummy gcc; ac_word=$2
  591. !   test -n "$silent" || /bin/echo "checking for $ac_word"
  592. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  593. !   for ac_dir in $PATH; do
  594. !     test -z "$ac_dir" && ac_dir=.
  595. !     if test -f $ac_dir/$ac_word; then
  596.         CC="gcc"
  597.         break
  598.       fi
  599.     done
  600. !   IFS="$ac_save_ifs"
  601.   fi
  602.   test -z "$CC" && CC="cc"
  603. ! test -n "$CC" && test -n "$verbose" && /bin/echo "    setting CC to $CC"
  604.   
  605.   # Find out if we are using GNU C, under whatever name.
  606.   cat > conftest.c <<EOF
  607. ***************
  608. *** 164,185 ****
  609.   
  610.   
  611.   # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
  612. ! test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
  613.   
  614.   
  615. ! echo checking how to run the C preprocessor
  616.   if test -z "$CPP"; then
  617.     # This must be in double quotes, not single quotes, because CPP may get
  618.     # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  619.     # make.  It must be expanded now.
  620.     CPP="${CC-cc} -E"
  621. !   cat > conftest.c <<EOF
  622.   #include "confdefs.h"
  623.   #include <stdio.h>
  624.   Syntax Error
  625.   EOF
  626. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  627. ! if test -z "$err"; then
  628.     :
  629.   else
  630.     rm -rf conftest*
  631. --- 351,387 ----
  632.   
  633.   
  634.   # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
  635. ! test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
  636.   
  637.   
  638. ! test -n "$silent" || /bin/echo "checking how to run the C preprocessor"
  639.   if test -z "$CPP"; then
  640.     # This must be in double quotes, not single quotes, because CPP may get
  641.     # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  642.     # make.  It must be expanded now.
  643.     CPP="${CC-cc} -E"
  644. !   cat > conftest.${ac_ext} <<EOF
  645. ! #include "confdefs.h"
  646. ! #include <stdio.h>
  647. ! Syntax Error
  648. ! EOF
  649. ! # Some shells (Coherent) do redirections in the wrong order, so need
  650. ! # the parens.
  651. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  652. ! if test -z "$ac_err"; then
  653. !   :
  654. ! else
  655. !   rm -rf conftest*
  656. !   CPP="${CC-cc} -E -traditional-cpp"
  657. !   cat > conftest.${ac_ext} <<EOF
  658.   #include "confdefs.h"
  659.   #include <stdio.h>
  660.   Syntax Error
  661.   EOF
  662. ! # Some shells (Coherent) do redirections in the wrong order, so need
  663. ! # the parens.
  664. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  665. ! if test -z "$ac_err"; then
  666.     :
  667.   else
  668.     rm -rf conftest*
  669. ***************
  670. *** 187,291 ****
  671.   fi
  672.   rm -f conftest*
  673.   fi
  674. ! test ".${verbose}" != "." && echo "    setting CPP to $CPP"
  675.   
  676.   if test -n "$GCC"; then
  677. !   echo checking whether -traditional is needed
  678. !   pattern="Autoconf.*'x'"
  679. !   prog='#include <sgtty.h>
  680.   Autoconf TIOCGETP'
  681. !   cat > conftest.c <<EOF
  682.   #include "confdefs.h"
  683. ! $prog
  684.   EOF
  685. ! eval "$CPP conftest.c > conftest.out 2>&1"
  686. ! if egrep "$pattern" conftest.out >/dev/null 2>&1; then
  687.     rm -rf conftest*
  688. !   need_trad=1
  689.   
  690.   fi
  691.   rm -f conftest*
  692.   
  693.   
  694. !   if test -z "$need_trad"; then
  695. !     prog='#include <termio.h>
  696.   Autoconf TCGETA'
  697. !     cat > conftest.c <<EOF
  698.   #include "confdefs.h"
  699. ! $prog
  700.   EOF
  701. ! eval "$CPP conftest.c > conftest.out 2>&1"
  702. ! if egrep "$pattern" conftest.out >/dev/null 2>&1; then
  703.     rm -rf conftest*
  704. !   need_trad=1
  705.   
  706.   fi
  707.   rm -f conftest*
  708.   
  709.     fi
  710. !   test -n "$need_trad" && CC="$CC -traditional"
  711.   fi
  712.   
  713.   if test -z "$RANLIB"; then
  714.     # Extract the first word of `ranlib', so it can be a program name with args.
  715. !   set dummy ranlib; word=$2
  716. !   echo checking for $word
  717. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  718. !   for dir in $PATH; do
  719. !     test -z "$dir" && dir=.
  720. !     if test -f $dir/$word; then
  721.         RANLIB="ranlib"
  722.         break
  723.       fi
  724.     done
  725. !   IFS="$saveifs"
  726.   fi
  727.   test -z "$RANLIB" && RANLIB=":"
  728. ! test -n "$RANLIB" && test -n "$verbose" && echo "    setting RANLIB to $RANLIB"
  729.   
  730. ! for p in 'bison -y' byacc
  731.   do
  732.   if test -z "$YACC"; then
  733. !   # Extract the first word of `$p', so it can be a program name with args.
  734. !   set dummy $p; word=$2
  735. !   echo checking for $word
  736. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  737. !   for dir in $PATH; do
  738. !     test -z "$dir" && dir=.
  739. !     if test -f $dir/$word; then
  740. !       YACC="$p"
  741.         break
  742.       fi
  743.     done
  744. !   IFS="$saveifs"
  745.   fi
  746.   
  747. ! test -n "$YACC" && test -n "$verbose" && echo "    setting YACC to $YACC"
  748.   
  749.   test -n "$YACC" && break
  750.   done
  751.   test -n "$YACC" || YACC="yacc"
  752.   
  753. ! echo checking for AIX
  754. ! cat > conftest.c <<EOF
  755.   #include "confdefs.h"
  756.   #ifdef _AIX
  757.     yes
  758.   #endif
  759.   
  760.   EOF
  761. ! eval "$CPP conftest.c > conftest.out 2>&1"
  762.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  763.     rm -rf conftest*
  764.     
  765.   {
  766.   test -n "$verbose" && \
  767. ! echo "    defining _ALL_SOURCE"
  768. ! echo "#define" _ALL_SOURCE 1 >> confdefs.h
  769.   DEFS="$DEFS -D_ALL_SOURCE=1"
  770. ! SEDDEFS="${SEDDEFS}\${SEDdA}_ALL_SOURCE\${SEDdB}_ALL_SOURCE\${SEDdC}1\${SEDdD}
  771. ! \${SEDuA}_ALL_SOURCE\${SEDuB}_ALL_SOURCE\${SEDuC}1\${SEDuD}
  772. ! \${SEDeA}_ALL_SOURCE\${SEDeB}_ALL_SOURCE\${SEDeC}1\${SEDeD}
  773.   "
  774.   }
  775.   
  776. --- 389,495 ----
  777.   fi
  778.   rm -f conftest*
  779.   fi
  780. ! rm -f conftest*
  781. ! fi
  782. ! test -n "$verbose" && /bin/echo "    setting CPP to $CPP"
  783.   
  784.   if test -n "$GCC"; then
  785. !   test -n "$silent" || /bin/echo "checking whether -traditional is needed"
  786. !   ac_pattern="Autoconf.*'x'"
  787. !   ac_prog='#include <sgtty.h>
  788.   Autoconf TIOCGETP'
  789. !   cat > conftest.${ac_ext} <<EOF
  790.   #include "confdefs.h"
  791. ! $ac_prog
  792.   EOF
  793. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  794. ! if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  795.     rm -rf conftest*
  796. !   ac_need_trad=1
  797.   
  798.   fi
  799.   rm -f conftest*
  800.   
  801.   
  802. !   if test -z "$ac_need_trad"; then
  803. !     ac_prog='#include <termio.h>
  804.   Autoconf TCGETA'
  805. !     cat > conftest.${ac_ext} <<EOF
  806.   #include "confdefs.h"
  807. ! $ac_prog
  808.   EOF
  809. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  810. ! if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  811.     rm -rf conftest*
  812. !   ac_need_trad=1
  813.   
  814.   fi
  815.   rm -f conftest*
  816.   
  817.     fi
  818. !   test -n "$ac_need_trad" && CC="$CC -traditional"
  819.   fi
  820.   
  821.   if test -z "$RANLIB"; then
  822.     # Extract the first word of `ranlib', so it can be a program name with args.
  823. !   set ac_dummy ranlib; ac_word=$2
  824. !   test -n "$silent" || /bin/echo "checking for $ac_word"
  825. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  826. !   for ac_dir in $PATH; do
  827. !     test -z "$ac_dir" && ac_dir=.
  828. !     if test -f $ac_dir/$ac_word; then
  829.         RANLIB="ranlib"
  830.         break
  831.       fi
  832.     done
  833. !   IFS="$ac_save_ifs"
  834.   fi
  835.   test -z "$RANLIB" && RANLIB=":"
  836. ! test -n "$RANLIB" && test -n "$verbose" && /bin/echo "    setting RANLIB to $RANLIB"
  837.   
  838. ! for ac_prog in 'bison -y' byacc
  839.   do
  840.   if test -z "$YACC"; then
  841. !   # Extract the first word of `$ac_prog', so it can be a program name with args.
  842. !   set ac_dummy $ac_prog; ac_word=$2
  843. !   test -n "$silent" || /bin/echo "checking for $ac_word"
  844. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  845. !   for ac_dir in $PATH; do
  846. !     test -z "$ac_dir" && ac_dir=.
  847. !     if test -f $ac_dir/$ac_word; then
  848. !       YACC="$ac_prog"
  849.         break
  850.       fi
  851.     done
  852. !   IFS="$ac_save_ifs"
  853.   fi
  854.   
  855. ! test -n "$YACC" && test -n "$verbose" && /bin/echo "    setting YACC to $YACC"
  856.   
  857.   test -n "$YACC" && break
  858.   done
  859.   test -n "$YACC" || YACC="yacc"
  860.   
  861. ! test -n "$silent" || /bin/echo "checking for AIX"
  862. ! cat > conftest.${ac_ext} <<EOF
  863.   #include "confdefs.h"
  864.   #ifdef _AIX
  865.     yes
  866.   #endif
  867.   
  868.   EOF
  869. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  870.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  871.     rm -rf conftest*
  872.     
  873.   {
  874.   test -n "$verbose" && \
  875. ! /bin/echo "    defining _ALL_SOURCE"
  876. ! /bin/echo "#define" _ALL_SOURCE "1" >> confdefs.h
  877.   DEFS="$DEFS -D_ALL_SOURCE=1"
  878. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_ALL_SOURCE\${ac_dB}_ALL_SOURCE\${ac_dC}1\${ac_dD}
  879. ! \${ac_uA}_ALL_SOURCE\${ac_uB}_ALL_SOURCE\${ac_uC}1\${ac_uD}
  880. ! \${ac_eA}_ALL_SOURCE\${ac_eB}_ALL_SOURCE\${ac_eC}1\${ac_eD}
  881.   "
  882.   }
  883.   
  884. ***************
  885. *** 294,306 ****
  886.   rm -f conftest*
  887.   
  888.   
  889. ! echo checking for minix/config.h
  890. ! cat > conftest.c <<EOF
  891.   #include "confdefs.h"
  892.   #include <minix/config.h>
  893.   EOF
  894. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  895. ! if test -z "$err"; then
  896.     rm -rf conftest*
  897.     MINIX=1
  898.   
  899. --- 498,512 ----
  900.   rm -f conftest*
  901.   
  902.   
  903. ! test -n "$silent" || /bin/echo "checking for minix/config.h"
  904. ! cat > conftest.${ac_ext} <<EOF
  905.   #include "confdefs.h"
  906.   #include <minix/config.h>
  907.   EOF
  908. ! # Some shells (Coherent) do redirections in the wrong order, so need
  909. ! # the parens.
  910. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  911. ! if test -z "$ac_err"; then
  912.     rm -rf conftest*
  913.     MINIX=1
  914.   
  915. ***************
  916. *** 312,366 ****
  917.     
  918.   {
  919.   test -n "$verbose" && \
  920. ! echo "    defining _POSIX_SOURCE"
  921. ! echo "#define" _POSIX_SOURCE 1 >> confdefs.h
  922.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  923. ! SEDDEFS="${SEDDEFS}\${SEDdA}_POSIX_SOURCE\${SEDdB}_POSIX_SOURCE\${SEDdC}1\${SEDdD}
  924. ! \${SEDuA}_POSIX_SOURCE\${SEDuB}_POSIX_SOURCE\${SEDuC}1\${SEDuD}
  925. ! \${SEDeA}_POSIX_SOURCE\${SEDeB}_POSIX_SOURCE\${SEDeC}1\${SEDeD}
  926.   "
  927.   }
  928.   
  929.     
  930.   {
  931.   test -n "$verbose" && \
  932. ! echo "    defining" _POSIX_1_SOURCE to be 2
  933. ! echo "#define" _POSIX_1_SOURCE 2 >> confdefs.h
  934.   DEFS="$DEFS -D_POSIX_1_SOURCE=2"
  935. ! SEDDEFS="${SEDDEFS}\${SEDdA}_POSIX_1_SOURCE\${SEDdB}_POSIX_1_SOURCE\${SEDdC}2\${SEDdD}
  936. ! \${SEDuA}_POSIX_1_SOURCE\${SEDuB}_POSIX_1_SOURCE\${SEDuC}2\${SEDuD}
  937. ! \${SEDeA}_POSIX_1_SOURCE\${SEDeB}_POSIX_1_SOURCE\${SEDeC}2\${SEDeD}
  938.   "
  939.   }
  940.   
  941.     
  942.   {
  943.   test -n "$verbose" && \
  944. ! echo "    defining _MINIX"
  945. ! echo "#define" _MINIX 1 >> confdefs.h
  946.   DEFS="$DEFS -D_MINIX=1"
  947. ! SEDDEFS="${SEDDEFS}\${SEDdA}_MINIX\${SEDdB}_MINIX\${SEDdC}1\${SEDdD}
  948. ! \${SEDuA}_MINIX\${SEDuB}_MINIX\${SEDuC}1\${SEDuD}
  949. ! \${SEDeA}_MINIX\${SEDeB}_MINIX\${SEDeC}1\${SEDeD}
  950.   "
  951.   }
  952.   
  953.   fi
  954.   
  955. ! echo checking for POSIXized ISC
  956. ! if test -d /etc/conf/kconfig.d &&
  957. !   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  958.   then
  959.     ISC=1 # If later tests want to check for ISC.
  960.     
  961.   {
  962.   test -n "$verbose" && \
  963. ! echo "    defining _POSIX_SOURCE"
  964. ! echo "#define" _POSIX_SOURCE 1 >> confdefs.h
  965.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  966. ! SEDDEFS="${SEDDEFS}\${SEDdA}_POSIX_SOURCE\${SEDdB}_POSIX_SOURCE\${SEDdC}1\${SEDdD}
  967. ! \${SEDuA}_POSIX_SOURCE\${SEDuB}_POSIX_SOURCE\${SEDuC}1\${SEDuD}
  968. ! \${SEDeA}_POSIX_SOURCE\${SEDeB}_POSIX_SOURCE\${SEDeC}1\${SEDeD}
  969.   "
  970.   }
  971.   
  972. --- 518,572 ----
  973.     
  974.   {
  975.   test -n "$verbose" && \
  976. ! /bin/echo "    defining _POSIX_SOURCE"
  977. ! /bin/echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  978.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  979. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_SOURCE\${ac_dB}_POSIX_SOURCE\${ac_dC}1\${ac_dD}
  980. ! \${ac_uA}_POSIX_SOURCE\${ac_uB}_POSIX_SOURCE\${ac_uC}1\${ac_uD}
  981. ! \${ac_eA}_POSIX_SOURCE\${ac_eB}_POSIX_SOURCE\${ac_eC}1\${ac_eD}
  982.   "
  983.   }
  984.   
  985.     
  986.   {
  987.   test -n "$verbose" && \
  988. ! /bin/echo "    defining" _POSIX_1_SOURCE to be "2"
  989. ! /bin/echo "#define" _POSIX_1_SOURCE "2" >> confdefs.h
  990.   DEFS="$DEFS -D_POSIX_1_SOURCE=2"
  991. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_1_SOURCE\${ac_dB}_POSIX_1_SOURCE\${ac_dC}2\${ac_dD}
  992. ! \${ac_uA}_POSIX_1_SOURCE\${ac_uB}_POSIX_1_SOURCE\${ac_uC}2\${ac_uD}
  993. ! \${ac_eA}_POSIX_1_SOURCE\${ac_eB}_POSIX_1_SOURCE\${ac_eC}2\${ac_eD}
  994.   "
  995.   }
  996.   
  997.     
  998.   {
  999.   test -n "$verbose" && \
  1000. ! /bin/echo "    defining _MINIX"
  1001. ! /bin/echo "#define" _MINIX "1" >> confdefs.h
  1002.   DEFS="$DEFS -D_MINIX=1"
  1003. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_MINIX\${ac_dB}_MINIX\${ac_dC}1\${ac_dD}
  1004. ! \${ac_uA}_MINIX\${ac_uB}_MINIX\${ac_uC}1\${ac_uD}
  1005. ! \${ac_eA}_MINIX\${ac_eB}_MINIX\${ac_eC}1\${ac_eD}
  1006.   "
  1007.   }
  1008.   
  1009.   fi
  1010.   
  1011. ! test -n "$silent" || /bin/echo "checking for POSIXized ISC"
  1012. ! if test -d /gnu/etc/conf/kconfig.d &&
  1013. !   grep _POSIX_VERSION /gnu/include/sys/unistd.h >/dev/null 2>&1
  1014.   then
  1015.     ISC=1 # If later tests want to check for ISC.
  1016.     
  1017.   {
  1018.   test -n "$verbose" && \
  1019. ! /bin/echo "    defining _POSIX_SOURCE"
  1020. ! /bin/echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  1021.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  1022. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_SOURCE\${ac_dB}_POSIX_SOURCE\${ac_dC}1\${ac_dD}
  1023. ! \${ac_uA}_POSIX_SOURCE\${ac_uB}_POSIX_SOURCE\${ac_uC}1\${ac_uD}
  1024. ! \${ac_eA}_POSIX_SOURCE\${ac_eB}_POSIX_SOURCE\${ac_eC}1\${ac_eD}
  1025.   "
  1026.   }
  1027.   
  1028. ***************
  1029. *** 371,434 ****
  1030.     fi
  1031.   fi
  1032.   
  1033. ! echo checking for major, minor and makedev header
  1034. ! cat > conftest.c <<EOF
  1035.   #include "confdefs.h"
  1036.   #include <sys/types.h>
  1037. ! int main() { exit(0); }
  1038. ! int t() { return makedev(0, 0); }
  1039.   EOF
  1040. ! if eval $compile; then
  1041.     rm -rf conftest*
  1042. !   makedev=1
  1043.   
  1044.   fi
  1045.   rm -f conftest*
  1046.   
  1047. ! if test -z "$makedev"; then
  1048. ! echo checking for sys/mkdev.h
  1049. ! cat > conftest.c <<EOF
  1050.   #include "confdefs.h"
  1051.   #include <sys/mkdev.h>
  1052.   EOF
  1053. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1054. ! if test -z "$err"; then
  1055.     rm -rf conftest*
  1056.     
  1057.   {
  1058.   test -n "$verbose" && \
  1059. ! echo "    defining MAJOR_IN_MKDEV"
  1060. ! echo "#define" MAJOR_IN_MKDEV 1 >> confdefs.h
  1061.   DEFS="$DEFS -DMAJOR_IN_MKDEV=1"
  1062. ! SEDDEFS="${SEDDEFS}\${SEDdA}MAJOR_IN_MKDEV\${SEDdB}MAJOR_IN_MKDEV\${SEDdC}1\${SEDdD}
  1063. ! \${SEDuA}MAJOR_IN_MKDEV\${SEDuB}MAJOR_IN_MKDEV\${SEDuC}1\${SEDuD}
  1064. ! \${SEDeA}MAJOR_IN_MKDEV\${SEDeB}MAJOR_IN_MKDEV\${SEDeC}1\${SEDeD}
  1065.   "
  1066.   }
  1067. !  makedev=1
  1068.   
  1069.   fi
  1070.   rm -f conftest*
  1071.   
  1072.   fi
  1073. ! if test -z "$makedev"; then
  1074. ! echo checking for sys/sysmacros.h
  1075. ! cat > conftest.c <<EOF
  1076.   #include "confdefs.h"
  1077.   #include <sys/sysmacros.h>
  1078.   EOF
  1079. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1080. ! if test -z "$err"; then
  1081.     rm -rf conftest*
  1082.     
  1083.   {
  1084.   test -n "$verbose" && \
  1085. ! echo "    defining MAJOR_IN_SYSMACROS"
  1086. ! echo "#define" MAJOR_IN_SYSMACROS 1 >> confdefs.h
  1087.   DEFS="$DEFS -DMAJOR_IN_SYSMACROS=1"
  1088. ! SEDDEFS="${SEDDEFS}\${SEDdA}MAJOR_IN_SYSMACROS\${SEDdB}MAJOR_IN_SYSMACROS\${SEDdC}1\${SEDdD}
  1089. ! \${SEDuA}MAJOR_IN_SYSMACROS\${SEDuB}MAJOR_IN_SYSMACROS\${SEDuC}1\${SEDuD}
  1090. ! \${SEDeA}MAJOR_IN_SYSMACROS\${SEDeB}MAJOR_IN_SYSMACROS\${SEDeC}1\${SEDeD}
  1091.   "
  1092.   }
  1093.   
  1094. --- 577,644 ----
  1095.     fi
  1096.   fi
  1097.   
  1098. ! test -n "$silent" || /bin/echo "checking for major, minor and makedev header"
  1099. ! cat > conftest.${ac_ext} <<EOF
  1100.   #include "confdefs.h"
  1101.   #include <sys/types.h>
  1102. ! int main() { return 0; }
  1103. ! int t() { return makedev(0, 0);; return 0; }
  1104.   EOF
  1105. ! if eval $ac_compile; then
  1106.     rm -rf conftest*
  1107. !   ac_makedev=1
  1108.   
  1109.   fi
  1110.   rm -f conftest*
  1111.   
  1112. ! if test -z "$ac_makedev"; then
  1113. ! test -n "$silent" || /bin/echo "checking for sys/mkdev.h"
  1114. ! cat > conftest.${ac_ext} <<EOF
  1115.   #include "confdefs.h"
  1116.   #include <sys/mkdev.h>
  1117.   EOF
  1118. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1119. ! # the parens.
  1120. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1121. ! if test -z "$ac_err"; then
  1122.     rm -rf conftest*
  1123.     
  1124.   {
  1125.   test -n "$verbose" && \
  1126. ! /bin/echo "    defining MAJOR_IN_MKDEV"
  1127. ! /bin/echo "#define" MAJOR_IN_MKDEV "1" >> confdefs.h
  1128.   DEFS="$DEFS -DMAJOR_IN_MKDEV=1"
  1129. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}MAJOR_IN_MKDEV\${ac_dB}MAJOR_IN_MKDEV\${ac_dC}1\${ac_dD}
  1130. ! \${ac_uA}MAJOR_IN_MKDEV\${ac_uB}MAJOR_IN_MKDEV\${ac_uC}1\${ac_uD}
  1131. ! \${ac_eA}MAJOR_IN_MKDEV\${ac_eB}MAJOR_IN_MKDEV\${ac_eC}1\${ac_eD}
  1132.   "
  1133.   }
  1134. !  ac_makedev=1
  1135.   
  1136.   fi
  1137.   rm -f conftest*
  1138.   
  1139.   fi
  1140. ! if test -z "$ac_makedev"; then
  1141. ! test -n "$silent" || /bin/echo "checking for sys/sysmacros.h"
  1142. ! cat > conftest.${ac_ext} <<EOF
  1143.   #include "confdefs.h"
  1144.   #include <sys/sysmacros.h>
  1145.   EOF
  1146. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1147. ! # the parens.
  1148. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1149. ! if test -z "$ac_err"; then
  1150.     rm -rf conftest*
  1151.     
  1152.   {
  1153.   test -n "$verbose" && \
  1154. ! /bin/echo "    defining MAJOR_IN_SYSMACROS"
  1155. ! /bin/echo "#define" MAJOR_IN_SYSMACROS "1" >> confdefs.h
  1156.   DEFS="$DEFS -DMAJOR_IN_SYSMACROS=1"
  1157. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}MAJOR_IN_SYSMACROS\${ac_dB}MAJOR_IN_SYSMACROS\${ac_dC}1\${ac_dD}
  1158. ! \${ac_uA}MAJOR_IN_SYSMACROS\${ac_uB}MAJOR_IN_SYSMACROS\${ac_uC}1\${ac_uD}
  1159. ! \${ac_eA}MAJOR_IN_SYSMACROS\${ac_eB}MAJOR_IN_SYSMACROS\${ac_eC}1\${ac_eD}
  1160.   "
  1161.   }
  1162.   
  1163. ***************
  1164. *** 438,583 ****
  1165.   
  1166.   fi
  1167.   
  1168. ! echo checking for directory library header
  1169. ! dirheader=
  1170. ! if test -z "$dirheader"; then
  1171. !   echo checking for dirent.h
  1172. ! cat > conftest.c <<EOF
  1173.   #include "confdefs.h"
  1174.   #include <sys/types.h>
  1175.   #include <dirent.h>
  1176. ! int main() { exit(0); }
  1177. ! int t() { DIR *dirp = 0; }
  1178.   EOF
  1179. ! if eval $compile; then
  1180.     rm -rf conftest*
  1181.     
  1182.   {
  1183.   test -n "$verbose" && \
  1184. ! echo "    defining DIRENT"
  1185. ! echo "#define" DIRENT 1 >> confdefs.h
  1186.   DEFS="$DEFS -DDIRENT=1"
  1187. ! SEDDEFS="${SEDDEFS}\${SEDdA}DIRENT\${SEDdB}DIRENT\${SEDdC}1\${SEDdD}
  1188. ! \${SEDuA}DIRENT\${SEDuB}DIRENT\${SEDuC}1\${SEDuD}
  1189. ! \${SEDeA}DIRENT\${SEDeB}DIRENT\${SEDeC}1\${SEDeD}
  1190.   "
  1191.   }
  1192. !  dirheader=dirent.h
  1193.   
  1194.   fi
  1195.   rm -f conftest*
  1196.   fi
  1197. ! if test -z "$dirheader"; then
  1198. !   echo checking for sys/ndir.h
  1199. ! cat > conftest.c <<EOF
  1200.   #include "confdefs.h"
  1201.   #include <sys/types.h>
  1202.   #include <sys/ndir.h>
  1203. ! int main() { exit(0); }
  1204. ! int t() { DIR *dirp = 0; }
  1205.   EOF
  1206. ! if eval $compile; then
  1207.     rm -rf conftest*
  1208.     
  1209.   {
  1210.   test -n "$verbose" && \
  1211. ! echo "    defining SYSNDIR"
  1212. ! echo "#define" SYSNDIR 1 >> confdefs.h
  1213.   DEFS="$DEFS -DSYSNDIR=1"
  1214. ! SEDDEFS="${SEDDEFS}\${SEDdA}SYSNDIR\${SEDdB}SYSNDIR\${SEDdC}1\${SEDdD}
  1215. ! \${SEDuA}SYSNDIR\${SEDuB}SYSNDIR\${SEDuC}1\${SEDuD}
  1216. ! \${SEDeA}SYSNDIR\${SEDeB}SYSNDIR\${SEDeC}1\${SEDeD}
  1217.   "
  1218.   }
  1219. !  dirheader=sys/ndir.h
  1220.   
  1221.   fi
  1222.   rm -f conftest*
  1223.   fi
  1224. ! if test -z "$dirheader"; then
  1225. !   echo checking for sys/dir.h
  1226. ! cat > conftest.c <<EOF
  1227.   #include "confdefs.h"
  1228.   #include <sys/types.h>
  1229.   #include <sys/dir.h>
  1230. ! int main() { exit(0); }
  1231. ! int t() { DIR *dirp = 0; }
  1232.   EOF
  1233. ! if eval $compile; then
  1234.     rm -rf conftest*
  1235.     
  1236.   {
  1237.   test -n "$verbose" && \
  1238. ! echo "    defining SYSDIR"
  1239. ! echo "#define" SYSDIR 1 >> confdefs.h
  1240.   DEFS="$DEFS -DSYSDIR=1"
  1241. ! SEDDEFS="${SEDDEFS}\${SEDdA}SYSDIR\${SEDdB}SYSDIR\${SEDdC}1\${SEDdD}
  1242. ! \${SEDuA}SYSDIR\${SEDuB}SYSDIR\${SEDuC}1\${SEDuD}
  1243. ! \${SEDeA}SYSDIR\${SEDeB}SYSDIR\${SEDeC}1\${SEDeD}
  1244.   "
  1245.   }
  1246. !  dirheader=sys/dir.h
  1247.   
  1248.   fi
  1249.   rm -f conftest*
  1250.   fi
  1251. ! if test -z "$dirheader"; then
  1252. !   echo checking for ndir.h
  1253. ! cat > conftest.c <<EOF
  1254.   #include "confdefs.h"
  1255.   #include <sys/types.h>
  1256.   #include <ndir.h>
  1257. ! int main() { exit(0); }
  1258. ! int t() { DIR *dirp = 0; }
  1259.   EOF
  1260. ! if eval $compile; then
  1261.     rm -rf conftest*
  1262.     
  1263.   {
  1264.   test -n "$verbose" && \
  1265. ! echo "    defining NDIR"
  1266. ! echo "#define" NDIR 1 >> confdefs.h
  1267.   DEFS="$DEFS -DNDIR=1"
  1268. ! SEDDEFS="${SEDDEFS}\${SEDdA}NDIR\${SEDdB}NDIR\${SEDdC}1\${SEDdD}
  1269. ! \${SEDuA}NDIR\${SEDuB}NDIR\${SEDuC}1\${SEDuD}
  1270. ! \${SEDeA}NDIR\${SEDeB}NDIR\${SEDeC}1\${SEDeD}
  1271.   "
  1272.   }
  1273. !  dirheader=ndir.h
  1274.   
  1275.   fi
  1276.   rm -f conftest*
  1277.   fi
  1278.   
  1279. ! echo checking for closedir return value
  1280. ! cat > conftest.c <<EOF
  1281.   #include "confdefs.h"
  1282.   #include <sys/types.h>
  1283. ! #include <$dirheader>
  1284.   int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1285.   EOF
  1286. ! eval $compile
  1287.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1288.     :
  1289.   else
  1290. -   rm -rf conftest*
  1291.     
  1292.   {
  1293.   test -n "$verbose" && \
  1294. ! echo "    defining VOID_CLOSEDIR"
  1295. ! echo "#define" VOID_CLOSEDIR 1 >> confdefs.h
  1296.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  1297. ! SEDDEFS="${SEDDEFS}\${SEDdA}VOID_CLOSEDIR\${SEDdB}VOID_CLOSEDIR\${SEDdC}1\${SEDdD}
  1298. ! \${SEDuA}VOID_CLOSEDIR\${SEDuB}VOID_CLOSEDIR\${SEDuC}1\${SEDuD}
  1299. ! \${SEDeA}VOID_CLOSEDIR\${SEDeB}VOID_CLOSEDIR\${SEDeC}1\${SEDeD}
  1300.   "
  1301.   }
  1302.   
  1303.   fi
  1304. ! rm -f conftest*
  1305.   
  1306. ! echo checking for return type of signal handlers
  1307. ! cat > conftest.c <<EOF
  1308.   #include "confdefs.h"
  1309.   #include <sys/types.h>
  1310.   #include <signal.h>
  1311. --- 648,792 ----
  1312.   
  1313.   fi
  1314.   
  1315. ! test -n "$silent" || /bin/echo "checking for directory library header"
  1316. ! ac_dir_header=
  1317. ! if test -z "$ac_dir_header"; then
  1318. !   test -n "$silent" || /bin/echo "checking for dirent.h"
  1319. ! cat > conftest.${ac_ext} <<EOF
  1320.   #include "confdefs.h"
  1321.   #include <sys/types.h>
  1322.   #include <dirent.h>
  1323. ! int main() { return 0; }
  1324. ! int t() { DIR *dirp = 0;; return 0; }
  1325.   EOF
  1326. ! if eval $ac_compile; then
  1327.     rm -rf conftest*
  1328.     
  1329.   {
  1330.   test -n "$verbose" && \
  1331. ! /bin/echo "    defining DIRENT"
  1332. ! /bin/echo "#define" DIRENT "1" >> confdefs.h
  1333.   DEFS="$DEFS -DDIRENT=1"
  1334. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}DIRENT\${ac_dB}DIRENT\${ac_dC}1\${ac_dD}
  1335. ! \${ac_uA}DIRENT\${ac_uB}DIRENT\${ac_uC}1\${ac_uD}
  1336. ! \${ac_eA}DIRENT\${ac_eB}DIRENT\${ac_eC}1\${ac_eD}
  1337.   "
  1338.   }
  1339. !  ac_dir_header=dirent.h
  1340.   
  1341.   fi
  1342.   rm -f conftest*
  1343.   fi
  1344. ! if test -z "$ac_dir_header"; then
  1345. !   test -n "$silent" || /bin/echo "checking for sys/ndir.h"
  1346. ! cat > conftest.${ac_ext} <<EOF
  1347.   #include "confdefs.h"
  1348.   #include <sys/types.h>
  1349.   #include <sys/ndir.h>
  1350. ! int main() { return 0; }
  1351. ! int t() { DIR *dirp = 0;; return 0; }
  1352.   EOF
  1353. ! if eval $ac_compile; then
  1354.     rm -rf conftest*
  1355.     
  1356.   {
  1357.   test -n "$verbose" && \
  1358. ! /bin/echo "    defining SYSNDIR"
  1359. ! /bin/echo "#define" SYSNDIR "1" >> confdefs.h
  1360.   DEFS="$DEFS -DSYSNDIR=1"
  1361. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSNDIR\${ac_dB}SYSNDIR\${ac_dC}1\${ac_dD}
  1362. ! \${ac_uA}SYSNDIR\${ac_uB}SYSNDIR\${ac_uC}1\${ac_uD}
  1363. ! \${ac_eA}SYSNDIR\${ac_eB}SYSNDIR\${ac_eC}1\${ac_eD}
  1364.   "
  1365.   }
  1366. !  ac_dir_header=sys/ndir.h
  1367.   
  1368.   fi
  1369.   rm -f conftest*
  1370.   fi
  1371. ! if test -z "$ac_dir_header"; then
  1372. !   test -n "$silent" || /bin/echo "checking for sys/dir.h"
  1373. ! cat > conftest.${ac_ext} <<EOF
  1374.   #include "confdefs.h"
  1375.   #include <sys/types.h>
  1376.   #include <sys/dir.h>
  1377. ! int main() { return 0; }
  1378. ! int t() { DIR *dirp = 0;; return 0; }
  1379.   EOF
  1380. ! if eval $ac_compile; then
  1381.     rm -rf conftest*
  1382.     
  1383.   {
  1384.   test -n "$verbose" && \
  1385. ! /bin/echo "    defining SYSDIR"
  1386. ! /bin/echo "#define" SYSDIR "1" >> confdefs.h
  1387.   DEFS="$DEFS -DSYSDIR=1"
  1388. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSDIR\${ac_dB}SYSDIR\${ac_dC}1\${ac_dD}
  1389. ! \${ac_uA}SYSDIR\${ac_uB}SYSDIR\${ac_uC}1\${ac_uD}
  1390. ! \${ac_eA}SYSDIR\${ac_eB}SYSDIR\${ac_eC}1\${ac_eD}
  1391.   "
  1392.   }
  1393. !  ac_dir_header=sys/dir.h
  1394.   
  1395.   fi
  1396.   rm -f conftest*
  1397.   fi
  1398. ! if test -z "$ac_dir_header"; then
  1399. !   test -n "$silent" || /bin/echo "checking for ndir.h"
  1400. ! cat > conftest.${ac_ext} <<EOF
  1401.   #include "confdefs.h"
  1402.   #include <sys/types.h>
  1403.   #include <ndir.h>
  1404. ! int main() { return 0; }
  1405. ! int t() { DIR *dirp = 0;; return 0; }
  1406.   EOF
  1407. ! if eval $ac_compile; then
  1408.     rm -rf conftest*
  1409.     
  1410.   {
  1411.   test -n "$verbose" && \
  1412. ! /bin/echo "    defining NDIR"
  1413. ! /bin/echo "#define" NDIR "1" >> confdefs.h
  1414.   DEFS="$DEFS -DNDIR=1"
  1415. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}NDIR\${ac_dB}NDIR\${ac_dC}1\${ac_dD}
  1416. ! \${ac_uA}NDIR\${ac_uB}NDIR\${ac_uC}1\${ac_uD}
  1417. ! \${ac_eA}NDIR\${ac_eB}NDIR\${ac_eC}1\${ac_eD}
  1418.   "
  1419.   }
  1420. !  ac_dir_header=ndir.h
  1421.   
  1422.   fi
  1423.   rm -f conftest*
  1424.   fi
  1425.   
  1426. ! test -n "$silent" || /bin/echo "checking for closedir return value"
  1427. ! cat > conftest.${ac_ext} <<EOF
  1428.   #include "confdefs.h"
  1429.   #include <sys/types.h>
  1430. ! #include <$ac_dir_header>
  1431.   int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1432.   EOF
  1433. ! eval $ac_compile
  1434.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1435.     :
  1436.   else
  1437.     
  1438.   {
  1439.   test -n "$verbose" && \
  1440. ! /bin/echo "    defining VOID_CLOSEDIR"
  1441. ! /bin/echo "#define" VOID_CLOSEDIR "1" >> confdefs.h
  1442.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  1443. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}VOID_CLOSEDIR\${ac_dB}VOID_CLOSEDIR\${ac_dC}1\${ac_dD}
  1444. ! \${ac_uA}VOID_CLOSEDIR\${ac_uB}VOID_CLOSEDIR\${ac_uC}1\${ac_uD}
  1445. ! \${ac_eA}VOID_CLOSEDIR\${ac_eB}VOID_CLOSEDIR\${ac_eC}1\${ac_eD}
  1446.   "
  1447.   }
  1448.   
  1449.   fi
  1450. ! rm -fr conftest*
  1451.   
  1452. ! test -n "$silent" || /bin/echo "checking for return type of signal handlers"
  1453. ! cat > conftest.${ac_ext} <<EOF
  1454.   #include "confdefs.h"
  1455.   #include <sys/types.h>
  1456.   #include <signal.h>
  1457. ***************
  1458. *** 585,604 ****
  1459.   #undef signal
  1460.   #endif
  1461.   extern void (*signal ()) ();
  1462. ! int main() { exit(0); }
  1463. ! int t() { int i; }
  1464.   EOF
  1465. ! if eval $compile; then
  1466.     rm -rf conftest*
  1467.     
  1468.   {
  1469.   test -n "$verbose" && \
  1470. ! echo "    defining" RETSIGTYPE to be void
  1471. ! echo "#define" RETSIGTYPE void >> confdefs.h
  1472.   DEFS="$DEFS -DRETSIGTYPE=void"
  1473. ! SEDDEFS="${SEDDEFS}\${SEDdA}RETSIGTYPE\${SEDdB}RETSIGTYPE\${SEDdC}void\${SEDdD}
  1474. ! \${SEDuA}RETSIGTYPE\${SEDuB}RETSIGTYPE\${SEDuC}void\${SEDuD}
  1475. ! \${SEDeA}RETSIGTYPE\${SEDeB}RETSIGTYPE\${SEDeC}void\${SEDeD}
  1476.   "
  1477.   }
  1478.   
  1479. --- 794,813 ----
  1480.   #undef signal
  1481.   #endif
  1482.   extern void (*signal ()) ();
  1483. ! int main() { return 0; }
  1484. ! int t() { int i;; return 0; }
  1485.   EOF
  1486. ! if eval $ac_compile; then
  1487.     rm -rf conftest*
  1488.     
  1489.   {
  1490.   test -n "$verbose" && \
  1491. ! /bin/echo "    defining" RETSIGTYPE to be "void"
  1492. ! /bin/echo "#define" RETSIGTYPE "void" >> confdefs.h
  1493.   DEFS="$DEFS -DRETSIGTYPE=void"
  1494. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
  1495. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
  1496. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
  1497.   "
  1498.   }
  1499.   
  1500. ***************
  1501. *** 608,619 ****
  1502.     
  1503.   {
  1504.   test -n "$verbose" && \
  1505. ! echo "    defining" RETSIGTYPE to be int
  1506. ! echo "#define" RETSIGTYPE int >> confdefs.h
  1507.   DEFS="$DEFS -DRETSIGTYPE=int"
  1508. ! SEDDEFS="${SEDDEFS}\${SEDdA}RETSIGTYPE\${SEDdB}RETSIGTYPE\${SEDdC}int\${SEDdD}
  1509. ! \${SEDuA}RETSIGTYPE\${SEDuB}RETSIGTYPE\${SEDuC}int\${SEDuD}
  1510. ! \${SEDeA}RETSIGTYPE\${SEDeB}RETSIGTYPE\${SEDeC}int\${SEDeD}
  1511.   "
  1512.   }
  1513.   
  1514. --- 817,828 ----
  1515.     
  1516.   {
  1517.   test -n "$verbose" && \
  1518. ! /bin/echo "    defining" RETSIGTYPE to be "int"
  1519. ! /bin/echo "#define" RETSIGTYPE "int" >> confdefs.h
  1520.   DEFS="$DEFS -DRETSIGTYPE=int"
  1521. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
  1522. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
  1523. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
  1524.   "
  1525.   }
  1526.   
  1527. ***************
  1528. *** 626,652 ****
  1529.   mounted=
  1530.   
  1531.   # DEC Alpha running OSF/1.
  1532. ! cat > conftest.c <<EOF
  1533.   #include "confdefs.h"
  1534.   
  1535.   #include <sys/types.h>
  1536.   #include <sys/mount.h>
  1537.   #include <sys/fs_types.h>
  1538. ! int main() { exit(0); }
  1539.   int t() { struct statfs *stats;
  1540. ! numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);  }
  1541.   EOF
  1542. ! if eval $compile; then
  1543.     rm -rf conftest*
  1544.     
  1545.   {
  1546.   test -n "$verbose" && \
  1547. ! echo "    defining MOUNTED_GETFSSTAT"
  1548. ! echo "#define" MOUNTED_GETFSSTAT 1 >> confdefs.h
  1549.   DEFS="$DEFS -DMOUNTED_GETFSSTAT=1"
  1550. ! SEDDEFS="${SEDDEFS}\${SEDdA}MOUNTED_GETFSSTAT\${SEDdB}MOUNTED_GETFSSTAT\${SEDdC}1\${SEDdD}
  1551. ! \${SEDuA}MOUNTED_GETFSSTAT\${SEDuB}MOUNTED_GETFSSTAT\${SEDuC}1\${SEDuD}
  1552. ! \${SEDeA}MOUNTED_GETFSSTAT\${SEDeB}MOUNTED_GETFSSTAT\${SEDeC}1\${SEDeD}
  1553.   "
  1554.   }
  1555.    mounted=1
  1556. --- 835,861 ----
  1557.   mounted=
  1558.   
  1559.   # DEC Alpha running OSF/1.
  1560. ! cat > conftest.${ac_ext} <<EOF
  1561.   #include "confdefs.h"
  1562.   
  1563.   #include <sys/types.h>
  1564.   #include <sys/mount.h>
  1565.   #include <sys/fs_types.h>
  1566. ! int main() { return 0; }
  1567.   int t() { struct statfs *stats;
  1568. ! numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); ; return 0; }
  1569.   EOF
  1570. ! if eval $ac_compile; then
  1571.     rm -rf conftest*
  1572.     
  1573.   {
  1574.   test -n "$verbose" && \
  1575. ! /bin/echo "    defining MOUNTED_GETFSSTAT"
  1576. ! /bin/echo "#define" MOUNTED_GETFSSTAT "1" >> confdefs.h
  1577.   DEFS="$DEFS -DMOUNTED_GETFSSTAT=1"
  1578. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}MOUNTED_GETFSSTAT\${ac_dB}MOUNTED_GETFSSTAT\${ac_dC}1\${ac_dD}
  1579. ! \${ac_uA}MOUNTED_GETFSSTAT\${ac_uB}MOUNTED_GETFSSTAT\${ac_uC}1\${ac_uD}
  1580. ! \${ac_eA}MOUNTED_GETFSSTAT\${ac_eB}MOUNTED_GETFSSTAT\${ac_eC}1\${ac_eD}
  1581.   "
  1582.   }
  1583.    mounted=1
  1584. ***************
  1585. *** 656,675 ****
  1586.   
  1587.   if test -z "$mounted"; then
  1588.   # SVR4
  1589. ! echo '#include "confdefs.h"
  1590. ! #include <sys/mnttab.h>' > conftest.c
  1591. ! eval "$CPP conftest.c > conftest.out 2>&1"
  1592.   if egrep "getmntent" conftest.out >/dev/null 2>&1; then
  1593.     rm -rf conftest*
  1594.     
  1595.   {
  1596.   test -n "$verbose" && \
  1597. ! echo "    defining MOUNTED_GETMNTENT2"
  1598. ! echo "#define" MOUNTED_GETMNTENT2 1 >> confdefs.h
  1599.   DEFS="$DEFS -DMOUNTED_GETMNTENT2=1"
  1600. ! SEDDEFS="${SEDDEFS}\${SEDdA}MOUNTED_GETMNTENT2\${SEDdB}MOUNTED_GETMNTENT2\${SEDdC}1\${SEDdD}
  1601. ! \${SEDuA}MOUNTED_GETMNTENT2\${SEDuB}MOUNTED_GETMNTENT2\${SEDuC}1\${SEDuD}
  1602. ! \${SEDeA}MOUNTED_GETMNTENT2\${SEDeB}MOUNTED_GETMNTENT2\${SEDeC}1\${SEDeD}
  1603.   "
  1604.   }
  1605.    mounted=1
  1606. --- 865,884 ----
  1607.   
  1608.   if test -z "$mounted"; then
  1609.   # SVR4
  1610. ! /bin/echo '#include "confdefs.h"
  1611. ! #include <sys/mnttab.h>' > conftest.${ac_ext}
  1612. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1613.   if egrep "getmntent" conftest.out >/dev/null 2>&1; then
  1614.     rm -rf conftest*
  1615.     
  1616.   {
  1617.   test -n "$verbose" && \
  1618. ! /bin/echo "    defining MOUNTED_GETMNTENT2"
  1619. ! /bin/echo "#define" MOUNTED_GETMNTENT2 "1" >> confdefs.h
  1620.   DEFS="$DEFS -DMOUNTED_GETMNTENT2=1"
  1621. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}MOUNTED_GETMNTENT2\${ac_dB}MOUNTED_GETMNTENT2\${ac_dC}1\${ac_dD}
  1622. ! \${ac_uA}MOUNTED_GETMNTENT2\${ac_uB}MOUNTED_GETMNTENT2\${ac_uC}1\${ac_uD}
  1623. ! \${ac_eA}MOUNTED_GETMNTENT2\${ac_eB}MOUNTED_GETMNTENT2\${ac_eC}1\${ac_eD}
  1624.   "
  1625.   }
  1626.    mounted=1
  1627. ***************
  1628. *** 680,701 ****
  1629.   fi
  1630.   if test -z "$mounted"; then
  1631.   # AIX.
  1632. ! cat > conftest.c <<EOF
  1633.   #include "confdefs.h"
  1634.   #include <fshelp.h>
  1635.   EOF
  1636. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1637. ! if test -z "$err"; then
  1638.     rm -rf conftest*
  1639.     
  1640.   {
  1641.   test -n "$verbose" && \
  1642. ! echo "    defining MOUNTED_VMOUNT"
  1643. ! echo "#define" MOUNTED_VMOUNT 1 >> confdefs.h
  1644.   DEFS="$DEFS -DMOUNTED_VMOUNT=1"
  1645. ! SEDDEFS="${SEDDEFS}\${SEDdA}MOUNTED_VMOUNT\${SEDdB}MOUNTED_VMOUNT\${SEDdC}1\${SEDdD}
  1646. ! \${SEDuA}MOUNTED_VMOUNT\${SEDuB}MOUNTED_VMOUNT\${SEDuC}1\${SEDuD}
  1647. ! \${SEDeA}MOUNTED_VMOUNT\${SEDeB}MOUNTED_VMOUNT\${SEDeC}1\${SEDeD}
  1648.   "
  1649.   }
  1650.    mounted=1
  1651. --- 889,912 ----
  1652.   fi
  1653.   if test -z "$mounted"; then
  1654.   # AIX.
  1655. ! cat > conftest.${ac_ext} <<EOF
  1656.   #include "confdefs.h"
  1657.   #include <fshelp.h>
  1658.   EOF
  1659. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1660. ! # the parens.
  1661. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1662. ! if test -z "$ac_err"; then
  1663.     rm -rf conftest*
  1664.     
  1665.   {
  1666.   test -n "$verbose" && \
  1667. ! /bin/echo "    defining MOUNTED_VMOUNT"
  1668. ! /bin/echo "#define" MOUNTED_VMOUNT "1" >> confdefs.h
  1669.   DEFS="$DEFS -DMOUNTED_VMOUNT=1"
  1670. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}MOUNTED_VMOUNT\${ac_dB}MOUNTED_VMOUNT\${ac_dC}1\${ac_dD}
  1671. ! \${ac_uA}MOUNTED_VMOUNT\${ac_uB}MOUNTED_VMOUNT\${ac_uC}1\${ac_uD}
  1672. ! \${ac_eA}MOUNTED_VMOUNT\${ac_eB}MOUNTED_VMOUNT\${ac_eC}1\${ac_eD}
  1673.   "
  1674.   }
  1675.    mounted=1
  1676. ***************
  1677. *** 705,728 ****
  1678.   fi
  1679.   if test -z "$mounted"; then
  1680.   # SVR3
  1681. ! cat > conftest.c <<EOF
  1682.   #include "confdefs.h"
  1683.   #include <sys/statfs.h>
  1684.   #include <sys/fstyp.h>
  1685.   #include <mnttab.h>
  1686.   EOF
  1687. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1688. ! if test -z "$err"; then
  1689.     rm -rf conftest*
  1690.     
  1691.   {
  1692.   test -n "$verbose" && \
  1693. ! echo "    defining MOUNTED_FREAD_FSTYP"
  1694. ! echo "#define" MOUNTED_FREAD_FSTYP 1 >> confdefs.h
  1695.   DEFS="$DEFS -DMOUNTED_FREAD_FSTYP=1"
  1696. ! SEDDEFS="${SEDDEFS}\${SEDdA}MOUNTED_FREAD_FSTYP\${SEDdB}MOUNTED_FREAD_FSTYP\${SEDdC}1\${SEDdD}
  1697. ! \${SEDuA}MOUNTED_FREAD_FSTYP\${SEDuB}MOUNTED_FREAD_FSTYP\${SEDuC}1\${SEDuD}
  1698. ! \${SEDeA}MOUNTED_FREAD_FSTYP\${SEDeB}MOUNTED_FREAD_FSTYP\${SEDeC}1\${SEDeD}
  1699.   "
  1700.   }
  1701.    mounted=1
  1702. --- 916,941 ----
  1703.   fi
  1704.   if test -z "$mounted"; then
  1705.   # SVR3
  1706. ! cat > conftest.${ac_ext} <<EOF
  1707.   #include "confdefs.h"
  1708.   #include <sys/statfs.h>
  1709.   #include <sys/fstyp.h>
  1710.   #include <mnttab.h>
  1711.   EOF
  1712. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1713. ! # the parens.
  1714. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1715. ! if test -z "$ac_err"; then
  1716.     rm -rf conftest*
  1717.     
  1718.   {
  1719.   test -n "$verbose" && \
  1720. ! /bin/echo "    defining MOUNTED_FREAD_FSTYP"
  1721. ! /bin/echo "#define" MOUNTED_FREAD_FSTYP "1" >> confdefs.h
  1722.   DEFS="$DEFS -DMOUNTED_FREAD_FSTYP=1"
  1723. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}MOUNTED_FREAD_FSTYP\${ac_dB}MOUNTED_FREAD_FSTYP\${ac_dC}1\${ac_dD}
  1724. ! \${ac_uA}MOUNTED_FREAD_FSTYP\${ac_uB}MOUNTED_FREAD_FSTYP\${ac_uC}1\${ac_uD}
  1725. ! \${ac_eA}MOUNTED_FREAD_FSTYP\${ac_eB}MOUNTED_FREAD_FSTYP\${ac_eC}1\${ac_eD}
  1726.   "
  1727.   }
  1728.    mounted=1
  1729. ***************
  1730. *** 732,753 ****
  1731.   fi
  1732.   if test -z "$mounted"; then
  1733.   # 4.3BSD
  1734. ! cat > conftest.c <<EOF
  1735.   #include "confdefs.h"
  1736.   #include <mntent.h>
  1737.   EOF
  1738. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1739. ! if test -z "$err"; then
  1740.     rm -rf conftest*
  1741.     
  1742.   {
  1743.   test -n "$verbose" && \
  1744. ! echo "    defining MOUNTED_GETMNTENT1"
  1745. ! echo "#define" MOUNTED_GETMNTENT1 1 >> confdefs.h
  1746.   DEFS="$DEFS -DMOUNTED_GETMNTENT1=1"
  1747. ! SEDDEFS="${SEDDEFS}\${SEDdA}MOUNTED_GETMNTENT1\${SEDdB}MOUNTED_GETMNTENT1\${SEDdC}1\${SEDdD}
  1748. ! \${SEDuA}MOUNTED_GETMNTENT1\${SEDuB}MOUNTED_GETMNTENT1\${SEDuC}1\${SEDuD}
  1749. ! \${SEDeA}MOUNTED_GETMNTENT1\${SEDeB}MOUNTED_GETMNTENT1\${SEDeC}1\${SEDeD}
  1750.   "
  1751.   }
  1752.    mounted=1
  1753. --- 945,968 ----
  1754.   fi
  1755.   if test -z "$mounted"; then
  1756.   # 4.3BSD
  1757. ! cat > conftest.${ac_ext} <<EOF
  1758.   #include "confdefs.h"
  1759.   #include <mntent.h>
  1760.   EOF
  1761. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1762. ! # the parens.
  1763. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1764. ! if test -z "$ac_err"; then
  1765.     rm -rf conftest*
  1766.     
  1767.   {
  1768.   test -n "$verbose" && \
  1769. ! /bin/echo "    defining MOUNTED_GETMNTENT1"
  1770. ! /bin/echo "#define" MOUNTED_GETMNTENT1 "1" >> confdefs.h
  1771.   DEFS="$DEFS -DMOUNTED_GETMNTENT1=1"
  1772. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}MOUNTED_GETMNTENT1\${ac_dB}MOUNTED_GETMNTENT1\${ac_dC}1\${ac_dD}
  1773. ! \${ac_uA}MOUNTED_GETMNTENT1\${ac_uB}MOUNTED_GETMNTENT1\${ac_uC}1\${ac_uD}
  1774. ! \${ac_eA}MOUNTED_GETMNTENT1\${ac_eB}MOUNTED_GETMNTENT1\${ac_eC}1\${ac_eD}
  1775.   "
  1776.   }
  1777.    mounted=1
  1778. ***************
  1779. *** 757,776 ****
  1780.   fi
  1781.   if test -z "$mounted"; then
  1782.   # 4.4BSD and DEC OSF/1.
  1783. ! echo '#include "confdefs.h"
  1784. ! #include <sys/mount.h>' > conftest.c
  1785. ! eval "$CPP conftest.c > conftest.out 2>&1"
  1786.   if egrep "f_type;" conftest.out >/dev/null 2>&1; then
  1787.     rm -rf conftest*
  1788.     
  1789.   {
  1790.   test -n "$verbose" && \
  1791. ! echo "    defining MOUNTED_GETMNTINFO"
  1792. ! echo "#define" MOUNTED_GETMNTINFO 1 >> confdefs.h
  1793.   DEFS="$DEFS -DMOUNTED_GETMNTINFO=1"
  1794. ! SEDDEFS="${SEDDEFS}\${SEDdA}MOUNTED_GETMNTINFO\${SEDdB}MOUNTED_GETMNTINFO\${SEDdC}1\${SEDdD}
  1795. ! \${SEDuA}MOUNTED_GETMNTINFO\${SEDuB}MOUNTED_GETMNTINFO\${SEDuC}1\${SEDuD}
  1796. ! \${SEDeA}MOUNTED_GETMNTINFO\${SEDeB}MOUNTED_GETMNTINFO\${SEDeC}1\${SEDeD}
  1797.   "
  1798.   }
  1799.    mounted=1
  1800. --- 972,991 ----
  1801.   fi
  1802.   if test -z "$mounted"; then
  1803.   # 4.4BSD and DEC OSF/1.
  1804. ! /bin/echo '#include "confdefs.h"
  1805. ! #include <sys/mount.h>' > conftest.${ac_ext}
  1806. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1807.   if egrep "f_type;" conftest.out >/dev/null 2>&1; then
  1808.     rm -rf conftest*
  1809.     
  1810.   {
  1811.   test -n "$verbose" && \
  1812. ! /bin/echo "    defining MOUNTED_GETMNTINFO"
  1813. ! /bin/echo "#define" MOUNTED_GETMNTINFO "1" >> confdefs.h
  1814.   DEFS="$DEFS -DMOUNTED_GETMNTINFO=1"
  1815. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}MOUNTED_GETMNTINFO\${ac_dB}MOUNTED_GETMNTINFO\${ac_dC}1\${ac_dD}
  1816. ! \${ac_uA}MOUNTED_GETMNTINFO\${ac_uB}MOUNTED_GETMNTINFO\${ac_uC}1\${ac_uD}
  1817. ! \${ac_eA}MOUNTED_GETMNTINFO\${ac_eB}MOUNTED_GETMNTINFO\${ac_eC}1\${ac_eD}
  1818.   "
  1819.   }
  1820.    mounted=1
  1821. ***************
  1822. *** 781,803 ****
  1823.   fi
  1824.   if test -z "$mounted"; then
  1825.   # Ultrix
  1826. ! cat > conftest.c <<EOF
  1827.   #include "confdefs.h"
  1828.   #include <sys/fs_types.h>
  1829.   #include <sys/mount.h>
  1830.   EOF
  1831. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1832. ! if test -z "$err"; then
  1833.     rm -rf conftest*
  1834.     
  1835.   {
  1836.   test -n "$verbose" && \
  1837. ! echo "    defining MOUNTED_GETMNT"
  1838. ! echo "#define" MOUNTED_GETMNT 1 >> confdefs.h
  1839.   DEFS="$DEFS -DMOUNTED_GETMNT=1"
  1840. ! SEDDEFS="${SEDDEFS}\${SEDdA}MOUNTED_GETMNT\${SEDdB}MOUNTED_GETMNT\${SEDdC}1\${SEDdD}
  1841. ! \${SEDuA}MOUNTED_GETMNT\${SEDuB}MOUNTED_GETMNT\${SEDuC}1\${SEDuD}
  1842. ! \${SEDeA}MOUNTED_GETMNT\${SEDeB}MOUNTED_GETMNT\${SEDeC}1\${SEDeD}
  1843.   "
  1844.   }
  1845.    mounted=1
  1846. --- 996,1020 ----
  1847.   fi
  1848.   if test -z "$mounted"; then
  1849.   # Ultrix
  1850. ! cat > conftest.${ac_ext} <<EOF
  1851.   #include "confdefs.h"
  1852.   #include <sys/fs_types.h>
  1853.   #include <sys/mount.h>
  1854.   EOF
  1855. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1856. ! # the parens.
  1857. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1858. ! if test -z "$ac_err"; then
  1859.     rm -rf conftest*
  1860.     
  1861.   {
  1862.   test -n "$verbose" && \
  1863. ! /bin/echo "    defining MOUNTED_GETMNT"
  1864. ! /bin/echo "#define" MOUNTED_GETMNT "1" >> confdefs.h
  1865.   DEFS="$DEFS -DMOUNTED_GETMNT=1"
  1866. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}MOUNTED_GETMNT\${ac_dB}MOUNTED_GETMNT\${ac_dC}1\${ac_dD}
  1867. ! \${ac_uA}MOUNTED_GETMNT\${ac_uB}MOUNTED_GETMNT\${ac_uC}1\${ac_uD}
  1868. ! \${ac_eA}MOUNTED_GETMNT\${ac_eB}MOUNTED_GETMNT\${ac_eC}1\${ac_eD}
  1869.   "
  1870.   }
  1871.    mounted=1
  1872. ***************
  1873. *** 807,828 ****
  1874.   fi
  1875.   if test -z "$mounted"; then
  1876.   # SVR2
  1877. ! cat > conftest.c <<EOF
  1878.   #include "confdefs.h"
  1879.   #include <mnttab.h>
  1880.   EOF
  1881. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1882. ! if test -z "$err"; then
  1883.     rm -rf conftest*
  1884.     
  1885.   {
  1886.   test -n "$verbose" && \
  1887. ! echo "    defining MOUNTED_FREAD"
  1888. ! echo "#define" MOUNTED_FREAD 1 >> confdefs.h
  1889.   DEFS="$DEFS -DMOUNTED_FREAD=1"
  1890. ! SEDDEFS="${SEDDEFS}\${SEDdA}MOUNTED_FREAD\${SEDdB}MOUNTED_FREAD\${SEDdC}1\${SEDdD}
  1891. ! \${SEDuA}MOUNTED_FREAD\${SEDuB}MOUNTED_FREAD\${SEDuC}1\${SEDuD}
  1892. ! \${SEDeA}MOUNTED_FREAD\${SEDeB}MOUNTED_FREAD\${SEDeC}1\${SEDeD}
  1893.   "
  1894.   }
  1895.    mounted=1
  1896. --- 1024,1047 ----
  1897.   fi
  1898.   if test -z "$mounted"; then
  1899.   # SVR2
  1900. ! cat > conftest.${ac_ext} <<EOF
  1901.   #include "confdefs.h"
  1902.   #include <mnttab.h>
  1903.   EOF
  1904. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1905. ! # the parens.
  1906. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1907. ! if test -z "$ac_err"; then
  1908.     rm -rf conftest*
  1909.     
  1910.   {
  1911.   test -n "$verbose" && \
  1912. ! /bin/echo "    defining MOUNTED_FREAD"
  1913. ! /bin/echo "#define" MOUNTED_FREAD "1" >> confdefs.h
  1914.   DEFS="$DEFS -DMOUNTED_FREAD=1"
  1915. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}MOUNTED_FREAD\${ac_dB}MOUNTED_FREAD\${ac_dC}1\${ac_dD}
  1916. ! \${ac_uA}MOUNTED_FREAD\${ac_uB}MOUNTED_FREAD\${ac_uC}1\${ac_uD}
  1917. ! \${ac_eA}MOUNTED_FREAD\${ac_eB}MOUNTED_FREAD\${ac_eC}1\${ac_eD}
  1918.   "
  1919.   }
  1920.    mounted=1
  1921. ***************
  1922. *** 835,841 ****
  1923.   space=
  1924.   
  1925.   # DEC Alpha running OSF/1
  1926. ! cat > conftest.c <<EOF
  1927.   #include "confdefs.h"
  1928.   
  1929.   #include <sys/types.h>
  1930. --- 1054,1060 ----
  1931.   space=
  1932.   
  1933.   # DEC Alpha running OSF/1
  1934. ! cat > conftest.${ac_ext} <<EOF
  1935.   #include "confdefs.h"
  1936.   
  1937.   #include <sys/types.h>
  1938. ***************
  1939. *** 847,889 ****
  1940.   exit (statfs (".", &fsd, sizeof (struct statfs)));
  1941.   }
  1942.   EOF
  1943. ! eval $compile
  1944.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1945. -   rm -rf conftest*
  1946.     
  1947.   {
  1948.   test -n "$verbose" && \
  1949. ! echo "    defining STAT_STATFS3_OSF1"
  1950. ! echo "#define" STAT_STATFS3_OSF1 1 >> confdefs.h
  1951.   DEFS="$DEFS -DSTAT_STATFS3_OSF1=1"
  1952. ! SEDDEFS="${SEDDEFS}\${SEDdA}STAT_STATFS3_OSF1\${SEDdB}STAT_STATFS3_OSF1\${SEDdC}1\${SEDdD}
  1953. ! \${SEDuA}STAT_STATFS3_OSF1\${SEDuB}STAT_STATFS3_OSF1\${SEDuC}1\${SEDuD}
  1954. ! \${SEDeA}STAT_STATFS3_OSF1\${SEDeB}STAT_STATFS3_OSF1\${SEDeC}1\${SEDeD}
  1955.   "
  1956.   }
  1957.    space=1
  1958.   
  1959.   fi
  1960. ! rm -f conftest*
  1961.   if test -z "$space"; then
  1962.   # SVR4
  1963. ! cat > conftest.c <<EOF
  1964.   #include "confdefs.h"
  1965.   #include <sys/statvfs.h>
  1966.   #include <sys/fstyp.h>
  1967.   EOF
  1968. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1969. ! if test -z "$err"; then
  1970.     rm -rf conftest*
  1971.     
  1972.   {
  1973.   test -n "$verbose" && \
  1974. ! echo "    defining STAT_STATVFS"
  1975. ! echo "#define" STAT_STATVFS 1 >> confdefs.h
  1976.   DEFS="$DEFS -DSTAT_STATVFS=1"
  1977. ! SEDDEFS="${SEDDEFS}\${SEDdA}STAT_STATVFS\${SEDdB}STAT_STATVFS\${SEDdC}1\${SEDdD}
  1978. ! \${SEDuA}STAT_STATVFS\${SEDuB}STAT_STATVFS\${SEDuC}1\${SEDuD}
  1979. ! \${SEDeA}STAT_STATVFS\${SEDeB}STAT_STATVFS\${SEDeC}1\${SEDeD}
  1980.   "
  1981.   }
  1982.    space=1
  1983. --- 1066,1109 ----
  1984.   exit (statfs (".", &fsd, sizeof (struct statfs)));
  1985.   }
  1986.   EOF
  1987. ! eval $ac_compile
  1988.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1989.     
  1990.   {
  1991.   test -n "$verbose" && \
  1992. ! /bin/echo "    defining STAT_STATFS3_OSF1"
  1993. ! /bin/echo "#define" STAT_STATFS3_OSF1 "1" >> confdefs.h
  1994.   DEFS="$DEFS -DSTAT_STATFS3_OSF1=1"
  1995. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STAT_STATFS3_OSF1\${ac_dB}STAT_STATFS3_OSF1\${ac_dC}1\${ac_dD}
  1996. ! \${ac_uA}STAT_STATFS3_OSF1\${ac_uB}STAT_STATFS3_OSF1\${ac_uC}1\${ac_uD}
  1997. ! \${ac_eA}STAT_STATFS3_OSF1\${ac_eB}STAT_STATFS3_OSF1\${ac_eC}1\${ac_eD}
  1998.   "
  1999.   }
  2000.    space=1
  2001.   
  2002.   fi
  2003. ! rm -fr conftest*
  2004.   if test -z "$space"; then
  2005.   # SVR4
  2006. ! cat > conftest.${ac_ext} <<EOF
  2007.   #include "confdefs.h"
  2008.   #include <sys/statvfs.h>
  2009.   #include <sys/fstyp.h>
  2010.   EOF
  2011. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2012. ! # the parens.
  2013. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2014. ! if test -z "$ac_err"; then
  2015.     rm -rf conftest*
  2016.     
  2017.   {
  2018.   test -n "$verbose" && \
  2019. ! /bin/echo "    defining STAT_STATVFS"
  2020. ! /bin/echo "#define" STAT_STATVFS "1" >> confdefs.h
  2021.   DEFS="$DEFS -DSTAT_STATVFS=1"
  2022. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STAT_STATVFS\${ac_dB}STAT_STATVFS\${ac_dC}1\${ac_dD}
  2023. ! \${ac_uA}STAT_STATVFS\${ac_uB}STAT_STATVFS\${ac_uC}1\${ac_uD}
  2024. ! \${ac_eA}STAT_STATVFS\${ac_eB}STAT_STATVFS\${ac_eC}1\${ac_eD}
  2025.   "
  2026.   }
  2027.    space=1
  2028. ***************
  2029. *** 893,912 ****
  2030.   fi
  2031.   if test -z "$space"; then
  2032.   # AIX
  2033. ! echo '#include "confdefs.h"
  2034. ! #include <sys/statfs.h>' > conftest.c
  2035. ! eval "$CPP conftest.c > conftest.out 2>&1"
  2036.   if egrep "f_nlsdirtype" conftest.out >/dev/null 2>&1; then
  2037.     rm -rf conftest*
  2038.     
  2039.   {
  2040.   test -n "$verbose" && \
  2041. ! echo "    defining STAT_STATFS2_BSIZE"
  2042. ! echo "#define" STAT_STATFS2_BSIZE 1 >> confdefs.h
  2043.   DEFS="$DEFS -DSTAT_STATFS2_BSIZE=1"
  2044. ! SEDDEFS="${SEDDEFS}\${SEDdA}STAT_STATFS2_BSIZE\${SEDdB}STAT_STATFS2_BSIZE\${SEDdC}1\${SEDdD}
  2045. ! \${SEDuA}STAT_STATFS2_BSIZE\${SEDuB}STAT_STATFS2_BSIZE\${SEDuC}1\${SEDuD}
  2046. ! \${SEDeA}STAT_STATFS2_BSIZE\${SEDeB}STAT_STATFS2_BSIZE\${SEDeC}1\${SEDeD}
  2047.   "
  2048.   }
  2049.    space=1
  2050. --- 1113,1132 ----
  2051.   fi
  2052.   if test -z "$space"; then
  2053.   # AIX
  2054. ! /bin/echo '#include "confdefs.h"
  2055. ! #include <sys/statfs.h>' > conftest.${ac_ext}
  2056. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  2057.   if egrep "f_nlsdirtype" conftest.out >/dev/null 2>&1; then
  2058.     rm -rf conftest*
  2059.     
  2060.   {
  2061.   test -n "$verbose" && \
  2062. ! /bin/echo "    defining STAT_STATFS2_BSIZE"
  2063. ! /bin/echo "#define" STAT_STATFS2_BSIZE "1" >> confdefs.h
  2064.   DEFS="$DEFS -DSTAT_STATFS2_BSIZE=1"
  2065. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STAT_STATFS2_BSIZE\${ac_dB}STAT_STATFS2_BSIZE\${ac_dC}1\${ac_dD}
  2066. ! \${ac_uA}STAT_STATFS2_BSIZE\${ac_uB}STAT_STATFS2_BSIZE\${ac_uC}1\${ac_uD}
  2067. ! \${ac_eA}STAT_STATFS2_BSIZE\${ac_eB}STAT_STATFS2_BSIZE\${ac_eC}1\${ac_eD}
  2068.   "
  2069.   }
  2070.    space=1
  2071. ***************
  2072. *** 917,938 ****
  2073.   fi
  2074.   if test -z "$space"; then
  2075.   # SVR3
  2076. ! cat > conftest.c <<EOF
  2077.   #include "confdefs.h"
  2078.   #include <sys/statfs.h>
  2079.   EOF
  2080. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2081. ! if test -z "$err"; then
  2082.     rm -rf conftest*
  2083.     
  2084.   {
  2085.   test -n "$verbose" && \
  2086. ! echo "    defining STAT_STATFS4"
  2087. ! echo "#define" STAT_STATFS4 1 >> confdefs.h
  2088.   DEFS="$DEFS -DSTAT_STATFS4=1"
  2089. ! SEDDEFS="${SEDDEFS}\${SEDdA}STAT_STATFS4\${SEDdB}STAT_STATFS4\${SEDdC}1\${SEDdD}
  2090. ! \${SEDuA}STAT_STATFS4\${SEDuB}STAT_STATFS4\${SEDuC}1\${SEDuD}
  2091. ! \${SEDeA}STAT_STATFS4\${SEDeB}STAT_STATFS4\${SEDeC}1\${SEDeD}
  2092.   "
  2093.   }
  2094.    space=1
  2095. --- 1137,1160 ----
  2096.   fi
  2097.   if test -z "$space"; then
  2098.   # SVR3
  2099. ! cat > conftest.${ac_ext} <<EOF
  2100.   #include "confdefs.h"
  2101.   #include <sys/statfs.h>
  2102.   EOF
  2103. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2104. ! # the parens.
  2105. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2106. ! if test -z "$ac_err"; then
  2107.     rm -rf conftest*
  2108.     
  2109.   {
  2110.   test -n "$verbose" && \
  2111. ! /bin/echo "    defining STAT_STATFS4"
  2112. ! /bin/echo "#define" STAT_STATFS4 "1" >> confdefs.h
  2113.   DEFS="$DEFS -DSTAT_STATFS4=1"
  2114. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STAT_STATFS4\${ac_dB}STAT_STATFS4\${ac_dC}1\${ac_dD}
  2115. ! \${ac_uA}STAT_STATFS4\${ac_uB}STAT_STATFS4\${ac_uC}1\${ac_uD}
  2116. ! \${ac_eA}STAT_STATFS4\${ac_eB}STAT_STATFS4\${ac_eC}1\${ac_eD}
  2117.   "
  2118.   }
  2119.    space=1
  2120. ***************
  2121. *** 942,963 ****
  2122.   fi
  2123.   if test -z "$space"; then
  2124.   # 4.3BSD
  2125. ! cat > conftest.c <<EOF
  2126.   #include "confdefs.h"
  2127.   #include <sys/vfs.h>
  2128.   EOF
  2129. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2130. ! if test -z "$err"; then
  2131.     rm -rf conftest*
  2132.     
  2133.   {
  2134.   test -n "$verbose" && \
  2135. ! echo "    defining STAT_STATFS2_BSIZE"
  2136. ! echo "#define" STAT_STATFS2_BSIZE 1 >> confdefs.h
  2137.   DEFS="$DEFS -DSTAT_STATFS2_BSIZE=1"
  2138. ! SEDDEFS="${SEDDEFS}\${SEDdA}STAT_STATFS2_BSIZE\${SEDdB}STAT_STATFS2_BSIZE\${SEDdC}1\${SEDdD}
  2139. ! \${SEDuA}STAT_STATFS2_BSIZE\${SEDuB}STAT_STATFS2_BSIZE\${SEDuC}1\${SEDuD}
  2140. ! \${SEDeA}STAT_STATFS2_BSIZE\${SEDeB}STAT_STATFS2_BSIZE\${SEDeC}1\${SEDeD}
  2141.   "
  2142.   }
  2143.    space=1
  2144. --- 1164,1187 ----
  2145.   fi
  2146.   if test -z "$space"; then
  2147.   # 4.3BSD
  2148. ! cat > conftest.${ac_ext} <<EOF
  2149.   #include "confdefs.h"
  2150.   #include <sys/vfs.h>
  2151.   EOF
  2152. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2153. ! # the parens.
  2154. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2155. ! if test -z "$ac_err"; then
  2156.     rm -rf conftest*
  2157.     
  2158.   {
  2159.   test -n "$verbose" && \
  2160. ! /bin/echo "    defining STAT_STATFS2_BSIZE"
  2161. ! /bin/echo "#define" STAT_STATFS2_BSIZE "1" >> confdefs.h
  2162.   DEFS="$DEFS -DSTAT_STATFS2_BSIZE=1"
  2163. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STAT_STATFS2_BSIZE\${ac_dB}STAT_STATFS2_BSIZE\${ac_dC}1\${ac_dD}
  2164. ! \${ac_uA}STAT_STATFS2_BSIZE\${ac_uB}STAT_STATFS2_BSIZE\${ac_uC}1\${ac_uD}
  2165. ! \${ac_eA}STAT_STATFS2_BSIZE\${ac_eB}STAT_STATFS2_BSIZE\${ac_eC}1\${ac_eD}
  2166.   "
  2167.   }
  2168.    space=1
  2169. ***************
  2170. *** 967,1012 ****
  2171.   fi
  2172.   if test -z "$space"; then
  2173.   # 4.4BSD
  2174. ! echo '#include "confdefs.h"
  2175. ! #include <sys/mount.h>' > conftest.c
  2176. ! eval "$CPP conftest.c > conftest.out 2>&1"
  2177. ! if egrep "MOUNT_UFS" conftest.out >/dev/null 2>&1; then
  2178. !   rm -rf conftest*
  2179. !   
  2180.   {
  2181.   test -n "$verbose" && \
  2182. ! echo "    defining STAT_STATFS2_FSIZE"
  2183. ! echo "#define" STAT_STATFS2_FSIZE 1 >> confdefs.h
  2184.   DEFS="$DEFS -DSTAT_STATFS2_FSIZE=1"
  2185. ! SEDDEFS="${SEDDEFS}\${SEDdA}STAT_STATFS2_FSIZE\${SEDdB}STAT_STATFS2_FSIZE\${SEDdC}1\${SEDdD}
  2186. ! \${SEDuA}STAT_STATFS2_FSIZE\${SEDuB}STAT_STATFS2_FSIZE\${SEDuC}1\${SEDuD}
  2187. ! \${SEDeA}STAT_STATFS2_FSIZE\${SEDeB}STAT_STATFS2_FSIZE\${SEDeC}1\${SEDeD}
  2188.   "
  2189.   }
  2190.    space=1
  2191. - fi
  2192. - rm -f conftest*
  2193.   fi
  2194.   if test -z "$space"; then
  2195.   # SVR2
  2196. ! cat > conftest.c <<EOF
  2197.   #include "confdefs.h"
  2198.   #include <sys/filsys.h>
  2199.   EOF
  2200. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2201. ! if test -z "$err"; then
  2202.     rm -rf conftest*
  2203.     
  2204.   {
  2205.   test -n "$verbose" && \
  2206. ! echo "    defining STAT_READ"
  2207. ! echo "#define" STAT_READ 1 >> confdefs.h
  2208.   DEFS="$DEFS -DSTAT_READ=1"
  2209. ! SEDDEFS="${SEDDEFS}\${SEDdA}STAT_READ\${SEDdB}STAT_READ\${SEDdC}1\${SEDdD}
  2210. ! \${SEDuA}STAT_READ\${SEDuB}STAT_READ\${SEDuC}1\${SEDuD}
  2211. ! \${SEDeA}STAT_READ\${SEDeB}STAT_READ\${SEDeC}1\${SEDeD}
  2212.   "
  2213.   }
  2214.    space=1
  2215. --- 1191,1229 ----
  2216.   fi
  2217.   if test -z "$space"; then
  2218.   # 4.4BSD
  2219.   {
  2220.   test -n "$verbose" && \
  2221. ! /bin/echo "    defining STAT_STATFS2_FSIZE"
  2222. ! /bin/echo "#define" STAT_STATFS2_FSIZE "1" >> confdefs.h
  2223.   DEFS="$DEFS -DSTAT_STATFS2_FSIZE=1"
  2224. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STAT_STATFS2_FSIZE\${ac_dB}STAT_STATFS2_FSIZE\${ac_dC}1\${ac_dD}
  2225. ! \${ac_uA}STAT_STATFS2_FSIZE\${ac_uB}STAT_STATFS2_FSIZE\${ac_uC}1\${ac_uD}
  2226. ! \${ac_eA}STAT_STATFS2_FSIZE\${ac_eB}STAT_STATFS2_FSIZE\${ac_eC}1\${ac_eD}
  2227.   "
  2228.   }
  2229.    space=1
  2230.   fi
  2231.   if test -z "$space"; then
  2232.   # SVR2
  2233. ! cat > conftest.${ac_ext} <<EOF
  2234.   #include "confdefs.h"
  2235.   #include <sys/filsys.h>
  2236.   EOF
  2237. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2238. ! # the parens.
  2239. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2240. ! if test -z "$ac_err"; then
  2241.     rm -rf conftest*
  2242.     
  2243.   {
  2244.   test -n "$verbose" && \
  2245. ! /bin/echo "    defining STAT_READ"
  2246. ! /bin/echo "#define" STAT_READ "1" >> confdefs.h
  2247.   DEFS="$DEFS -DSTAT_READ=1"
  2248. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STAT_READ\${ac_dB}STAT_READ\${ac_dC}1\${ac_dD}
  2249. ! \${ac_uA}STAT_READ\${ac_uB}STAT_READ\${ac_uC}1\${ac_uD}
  2250. ! \${ac_eA}STAT_READ\${ac_eB}STAT_READ\${ac_eC}1\${ac_eD}
  2251.   "
  2252.   }
  2253.    space=1
  2254. ***************
  2255. *** 1016,1037 ****
  2256.   fi
  2257.   if test -z "$space"; then
  2258.   # Ultrix
  2259. ! cat > conftest.c <<EOF
  2260.   #include "confdefs.h"
  2261.   #include <sys/mount.h>
  2262.   EOF
  2263. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2264. ! if test -z "$err"; then
  2265.     rm -rf conftest*
  2266.     
  2267.   {
  2268.   test -n "$verbose" && \
  2269. ! echo "    defining STAT_STATFS2_FS_DATA"
  2270. ! echo "#define" STAT_STATFS2_FS_DATA 1 >> confdefs.h
  2271.   DEFS="$DEFS -DSTAT_STATFS2_FS_DATA=1"
  2272. ! SEDDEFS="${SEDDEFS}\${SEDdA}STAT_STATFS2_FS_DATA\${SEDdB}STAT_STATFS2_FS_DATA\${SEDdC}1\${SEDdD}
  2273. ! \${SEDuA}STAT_STATFS2_FS_DATA\${SEDuB}STAT_STATFS2_FS_DATA\${SEDuC}1\${SEDuD}
  2274. ! \${SEDeA}STAT_STATFS2_FS_DATA\${SEDeB}STAT_STATFS2_FS_DATA\${SEDeC}1\${SEDeD}
  2275.   "
  2276.   }
  2277.    space=1
  2278. --- 1233,1256 ----
  2279.   fi
  2280.   if test -z "$space"; then
  2281.   # Ultrix
  2282. ! cat > conftest.${ac_ext} <<EOF
  2283.   #include "confdefs.h"
  2284.   #include <sys/mount.h>
  2285.   EOF
  2286. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2287. ! # the parens.
  2288. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2289. ! if test -z "$ac_err"; then
  2290.     rm -rf conftest*
  2291.     
  2292.   {
  2293.   test -n "$verbose" && \
  2294. ! /bin/echo "    defining STAT_STATFS2_FS_DATA"
  2295. ! /bin/echo "#define" STAT_STATFS2_FS_DATA "1" >> confdefs.h
  2296.   DEFS="$DEFS -DSTAT_STATFS2_FS_DATA=1"
  2297. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STAT_STATFS2_FS_DATA\${ac_dB}STAT_STATFS2_FS_DATA\${ac_dC}1\${ac_dD}
  2298. ! \${ac_uA}STAT_STATFS2_FS_DATA\${ac_uB}STAT_STATFS2_FS_DATA\${ac_uC}1\${ac_uD}
  2299. ! \${ac_eA}STAT_STATFS2_FS_DATA\${ac_eB}STAT_STATFS2_FS_DATA\${ac_eC}1\${ac_eD}
  2300.   "
  2301.   }
  2302.    space=1
  2303. ***************
  2304. *** 1043,1052 ****
  2305.     PROGS="$PROGS df" LIBOBJS="$LIBOBJS fsusage.o mountlist.o"
  2306.   fi
  2307.   
  2308. ! echo checking for uid_t in sys/types.h
  2309. ! echo '#include "confdefs.h"
  2310. ! #include <sys/types.h>' > conftest.c
  2311. ! eval "$CPP conftest.c > conftest.out 2>&1"
  2312.   if egrep "uid_t" conftest.out >/dev/null 2>&1; then
  2313.     :
  2314.   else
  2315. --- 1262,1271 ----
  2316.     PROGS="$PROGS df" LIBOBJS="$LIBOBJS fsusage.o mountlist.o"
  2317.   fi
  2318.   
  2319. ! test -n "$silent" || /bin/echo "checking for uid_t in sys/types.h"
  2320. ! /bin/echo '#include "confdefs.h"
  2321. ! #include <sys/types.h>' > conftest.${ac_ext}
  2322. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  2323.   if egrep "uid_t" conftest.out >/dev/null 2>&1; then
  2324.     :
  2325.   else
  2326. ***************
  2327. *** 1054,1084 ****
  2328.     
  2329.   {
  2330.   test -n "$verbose" && \
  2331. ! echo "    defining" uid_t to be int
  2332. ! echo "#define" uid_t int >> confdefs.h
  2333.   DEFS="$DEFS -Duid_t=int"
  2334. ! SEDDEFS="${SEDDEFS}\${SEDdA}uid_t\${SEDdB}uid_t\${SEDdC}int\${SEDdD}
  2335. ! \${SEDuA}uid_t\${SEDuB}uid_t\${SEDuC}int\${SEDuD}
  2336. ! \${SEDeA}uid_t\${SEDeB}uid_t\${SEDeC}int\${SEDeD}
  2337.   "
  2338.   }
  2339.    
  2340.   {
  2341.   test -n "$verbose" && \
  2342. ! echo "    defining" gid_t to be int
  2343. ! echo "#define" gid_t int >> confdefs.h
  2344.   DEFS="$DEFS -Dgid_t=int"
  2345. ! SEDDEFS="${SEDDEFS}\${SEDdA}gid_t\${SEDdB}gid_t\${SEDdC}int\${SEDdD}
  2346. ! \${SEDuA}gid_t\${SEDuB}gid_t\${SEDuC}int\${SEDuD}
  2347. ! \${SEDeA}gid_t\${SEDeB}gid_t\${SEDeC}int\${SEDeD}
  2348.   "
  2349.   }
  2350.   
  2351.   fi
  2352.   rm -f conftest*
  2353.   
  2354. ! echo checking for type of array argument to getgroups
  2355. ! prog='/* Thanks to Mike Rendell for this test.  */
  2356.   #include <sys/types.h>
  2357.   #define NGID 256
  2358.   #undef MAX
  2359. --- 1273,1303 ----
  2360.     
  2361.   {
  2362.   test -n "$verbose" && \
  2363. ! /bin/echo "    defining" uid_t to be "int"
  2364. ! /bin/echo "#define" uid_t "int" >> confdefs.h
  2365.   DEFS="$DEFS -Duid_t=int"
  2366. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}uid_t\${ac_dB}uid_t\${ac_dC}int\${ac_dD}
  2367. ! \${ac_uA}uid_t\${ac_uB}uid_t\${ac_uC}int\${ac_uD}
  2368. ! \${ac_eA}uid_t\${ac_eB}uid_t\${ac_eC}int\${ac_eD}
  2369.   "
  2370.   }
  2371.    
  2372.   {
  2373.   test -n "$verbose" && \
  2374. ! /bin/echo "    defining" gid_t to be "int"
  2375. ! /bin/echo "#define" gid_t "int" >> confdefs.h
  2376.   DEFS="$DEFS -Dgid_t=int"
  2377. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}gid_t\${ac_dB}gid_t\${ac_dC}int\${ac_dD}
  2378. ! \${ac_uA}gid_t\${ac_uB}gid_t\${ac_uC}int\${ac_uD}
  2379. ! \${ac_eA}gid_t\${ac_eB}gid_t\${ac_eC}int\${ac_eD}
  2380.   "
  2381.   }
  2382.   
  2383.   fi
  2384.   rm -f conftest*
  2385.   
  2386. ! test -n "$silent" || /bin/echo "checking for type of array argument to getgroups"
  2387. ! ac_prog='/* Thanks to Mike Rendell for this test.  */
  2388.   #include <sys/types.h>
  2389.   #define NGID 256
  2390.   #undef MAX
  2391. ***************
  2392. *** 1098,1165 ****
  2393.        happens when gid_t is short but getgroups modifies an array of ints.  */
  2394.     exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
  2395.   }'
  2396. ! cat > conftest.c <<EOF
  2397.   #include "confdefs.h"
  2398. ! $prog
  2399.   EOF
  2400. ! eval $compile
  2401.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2402. -   rm -rf conftest*
  2403.     
  2404.   {
  2405.   test -n "$verbose" && \
  2406. ! echo "    defining" GETGROUPS_T to be gid_t
  2407. ! echo "#define" GETGROUPS_T gid_t >> confdefs.h
  2408.   DEFS="$DEFS -DGETGROUPS_T=gid_t"
  2409. ! SEDDEFS="${SEDDEFS}\${SEDdA}GETGROUPS_T\${SEDdB}GETGROUPS_T\${SEDdC}gid_t\${SEDdD}
  2410. ! \${SEDuA}GETGROUPS_T\${SEDuB}GETGROUPS_T\${SEDuC}gid_t\${SEDuD}
  2411. ! \${SEDeA}GETGROUPS_T\${SEDeB}GETGROUPS_T\${SEDeC}gid_t\${SEDeD}
  2412.   "
  2413.   }
  2414.   
  2415.   
  2416.   else
  2417. -   rm -rf conftest*
  2418.     
  2419.   {
  2420.   test -n "$verbose" && \
  2421. ! echo "    defining" GETGROUPS_T to be int
  2422. ! echo "#define" GETGROUPS_T int >> confdefs.h
  2423.   DEFS="$DEFS -DGETGROUPS_T=int"
  2424. ! SEDDEFS="${SEDDEFS}\${SEDdA}GETGROUPS_T\${SEDdB}GETGROUPS_T\${SEDdC}int\${SEDdD}
  2425. ! \${SEDuA}GETGROUPS_T\${SEDuB}GETGROUPS_T\${SEDuC}int\${SEDuD}
  2426. ! \${SEDeA}GETGROUPS_T\${SEDeB}GETGROUPS_T\${SEDeC}int\${SEDeD}
  2427.   "
  2428.   }
  2429.   
  2430.   fi
  2431. ! rm -f conftest*
  2432.   
  2433. ! echo checking integer size
  2434. ! cat > conftest.c <<EOF
  2435.   #include "confdefs.h"
  2436. ! main() { exit(sizeof(int) != 2); }
  2437.   EOF
  2438. ! eval $compile
  2439.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2440. !   rm -rf conftest*
  2441. !   
  2442.   {
  2443.   test -n "$verbose" && \
  2444. ! echo "    defining INT_16_BITS"
  2445. ! echo "#define" INT_16_BITS 1 >> confdefs.h
  2446. ! DEFS="$DEFS -DINT_16_BITS=1"
  2447. ! SEDDEFS="${SEDDEFS}\${SEDdA}INT_16_BITS\${SEDdB}INT_16_BITS\${SEDdC}1\${SEDdD}
  2448. ! \${SEDuA}INT_16_BITS\${SEDuB}INT_16_BITS\${SEDuC}1\${SEDuD}
  2449. ! \${SEDeA}INT_16_BITS\${SEDeB}INT_16_BITS\${SEDeC}1\${SEDeD}
  2450.   "
  2451.   }
  2452.   
  2453. ! fi
  2454. ! rm -f conftest*
  2455. ! prog='/* Ultrix mips cc rejects this.  */
  2456.   typedef int charset[2]; const charset x;
  2457.   /* SunOS 4.1.1 cc rejects this.  */
  2458.   char const *const *ccp;
  2459. --- 1317,1389 ----
  2460.        happens when gid_t is short but getgroups modifies an array of ints.  */
  2461.     exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
  2462.   }'
  2463. ! cat > conftest.${ac_ext} <<EOF
  2464.   #include "confdefs.h"
  2465. ! $ac_prog
  2466.   EOF
  2467. ! eval $ac_compile
  2468.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2469.     
  2470.   {
  2471.   test -n "$verbose" && \
  2472. ! /bin/echo "    defining" GETGROUPS_T to be "gid_t"
  2473. ! /bin/echo "#define" GETGROUPS_T "gid_t" >> confdefs.h
  2474.   DEFS="$DEFS -DGETGROUPS_T=gid_t"
  2475. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}GETGROUPS_T\${ac_dB}GETGROUPS_T\${ac_dC}gid_t\${ac_dD}
  2476. ! \${ac_uA}GETGROUPS_T\${ac_uB}GETGROUPS_T\${ac_uC}gid_t\${ac_uD}
  2477. ! \${ac_eA}GETGROUPS_T\${ac_eB}GETGROUPS_T\${ac_eC}gid_t\${ac_eD}
  2478.   "
  2479.   }
  2480.   
  2481.   
  2482.   else
  2483.     
  2484.   {
  2485.   test -n "$verbose" && \
  2486. ! /bin/echo "    defining" GETGROUPS_T to be "int"
  2487. ! /bin/echo "#define" GETGROUPS_T "int" >> confdefs.h
  2488.   DEFS="$DEFS -DGETGROUPS_T=int"
  2489. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}GETGROUPS_T\${ac_dB}GETGROUPS_T\${ac_dC}int\${ac_dD}
  2490. ! \${ac_uA}GETGROUPS_T\${ac_uB}GETGROUPS_T\${ac_uC}int\${ac_uD}
  2491. ! \${ac_eA}GETGROUPS_T\${ac_eB}GETGROUPS_T\${ac_eC}int\${ac_eD}
  2492.   "
  2493.   }
  2494.   
  2495.   fi
  2496. ! rm -fr conftest*
  2497.   
  2498. ! test -n "$silent" || /bin/echo "checking size of int"
  2499. ! ac_size=0
  2500. ! cat > conftest.${ac_ext} <<EOF
  2501.   #include "confdefs.h"
  2502. ! #include <stdio.h>
  2503. ! main()
  2504. ! {
  2505. !   FILE *f=fopen("conftestval", "w");
  2506. !   if (!f) exit(1);
  2507. !   fprintf(f, "%d\n", sizeof(int));
  2508. !   exit(0);
  2509. ! }
  2510.   EOF
  2511. ! eval $ac_compile
  2512.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2513. !   ac_size=`cat conftestval`
  2514. ! fi
  2515. ! rm -fr conftest*
  2516.   {
  2517.   test -n "$verbose" && \
  2518. ! /bin/echo "    defining" SIZEOF_INT to be "$ac_size"
  2519. ! /bin/echo "#define" SIZEOF_INT "$ac_size" >> confdefs.h
  2520. ! DEFS="$DEFS -DSIZEOF_INT=$ac_size"
  2521. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_INT\${ac_dB}SIZEOF_INT\${ac_dC}$ac_size\${ac_dD}
  2522. ! \${ac_uA}SIZEOF_INT\${ac_uB}SIZEOF_INT\${ac_uC}$ac_size\${ac_uD}
  2523. ! \${ac_eA}SIZEOF_INT\${ac_eB}SIZEOF_INT\${ac_eC}$ac_size\${ac_eD}
  2524.   "
  2525.   }
  2526.   
  2527. ! ac_prog='/* Ultrix mips cc rejects this.  */
  2528.   typedef int charset[2]; const charset x;
  2529.   /* SunOS 4.1.1 cc rejects this.  */
  2530.   char const *const *ccp;
  2531. ***************
  2532. *** 1193,1244 ****
  2533.        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2534.     struct s { int j; const int *ap[3]; };
  2535.     struct s *b; b->j = 5;
  2536.   }'
  2537. ! echo checking for lack of working const
  2538. ! cat > conftest.c <<EOF
  2539.   #include "confdefs.h"
  2540.   
  2541. ! int main() { exit(0); }
  2542. ! int t() { $prog }
  2543.   EOF
  2544. ! if eval $compile; then
  2545.     :
  2546.   else
  2547.     rm -rf conftest*
  2548.     
  2549.   {
  2550.   test -n "$verbose" && \
  2551. ! echo "    defining" const to be empty
  2552. ! echo "#define" const  >> confdefs.h
  2553.   DEFS="$DEFS -Dconst="
  2554. ! SEDDEFS="${SEDDEFS}\${SEDdA}const\${SEDdB}const\${SEDdC}\${SEDdD}
  2555. ! \${SEDuA}const\${SEDuB}const\${SEDuC}\${SEDuD}
  2556. ! \${SEDeA}const\${SEDeB}const\${SEDeC}\${SEDeD}
  2557.   "
  2558.   }
  2559.   
  2560.   fi
  2561.   rm -f conftest*
  2562.   
  2563. ! echo checking for ANSI C header files
  2564. ! cat > conftest.c <<EOF
  2565.   #include "confdefs.h"
  2566.   #include <stdlib.h>
  2567.   #include <stdarg.h>
  2568.   #include <string.h>
  2569.   #include <float.h>
  2570.   EOF
  2571. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2572. ! if test -z "$err"; then
  2573.     rm -rf conftest*
  2574.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2575. ! echo '#include "confdefs.h"
  2576. ! #include <string.h>' > conftest.c
  2577. ! eval "$CPP conftest.c > conftest.out 2>&1"
  2578.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  2579.     rm -rf conftest*
  2580.     # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2581. ! cat > conftest.c <<EOF
  2582.   #include "confdefs.h"
  2583.   #include <ctype.h>
  2584.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2585. --- 1417,1473 ----
  2586.        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2587.     struct s { int j; const int *ap[3]; };
  2588.     struct s *b; b->j = 5;
  2589. + }
  2590. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2591. +   const int foo = 10;
  2592.   }'
  2593. ! test -n "$silent" || /bin/echo "checking for lack of working const"
  2594. ! cat > conftest.${ac_ext} <<EOF
  2595.   #include "confdefs.h"
  2596.   
  2597. ! int main() { return 0; }
  2598. ! int t() { $ac_prog; return 0; }
  2599.   EOF
  2600. ! if eval $ac_compile; then
  2601.     :
  2602.   else
  2603.     rm -rf conftest*
  2604.     
  2605.   {
  2606.   test -n "$verbose" && \
  2607. ! /bin/echo "    defining" const to be empty
  2608. ! /bin/echo "#define" const "" >> confdefs.h
  2609.   DEFS="$DEFS -Dconst="
  2610. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}const\${ac_dB}const\${ac_dC}\${ac_dD}
  2611. ! \${ac_uA}const\${ac_uB}const\${ac_uC}\${ac_uD}
  2612. ! \${ac_eA}const\${ac_eB}const\${ac_eC}\${ac_eD}
  2613.   "
  2614.   }
  2615.   
  2616.   fi
  2617.   rm -f conftest*
  2618.   
  2619. ! test -n "$silent" || /bin/echo "checking for ANSI C header files"
  2620. ! cat > conftest.${ac_ext} <<EOF
  2621.   #include "confdefs.h"
  2622.   #include <stdlib.h>
  2623.   #include <stdarg.h>
  2624.   #include <string.h>
  2625.   #include <float.h>
  2626.   EOF
  2627. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2628. ! # the parens.
  2629. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2630. ! if test -z "$ac_err"; then
  2631.     rm -rf conftest*
  2632.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2633. ! /bin/echo '#include "confdefs.h"
  2634. ! #include <string.h>' > conftest.${ac_ext}
  2635. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  2636.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  2637.     rm -rf conftest*
  2638.     # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2639. ! cat > conftest.${ac_ext} <<EOF
  2640.   #include "confdefs.h"
  2641.   #include <ctype.h>
  2642.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2643. ***************
  2644. *** 1249,1266 ****
  2645.   exit (0); }
  2646.   
  2647.   EOF
  2648. ! eval $compile
  2649.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2650.     rm -rf conftest*
  2651.     
  2652.   {
  2653.   test -n "$verbose" && \
  2654. ! echo "    defining STDC_HEADERS"
  2655. ! echo "#define" STDC_HEADERS 1 >> confdefs.h
  2656.   DEFS="$DEFS -DSTDC_HEADERS=1"
  2657. ! SEDDEFS="${SEDDEFS}\${SEDdA}STDC_HEADERS\${SEDdB}STDC_HEADERS\${SEDdC}1\${SEDdD}
  2658. ! \${SEDuA}STDC_HEADERS\${SEDuB}STDC_HEADERS\${SEDuC}1\${SEDuD}
  2659. ! \${SEDeA}STDC_HEADERS\${SEDeB}STDC_HEADERS\${SEDeC}1\${SEDeD}
  2660.   "
  2661.   }
  2662.   
  2663. --- 1478,1500 ----
  2664.   exit (0); }
  2665.   
  2666.   EOF
  2667. ! eval $ac_compile
  2668.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2669. +   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2670. + /bin/echo '#include "confdefs.h"
  2671. + #include <stdlib.h>' > conftest.${ac_ext}
  2672. + eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  2673. + if egrep "free" conftest.out >/dev/null 2>&1; then
  2674.     rm -rf conftest*
  2675.     
  2676.   {
  2677.   test -n "$verbose" && \
  2678. ! /bin/echo "    defining STDC_HEADERS"
  2679. ! /bin/echo "#define" STDC_HEADERS "1" >> confdefs.h
  2680.   DEFS="$DEFS -DSTDC_HEADERS=1"
  2681. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
  2682. ! \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
  2683. ! \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
  2684.   "
  2685.   }
  2686.   
  2687. ***************
  2688. *** 1268,1273 ****
  2689. --- 1502,1511 ----
  2690.   fi
  2691.   rm -f conftest*
  2692.   
  2693. + fi
  2694. + rm -fr conftest*
  2695.   fi
  2696.   rm -f conftest*
  2697.   
  2698. ***************
  2699. *** 1275,1327 ****
  2700.   fi
  2701.   rm -f conftest*
  2702.   
  2703. ! echo checking for struct tm in time.h
  2704. ! cat > conftest.c <<EOF
  2705.   #include "confdefs.h"
  2706.   #include <sys/types.h>
  2707.   #include <time.h>
  2708. ! int main() { exit(0); }
  2709. ! int t() { struct tm *tp; tp->tm_sec; }
  2710.   EOF
  2711. ! if eval $compile; then
  2712.     :
  2713.   else
  2714.     rm -rf conftest*
  2715.     
  2716.   {
  2717.   test -n "$verbose" && \
  2718. ! echo "    defining TM_IN_SYS_TIME"
  2719. ! echo "#define" TM_IN_SYS_TIME 1 >> confdefs.h
  2720.   DEFS="$DEFS -DTM_IN_SYS_TIME=1"
  2721. ! SEDDEFS="${SEDDEFS}\${SEDdA}TM_IN_SYS_TIME\${SEDdB}TM_IN_SYS_TIME\${SEDdC}1\${SEDdD}
  2722. ! \${SEDuA}TM_IN_SYS_TIME\${SEDuB}TM_IN_SYS_TIME\${SEDuC}1\${SEDuD}
  2723. ! \${SEDeA}TM_IN_SYS_TIME\${SEDeB}TM_IN_SYS_TIME\${SEDeC}1\${SEDeD}
  2724.   "
  2725.   }
  2726.   
  2727.   fi
  2728.   rm -f conftest*
  2729.   
  2730. ! echo checking for whether time.h and sys/time.h may both be included
  2731. ! cat > conftest.c <<EOF
  2732.   #include "confdefs.h"
  2733.   #include <sys/types.h>
  2734.   #include <sys/time.h>
  2735.   #include <time.h>
  2736. ! int main() { exit(0); }
  2737. ! int t() { struct tm *tp; }
  2738.   EOF
  2739. ! if eval $compile; then
  2740.     rm -rf conftest*
  2741.     
  2742.   {
  2743.   test -n "$verbose" && \
  2744. ! echo "    defining TIME_WITH_SYS_TIME"
  2745. ! echo "#define" TIME_WITH_SYS_TIME 1 >> confdefs.h
  2746.   DEFS="$DEFS -DTIME_WITH_SYS_TIME=1"
  2747. ! SEDDEFS="${SEDDEFS}\${SEDdA}TIME_WITH_SYS_TIME\${SEDdB}TIME_WITH_SYS_TIME\${SEDdC}1\${SEDdD}
  2748. ! \${SEDuA}TIME_WITH_SYS_TIME\${SEDuB}TIME_WITH_SYS_TIME\${SEDuC}1\${SEDuD}
  2749. ! \${SEDeA}TIME_WITH_SYS_TIME\${SEDeB}TIME_WITH_SYS_TIME\${SEDeC}1\${SEDeD}
  2750.   "
  2751.   }
  2752.   
  2753. --- 1513,1565 ----
  2754.   fi
  2755.   rm -f conftest*
  2756.   
  2757. ! test -n "$silent" || /bin/echo "checking for struct tm in time.h"
  2758. ! cat > conftest.${ac_ext} <<EOF
  2759.   #include "confdefs.h"
  2760.   #include <sys/types.h>
  2761.   #include <time.h>
  2762. ! int main() { return 0; }
  2763. ! int t() { struct tm *tp; tp->tm_sec;; return 0; }
  2764.   EOF
  2765. ! if eval $ac_compile; then
  2766.     :
  2767.   else
  2768.     rm -rf conftest*
  2769.     
  2770.   {
  2771.   test -n "$verbose" && \
  2772. ! /bin/echo "    defining TM_IN_SYS_TIME"
  2773. ! /bin/echo "#define" TM_IN_SYS_TIME "1" >> confdefs.h
  2774.   DEFS="$DEFS -DTM_IN_SYS_TIME=1"
  2775. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}TM_IN_SYS_TIME\${ac_dB}TM_IN_SYS_TIME\${ac_dC}1\${ac_dD}
  2776. ! \${ac_uA}TM_IN_SYS_TIME\${ac_uB}TM_IN_SYS_TIME\${ac_uC}1\${ac_uD}
  2777. ! \${ac_eA}TM_IN_SYS_TIME\${ac_eB}TM_IN_SYS_TIME\${ac_eC}1\${ac_eD}
  2778.   "
  2779.   }
  2780.   
  2781.   fi
  2782.   rm -f conftest*
  2783.   
  2784. ! test -n "$silent" || /bin/echo "checking for whether time.h and sys/time.h may both be included"
  2785. ! cat > conftest.${ac_ext} <<EOF
  2786.   #include "confdefs.h"
  2787.   #include <sys/types.h>
  2788.   #include <sys/time.h>
  2789.   #include <time.h>
  2790. ! int main() { return 0; }
  2791. ! int t() { struct tm *tp;; return 0; }
  2792.   EOF
  2793. ! if eval $ac_compile; then
  2794.     rm -rf conftest*
  2795.     
  2796.   {
  2797.   test -n "$verbose" && \
  2798. ! /bin/echo "    defining TIME_WITH_SYS_TIME"
  2799. ! /bin/echo "#define" TIME_WITH_SYS_TIME "1" >> confdefs.h
  2800.   DEFS="$DEFS -DTIME_WITH_SYS_TIME=1"
  2801. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}TIME_WITH_SYS_TIME\${ac_dB}TIME_WITH_SYS_TIME\${ac_dC}1\${ac_dD}
  2802. ! \${ac_uA}TIME_WITH_SYS_TIME\${ac_uB}TIME_WITH_SYS_TIME\${ac_uC}1\${ac_uD}
  2803. ! \${ac_eA}TIME_WITH_SYS_TIME\${ac_eB}TIME_WITH_SYS_TIME\${ac_eC}1\${ac_eD}
  2804.   "
  2805.   }
  2806.   
  2807. ***************
  2808. *** 1329,1336 ****
  2809.   fi
  2810.   rm -f conftest*
  2811.   
  2812. ! echo checking for broken stat file mode macros
  2813. ! cat > conftest.c <<EOF
  2814.   #include "confdefs.h"
  2815.   #include <sys/types.h>
  2816.   #include <sys/stat.h>
  2817. --- 1567,1574 ----
  2818.   fi
  2819.   rm -f conftest*
  2820.   
  2821. ! test -n "$silent" || /bin/echo "checking for broken stat file mode macros"
  2822. ! cat > conftest.${ac_ext} <<EOF
  2823.   #include "confdefs.h"
  2824.   #include <sys/types.h>
  2825.   #include <sys/stat.h>
  2826. ***************
  2827. *** 1356,1373 ****
  2828.   #endif /* S_ISSOCK */
  2829.   
  2830.   EOF
  2831. ! eval "$CPP conftest.c > conftest.out 2>&1"
  2832.   if egrep "You lose" conftest.out >/dev/null 2>&1; then
  2833.     rm -rf conftest*
  2834.     
  2835.   {
  2836.   test -n "$verbose" && \
  2837. ! echo "    defining STAT_MACROS_BROKEN"
  2838. ! echo "#define" STAT_MACROS_BROKEN 1 >> confdefs.h
  2839.   DEFS="$DEFS -DSTAT_MACROS_BROKEN=1"
  2840. ! SEDDEFS="${SEDDEFS}\${SEDdA}STAT_MACROS_BROKEN\${SEDdB}STAT_MACROS_BROKEN\${SEDdC}1\${SEDdD}
  2841. ! \${SEDuA}STAT_MACROS_BROKEN\${SEDuB}STAT_MACROS_BROKEN\${SEDuC}1\${SEDuD}
  2842. ! \${SEDeA}STAT_MACROS_BROKEN\${SEDeB}STAT_MACROS_BROKEN\${SEDeC}1\${SEDeD}
  2843.   "
  2844.   }
  2845.   
  2846. --- 1594,1611 ----
  2847.   #endif /* S_ISSOCK */
  2848.   
  2849.   EOF
  2850. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  2851.   if egrep "You lose" conftest.out >/dev/null 2>&1; then
  2852.     rm -rf conftest*
  2853.     
  2854.   {
  2855.   test -n "$verbose" && \
  2856. ! /bin/echo "    defining STAT_MACROS_BROKEN"
  2857. ! /bin/echo "#define" STAT_MACROS_BROKEN "1" >> confdefs.h
  2858.   DEFS="$DEFS -DSTAT_MACROS_BROKEN=1"
  2859. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STAT_MACROS_BROKEN\${ac_dB}STAT_MACROS_BROKEN\${ac_dC}1\${ac_dD}
  2860. ! \${ac_uA}STAT_MACROS_BROKEN\${ac_uB}STAT_MACROS_BROKEN\${ac_uC}1\${ac_uD}
  2861. ! \${ac_eA}STAT_MACROS_BROKEN\${ac_eB}STAT_MACROS_BROKEN\${ac_eC}1\${ac_eD}
  2862.   "
  2863.   }
  2864.   
  2865. ***************
  2866. *** 1375,1400 ****
  2867.   fi
  2868.   rm -f conftest*
  2869.   
  2870. ! for hdr in string.h fcntl.h limits.h sys/time.h errno.h unistd.h
  2871.   do
  2872. ! trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  2873. ! echo checking for ${hdr}
  2874. ! cat > conftest.c <<EOF
  2875.   #include "confdefs.h"
  2876. ! #include <${hdr}>
  2877.   EOF
  2878. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2879. ! if test -z "$err"; then
  2880.     rm -rf conftest*
  2881.     
  2882.   {
  2883.   test -n "$verbose" && \
  2884. ! echo "    defining ${trhdr}"
  2885. ! echo "#define" ${trhdr} 1 >> confdefs.h
  2886. ! DEFS="$DEFS -D${trhdr}=1"
  2887. ! SEDDEFS="${SEDDEFS}\${SEDdA}${trhdr}\${SEDdB}${trhdr}\${SEDdC}1\${SEDdD}
  2888. ! \${SEDuA}${trhdr}\${SEDuB}${trhdr}\${SEDuC}1\${SEDuD}
  2889. ! \${SEDeA}${trhdr}\${SEDeB}${trhdr}\${SEDeC}1\${SEDeD}
  2890.   "
  2891.   }
  2892.   
  2893. --- 1613,1640 ----
  2894.   fi
  2895.   rm -f conftest*
  2896.   
  2897. ! for ac_hdr in string.h fcntl.h limits.h sys/time.h errno.h unistd.h
  2898.   do
  2899. ! ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  2900. ! test -n "$silent" || /bin/echo "checking for ${ac_hdr}"
  2901. ! cat > conftest.${ac_ext} <<EOF
  2902.   #include "confdefs.h"
  2903. ! #include <${ac_hdr}>
  2904.   EOF
  2905. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2906. ! # the parens.
  2907. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2908. ! if test -z "$ac_err"; then
  2909.     rm -rf conftest*
  2910.     
  2911.   {
  2912.   test -n "$verbose" && \
  2913. ! /bin/echo "    defining ${ac_tr_hdr}"
  2914. ! /bin/echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  2915. ! DEFS="$DEFS -D${ac_tr_hdr}=1"
  2916. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
  2917. ! \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
  2918. ! \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
  2919.   "
  2920.   }
  2921.   
  2922. ***************
  2923. *** 1403,1468 ****
  2924.   rm -f conftest*
  2925.   done
  2926.   
  2927. ! for func in fnmatch mkdir mktime stpcpy strdup strstr rename
  2928.   do
  2929. ! echo checking for ${func}
  2930. ! cat > conftest.c <<EOF
  2931.   #include "confdefs.h"
  2932.   #include <ctype.h>
  2933. ! int main() { exit(0); }
  2934.   int t() { 
  2935.   /* The GNU C library defines this for functions which it implements
  2936.       to always fail with ENOSYS.  Some functions are actually named
  2937.       something starting with __ and the normal name is an alias.  */
  2938. ! #if defined (__stub_${func}) || defined (__stub___${func})
  2939.   choke me
  2940.   #else
  2941.   /* Override any gcc2 internal prototype to avoid an error.  */
  2942. ! extern char ${func}(); ${func}();
  2943.   #endif
  2944. !  }
  2945.   EOF
  2946. ! if eval $compile; then
  2947.     :
  2948.   else
  2949.     rm -rf conftest*
  2950. !   LIBOBJS="$LIBOBJS ${func}.o"
  2951. ! test -n "$verbose" && echo "    using ${func}.o instead"
  2952.   fi
  2953.   rm -f conftest*
  2954.   
  2955.   done
  2956.   
  2957. ! for func in strerror ftime getcwd mkfifo memcpy bcopy gettimeofday
  2958.   do
  2959. ! trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
  2960. ! echo checking for ${func}
  2961. ! cat > conftest.c <<EOF
  2962.   #include "confdefs.h"
  2963.   #include <ctype.h>
  2964. ! int main() { exit(0); }
  2965.   int t() { 
  2966.   /* The GNU C library defines this for functions which it implements
  2967.       to always fail with ENOSYS.  Some functions are actually named
  2968.       something starting with __ and the normal name is an alias.  */
  2969. ! #if defined (__stub_${func}) || defined (__stub___${func})
  2970.   choke me
  2971.   #else
  2972.   /* Override any gcc2 internal prototype to avoid an error.  */
  2973. ! extern char ${func}(); ${func}();
  2974.   #endif
  2975. !  }
  2976.   EOF
  2977. ! if eval $compile; then
  2978.     rm -rf conftest*
  2979.     {
  2980.   test -n "$verbose" && \
  2981. ! echo "    defining ${trfunc}"
  2982. ! echo "#define" ${trfunc} 1 >> confdefs.h
  2983. ! DEFS="$DEFS -D${trfunc}=1"
  2984. ! SEDDEFS="${SEDDEFS}\${SEDdA}${trfunc}\${SEDdB}${trfunc}\${SEDdC}1\${SEDdD}
  2985. ! \${SEDuA}${trfunc}\${SEDuB}${trfunc}\${SEDuC}1\${SEDuD}
  2986. ! \${SEDeA}${trfunc}\${SEDeB}${trfunc}\${SEDeC}1\${SEDeD}
  2987.   "
  2988.   }
  2989.   
  2990. --- 1643,1708 ----
  2991.   rm -f conftest*
  2992.   done
  2993.   
  2994. ! for ac_func in fnmatch mkdir mktime stpcpy strdup strstr rename
  2995.   do
  2996. ! test -n "$silent" || /bin/echo "checking for ${ac_func}"
  2997. ! cat > conftest.${ac_ext} <<EOF
  2998.   #include "confdefs.h"
  2999.   #include <ctype.h>
  3000. ! int main() { return 0; }
  3001.   int t() { 
  3002.   /* The GNU C library defines this for functions which it implements
  3003.       to always fail with ENOSYS.  Some functions are actually named
  3004.       something starting with __ and the normal name is an alias.  */
  3005. ! #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  3006.   choke me
  3007.   #else
  3008.   /* Override any gcc2 internal prototype to avoid an error.  */
  3009. ! extern char ${ac_func}(); ${ac_func}();
  3010.   #endif
  3011. ! ; return 0; }
  3012.   EOF
  3013. ! if eval $ac_compile; then
  3014.     :
  3015.   else
  3016.     rm -rf conftest*
  3017. !   LIBOBJS="$LIBOBJS ${ac_func}.o"
  3018. ! test -n "$verbose" && /bin/echo "    using ${ac_func}.o instead"
  3019.   fi
  3020.   rm -f conftest*
  3021.   
  3022.   done
  3023.   
  3024. ! for ac_func in strerror ftime getcwd mkfifo memcpy bcopy gettimeofday
  3025.   do
  3026. ! ac_tr_func=HAVE_`/bin/echo $ac_func | tr '[a-z]' '[A-Z]'`
  3027. ! test -n "$silent" || /bin/echo "checking for ${ac_func}"
  3028. ! cat > conftest.${ac_ext} <<EOF
  3029.   #include "confdefs.h"
  3030.   #include <ctype.h>
  3031. ! int main() { return 0; }
  3032.   int t() { 
  3033.   /* The GNU C library defines this for functions which it implements
  3034.       to always fail with ENOSYS.  Some functions are actually named
  3035.       something starting with __ and the normal name is an alias.  */
  3036. ! #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  3037.   choke me
  3038.   #else
  3039.   /* Override any gcc2 internal prototype to avoid an error.  */
  3040. ! extern char ${ac_func}(); ${ac_func}();
  3041.   #endif
  3042. ! ; return 0; }
  3043.   EOF
  3044. ! if eval $ac_compile; then
  3045.     rm -rf conftest*
  3046.     {
  3047.   test -n "$verbose" && \
  3048. ! /bin/echo "    defining ${ac_tr_func}"
  3049. ! /bin/echo "#define" ${ac_tr_func} "1" >> confdefs.h
  3050. ! DEFS="$DEFS -D${ac_tr_func}=1"
  3051. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
  3052. ! \${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
  3053. ! \${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
  3054.   "
  3055.   }
  3056.   
  3057. ***************
  3058. *** 1471,1494 ****
  3059.   rm -f conftest*
  3060.   done
  3061.   
  3062. ! echo checking for ftruncate
  3063. ! cat > conftest.c <<EOF
  3064.   #include "confdefs.h"
  3065.   
  3066. ! int main() { exit(0); }
  3067. ! int t() { ftruncate(); }
  3068.   EOF
  3069. ! if eval $compile; then
  3070.     rm -rf conftest*
  3071.     
  3072.   {
  3073.   test -n "$verbose" && \
  3074. ! echo "    defining HAVE_FTRUNCATE"
  3075. ! echo "#define" HAVE_FTRUNCATE 1 >> confdefs.h
  3076.   DEFS="$DEFS -DHAVE_FTRUNCATE=1"
  3077. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_FTRUNCATE\${SEDdB}HAVE_FTRUNCATE\${SEDdC}1\${SEDdD}
  3078. ! \${SEDuA}HAVE_FTRUNCATE\${SEDuB}HAVE_FTRUNCATE\${SEDuC}1\${SEDuD}
  3079. ! \${SEDeA}HAVE_FTRUNCATE\${SEDeB}HAVE_FTRUNCATE\${SEDeC}1\${SEDeD}
  3080.   "
  3081.   }
  3082.   
  3083. --- 1711,1734 ----
  3084.   rm -f conftest*
  3085.   done
  3086.   
  3087. ! test -n "$silent" || /bin/echo "checking for ftruncate"
  3088. ! cat > conftest.${ac_ext} <<EOF
  3089.   #include "confdefs.h"
  3090.   
  3091. ! int main() { return 0; }
  3092. ! int t() { ftruncate();; return 0; }
  3093.   EOF
  3094. ! if eval $ac_compile; then
  3095.     rm -rf conftest*
  3096.     
  3097.   {
  3098.   test -n "$verbose" && \
  3099. ! /bin/echo "    defining HAVE_FTRUNCATE"
  3100. ! /bin/echo "#define" HAVE_FTRUNCATE "1" >> confdefs.h
  3101.   DEFS="$DEFS -DHAVE_FTRUNCATE=1"
  3102. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_FTRUNCATE\${ac_dB}HAVE_FTRUNCATE\${ac_dC}1\${ac_dD}
  3103. ! \${ac_uA}HAVE_FTRUNCATE\${ac_uB}HAVE_FTRUNCATE\${ac_uC}1\${ac_uD}
  3104. ! \${ac_eA}HAVE_FTRUNCATE\${ac_eB}HAVE_FTRUNCATE\${ac_eC}1\${ac_eD}
  3105.   "
  3106.   }
  3107.   
  3108. ***************
  3109. *** 1500,1528 ****
  3110.   rm -f conftest*
  3111.   
  3112.   if test -n "$ftruncate_missing"; then
  3113. ! echo checking for fcntl emulation of ftruncate
  3114. ! cat > conftest.c <<EOF
  3115.   #include "confdefs.h"
  3116.   #include <sys/types.h>
  3117.   #include <fcntl.h>
  3118. ! int main() { exit(0); }
  3119.   int t() { 
  3120.   #if !defined(F_CHSIZE) && !defined(F_FREESP)
  3121.   chsize();
  3122.   #endif
  3123. !  }
  3124.   EOF
  3125. ! if eval $compile; then
  3126.     rm -rf conftest*
  3127.     
  3128.   {
  3129.   test -n "$verbose" && \
  3130. ! echo "    defining HAVE_FTRUNCATE"
  3131. ! echo "#define" HAVE_FTRUNCATE 1 >> confdefs.h
  3132.   DEFS="$DEFS -DHAVE_FTRUNCATE=1"
  3133. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_FTRUNCATE\${SEDdB}HAVE_FTRUNCATE\${SEDdC}1\${SEDdD}
  3134. ! \${SEDuA}HAVE_FTRUNCATE\${SEDuB}HAVE_FTRUNCATE\${SEDuC}1\${SEDuD}
  3135. ! \${SEDeA}HAVE_FTRUNCATE\${SEDeB}HAVE_FTRUNCATE\${SEDeC}1\${SEDeD}
  3136.   "
  3137.   }
  3138.    LIBOBJS="$LIBOBJS ftruncate.o"
  3139. --- 1740,1768 ----
  3140.   rm -f conftest*
  3141.   
  3142.   if test -n "$ftruncate_missing"; then
  3143. ! test -n "$silent" || /bin/echo "checking for fcntl emulation of ftruncate"
  3144. ! cat > conftest.${ac_ext} <<EOF
  3145.   #include "confdefs.h"
  3146.   #include <sys/types.h>
  3147.   #include <fcntl.h>
  3148. ! int main() { return 0; }
  3149.   int t() { 
  3150.   #if !defined(F_CHSIZE) && !defined(F_FREESP)
  3151.   chsize();
  3152.   #endif
  3153. ! ; return 0; }
  3154.   EOF
  3155. ! if eval $ac_compile; then
  3156.     rm -rf conftest*
  3157.     
  3158.   {
  3159.   test -n "$verbose" && \
  3160. ! /bin/echo "    defining HAVE_FTRUNCATE"
  3161. ! /bin/echo "#define" HAVE_FTRUNCATE "1" >> confdefs.h
  3162.   DEFS="$DEFS -DHAVE_FTRUNCATE=1"
  3163. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_FTRUNCATE\${ac_dB}HAVE_FTRUNCATE\${ac_dC}1\${ac_dD}
  3164. ! \${ac_uA}HAVE_FTRUNCATE\${ac_uB}HAVE_FTRUNCATE\${ac_uC}1\${ac_uD}
  3165. ! \${ac_eA}HAVE_FTRUNCATE\${ac_eB}HAVE_FTRUNCATE\${ac_eC}1\${ac_eD}
  3166.   "
  3167.   }
  3168.    LIBOBJS="$LIBOBJS ftruncate.o"
  3169. ***************
  3170. *** 1538,1590 ****
  3171.     ;;
  3172.   esac
  3173.   
  3174. ! echo checking for vprintf
  3175. ! cat > conftest.c <<EOF
  3176.   #include "confdefs.h"
  3177.   
  3178. ! int main() { exit(0); }
  3179. ! int t() { vprintf(); }
  3180.   EOF
  3181. ! if eval $compile; then
  3182.     rm -rf conftest*
  3183.     
  3184.   {
  3185.   test -n "$verbose" && \
  3186. ! echo "    defining HAVE_VPRINTF"
  3187. ! echo "#define" HAVE_VPRINTF 1 >> confdefs.h
  3188.   DEFS="$DEFS -DHAVE_VPRINTF=1"
  3189. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_VPRINTF\${SEDdB}HAVE_VPRINTF\${SEDdC}1\${SEDdD}
  3190. ! \${SEDuA}HAVE_VPRINTF\${SEDuB}HAVE_VPRINTF\${SEDuC}1\${SEDuD}
  3191. ! \${SEDeA}HAVE_VPRINTF\${SEDeB}HAVE_VPRINTF\${SEDeC}1\${SEDeD}
  3192.   "
  3193.   }
  3194.   
  3195.   
  3196.   else
  3197.     rm -rf conftest*
  3198. !   vprintf_missing=1
  3199.   fi
  3200.   rm -f conftest*
  3201.   
  3202. ! if test -n "$vprintf_missing"; then
  3203. ! echo checking for _doprnt
  3204. ! cat > conftest.c <<EOF
  3205.   #include "confdefs.h"
  3206.   
  3207. ! int main() { exit(0); }
  3208. ! int t() { _doprnt(); }
  3209.   EOF
  3210. ! if eval $compile; then
  3211.     rm -rf conftest*
  3212.     
  3213.   {
  3214.   test -n "$verbose" && \
  3215. ! echo "    defining HAVE_DOPRNT"
  3216. ! echo "#define" HAVE_DOPRNT 1 >> confdefs.h
  3217.   DEFS="$DEFS -DHAVE_DOPRNT=1"
  3218. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_DOPRNT\${SEDdB}HAVE_DOPRNT\${SEDdC}1\${SEDdD}
  3219. ! \${SEDuA}HAVE_DOPRNT\${SEDuB}HAVE_DOPRNT\${SEDuC}1\${SEDuD}
  3220. ! \${SEDeA}HAVE_DOPRNT\${SEDeB}HAVE_DOPRNT\${SEDeC}1\${SEDeD}
  3221.   "
  3222.   }
  3223.   
  3224. --- 1778,1830 ----
  3225.     ;;
  3226.   esac
  3227.   
  3228. ! test -n "$silent" || /bin/echo "checking for vprintf"
  3229. ! cat > conftest.${ac_ext} <<EOF
  3230.   #include "confdefs.h"
  3231.   
  3232. ! int main() { return 0; }
  3233. ! int t() { vprintf();; return 0; }
  3234.   EOF
  3235. ! if eval $ac_compile; then
  3236.     rm -rf conftest*
  3237.     
  3238.   {
  3239.   test -n "$verbose" && \
  3240. ! /bin/echo "    defining HAVE_VPRINTF"
  3241. ! /bin/echo "#define" HAVE_VPRINTF "1" >> confdefs.h
  3242.   DEFS="$DEFS -DHAVE_VPRINTF=1"
  3243. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_VPRINTF\${ac_dB}HAVE_VPRINTF\${ac_dC}1\${ac_dD}
  3244. ! \${ac_uA}HAVE_VPRINTF\${ac_uB}HAVE_VPRINTF\${ac_uC}1\${ac_uD}
  3245. ! \${ac_eA}HAVE_VPRINTF\${ac_eB}HAVE_VPRINTF\${ac_eC}1\${ac_eD}
  3246.   "
  3247.   }
  3248.   
  3249.   
  3250.   else
  3251.     rm -rf conftest*
  3252. !   ac_vprintf_missing=1
  3253.   fi
  3254.   rm -f conftest*
  3255.   
  3256. ! if test -n "$ac_vprintf_missing"; then
  3257. ! test -n "$silent" || /bin/echo "checking for _doprnt"
  3258. ! cat > conftest.${ac_ext} <<EOF
  3259.   #include "confdefs.h"
  3260.   
  3261. ! int main() { return 0; }
  3262. ! int t() { _doprnt();; return 0; }
  3263.   EOF
  3264. ! if eval $ac_compile; then
  3265.     rm -rf conftest*
  3266.     
  3267.   {
  3268.   test -n "$verbose" && \
  3269. ! /bin/echo "    defining HAVE_DOPRNT"
  3270. ! /bin/echo "#define" HAVE_DOPRNT "1" >> confdefs.h
  3271.   DEFS="$DEFS -DHAVE_DOPRNT=1"
  3272. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_DOPRNT\${ac_dB}HAVE_DOPRNT\${ac_dC}1\${ac_dD}
  3273. ! \${ac_uA}HAVE_DOPRNT\${ac_uB}HAVE_DOPRNT\${ac_uC}1\${ac_uD}
  3274. ! \${ac_eA}HAVE_DOPRNT\${ac_eB}HAVE_DOPRNT\${ac_eC}1\${ac_eD}
  3275.   "
  3276.   }
  3277.   
  3278. ***************
  3279. *** 1596,1619 ****
  3280.   
  3281.   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  3282.   # for constant arguments.  Useless!
  3283. ! echo checking for working alloca.h
  3284. ! cat > conftest.c <<EOF
  3285.   #include "confdefs.h"
  3286.   #include <alloca.h>
  3287. ! int main() { exit(0); }
  3288. ! int t() { char *p = alloca(2 * sizeof(int)); }
  3289.   EOF
  3290. ! if eval $compile; then
  3291.     rm -rf conftest*
  3292.     
  3293.   {
  3294.   test -n "$verbose" && \
  3295. ! echo "    defining HAVE_ALLOCA_H"
  3296. ! echo "#define" HAVE_ALLOCA_H 1 >> confdefs.h
  3297.   DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  3298. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_ALLOCA_H\${SEDdB}HAVE_ALLOCA_H\${SEDdC}1\${SEDdD}
  3299. ! \${SEDuA}HAVE_ALLOCA_H\${SEDuB}HAVE_ALLOCA_H\${SEDuC}1\${SEDuD}
  3300. ! \${SEDeA}HAVE_ALLOCA_H\${SEDeB}HAVE_ALLOCA_H\${SEDeC}1\${SEDeD}
  3301.   "
  3302.   }
  3303.   
  3304. --- 1836,1859 ----
  3305.   
  3306.   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  3307.   # for constant arguments.  Useless!
  3308. ! test -n "$silent" || /bin/echo "checking for working alloca.h"
  3309. ! cat > conftest.${ac_ext} <<EOF
  3310.   #include "confdefs.h"
  3311.   #include <alloca.h>
  3312. ! int main() { return 0; }
  3313. ! int t() { char *p = alloca(2 * sizeof(int));; return 0; }
  3314.   EOF
  3315. ! if eval $ac_compile; then
  3316.     rm -rf conftest*
  3317.     
  3318.   {
  3319.   test -n "$verbose" && \
  3320. ! /bin/echo "    defining HAVE_ALLOCA_H"
  3321. ! /bin/echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h
  3322.   DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  3323. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA_H\${ac_dB}HAVE_ALLOCA_H\${ac_dC}1\${ac_dD}
  3324. ! \${ac_uA}HAVE_ALLOCA_H\${ac_uB}HAVE_ALLOCA_H\${ac_uC}1\${ac_uD}
  3325. ! \${ac_eA}HAVE_ALLOCA_H\${ac_eB}HAVE_ALLOCA_H\${ac_eC}1\${ac_eD}
  3326.   "
  3327.   }
  3328.   
  3329. ***************
  3330. *** 1621,1627 ****
  3331.   fi
  3332.   rm -f conftest*
  3333.   
  3334. ! decl="#ifdef __GNUC__
  3335.   #define alloca __builtin_alloca
  3336.   #else
  3337.   #if HAVE_ALLOCA_H
  3338. --- 1861,1867 ----
  3339.   fi
  3340.   rm -f conftest*
  3341.   
  3342. ! ac_decl="#ifdef __GNUC__
  3343.   #define alloca __builtin_alloca
  3344.   #else
  3345.   #if HAVE_ALLOCA_H
  3346. ***************
  3347. *** 1635,1653 ****
  3348.   #endif
  3349.   #endif
  3350.   "
  3351. ! echo checking for alloca
  3352. ! cat > conftest.c <<EOF
  3353.   #include "confdefs.h"
  3354. ! $decl
  3355. ! int main() { exit(0); }
  3356. ! int t() { char *p = (char *) alloca(1); }
  3357.   EOF
  3358. ! if eval $compile; then
  3359. !   :
  3360.   else
  3361.     rm -rf conftest*
  3362. !   alloca_missing=1
  3363. ! cat > conftest.c <<EOF
  3364.   #include "confdefs.h"
  3365.   
  3366.   #if defined(CRAY) && ! defined(CRAY2)
  3367. --- 1875,1906 ----
  3368.   #endif
  3369.   #endif
  3370.   "
  3371. ! test -n "$silent" || /bin/echo "checking for alloca"
  3372. ! cat > conftest.${ac_ext} <<EOF
  3373.   #include "confdefs.h"
  3374. ! $ac_decl
  3375. ! int main() { return 0; }
  3376. ! int t() { char *p = (char *) alloca(1);; return 0; }
  3377.   EOF
  3378. ! if eval $ac_compile; then
  3379. !   rm -rf conftest*
  3380. !   
  3381. ! {
  3382. ! test -n "$verbose" && \
  3383. ! /bin/echo "    defining HAVE_ALLOCA"
  3384. ! /bin/echo "#define" HAVE_ALLOCA "1" >> confdefs.h
  3385. ! DEFS="$DEFS -DHAVE_ALLOCA=1"
  3386. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA\${ac_dB}HAVE_ALLOCA\${ac_dC}1\${ac_dD}
  3387. ! \${ac_uA}HAVE_ALLOCA\${ac_uB}HAVE_ALLOCA\${ac_uC}1\${ac_uD}
  3388. ! \${ac_eA}HAVE_ALLOCA\${ac_eB}HAVE_ALLOCA\${ac_eC}1\${ac_eD}
  3389. ! "
  3390. ! }
  3391.   else
  3392.     rm -rf conftest*
  3393. !   ac_alloca_missing=1
  3394. ! cat > conftest.${ac_ext} <<EOF
  3395.   #include "confdefs.h"
  3396.   
  3397.   #if defined(CRAY) && ! defined(CRAY2)
  3398. ***************
  3399. *** 1657,1670 ****
  3400.   #endif
  3401.   
  3402.   EOF
  3403. ! eval "$CPP conftest.c > conftest.out 2>&1"
  3404.   if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  3405.     rm -rf conftest*
  3406. !   echo checking for _getb67
  3407. ! cat > conftest.c <<EOF
  3408.   #include "confdefs.h"
  3409.   #include <ctype.h>
  3410. ! int main() { exit(0); }
  3411.   int t() { 
  3412.   /* The GNU C library defines this for functions which it implements
  3413.       to always fail with ENOSYS.  Some functions are actually named
  3414. --- 1910,1923 ----
  3415.   #endif
  3416.   
  3417.   EOF
  3418. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  3419.   if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  3420.     rm -rf conftest*
  3421. !   test -n "$silent" || /bin/echo "checking for _getb67"
  3422. ! cat > conftest.${ac_ext} <<EOF
  3423.   #include "confdefs.h"
  3424.   #include <ctype.h>
  3425. ! int main() { return 0; }
  3426.   int t() { 
  3427.   /* The GNU C library defines this for functions which it implements
  3428.       to always fail with ENOSYS.  Some functions are actually named
  3429. ***************
  3430. *** 1675,1703 ****
  3431.   /* Override any gcc2 internal prototype to avoid an error.  */
  3432.   extern char _getb67(); _getb67();
  3433.   #endif
  3434. !  }
  3435.   EOF
  3436. ! if eval $compile; then
  3437.     rm -rf conftest*
  3438.     {
  3439.   test -n "$verbose" && \
  3440. ! echo "    defining" CRAY_STACKSEG_END to be _getb67
  3441. ! echo "#define" CRAY_STACKSEG_END _getb67 >> confdefs.h
  3442.   DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
  3443. ! SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}_getb67\${SEDdD}
  3444. ! \${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}_getb67\${SEDuD}
  3445. ! \${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}_getb67\${SEDeD}
  3446.   "
  3447.   }
  3448.   
  3449.   
  3450.   else
  3451.     rm -rf conftest*
  3452. !   echo checking for GETB67
  3453. ! cat > conftest.c <<EOF
  3454.   #include "confdefs.h"
  3455.   #include <ctype.h>
  3456. ! int main() { exit(0); }
  3457.   int t() { 
  3458.   /* The GNU C library defines this for functions which it implements
  3459.       to always fail with ENOSYS.  Some functions are actually named
  3460. --- 1928,1956 ----
  3461.   /* Override any gcc2 internal prototype to avoid an error.  */
  3462.   extern char _getb67(); _getb67();
  3463.   #endif
  3464. ! ; return 0; }
  3465.   EOF
  3466. ! if eval $ac_compile; then
  3467.     rm -rf conftest*
  3468.     {
  3469.   test -n "$verbose" && \
  3470. ! /bin/echo "    defining" CRAY_STACKSEG_END to be "_getb67"
  3471. ! /bin/echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h
  3472.   DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
  3473. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}_getb67\${ac_dD}
  3474. ! \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}_getb67\${ac_uD}
  3475. ! \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}_getb67\${ac_eD}
  3476.   "
  3477.   }
  3478.   
  3479.   
  3480.   else
  3481.     rm -rf conftest*
  3482. !   test -n "$silent" || /bin/echo "checking for GETB67"
  3483. ! cat > conftest.${ac_ext} <<EOF
  3484.   #include "confdefs.h"
  3485.   #include <ctype.h>
  3486. ! int main() { return 0; }
  3487.   int t() { 
  3488.   /* The GNU C library defines this for functions which it implements
  3489.       to always fail with ENOSYS.  Some functions are actually named
  3490. ***************
  3491. *** 1708,1736 ****
  3492.   /* Override any gcc2 internal prototype to avoid an error.  */
  3493.   extern char GETB67(); GETB67();
  3494.   #endif
  3495. !  }
  3496.   EOF
  3497. ! if eval $compile; then
  3498.     rm -rf conftest*
  3499.     {
  3500.   test -n "$verbose" && \
  3501. ! echo "    defining" CRAY_STACKSEG_END to be GETB67
  3502. ! echo "#define" CRAY_STACKSEG_END GETB67 >> confdefs.h
  3503.   DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
  3504. ! SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}GETB67\${SEDdD}
  3505. ! \${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}GETB67\${SEDuD}
  3506. ! \${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}GETB67\${SEDeD}
  3507.   "
  3508.   }
  3509.   
  3510.   
  3511.   else
  3512.     rm -rf conftest*
  3513. !   echo checking for getb67
  3514. ! cat > conftest.c <<EOF
  3515.   #include "confdefs.h"
  3516.   #include <ctype.h>
  3517. ! int main() { exit(0); }
  3518.   int t() { 
  3519.   /* The GNU C library defines this for functions which it implements
  3520.       to always fail with ENOSYS.  Some functions are actually named
  3521. --- 1961,1989 ----
  3522.   /* Override any gcc2 internal prototype to avoid an error.  */
  3523.   extern char GETB67(); GETB67();
  3524.   #endif
  3525. ! ; return 0; }
  3526.   EOF
  3527. ! if eval $ac_compile; then
  3528.     rm -rf conftest*
  3529.     {
  3530.   test -n "$verbose" && \
  3531. ! /bin/echo "    defining" CRAY_STACKSEG_END to be "GETB67"
  3532. ! /bin/echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h
  3533.   DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
  3534. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}GETB67\${ac_dD}
  3535. ! \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}GETB67\${ac_uD}
  3536. ! \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}GETB67\${ac_eD}
  3537.   "
  3538.   }
  3539.   
  3540.   
  3541.   else
  3542.     rm -rf conftest*
  3543. !   test -n "$silent" || /bin/echo "checking for getb67"
  3544. ! cat > conftest.${ac_ext} <<EOF
  3545.   #include "confdefs.h"
  3546.   #include <ctype.h>
  3547. ! int main() { return 0; }
  3548.   int t() { 
  3549.   /* The GNU C library defines this for functions which it implements
  3550.       to always fail with ENOSYS.  Some functions are actually named
  3551. ***************
  3552. *** 1741,1758 ****
  3553.   /* Override any gcc2 internal prototype to avoid an error.  */
  3554.   extern char getb67(); getb67();
  3555.   #endif
  3556. !  }
  3557.   EOF
  3558. ! if eval $compile; then
  3559.     rm -rf conftest*
  3560.     {
  3561.   test -n "$verbose" && \
  3562. ! echo "    defining" CRAY_STACKSEG_END to be getb67
  3563. ! echo "#define" CRAY_STACKSEG_END getb67 >> confdefs.h
  3564.   DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
  3565. ! SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}getb67\${SEDdD}
  3566. ! \${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}getb67\${SEDuD}
  3567. ! \${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}getb67\${SEDeD}
  3568.   "
  3569.   }
  3570.   
  3571. --- 1994,2011 ----
  3572.   /* Override any gcc2 internal prototype to avoid an error.  */
  3573.   extern char getb67(); getb67();
  3574.   #endif
  3575. ! ; return 0; }
  3576.   EOF
  3577. ! if eval $ac_compile; then
  3578.     rm -rf conftest*
  3579.     {
  3580.   test -n "$verbose" && \
  3581. ! /bin/echo "    defining" CRAY_STACKSEG_END to be "getb67"
  3582. ! /bin/echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h
  3583.   DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
  3584. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}getb67\${ac_dD}
  3585. ! \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}getb67\${ac_uD}
  3586. ! \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}getb67\${ac_eD}
  3587.   "
  3588.   }
  3589.   
  3590. ***************
  3591. *** 1774,1780 ****
  3592.   fi
  3593.   rm -f conftest*
  3594.   
  3595. ! if test -n "$alloca_missing"; then
  3596.     # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  3597.     # that cause trouble.  Some versions do not even contain alloca or
  3598.     # contain a buggy version.  If you still want to use their alloca,
  3599. --- 2027,2033 ----
  3600.   fi
  3601.   rm -f conftest*
  3602.   
  3603. ! if test -n "$ac_alloca_missing"; then
  3604.     # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  3605.     # that cause trouble.  Some versions do not even contain alloca or
  3606.     # contain a buggy version.  If you still want to use their alloca,
  3607. ***************
  3608. *** 1783,1830 ****
  3609.     
  3610.   {
  3611.   test -n "$verbose" && \
  3612. ! echo "    defining C_ALLOCA"
  3613. ! echo "#define" C_ALLOCA 1 >> confdefs.h
  3614.   DEFS="$DEFS -DC_ALLOCA=1"
  3615. ! SEDDEFS="${SEDDEFS}\${SEDdA}C_ALLOCA\${SEDdB}C_ALLOCA\${SEDdC}1\${SEDdD}
  3616. ! \${SEDuA}C_ALLOCA\${SEDuB}C_ALLOCA\${SEDuC}1\${SEDuD}
  3617. ! \${SEDeA}C_ALLOCA\${SEDeB}C_ALLOCA\${SEDeC}1\${SEDeD}
  3618.   "
  3619.   }
  3620.   
  3621.   
  3622. !   echo 'checking stack direction for C alloca'
  3623. !   echo checking whether cross-compiling
  3624.   # If we cannot run a trivial program, we must be cross compiling.
  3625. ! cat > conftest.c <<EOF
  3626.   #include "confdefs.h"
  3627.   main(){exit(0);}
  3628.   EOF
  3629. ! eval $compile
  3630.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3631.     :
  3632.   else
  3633. -   rm -rf conftest*
  3634.     cross_compiling=1
  3635.   fi
  3636. ! rm -f conftest*
  3637.   
  3638.   if test -n "$cross_compiling"
  3639.   then
  3640.     
  3641.   {
  3642.   test -n "$verbose" && \
  3643. ! echo "    defining" STACK_DIRECTION to be 0
  3644. ! echo "#define" STACK_DIRECTION 0 >> confdefs.h
  3645.   DEFS="$DEFS -DSTACK_DIRECTION=0"
  3646. ! SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}0\${SEDdD}
  3647. ! \${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}0\${SEDuD}
  3648. ! \${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}0\${SEDeD}
  3649.   "
  3650.   }
  3651.   
  3652.   else
  3653. ! cat > conftest.c <<EOF
  3654.   #include "confdefs.h"
  3655.   find_stack_direction ()
  3656.   {
  3657. --- 2036,2082 ----
  3658.     
  3659.   {
  3660.   test -n "$verbose" && \
  3661. ! /bin/echo "    defining C_ALLOCA"
  3662. ! /bin/echo "#define" C_ALLOCA "1" >> confdefs.h
  3663.   DEFS="$DEFS -DC_ALLOCA=1"
  3664. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}C_ALLOCA\${ac_dB}C_ALLOCA\${ac_dC}1\${ac_dD}
  3665. ! \${ac_uA}C_ALLOCA\${ac_uB}C_ALLOCA\${ac_uC}1\${ac_uD}
  3666. ! \${ac_eA}C_ALLOCA\${ac_eB}C_ALLOCA\${ac_eC}1\${ac_eD}
  3667.   "
  3668.   }
  3669.   
  3670.   
  3671. !   test -n "$silent" || /bin/echo "checking stack direction for C alloca"
  3672. !   test -n "$silent" || /bin/echo "checking whether cross-compiling"
  3673.   # If we cannot run a trivial program, we must be cross compiling.
  3674. ! cat > conftest.${ac_ext} <<EOF
  3675.   #include "confdefs.h"
  3676.   main(){exit(0);}
  3677.   EOF
  3678. ! eval $ac_compile
  3679.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3680.     :
  3681.   else
  3682.     cross_compiling=1
  3683.   fi
  3684. ! rm -fr conftest*
  3685.   
  3686.   if test -n "$cross_compiling"
  3687.   then
  3688.     
  3689.   {
  3690.   test -n "$verbose" && \
  3691. ! /bin/echo "    defining" STACK_DIRECTION to be "0"
  3692. ! /bin/echo "#define" STACK_DIRECTION "0" >> confdefs.h
  3693.   DEFS="$DEFS -DSTACK_DIRECTION=0"
  3694. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}0\${ac_dD}
  3695. ! \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}0\${ac_uD}
  3696. ! \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}0\${ac_eD}
  3697.   "
  3698.   }
  3699.   
  3700.   else
  3701. ! cat > conftest.${ac_ext} <<EOF
  3702.   #include "confdefs.h"
  3703.   find_stack_direction ()
  3704.   {
  3705. ***************
  3706. *** 1843,1902 ****
  3707.     exit (find_stack_direction() < 0);
  3708.   }
  3709.   EOF
  3710. ! eval $compile
  3711.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3712. -   rm -rf conftest*
  3713.     
  3714.   {
  3715.   test -n "$verbose" && \
  3716. ! echo "    defining" STACK_DIRECTION to be 1
  3717. ! echo "#define" STACK_DIRECTION 1 >> confdefs.h
  3718.   DEFS="$DEFS -DSTACK_DIRECTION=1"
  3719. ! SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}1\${SEDdD}
  3720. ! \${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}1\${SEDuD}
  3721. ! \${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}1\${SEDeD}
  3722.   "
  3723.   }
  3724.   
  3725.   
  3726.   else
  3727. -   rm -rf conftest*
  3728.     
  3729.   {
  3730.   test -n "$verbose" && \
  3731. ! echo "    defining" STACK_DIRECTION to be -1
  3732. ! echo "#define" STACK_DIRECTION -1 >> confdefs.h
  3733.   DEFS="$DEFS -DSTACK_DIRECTION=-1"
  3734. ! SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}-1\${SEDdD}
  3735. ! \${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}-1\${SEDuD}
  3736. ! \${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}-1\${SEDeD}
  3737.   "
  3738.   }
  3739.   
  3740.   fi
  3741.   fi
  3742. ! rm -f conftest*
  3743.   fi
  3744.   
  3745. ! echo checking for st_blocks in struct stat
  3746. ! cat > conftest.c <<EOF
  3747.   #include "confdefs.h"
  3748.   #include <sys/types.h>
  3749.   #include <sys/stat.h>
  3750. ! int main() { exit(0); }
  3751. ! int t() { struct stat s; s.st_blocks; }
  3752.   EOF
  3753. ! if eval $compile; then
  3754.     rm -rf conftest*
  3755.     
  3756.   {
  3757.   test -n "$verbose" && \
  3758. ! echo "    defining HAVE_ST_BLOCKS"
  3759. ! echo "#define" HAVE_ST_BLOCKS 1 >> confdefs.h
  3760.   DEFS="$DEFS -DHAVE_ST_BLOCKS=1"
  3761. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_ST_BLOCKS\${SEDdB}HAVE_ST_BLOCKS\${SEDdC}1\${SEDdD}
  3762. ! \${SEDuA}HAVE_ST_BLOCKS\${SEDuB}HAVE_ST_BLOCKS\${SEDuC}1\${SEDuD}
  3763. ! \${SEDeA}HAVE_ST_BLOCKS\${SEDeB}HAVE_ST_BLOCKS\${SEDeC}1\${SEDeD}
  3764.   "
  3765.   }
  3766.   
  3767. --- 2095,2152 ----
  3768.     exit (find_stack_direction() < 0);
  3769.   }
  3770.   EOF
  3771. ! eval $ac_compile
  3772.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3773.     
  3774.   {
  3775.   test -n "$verbose" && \
  3776. ! /bin/echo "    defining" STACK_DIRECTION to be "1"
  3777. ! /bin/echo "#define" STACK_DIRECTION "1" >> confdefs.h
  3778.   DEFS="$DEFS -DSTACK_DIRECTION=1"
  3779. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}1\${ac_dD}
  3780. ! \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}1\${ac_uD}
  3781. ! \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}1\${ac_eD}
  3782.   "
  3783.   }
  3784.   
  3785.   
  3786.   else
  3787.     
  3788.   {
  3789.   test -n "$verbose" && \
  3790. ! /bin/echo "    defining" STACK_DIRECTION to be "-1"
  3791. ! /bin/echo "#define" STACK_DIRECTION "-1" >> confdefs.h
  3792.   DEFS="$DEFS -DSTACK_DIRECTION=-1"
  3793. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}-1\${ac_dD}
  3794. ! \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}-1\${ac_uD}
  3795. ! \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}-1\${ac_eD}
  3796.   "
  3797.   }
  3798.   
  3799.   fi
  3800.   fi
  3801. ! rm -fr conftest*
  3802.   fi
  3803.   
  3804. ! test -n "$silent" || /bin/echo "checking for st_blocks in struct stat"
  3805. ! cat > conftest.${ac_ext} <<EOF
  3806.   #include "confdefs.h"
  3807.   #include <sys/types.h>
  3808.   #include <sys/stat.h>
  3809. ! int main() { return 0; }
  3810. ! int t() { struct stat s; s.st_blocks;; return 0; }
  3811.   EOF
  3812. ! if eval $ac_compile; then
  3813.     rm -rf conftest*
  3814.     
  3815.   {
  3816.   test -n "$verbose" && \
  3817. ! /bin/echo "    defining HAVE_ST_BLOCKS"
  3818. ! /bin/echo "#define" HAVE_ST_BLOCKS "1" >> confdefs.h
  3819.   DEFS="$DEFS -DHAVE_ST_BLOCKS=1"
  3820. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ST_BLOCKS\${ac_dB}HAVE_ST_BLOCKS\${ac_dC}1\${ac_dD}
  3821. ! \${ac_uA}HAVE_ST_BLOCKS\${ac_uB}HAVE_ST_BLOCKS\${ac_uC}1\${ac_uD}
  3822. ! \${ac_eA}HAVE_ST_BLOCKS\${ac_eB}HAVE_ST_BLOCKS\${ac_eC}1\${ac_eD}
  3823.   "
  3824.   }
  3825.   
  3826. ***************
  3827. *** 1907,1916 ****
  3828.   fi
  3829.   rm -f conftest*
  3830.   
  3831. ! echo checking utime with null argument
  3832.   rm -f conftestdata; > conftestdata
  3833.   # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
  3834. ! cat > conftest.c <<EOF
  3835.   #include "confdefs.h"
  3836.   #include <sys/types.h>
  3837.   #include <sys/stat.h>
  3838. --- 2157,2166 ----
  3839.   fi
  3840.   rm -f conftest*
  3841.   
  3842. ! test -n "$silent" || /bin/echo "checking utime with null argument"
  3843.   rm -f conftestdata; > conftestdata
  3844.   # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
  3845. ! cat > conftest.${ac_ext} <<EOF
  3846.   #include "confdefs.h"
  3847.   #include <sys/types.h>
  3848.   #include <sys/stat.h>
  3849. ***************
  3850. *** 1921,1955 ****
  3851.   && t.st_mtime - s.st_mtime < 120));
  3852.   }
  3853.   EOF
  3854. ! eval $compile
  3855.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3856. -   rm -rf conftest*
  3857.     
  3858.   {
  3859.   test -n "$verbose" && \
  3860. ! echo "    defining HAVE_UTIME_NULL"
  3861. ! echo "#define" HAVE_UTIME_NULL 1 >> confdefs.h
  3862.   DEFS="$DEFS -DHAVE_UTIME_NULL=1"
  3863. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_UTIME_NULL\${SEDdB}HAVE_UTIME_NULL\${SEDdC}1\${SEDdD}
  3864. ! \${SEDuA}HAVE_UTIME_NULL\${SEDuB}HAVE_UTIME_NULL\${SEDuC}1\${SEDuD}
  3865. ! \${SEDeA}HAVE_UTIME_NULL\${SEDeB}HAVE_UTIME_NULL\${SEDeC}1\${SEDeD}
  3866.   "
  3867.   }
  3868.   
  3869.   
  3870.   fi
  3871. ! rm -f conftest*
  3872.   rm -f core
  3873.   
  3874. ! echo checking for Xenix
  3875. ! cat > conftest.c <<EOF
  3876.   #include "confdefs.h"
  3877.   #if defined(M_XENIX) && !defined(M_UNIX)
  3878.     yes
  3879.   #endif
  3880.   
  3881.   EOF
  3882. ! eval "$CPP conftest.c > conftest.out 2>&1"
  3883.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  3884.     rm -rf conftest*
  3885.     XENIX=1
  3886. --- 2171,2204 ----
  3887.   && t.st_mtime - s.st_mtime < 120));
  3888.   }
  3889.   EOF
  3890. ! eval $ac_compile
  3891.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3892.     
  3893.   {
  3894.   test -n "$verbose" && \
  3895. ! /bin/echo "    defining HAVE_UTIME_NULL"
  3896. ! /bin/echo "#define" HAVE_UTIME_NULL "1" >> confdefs.h
  3897.   DEFS="$DEFS -DHAVE_UTIME_NULL=1"
  3898. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_UTIME_NULL\${ac_dB}HAVE_UTIME_NULL\${ac_dC}1\${ac_dD}
  3899. ! \${ac_uA}HAVE_UTIME_NULL\${ac_uB}HAVE_UTIME_NULL\${ac_uC}1\${ac_uD}
  3900. ! \${ac_eA}HAVE_UTIME_NULL\${ac_eB}HAVE_UTIME_NULL\${ac_eC}1\${ac_eD}
  3901.   "
  3902.   }
  3903.   
  3904.   
  3905.   fi
  3906. ! rm -fr conftest*
  3907.   rm -f core
  3908.   
  3909. ! test -n "$silent" || /bin/echo "checking for Xenix"
  3910. ! cat > conftest.${ac_ext} <<EOF
  3911.   #include "confdefs.h"
  3912.   #if defined(M_XENIX) && !defined(M_UNIX)
  3913.     yes
  3914.   #endif
  3915.   
  3916.   EOF
  3917. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  3918.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  3919.     rm -rf conftest*
  3920.     XENIX=1
  3921. ***************
  3922. *** 1965,2012 ****
  3923.     esac
  3924.   fi
  3925.   
  3926. ! LIBS_save="${LIBS}"
  3927.   LIBS="${LIBS} -lsun"
  3928. ! have_lib=""
  3929. ! echo checking for -lsun
  3930. ! cat > conftest.c <<EOF
  3931.   #include "confdefs.h"
  3932.   
  3933. ! int main() { exit(0); }
  3934. ! int t() { main(); }
  3935.   EOF
  3936. ! if eval $compile; then
  3937.     rm -rf conftest*
  3938. !   have_lib="1"
  3939.   
  3940.   fi
  3941.   rm -f conftest*
  3942. ! LIBS="${LIBS_save}"
  3943. ! if test -n "${have_lib}"; then
  3944.      :; LIBS="$LIBS -lsun"
  3945.   else
  3946.      :; 
  3947.   fi
  3948.   
  3949.   
  3950. ! LIBS_save="${LIBS}"
  3951.   LIBS="${LIBS} -lseq"
  3952. ! have_lib=""
  3953. ! echo checking for -lseq
  3954. ! cat > conftest.c <<EOF
  3955.   #include "confdefs.h"
  3956.   
  3957. ! int main() { exit(0); }
  3958. ! int t() { main(); }
  3959.   EOF
  3960. ! if eval $compile; then
  3961.     rm -rf conftest*
  3962. !   have_lib="1"
  3963.   
  3964.   fi
  3965.   rm -f conftest*
  3966. ! LIBS="${LIBS_save}"
  3967. ! if test -n "${have_lib}"; then
  3968.      :; LIBS="$LIBS -lseq"
  3969.   else
  3970.      :; 
  3971. --- 2214,2261 ----
  3972.     esac
  3973.   fi
  3974.   
  3975. ! ac_save_LIBS="${LIBS}"
  3976.   LIBS="${LIBS} -lsun"
  3977. ! ac_have_lib=""
  3978. ! test -n "$silent" || /bin/echo "checking for -lsun"
  3979. ! cat > conftest.${ac_ext} <<EOF
  3980.   #include "confdefs.h"
  3981.   
  3982. ! int main() { return 0; }
  3983. ! int t() { main();; return 0; }
  3984.   EOF
  3985. ! if eval $ac_compile; then
  3986.     rm -rf conftest*
  3987. !   ac_have_lib="1"
  3988.   
  3989.   fi
  3990.   rm -f conftest*
  3991. ! LIBS="${ac_save_LIBS}"
  3992. ! if test -n "${ac_have_lib}"; then
  3993.      :; LIBS="$LIBS -lsun"
  3994.   else
  3995.      :; 
  3996.   fi
  3997.   
  3998.   
  3999. ! ac_save_LIBS="${LIBS}"
  4000.   LIBS="${LIBS} -lseq"
  4001. ! ac_have_lib=""
  4002. ! test -n "$silent" || /bin/echo "checking for -lseq"
  4003. ! cat > conftest.${ac_ext} <<EOF
  4004.   #include "confdefs.h"
  4005.   
  4006. ! int main() { return 0; }
  4007. ! int t() { main();; return 0; }
  4008.   EOF
  4009. ! if eval $ac_compile; then
  4010.     rm -rf conftest*
  4011. !   ac_have_lib="1"
  4012.   
  4013.   fi
  4014.   rm -f conftest*
  4015. ! LIBS="${ac_save_LIBS}"
  4016. ! if test -n "${ac_have_lib}"; then
  4017.      :; LIBS="$LIBS -lseq"
  4018.   else
  4019.      :; 
  4020. ***************
  4021. *** 2014,2046 ****
  4022.   
  4023.   
  4024.   # Check for libypsec.a on Dolphin M88K machines.
  4025. ! LIBS_save="${LIBS}"
  4026.   LIBS="${LIBS} -lypsec"
  4027. ! have_lib=""
  4028. ! echo checking for -lypsec
  4029. ! cat > conftest.c <<EOF
  4030.   #include "confdefs.h"
  4031.   
  4032. ! int main() { exit(0); }
  4033. ! int t() { main(); }
  4034.   EOF
  4035. ! if eval $compile; then
  4036.     rm -rf conftest*
  4037. !   have_lib="1"
  4038.   
  4039.   fi
  4040.   rm -f conftest*
  4041. ! LIBS="${LIBS_save}"
  4042. ! if test -n "${have_lib}"; then
  4043.      
  4044.   {
  4045.   test -n "$verbose" && \
  4046. ! echo "    defining HAVE_LIBYPSEC"
  4047. ! echo "#define" HAVE_LIBYPSEC 1 >> confdefs.h
  4048.   DEFS="$DEFS -DHAVE_LIBYPSEC=1"
  4049. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_LIBYPSEC\${SEDdB}HAVE_LIBYPSEC\${SEDdC}1\${SEDdD}
  4050. ! \${SEDuA}HAVE_LIBYPSEC\${SEDuB}HAVE_LIBYPSEC\${SEDuC}1\${SEDuD}
  4051. ! \${SEDeA}HAVE_LIBYPSEC\${SEDeB}HAVE_LIBYPSEC\${SEDeC}1\${SEDeD}
  4052.   "
  4053.   }
  4054.   
  4055. --- 2263,2295 ----
  4056.   
  4057.   
  4058.   # Check for libypsec.a on Dolphin M88K machines.
  4059. ! ac_save_LIBS="${LIBS}"
  4060.   LIBS="${LIBS} -lypsec"
  4061. ! ac_have_lib=""
  4062. ! test -n "$silent" || /bin/echo "checking for -lypsec"
  4063. ! cat > conftest.${ac_ext} <<EOF
  4064.   #include "confdefs.h"
  4065.   
  4066. ! int main() { return 0; }
  4067. ! int t() { main();; return 0; }
  4068.   EOF
  4069. ! if eval $ac_compile; then
  4070.     rm -rf conftest*
  4071. !   ac_have_lib="1"
  4072.   
  4073.   fi
  4074.   rm -f conftest*
  4075. ! LIBS="${ac_save_LIBS}"
  4076. ! if test -n "${ac_have_lib}"; then
  4077.      
  4078.   {
  4079.   test -n "$verbose" && \
  4080. ! /bin/echo "    defining HAVE_LIBYPSEC"
  4081. ! /bin/echo "#define" HAVE_LIBYPSEC "1" >> confdefs.h
  4082.   DEFS="$DEFS -DHAVE_LIBYPSEC=1"
  4083. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBYPSEC\${ac_dB}HAVE_LIBYPSEC\${ac_dC}1\${ac_dD}
  4084. ! \${ac_uA}HAVE_LIBYPSEC\${ac_uB}HAVE_LIBYPSEC\${ac_uC}1\${ac_uD}
  4085. ! \${ac_eA}HAVE_LIBYPSEC\${ac_eB}HAVE_LIBYPSEC\${ac_eC}1\${ac_eD}
  4086.   "
  4087.   }
  4088.   
  4089. ***************
  4090. *** 2049,2081 ****
  4091.   
  4092.   
  4093.   # m88k running dgux 5.4 needs this
  4094. ! LIBS_save="${LIBS}"
  4095.   LIBS="${LIBS} -ldgc"
  4096. ! have_lib=""
  4097. ! echo checking for -ldgc
  4098. ! cat > conftest.c <<EOF
  4099.   #include "confdefs.h"
  4100.   
  4101. ! int main() { exit(0); }
  4102. ! int t() { main(); }
  4103.   EOF
  4104. ! if eval $compile; then
  4105.     rm -rf conftest*
  4106. !   have_lib="1"
  4107.   
  4108.   fi
  4109.   rm -f conftest*
  4110. ! LIBS="${LIBS_save}"
  4111. ! if test -n "${have_lib}"; then
  4112.      
  4113.   {
  4114.   test -n "$verbose" && \
  4115. ! echo "    defining HAVE_LIBDGC"
  4116. ! echo "#define" HAVE_LIBDGC 1 >> confdefs.h
  4117.   DEFS="$DEFS -DHAVE_LIBDGC=1"
  4118. ! SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_LIBDGC\${SEDdB}HAVE_LIBDGC\${SEDdC}1\${SEDdD}
  4119. ! \${SEDuA}HAVE_LIBDGC\${SEDuB}HAVE_LIBDGC\${SEDuC}1\${SEDuD}
  4120. ! \${SEDeA}HAVE_LIBDGC\${SEDeB}HAVE_LIBDGC\${SEDeC}1\${SEDeD}
  4121.   "
  4122.   }
  4123.   
  4124. --- 2298,2330 ----
  4125.   
  4126.   
  4127.   # m88k running dgux 5.4 needs this
  4128. ! ac_save_LIBS="${LIBS}"
  4129.   LIBS="${LIBS} -ldgc"
  4130. ! ac_have_lib=""
  4131. ! test -n "$silent" || /bin/echo "checking for -ldgc"
  4132. ! cat > conftest.${ac_ext} <<EOF
  4133.   #include "confdefs.h"
  4134.   
  4135. ! int main() { return 0; }
  4136. ! int t() { main();; return 0; }
  4137.   EOF
  4138. ! if eval $ac_compile; then
  4139.     rm -rf conftest*
  4140. !   ac_have_lib="1"
  4141.   
  4142.   fi
  4143.   rm -f conftest*
  4144. ! LIBS="${ac_save_LIBS}"
  4145. ! if test -n "${ac_have_lib}"; then
  4146.      
  4147.   {
  4148.   test -n "$verbose" && \
  4149. ! /bin/echo "    defining HAVE_LIBDGC"
  4150. ! /bin/echo "#define" HAVE_LIBDGC "1" >> confdefs.h
  4151.   DEFS="$DEFS -DHAVE_LIBDGC=1"
  4152. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDGC\${ac_dB}HAVE_LIBDGC\${ac_dC}1\${ac_dD}
  4153. ! \${ac_uA}HAVE_LIBDGC\${ac_uB}HAVE_LIBDGC\${ac_uC}1\${ac_uD}
  4154. ! \${ac_eA}HAVE_LIBDGC\${ac_eB}HAVE_LIBDGC\${ac_eC}1\${ac_eD}
  4155.   "
  4156.   }
  4157.   
  4158. ***************
  4159. *** 2084,2122 ****
  4160.   
  4161.   
  4162.   echo checking for AFS
  4163. ! test -d /afs && 
  4164.   {
  4165.   test -n "$verbose" && \
  4166. ! echo "    defining AFS"
  4167. ! echo "#define" AFS 1 >> confdefs.h
  4168.   DEFS="$DEFS -DAFS=1"
  4169. ! SEDDEFS="${SEDDEFS}\${SEDdA}AFS\${SEDdB}AFS\${SEDdC}1\${SEDdD}
  4170. ! \${SEDuA}AFS\${SEDuB}AFS\${SEDuC}1\${SEDuD}
  4171. ! \${SEDeA}AFS\${SEDeB}AFS\${SEDeC}1\${SEDeD}
  4172.   "
  4173.   }
  4174.   
  4175.   
  4176.   # Set default prefixes.
  4177.   if test -n "$prefix"; then
  4178. !   test -z "$exec_prefix" && exec_prefix='${prefix}'
  4179. !   prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  4180.   fi
  4181.   if test -n "$exec_prefix"; then
  4182. !   prsub="$prsub
  4183.   s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  4184.   fi
  4185.   # Quote sed substitution magic chars in DEFS.
  4186.   cat >conftest.def <<EOF
  4187.   $DEFS
  4188.   EOF
  4189. ! escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  4190. ! DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`
  4191.   rm -f conftest.def
  4192.   # Substitute for predefined variables.
  4193.   
  4194. ! trap 'rm -f config.status; exit 1' 1 3 15
  4195. ! echo creating config.status
  4196.   rm -f config.status
  4197.   cat > config.status <<EOF
  4198.   #!/bin/sh
  4199. --- 2333,2378 ----
  4200.   
  4201.   
  4202.   echo checking for AFS
  4203. ! false && 
  4204.   {
  4205.   test -n "$verbose" && \
  4206. ! /bin/echo "    defining AFS"
  4207. ! /bin/echo "#define" AFS "1" >> confdefs.h
  4208.   DEFS="$DEFS -DAFS=1"
  4209. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}AFS\${ac_dB}AFS\${ac_dC}1\${ac_dD}
  4210. ! \${ac_uA}AFS\${ac_uB}AFS\${ac_uC}1\${ac_uD}
  4211. ! \${ac_eA}AFS\${ac_eB}AFS\${ac_eC}1\${ac_eD}
  4212.   "
  4213.   }
  4214.   
  4215.   
  4216.   # Set default prefixes.
  4217.   if test -n "$prefix"; then
  4218. !   test -z "$exec_prefix" && exec_prefix='${prefix}' # Let make expand it.
  4219. !   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  4220.   fi
  4221.   if test -n "$exec_prefix"; then
  4222. !   ac_prsub="$ac_prsub
  4223.   s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  4224.   fi
  4225. + # Any assignment to VPATH causes Sun make to only execute
  4226. + # the first set of double-colon rules, so remove it if not needed.
  4227. + # If there is a colon in the path, we need to keep it.
  4228. + if test "x$srcdir" = x.; then
  4229. +   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  4230. + fi
  4231.   # Quote sed substitution magic chars in DEFS.
  4232.   cat >conftest.def <<EOF
  4233.   $DEFS
  4234.   EOF
  4235. ! ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  4236. ! DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  4237.   rm -f conftest.def
  4238.   # Substitute for predefined variables.
  4239.   
  4240. ! trap 'rm -f config.status; exit 1' 1 2 15
  4241. ! /bin/echo creating config.status
  4242.   rm -f config.status
  4243.   cat > config.status <<EOF
  4244.   #!/bin/sh
  4245. ***************
  4246. *** 2127,2143 ****
  4247.   #
  4248.   # $0 $configure_args
  4249.   
  4250. ! for arg
  4251.   do
  4252. !   case "\$arg" in
  4253. !     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4254. !     echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args
  4255. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args ;;
  4256. !     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  4257.     esac
  4258.   done
  4259.   
  4260. ! trap 'rm -fr Makefile lib/Makefile src/Makefile man/Makefile config.h conftest*; exit 1' 1 3 15
  4261.   PROGS='$PROGS'
  4262.   LIBPROGS='$LIBPROGS'
  4263.   CC='$CC'
  4264. --- 2383,2405 ----
  4265.   #
  4266.   # $0 $configure_args
  4267.   
  4268. ! ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  4269. ! for ac_option
  4270.   do
  4271. !   case "\$ac_option" in
  4272. !   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4273. !     /bin/echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  4274. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  4275. !   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  4276. !     /bin/echo "config.status generated by autoconf version 1.9"
  4277. !     exit 0 ;;
  4278. !   -help | --help | --hel | --he | --h)
  4279. !     /bin/echo "\$ac_cs_usage"; exit 0 ;;
  4280. !   *) /bin/echo "\$ac_cs_usage"; exit 1 ;;
  4281.     esac
  4282.   done
  4283.   
  4284. ! trap 'rm -fr Makefile lib/Makefile src/Makefile man/Makefile config.h conftest*; exit 1' 1 2 15
  4285.   PROGS='$PROGS'
  4286.   LIBPROGS='$LIBPROGS'
  4287.   CC='$CC'
  4288. ***************
  4289. *** 2150,2178 ****
  4290.   ALLOCA='$ALLOCA'
  4291.   LIBS='$LIBS'
  4292.   srcdir='$srcdir'
  4293.   prefix='$prefix'
  4294.   exec_prefix='$exec_prefix'
  4295. ! prsub='$prsub'
  4296.   extrasub='$extrasub'
  4297.   EOF
  4298.   cat >> config.status <<\EOF
  4299.   
  4300. ! top_srcdir=$srcdir
  4301.   
  4302.   CONFIG_FILES=${CONFIG_FILES-"Makefile lib/Makefile src/Makefile man/Makefile"}
  4303. ! for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
  4304. !   srcdir=$top_srcdir
  4305.     # Remove last slash and all that follows it.  Not all systems have dirname.
  4306. !   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  4307. !   if test "$dir" != "$file"; then
  4308. !     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  4309. !     test ! -d $dir && mkdir $dir
  4310.     fi
  4311. !   echo creating $file
  4312. !   rm -f $file
  4313. !   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  4314.     sed -e "
  4315. ! $prsub
  4316.   $extrasub
  4317.   s%@PROGS@%$PROGS%g
  4318.   s%@LIBPROGS@%$LIBPROGS%g
  4319. --- 2412,2460 ----
  4320.   ALLOCA='$ALLOCA'
  4321.   LIBS='$LIBS'
  4322.   srcdir='$srcdir'
  4323. + top_srcdir='$top_srcdir'
  4324.   prefix='$prefix'
  4325.   exec_prefix='$exec_prefix'
  4326. ! ac_prsub='$ac_prsub'
  4327. ! ac_vpsub='$ac_vpsub'
  4328.   extrasub='$extrasub'
  4329.   EOF
  4330.   cat >> config.status <<\EOF
  4331.   
  4332. ! ac_given_srcdir=$srcdir
  4333.   
  4334.   CONFIG_FILES=${CONFIG_FILES-"Makefile lib/Makefile src/Makefile man/Makefile"}
  4335. ! for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  4336.     # Remove last slash and all that follows it.  Not all systems have dirname.
  4337. !   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4338. !   if test "$ac_dir" != "$ac_file"; then
  4339. !     # The file is in a subdirectory.
  4340. !     test ! -d "$ac_dir" && mkdir "$ac_dir"
  4341. !     ac_dir_suffix="/$ac_dir"
  4342. !   else
  4343. !     ac_dir_suffix=
  4344.     fi
  4345. !   # A "../" for each directory in $ac_dir_suffix.
  4346. !   ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  4347. !   case "$ac_given_srcdir" in
  4348. !   .)  srcdir=.; top_srcdir="$ac_dots." ;;
  4349. !   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  4350. !   *) # Relative path.
  4351. !     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  4352. !     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  4353. !   esac
  4354. !   /bin/echo creating "$ac_file"
  4355. !   rm -f "$ac_file"
  4356. !   comment_str="Generated automatically from `/bin/echo $ac_file|sed 's|.*/||'`.in by configure."
  4357. !   case "$ac_file" in
  4358. !     *.c | *.h | *.C | *.cc | *.m )  /bin/echo "/* $comment_str */" > "$ac_file" ;;
  4359. !     * )          /bin/echo "# $comment_str"     > "$ac_file" ;;
  4360. !   esac
  4361.     sed -e "
  4362. ! $ac_prsub
  4363. ! $ac_vpsub
  4364.   $extrasub
  4365.   s%@PROGS@%$PROGS%g
  4366.   s%@LIBPROGS@%$LIBPROGS%g
  4367. ***************
  4368. *** 2186,2245 ****
  4369.   s%@ALLOCA@%$ALLOCA%g
  4370.   s%@LIBS@%$LIBS%g
  4371.   s%@srcdir@%$srcdir%g
  4372. ! s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
  4373.   fi; done
  4374.   
  4375. ! CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  4376. ! for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
  4377. ! echo creating $file
  4378. ! # These sed commands are put into SEDDEFS when defining a macro.
  4379.   # They are broken into pieces to make the sed script easier to manage.
  4380.   # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  4381.   # is the cpp macro being defined and VALUE is the value it is being given.
  4382.   # Each defining turns into a single global substitution command.
  4383.   #
  4384. ! # SEDd sets the value in "#define NAME VALUE" lines.
  4385. ! SEDdA='s@^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  4386. ! SEDdB='\([     ][     ]*\)[^     ]*@\1#\2'
  4387. ! SEDdC='\3'
  4388. ! SEDdD='@g'
  4389. ! # SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  4390. ! SEDuA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  4391. ! SEDuB='\([     ]\)@\1#\2define\3'
  4392. ! SEDuC=' '
  4393. ! SEDuD='\4@g'
  4394. ! # SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  4395. ! SEDeA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  4396. ! SEDeB='$@\1#\2define\3'
  4397. ! SEDeC=' '
  4398. ! SEDeD='@g'
  4399.   rm -f conftest.sed
  4400.   EOF
  4401.   # Turn off quoting long enough to insert the sed commands.
  4402.   rm -f conftest.sh
  4403.   cat > conftest.sh <<EOF
  4404. ! $SEDDEFS
  4405.   EOF
  4406.   
  4407. ! # Break up $SEDDEFS (now in conftest.sh) because some shells have a limit
  4408.   # on the size of here documents.
  4409.   
  4410.   # Maximum number of lines to put in a single here document.
  4411. ! maxshlines=9
  4412.   
  4413.   while :
  4414.   do
  4415. !   # wc gives bogus results for an empty file on some systems.
  4416. !   lines=`grep -c . conftest.sh`
  4417. !   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  4418.     rm -f conftest.s1 conftest.s2
  4419. !   sed ${maxshlines}q conftest.sh > conftest.s1 # Like head -20.
  4420. !   sed 1,${maxshlines}d conftest.sh > conftest.s2 # Like tail +21.
  4421.     # Write a limited-size here document to append to conftest.sed.
  4422. !   echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  4423.     cat conftest.s1 >> config.status
  4424. !   echo 'CONFEOF' >> config.status
  4425.     rm -f conftest.s1 conftest.sh
  4426.     mv conftest.s2 conftest.sh
  4427.   done
  4428. --- 2468,2528 ----
  4429.   s%@ALLOCA@%$ALLOCA%g
  4430.   s%@LIBS@%$LIBS%g
  4431.   s%@srcdir@%$srcdir%g
  4432. ! s%@top_srcdir@%$top_srcdir%g
  4433. ! s%@prefix@%$prefix%g
  4434. ! s%@exec_prefix@%$exec_prefix%g
  4435. ! s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
  4436.   fi; done
  4437.   
  4438. ! # These sed commands are put into ac_sed_defs when defining a macro.
  4439.   # They are broken into pieces to make the sed script easier to manage.
  4440.   # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  4441.   # is the cpp macro being defined and VALUE is the value it is being given.
  4442.   # Each defining turns into a single global substitution command.
  4443. + # Hopefully no one uses "!" as a variable value.
  4444. + # Other candidates for the sed separators, like , and @, do get used.
  4445.   #
  4446. ! # ac_d sets the value in "#define NAME VALUE" lines.
  4447. ! ac_dA='s!^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  4448. ! ac_dB='\([     ][     ]*\)[^     ]*!\1#\2'
  4449. ! ac_dC='\3'
  4450. ! ac_dD='!g'
  4451. ! # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  4452. ! ac_uA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  4453. ! ac_uB='\([     ]\)!\1#\2define\3'
  4454. ! ac_uC=' '
  4455. ! ac_uD='\4!g'
  4456. ! # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  4457. ! ac_eA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  4458. ! ac_eB='$!\1#\2define\3'
  4459. ! ac_eC=' '
  4460. ! ac_eD='!g'
  4461.   rm -f conftest.sed
  4462.   EOF
  4463.   # Turn off quoting long enough to insert the sed commands.
  4464.   rm -f conftest.sh
  4465.   cat > conftest.sh <<EOF
  4466. ! $ac_sed_defs
  4467.   EOF
  4468.   
  4469. ! # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
  4470.   # on the size of here documents.
  4471.   
  4472.   # Maximum number of lines to put in a single here document.
  4473. ! ac_max_sh_lines=9
  4474.   
  4475.   while :
  4476.   do
  4477. !   # wc gives bogus results for an empty file on some AIX systems.
  4478. !   ac_lines=`grep -c . conftest.sh`
  4479. !   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  4480.     rm -f conftest.s1 conftest.s2
  4481. !   sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -20.
  4482. !   sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +21.
  4483.     # Write a limited-size here document to append to conftest.sed.
  4484. !   /bin/echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  4485.     cat conftest.s1 >> config.status
  4486. !   /bin/echo 'CONFEOF' >> config.status
  4487.     rm -f conftest.s1 conftest.sh
  4488.     mv conftest.s2 conftest.sh
  4489.   done
  4490. ***************
  4491. *** 2256,2287 ****
  4492.   CONFEOF
  4493.   rm -f conftest.h
  4494.   # Break up the sed commands because old seds have small limits.
  4495. ! maxsedlines=20
  4496. ! cp $top_srcdir/$file.in conftest.h1
  4497. ! while :
  4498. ! do
  4499. !   lines=`grep -c . conftest.sed`
  4500. !   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  4501. !   rm -f conftest.s1 conftest.s2 conftest.h2
  4502. !   sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  4503. !   sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  4504. !   sed -f conftest.s1 < conftest.h1 > conftest.h2
  4505. !   rm -f conftest.s1 conftest.h1 conftest.sed
  4506. !   mv conftest.h2 conftest.h1
  4507. !   mv conftest.s2 conftest.sed
  4508. ! done
  4509. ! rm -f conftest.sed conftest.h
  4510. ! echo "/* $file.  Generated automatically by configure.  */" > conftest.h
  4511. ! cat conftest.h1 >> conftest.h
  4512. ! rm -f conftest.h1
  4513. ! if cmp -s $file conftest.h 2>/dev/null; then
  4514. !   # The file exists and we would not be changing it.
  4515. !   echo "$file is unchanged"
  4516. !   rm -f conftest.h
  4517. ! else
  4518. !   rm -f $file
  4519. !   mv conftest.h $file
  4520. ! fi
  4521.   fi; done
  4522.   
  4523.   
  4524. --- 2539,2575 ----
  4525.   CONFEOF
  4526.   rm -f conftest.h
  4527.   # Break up the sed commands because old seds have small limits.
  4528. ! ac_max_sed_lines=20
  4529. ! CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  4530. ! for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
  4531. !   /bin/echo creating $ac_file
  4532. !   cp $ac_given_srcdir/$ac_file.in conftest.h1
  4533. !   while :
  4534. !   do
  4535. !     ac_lines=`grep -c . conftest.sed`
  4536. !     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  4537. !     rm -f conftest.s1 conftest.s2 conftest.h2
  4538. !     sed ${ac_max_sed_lines}q conftest.sed > conftest.s1 # Like head -20.
  4539. !     sed 1,${ac_max_sed_lines}d conftest.sed > conftest.s2 # Like tail +21.
  4540. !     sed -f conftest.s1 < conftest.h1 > conftest.h2
  4541. !     rm -f conftest.s1 conftest.h1 conftest.sed
  4542. !     mv conftest.h2 conftest.h1
  4543. !     mv conftest.s2 conftest.sed
  4544. !   done
  4545. !   rm -f conftest.sed conftest.h
  4546. !   /bin/echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  4547. !   cat conftest.h1 >> conftest.h
  4548. !   rm -f conftest.h1
  4549. !   if cmp -s $ac_file conftest.h 2>/dev/null; then
  4550. !     # The file exists and we would not be changing it.
  4551. !     /bin/echo "$ac_file is unchanged"
  4552. !     rm -f conftest.h
  4553. !   else
  4554. !     rm -f $ac_file
  4555. !     mv conftest.h $ac_file
  4556. !   fi
  4557.   fi; done
  4558.   
  4559.   
  4560. ***************
  4561. *** 2289,2293 ****
  4562.   exit 0
  4563.   EOF
  4564.   chmod +x config.status
  4565. ! ${CONFIG_SHELL-/bin/sh} config.status
  4566.   
  4567. --- 2577,2581 ----
  4568.   exit 0
  4569.   EOF
  4570.   chmod +x config.status
  4571. ! test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} config.status
  4572.   
  4573. diff -rc --new-file fileutils-3.9/configure.in /gnu/src/amiga/fileutils-3.9/configure.in
  4574. *** fileutils-3.9/configure.in    Sun Oct 10 03:35:28 1993
  4575. --- /gnu/src/amiga/fileutils-3.9/configure.in    Mon Apr 25 13:56:35 1994
  4576. ***************
  4577. *** 5,17 ****
  4578.   AC_SUBST(LIBPROGS)dnl
  4579.   
  4580.   # We want these before the checks, so the checks can modify their values.
  4581. ! test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
  4582. ! test -z "$LDFLAGS" && LDFLAGS=-g
  4583.   
  4584.   AC_PROG_CC
  4585.   
  4586.   # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
  4587. ! test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
  4588.   
  4589.   AC_SUBST(CFLAGS)dnl
  4590.   AC_SUBST(LDFLAGS)dnl
  4591. --- 5,17 ----
  4592.   AC_SUBST(LIBPROGS)dnl
  4593.   
  4594.   # We want these before the checks, so the checks can modify their values.
  4595. ! test -z "$CFLAGS" && CFLAGS= auto_cflags=1
  4596. ! test -z "$LDFLAGS" && LDFLAGS=
  4597.   
  4598.   AC_PROG_CC
  4599.   
  4600.   # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
  4601. ! test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
  4602.   
  4603.   AC_SUBST(CFLAGS)dnl
  4604.   AC_SUBST(LDFLAGS)dnl
  4605. ***************
  4606. *** 112,119 ****
  4607.   fi
  4608.   if test -z "$space"; then
  4609.   # 4.4BSD
  4610. ! AC_HEADER_EGREP(MOUNT_UFS, sys/mount.h,
  4611. !   AC_DEFINE(STAT_STATFS2_FSIZE) space=1)
  4612.   fi
  4613.   if test -z "$space"; then
  4614.   # SVR2
  4615. --- 112,118 ----
  4616.   fi
  4617.   if test -z "$space"; then
  4618.   # 4.4BSD
  4619. ! AC_DEFINE(STAT_STATFS2_FSIZE) space=1
  4620.   fi
  4621.   if test -z "$space"; then
  4622.   # SVR2
  4623. ***************
  4624. *** 131,137 ****
  4625.   
  4626.   AC_UID_T
  4627.   AC_GETGROUPS_T
  4628. ! AC_INT_16_BITS
  4629.   AC_CONST
  4630.   AC_STDC_HEADERS
  4631.   AC_STRUCT_TM
  4632. --- 130,136 ----
  4633.   
  4634.   AC_UID_T
  4635.   AC_GETGROUPS_T
  4636. ! AC_SIZEOF_TYPE(int,sizevar)
  4637.   AC_CONST
  4638.   AC_STDC_HEADERS
  4639.   AC_STRUCT_TM
  4640. ***************
  4641. *** 172,177 ****
  4642.   AC_HAVE_LIBRARY(-ldgc)
  4643.   
  4644.   echo checking for AFS
  4645. ! test -d /afs && AC_DEFINE(AFS)
  4646.   
  4647.   AC_OUTPUT(Makefile lib/Makefile src/Makefile man/Makefile)
  4648. --- 171,176 ----
  4649.   AC_HAVE_LIBRARY(-ldgc)
  4650.   
  4651.   echo checking for AFS
  4652. ! false && AC_DEFINE(AFS)
  4653.   
  4654.   AC_OUTPUT(Makefile lib/Makefile src/Makefile man/Makefile)
  4655. diff -rc --new-file fileutils-3.9/lib/Makefile.in /gnu/src/amiga/fileutils-3.9/lib/Makefile.in
  4656. *** fileutils-3.9/lib/Makefile.in    Sat Oct 16 04:24:47 1993
  4657. --- /gnu/src/amiga/fileutils-3.9/lib/Makefile.in    Mon Feb 21 23:54:58 1994
  4658. ***************
  4659. *** 27,33 ****
  4660.   CFLAGS = @CFLAGS@
  4661.   YACC = @YACC@
  4662.   
  4663. ! prefix = /usr/local
  4664.   exec_prefix = $(prefix)
  4665.   libdir = $(exec_prefix)/lib
  4666.   
  4667. --- 27,33 ----
  4668.   CFLAGS = @CFLAGS@
  4669.   YACC = @YACC@
  4670.   
  4671. ! prefix = /gnu
  4672.   exec_prefix = $(prefix)
  4673.   libdir = $(exec_prefix)/lib
  4674.   
  4675. diff -rc --new-file fileutils-3.9/lib/backupfile.c /gnu/src/amiga/fileutils-3.9/lib/backupfile.c
  4676. *** fileutils-3.9/lib/backupfile.c    Tue Oct 12 15:17:42 1993
  4677. --- /gnu/src/amiga/fileutils-3.9/lib/backupfile.c    Mon Feb 21 23:50:39 1994
  4678. ***************
  4679. *** 100,106 ****
  4680. --- 100,110 ----
  4681.   
  4682.   /* The extension added to file names to produce a simple (as opposed
  4683.      to numbered) backup file name. */
  4684. + #ifdef AMIGA
  4685. + char *simple_backup_suffix = "!";
  4686. + #else
  4687.   char *simple_backup_suffix = "~";
  4688. + #endif
  4689.   
  4690.   char *basename ();
  4691.   char *dirname ();
  4692. ***************
  4693. *** 125,131 ****
  4694. --- 129,139 ----
  4695.   
  4696.     if (backup_type == simple)
  4697.       return concat (file, simple_backup_suffix);
  4698. + #ifdef AMIGA
  4699. +   base_versions = concat (basename (file), ".!");
  4700. + #else
  4701.     base_versions = concat (basename (file), ".~");
  4702. + #endif
  4703.     if (base_versions == 0)
  4704.       return 0;
  4705.     dir = dirname (file);
  4706. ***************
  4707. *** 191,197 ****
  4708. --- 199,209 ----
  4709.     backup_name = malloc (strlen (file) + 16);
  4710.     if (backup_name == 0)
  4711.       return 0;
  4712. + #ifdef AMIGA
  4713. +   sprintf (backup_name, "%s.!%d!", file, version);
  4714. + #else
  4715.     sprintf (backup_name, "%s.~%d~", file, version);
  4716. + #endif
  4717.     return backup_name;
  4718.   }
  4719.   
  4720. ***************
  4721. *** 213,219 ****
  4722. --- 225,235 ----
  4723.       {
  4724.         for (p = &backup[base_length]; ISDIGIT (*p); ++p)
  4725.       version = version * 10 + *p - '0';
  4726. + #ifdef AMIGA
  4727. +       if (p[0] != '!' || p[1])
  4728. + #else
  4729.         if (p[0] != '~' || p[1])
  4730. + #endif
  4731.       version = 0;
  4732.       }
  4733.     return version;
  4734. diff -rc --new-file fileutils-3.9/lib/fnmatch.h /gnu/src/amiga/fileutils-3.9/lib/fnmatch.h
  4735. *** fileutils-3.9/lib/fnmatch.h    Sun Apr 11 22:54:32 1993
  4736. --- /gnu/src/amiga/fileutils-3.9/lib/fnmatch.h    Wed May  4 15:52:18 1994
  4737. ***************
  4738. *** 34,39 ****
  4739. --- 34,43 ----
  4740.      non-ANSI C where `const' is problematical.  */
  4741.   #endif /* C++ or ANSI C.  */
  4742.   
  4743. + #ifdef FNM_PATHNAME
  4744. + #undef FNM_PATHNAME    /* Defined in some <unistd.h> files?  -fnf */
  4745. + #endif
  4746.   /* Bits set in the FLAGS argument to `fnmatch'.  */
  4747.   #define    FNM_PATHNAME    (1 << 0) /* No wildcard can ever match `/'.  */
  4748.   #define    FNM_NOESCAPE    (1 << 1) /* Backslashes don't quote special chars.  */
  4749. diff -rc --new-file fileutils-3.9/man/Makefile.in /gnu/src/amiga/fileutils-3.9/man/Makefile.in
  4750. *** fileutils-3.9/man/Makefile.in    Fri Aug 13 21:49:02 1993
  4751. --- /gnu/src/amiga/fileutils-3.9/man/Makefile.in    Mon Feb 21 23:55:06 1994
  4752. ***************
  4753. *** 20,26 ****
  4754.   srcdir = @srcdir@
  4755.   VPATH = @srcdir@
  4756.   
  4757. ! prefix = /usr/local
  4758.   exec_prefix = $(prefix)
  4759.   mandir = $(prefix)/man/man1
  4760.   manprefix =
  4761. --- 20,26 ----
  4762.   srcdir = @srcdir@
  4763.   VPATH = @srcdir@
  4764.   
  4765. ! prefix = /gnu
  4766.   exec_prefix = $(prefix)
  4767.   mandir = $(prefix)/man/man1
  4768.   manprefix =
  4769. diff -rc --new-file fileutils-3.9/mkinstalldirs /gnu/src/amiga/fileutils-3.9/mkinstalldirs
  4770. *** fileutils-3.9/mkinstalldirs    Fri Aug 13 15:07:14 1993
  4771. --- /gnu/src/amiga/fileutils-3.9/mkinstalldirs    Mon Feb 21 23:50:41 1994
  4772. ***************
  4773. *** 30,35 ****
  4774. --- 30,36 ----
  4775.      done
  4776.   done
  4777.   
  4778. + exit 0
  4779.   exit $errstatus
  4780.   
  4781.   # eof
  4782. diff -rc --new-file fileutils-3.9/src/Makefile.in /gnu/src/amiga/fileutils-3.9/src/Makefile.in
  4783. *** fileutils-3.9/src/Makefile.in    Mon Oct 18 23:26:38 1993
  4784. --- /gnu/src/amiga/fileutils-3.9/src/Makefile.in    Mon Feb 21 23:55:16 1994
  4785. ***************
  4786. *** 20,26 ****
  4787.   srcdir = @srcdir@
  4788.   VPATH = @srcdir@
  4789.   
  4790. ! prefix = /usr/local
  4791.   exec_prefix = $(prefix)
  4792.   bindir = $(exec_prefix)/bin
  4793.   binprefix = 
  4794. --- 20,26 ----
  4795.   srcdir = @srcdir@
  4796.   VPATH = @srcdir@
  4797.   
  4798. ! prefix = /gnu
  4799.   exec_prefix = $(prefix)
  4800.   bindir = $(exec_prefix)/bin
  4801.   binprefix = 
  4802. diff -rc --new-file fileutils-3.9/src/chgrp.c /gnu/src/amiga/fileutils-3.9/src/chgrp.c
  4803. *** fileutils-3.9/src/chgrp.c    Mon Oct 18 23:35:03 1993
  4804. --- /gnu/src/amiga/fileutils-3.9/src/chgrp.c    Mon Feb 21 23:50:42 1994
  4805. ***************
  4806. *** 101,107 ****
  4807.     {0, 0, 0, 0}
  4808.   };
  4809.   
  4810. - void
  4811.   main (argc, argv)
  4812.        int argc;
  4813.        char **argv;
  4814. --- 101,106 ----
  4815. diff -rc --new-file fileutils-3.9/src/chmod.c /gnu/src/amiga/fileutils-3.9/src/chmod.c
  4816. *** fileutils-3.9/src/chmod.c    Mon Oct 18 23:35:04 1993
  4817. --- /gnu/src/amiga/fileutils-3.9/src/chmod.c    Mon Feb 21 23:50:43 1994
  4818. ***************
  4819. *** 90,96 ****
  4820.   /* Parse the ASCII mode given on the command line into a linked list
  4821.      of `struct mode_change' and apply that to each file argument. */
  4822.   
  4823. - void
  4824.   main (argc, argv)
  4825.        int argc;
  4826.        char **argv;
  4827. --- 90,95 ----
  4828. diff -rc --new-file fileutils-3.9/src/chown.c /gnu/src/amiga/fileutils-3.9/src/chown.c
  4829. *** fileutils-3.9/src/chown.c    Mon Oct 18 23:35:05 1993
  4830. --- /gnu/src/amiga/fileutils-3.9/src/chown.c    Mon Feb 21 23:50:44 1994
  4831. ***************
  4832. *** 111,117 ****
  4833.     {0, 0, 0, 0}
  4834.   };
  4835.   
  4836. - void
  4837.   main (argc, argv)
  4838.        int argc;
  4839.        char **argv;
  4840. --- 111,116 ----
  4841. diff -rc --new-file fileutils-3.9/src/cp.c /gnu/src/amiga/fileutils-3.9/src/cp.c
  4842. *** fileutils-3.9/src/cp.c    Mon Oct 18 23:35:08 1993
  4843. --- /gnu/src/amiga/fileutils-3.9/src/cp.c    Mon Feb 21 23:50:45 1994
  4844. ***************
  4845. *** 160,166 ****
  4846.     {NULL, 0, NULL, 0}
  4847.   };
  4848.   
  4849. - void
  4850.   main (argc, argv)
  4851.        int argc;
  4852.        char *argv[];
  4853. --- 160,165 ----
  4854. diff -rc --new-file fileutils-3.9/src/dd.c /gnu/src/amiga/fileutils-3.9/src/dd.c
  4855. *** fileutils-3.9/src/dd.c    Mon Oct 18 23:35:09 1993
  4856. --- /gnu/src/amiga/fileutils-3.9/src/dd.c    Mon Feb 21 23:50:46 1994
  4857. ***************
  4858. *** 333,339 ****
  4859.     {0, 0, 0, 0}
  4860.   };
  4861.   
  4862. - void
  4863.   main (argc, argv)
  4864.        int argc;
  4865.        char **argv;
  4866. --- 333,338 ----
  4867. diff -rc --new-file fileutils-3.9/src/df.c /gnu/src/amiga/fileutils-3.9/src/df.c
  4868. *** fileutils-3.9/src/df.c    Mon Oct 18 23:35:10 1993
  4869. --- /gnu/src/amiga/fileutils-3.9/src/df.c    Mon Feb 21 23:50:47 1994
  4870. ***************
  4871. *** 138,144 ****
  4872.     {NULL, 0, NULL, 0}
  4873.   };
  4874.   
  4875. - void
  4876.   main (argc, argv)
  4877.        int argc;
  4878.        char **argv;
  4879. --- 138,143 ----
  4880. diff -rc --new-file fileutils-3.9/src/du.c /gnu/src/amiga/fileutils-3.9/src/du.c
  4881. *** fileutils-3.9/src/du.c    Mon Oct 18 23:35:12 1993
  4882. --- /gnu/src/amiga/fileutils-3.9/src/du.c    Mon Feb 21 23:50:48 1994
  4883. ***************
  4884. *** 223,229 ****
  4885.     exit (status);
  4886.   }
  4887.   
  4888. - void
  4889.   main (argc, argv)
  4890.        int argc;
  4891.        char *argv[];
  4892. --- 223,228 ----
  4893. diff -rc --new-file fileutils-3.9/src/install.c /gnu/src/amiga/fileutils-3.9/src/install.c
  4894. *** fileutils-3.9/src/install.c    Mon Oct 18 23:35:13 1993
  4895. --- /gnu/src/amiga/fileutils-3.9/src/install.c    Mon Feb 21 23:50:49 1994
  4896. ***************
  4897. *** 162,168 ****
  4898.     {NULL, 0, NULL, 0}
  4899.   };
  4900.   
  4901. - void
  4902.   main (argc, argv)
  4903.        int argc;
  4904.        char **argv;
  4905. --- 162,167 ----
  4906. ***************
  4907. *** 462,468 ****
  4908.   {
  4909.     int pid, status;
  4910.   
  4911. !   pid = fork ();
  4912.     switch (pid)
  4913.       {
  4914.       case -1:
  4915. --- 461,467 ----
  4916.   {
  4917.     int pid, status;
  4918.   
  4919. !   pid = vfork ();
  4920.     switch (pid)
  4921.       {
  4922.       case -1:
  4923. diff -rc --new-file fileutils-3.9/src/ln.c /gnu/src/amiga/fileutils-3.9/src/ln.c
  4924. *** fileutils-3.9/src/ln.c    Mon Oct 18 23:35:14 1993
  4925. --- /gnu/src/amiga/fileutils-3.9/src/ln.c    Mon Feb 21 23:50:49 1994
  4926. ***************
  4927. *** 119,125 ****
  4928.     {NULL, 0, NULL, 0}
  4929.   };
  4930.   
  4931. - void
  4932.   main (argc, argv)
  4933.        int argc;
  4934.        char **argv;
  4935. --- 119,124 ----
  4936. diff -rc --new-file fileutils-3.9/src/ls.c /gnu/src/amiga/fileutils-3.9/src/ls.c
  4937. *** fileutils-3.9/src/ls.c    Mon Oct 18 23:35:15 1993
  4938. --- /gnu/src/amiga/fileutils-3.9/src/ls.c    Thu Jul  7 12:14:14 1994
  4939. ***************
  4940. *** 65,70 ****
  4941. --- 65,88 ----
  4942.   #define S_IEXEC S_IXUSR
  4943.   #endif
  4944.   
  4945. + /* Don't hardcode which characters are 'funny',
  4946. +  * to allow national characters in file names.
  4947. +  * I think this might be appripriate for other 
  4948. +  * systems too, not only on the amiga.
  4949. +  *                      - nisse@lysator.liu.se
  4950. +  */
  4951. + #ifdef amigados
  4952. + #include <ctype.h>
  4953. + /* The isfunny() macro regards a space as a funny character,
  4954. +  * the isfunny2() macro doesn't. */
  4955. + #define isfunny2(c) (iscntrl(c))
  4956. + #define isfunny(c) (isfunny2(c) || (c) == ' ')
  4957. + #else
  4958. + /* Original test */
  4959. + #define isfunny(c) (!(c > 040 && c < 0177))
  4960. + #define isfunny2(c) (!(c >= 040 && c < 0177)
  4961. + #endif
  4962.   /* Return an int indicating the result of comparing two longs. */
  4963.   #ifdef INT_16_BITS
  4964.   #define longdiff(a, b) ((a) < (b) ? -1 : (a) > (b) ? 1 : 0)
  4965. ***************
  4966. *** 441,447 ****
  4967.   };
  4968.   
  4969.   
  4970. - void
  4971.   main (argc, argv)
  4972.        int argc;
  4973.        char **argv;
  4974. --- 459,464 ----
  4975. ***************
  4976. *** 704,711 ****
  4977. --- 721,733 ----
  4978.         break;
  4979.   
  4980.       case 'B':
  4981. + #ifdef AMIGA
  4982. +       add_ignore_pattern ("*!");
  4983. +       add_ignore_pattern (".*!");
  4984. + #else
  4985.         add_ignore_pattern ("*~");
  4986.         add_ignore_pattern (".*~");
  4987. + #endif
  4988.         break;
  4989.   
  4990.       case 'C':
  4991. ***************
  4992. *** 1548,1554 ****
  4993.             break;
  4994.   
  4995.           default:
  4996. !           if (c > 040 && c < 0177)
  4997.           putchar (c);
  4998.             else
  4999.           printf ("\\%03o", (unsigned int) c);
  5000. --- 1570,1576 ----
  5001.             break;
  5002.   
  5003.           default:
  5004. !           if (!isfunny(c)) /* Was (c > 040 && c < 0177) */
  5005.           putchar (c);
  5006.             else
  5007.           printf ("\\%03o", (unsigned int) c);
  5008. ***************
  5009. *** 1556,1562 ****
  5010.       }
  5011.         else
  5012.       {
  5013. !       if (c >= 040 && c < 0177)
  5014.           putchar (c);
  5015.         else if (!qmark_funny_chars)
  5016.           putchar (c);
  5017. --- 1578,1584 ----
  5018.       }
  5019.         else
  5020.       {
  5021. !       if (!isfunny2(c)) /* Was (c >= 040 && c < 0177) */
  5022.           putchar (c);
  5023.         else if (!qmark_funny_chars)
  5024.           putchar (c);
  5025. ***************
  5026. *** 1659,1665 ****
  5027.             break;
  5028.   
  5029.           default:
  5030. !           if (c >= 040 && c < 0177)
  5031.           len += 1;
  5032.             else
  5033.           len += 4;
  5034. --- 1681,1687 ----
  5035.             break;
  5036.   
  5037.           default:
  5038. !           if (!isfunny2(c)) /* Was (c >= 040 && c < 0177) */
  5039.           len += 1;
  5040.             else
  5041.           len += 4;
  5042. diff -rc --new-file fileutils-3.9/src/mkdir.c /gnu/src/amiga/fileutils-3.9/src/mkdir.c
  5043. *** fileutils-3.9/src/mkdir.c    Mon Oct 18 23:35:16 1993
  5044. --- /gnu/src/amiga/fileutils-3.9/src/mkdir.c    Mon Feb 21 23:50:51 1994
  5045. ***************
  5046. *** 72,78 ****
  5047.     {NULL, 0, NULL, 0}
  5048.   };
  5049.   
  5050. - void
  5051.   main (argc, argv)
  5052.        int argc;
  5053.        char **argv;
  5054. --- 72,77 ----
  5055. diff -rc --new-file fileutils-3.9/src/mkfifo.c /gnu/src/amiga/fileutils-3.9/src/mkfifo.c
  5056. *** fileutils-3.9/src/mkfifo.c    Mon Oct 18 23:35:17 1993
  5057. --- /gnu/src/amiga/fileutils-3.9/src/mkfifo.c    Mon Feb 21 23:50:52 1994
  5058. ***************
  5059. *** 61,67 ****
  5060.     {NULL, 0, NULL, 0}
  5061.   };
  5062.   
  5063. - void
  5064.   main (argc, argv)
  5065.        int argc;
  5066.        char **argv;
  5067. --- 61,66 ----
  5068. diff -rc --new-file fileutils-3.9/src/mknod.c /gnu/src/amiga/fileutils-3.9/src/mknod.c
  5069. *** fileutils-3.9/src/mknod.c    Mon Oct 18 23:35:18 1993
  5070. --- /gnu/src/amiga/fileutils-3.9/src/mknod.c    Mon Feb 21 23:50:53 1994
  5071. ***************
  5072. *** 66,72 ****
  5073.     {NULL, 0, NULL, 0}
  5074.   };
  5075.   
  5076. - void
  5077.   main (argc, argv)
  5078.        int argc;
  5079.        char **argv;
  5080. --- 66,71 ----
  5081. diff -rc --new-file fileutils-3.9/src/mv.c /gnu/src/amiga/fileutils-3.9/src/mv.c
  5082. *** fileutils-3.9/src/mv.c    Mon Oct 18 23:35:19 1993
  5083. --- /gnu/src/amiga/fileutils-3.9/src/mv.c    Mon Feb 21 23:50:54 1994
  5084. ***************
  5085. *** 120,126 ****
  5086.     {NULL, 0, NULL, 0}
  5087.   };
  5088.   
  5089. - void
  5090.   main (argc, argv)
  5091.        int argc;
  5092.        char **argv;
  5093. --- 120,125 ----
  5094. diff -rc --new-file fileutils-3.9/src/mvdir.c /gnu/src/amiga/fileutils-3.9/src/mvdir.c
  5095. *** fileutils-3.9/src/mvdir.c    Mon Oct 18 23:35:20 1993
  5096. --- /gnu/src/amiga/fileutils-3.9/src/mvdir.c    Mon Feb 21 23:50:54 1994
  5097. ***************
  5098. *** 99,105 ****
  5099.     exit (status);
  5100.   }
  5101.   
  5102. - void
  5103.   main (argc, argv)
  5104.        int argc;
  5105.        char **argv;
  5106. --- 99,104 ----
  5107. diff -rc --new-file fileutils-3.9/src/rm.c /gnu/src/amiga/fileutils-3.9/src/rm.c
  5108. *** fileutils-3.9/src/rm.c    Mon Oct 18 23:35:21 1993
  5109. --- /gnu/src/amiga/fileutils-3.9/src/rm.c    Mon Feb 21 23:50:55 1994
  5110. ***************
  5111. *** 106,112 ****
  5112.     {NULL, 0, NULL, 0}
  5113.   };
  5114.   
  5115. - void
  5116.   main (argc, argv)
  5117.        int argc;
  5118.        char **argv;
  5119. --- 106,111 ----
  5120. diff -rc --new-file fileutils-3.9/src/rmdir.c /gnu/src/amiga/fileutils-3.9/src/rmdir.c
  5121. *** fileutils-3.9/src/rmdir.c    Mon Oct 18 23:35:22 1993
  5122. --- /gnu/src/amiga/fileutils-3.9/src/rmdir.c    Mon Feb 21 23:50:56 1994
  5123. ***************
  5124. *** 66,72 ****
  5125.     {NULL, 0, NULL, 0}
  5126.   };
  5127.   
  5128. - void
  5129.   main (argc, argv)
  5130.        int argc;
  5131.        char **argv;
  5132. --- 66,71 ----
  5133. diff -rc --new-file fileutils-3.9/src/touch.c /gnu/src/amiga/fileutils-3.9/src/touch.c
  5134. *** fileutils-3.9/src/touch.c    Mon Oct 18 23:35:23 1993
  5135. --- /gnu/src/amiga/fileutils-3.9/src/touch.c    Mon Feb 21 23:50:57 1994
  5136. ***************
  5137. *** 132,138 ****
  5138.     CH_ATIME, CH_ATIME, CH_ATIME, CH_MTIME, CH_MTIME
  5139.   };
  5140.   
  5141. - void
  5142.   main (argc, argv)
  5143.        int argc;
  5144.        char **argv;
  5145. --- 132,137 ----
  5146.