home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
sh-utils-1.12-diffs.gz
/
sh-utils-1.12-diffs
Wrap
Text File
|
1996-10-13
|
218KB
|
6,587 lines
This file contains patches that transform the baseline version into
the amiga version. Assuming that you have unarchived the baseline
version in the current directory, just run the command:
patch -p1 -E -b .pbak <diff-file
where 'diff-file' is this patch file. After running patch you should
remove all the generated *.pbak files, and look for any *.rej files
that indicate a problem patching the baseline source.
diff -rup --new-file baseline/fsf/sh-utils/INSTALL amiga/fsf/sh-utils/INSTALL
--- baseline/fsf/sh-utils/INSTALL Tue Oct 18 13:30:28 1994
+++ amiga/fsf/sh-utils/INSTALL Sat Sep 28 00:00:00 1996
@@ -76,8 +76,8 @@ Installation Names
==================
By default, `make install' will install the package's files in
-`/usr/local/bin', `/usr/local/man', etc. You can specify an
-installation prefix other than `/usr/local' by giving `configure' the
+`/gnu/bin', `/gnu/man', etc. You can specify an
+installation prefix other than `/gnu' by giving `configure' the
option `--prefix=PATH'.
You can specify separate installation prefixes for
diff -rup --new-file baseline/fsf/sh-utils/Makefile.in amiga/fsf/sh-utils/Makefile.in
--- baseline/fsf/sh-utils/Makefile.in Fri Nov 4 00:01:04 1994
+++ amiga/fsf/sh-utils/Makefile.in Sat Sep 28 00:00:00 1996
@@ -33,8 +33,9 @@ NEWS configure configure.in config.h.in
stamp-h.in acconfig.h
# Redundant stuff for making only selected programs.
+# Amiga hacks - remove tty and who, since they need ttyname().
PROGS = basename date dirname echo env expr false groups hostname id logname \
-pathchk printenv printf pwd sleep tee test true tty users who whoami \
+pathchk printenv printf pwd sleep tee test true users whoami \
yes @PROGS@
# Subdirectories to run make in for the primary targets.
@@ -48,7 +49,7 @@ all install uninstall: config.h Makefile
(cd $$subdir && $(MAKE) $@) || exit 1; \
done
-info dvi:
+info guide dvi:
cd doc && $(MAKE) $@
check:
diff -rup --new-file baseline/fsf/sh-utils/Product-Info amiga/fsf/sh-utils/Product-Info
--- baseline/fsf/sh-utils/Product-Info Wed Dec 31 17:00:00 1969
+++ amiga/fsf/sh-utils/Product-Info Sat Sep 28 00:00:00 1996
@@ -0,0 +1,24 @@
+.name
+sh-utils
+.fullname
+Shell programming utilities
+.type
+Programmer Tool
+.short
+GNU shell programming utilities
+.description
+This is a package of small shell programming utilities. They are
+mostly compliant with POSIX.2, where applicable. The programs that
+can be built with this package are: basename date dirname echo env
+expr false groups id logname nice nohup pathchk printenv printf sleep
+stty tee test true tty uname who whoami yes Some programs (uname,
+nice, nohup, and stty) are built and installed only on systems that
+have the features to support them.
+.version
+1.12
+.author
+Free Software Foundation
+.distribution
+GNU Public License
+.described-by
+Fred Fish (fnf@amigalib.com)
diff -rup --new-file baseline/fsf/sh-utils/configure amiga/fsf/sh-utils/configure
--- baseline/fsf/sh-utils/configure Fri Oct 7 16:52:35 1994
+++ amiga/fsf/sh-utils/configure Mon Sep 30 22:49:36 1996
@@ -1,56 +1,16 @@
-#!/bin/sh
+#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated automatically using autoconf version 1.120
-# Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
+# Generated automatically using autoconf version 2.10
+# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
-# This configure script is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as published
-# by the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This script is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
-# Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this script; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-#
-# The redistribution and modification terms for this script do not affect
-# the terms for software that it configures.
+# This configure script is free software; the Free Software Foundation
+# gives unlimited permission to copy, distribute and modify it.
+# Defaults:
ac_help=
-
-# Omit some internal or obsolete options to make the list less imposing.
-ac_usage="Usage: configure [options] [host]
-Options: [defaults in brackets after descriptions]
-Configuration:
- --cache-file=FILE cache test results in FILE
- --help print this message
- --no-create do not create output files
- --quiet, --silent do not print \`checking...' messages
- --version print the version of autoconf that created configure
-Directory and file names:
- --exec-prefix=PREFIX install host dependent files in PREFIX [/usr/local]
- --prefix=PREFIX install host independent files in PREFIX [/usr/local]
- --srcdir=DIR find the sources in DIR [configure dir or ..]
- --program-prefix=PREFIX prepend PREFIX to installed program names
- --program-suffix=SUFFIX append SUFFIX to installed program names
- --program-transform-name=PROGRAM run sed PROGRAM on installed program names
-Host type:
- --build=BUILD configure for building on BUILD [BUILD=HOST]
- --host=HOST configure for HOST [guessed]
- --target=TARGET configure for TARGET [TARGET=HOST]
-Features and packages:
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --x-includes=DIR X include files are in DIR
- --x-libraries=DIR X library files are in DIR
---enable and --with options recognized:$ac_help"
+ac_default_prefix=/usr/local
+# Any additions from configure.in:
# Initialize some variables set by options.
# The variables have the same names as the options, with
@@ -67,14 +27,31 @@ program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
+site=
srcdir=
target=NONE
verbose=
x_includes=NONE
x_libraries=NONE
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datadir='${prefix}/share'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+libdir='${exec_prefix}/lib'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+infodir='${prefix}/info'
+guidedir='${prefix}/guide'
+psdir='${prefix}/ps'
+dvidir='${prefix}/dvi'
+mandir='${prefix}/man'
# Initialize some other variables.
subdirs=
+MFLAGS= MAKEFLAGS=
ac_prev=
for ac_option
@@ -96,9 +73,14 @@ do
case "$ac_option" in
- -build | --build | --buil | --bui | --bu | --b)
+ -bindir | --bindir | --bindi | --bind | --bin | --bi)
+ ac_prev=bindir ;;
+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+ bindir="$ac_optarg" ;;
+
+ -build | --build | --buil | --bui | --bu)
ac_prev=build ;;
- -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
build="$ac_optarg" ;;
-cache-file | --cache-file | --cache-fil | --cache-fi \
@@ -108,6 +90,12 @@ do
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cache_file="$ac_optarg" ;;
+ -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
+ ac_prev=datadir ;;
+ -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
+ | --da=*)
+ datadir="$ac_optarg" ;;
+
-disable-* | --disable-*)
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
# Reject names that are not valid shell variable names.
@@ -144,9 +132,61 @@ do
with_gas=yes ;;
-help | --help | --hel | --he)
+ # Omit some internal or obsolete options to make the list less imposing.
+ # This message is too long to be a string in the A/UX 3.1 sh.
+ cat << EOF
+Usage: configure [options] [host]
+Options: [defaults in brackets after descriptions]
+Configuration:
+ --cache-file=FILE cache test results in FILE
+ --help print this message
+ --no-create do not create output files
+ --quiet, --silent do not print \`checking...' messages
+ --version print the version of autoconf that created configure
+Directory and file names:
+ --prefix=PREFIX install architecture-independent files in PREFIX
+ [$ac_default_prefix]
+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
+ [same as prefix]
+ --bindir=DIR user executables in DIR [EPREFIX/bin]
+ --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
+ --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
+ --datadir=DIR read-only architecture-independent data in DIR
+ [PREFIX/share]
+ --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
+ --sharedstatedir=DIR modifiable architecture-independent data in DIR
+ [PREFIX/com]
+ --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
+ --libdir=DIR object code libraries in DIR [EPREFIX/lib]
+ --includedir=DIR C header files in DIR [PREFIX/include]
+ --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
+ --infodir=DIR info documentation in DIR [PREFIX/info]
+ --guidedir=DIR Amigaguide documentation in DIR [PREFIX/guide]
+ --psdir=DIR postscript documentation in DIR [PREFIX/ps]
+ --dvidir=DIR TeX dvi documentation in DIR [PREFIX/dvi]
+ --mandir=DIR man documentation in DIR [PREFIX/man]
+ --srcdir=DIR find the sources in DIR [configure dir or ..]
+ --program-prefix=PREFIX prepend PREFIX to installed program names
+ --program-suffix=SUFFIX append SUFFIX to installed program names
+ --program-transform-name=PROGRAM
+ run sed PROGRAM on installed program names
+EOF
cat << EOF
-$ac_usage
+Host type:
+ --build=BUILD configure for building on BUILD [BUILD=HOST]
+ --host=HOST configure for HOST [guessed]
+ --target=TARGET configure for TARGET [TARGET=HOST]
+Features and packages:
+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --x-includes=DIR X include files are in DIR
+ --x-libraries=DIR X library files are in DIR
EOF
+ if test -n "$ac_help"; then
+ echo "--enable and --with options recognized:$ac_help"
+ fi
exit 0 ;;
-host | --host | --hos | --ho)
@@ -154,6 +194,56 @@ EOF
-host=* | --host=* | --hos=* | --ho=*)
host="$ac_optarg" ;;
+ -includedir | --includedir | --includedi | --included | --include \
+ | --includ | --inclu | --incl | --inc)
+ ac_prev=includedir ;;
+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+ | --includ=* | --inclu=* | --incl=* | --inc=*)
+ includedir="$ac_optarg" ;;
+
+ -infodir | --infodir | --infodi | --infod | --info | --inf)
+ ac_prev=infodir ;;
+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+ infodir="$ac_optarg" ;;
+
+ -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
+ ac_prev=guidedir ;;
+ -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+ guidedir="$ac_optarg" ;;
+
+ -psdir | --psdir | --psdi | --psd | --ps)
+ ac_prev=psdir ;;
+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+ psdir="$ac_optarg" ;;
+
+ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
+ ac_prev=dvidir ;;
+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+ dvidir="$ac_optarg" ;;
+
+ -libdir | --libdir | --libdi | --libd)
+ ac_prev=libdir ;;
+ -libdir=* | --libdir=* | --libdi=* | --libd=*)
+ libdir="$ac_optarg" ;;
+
+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+ | --libexe | --libex | --libe)
+ ac_prev=libexecdir ;;
+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+ | --libexe=* | --libex=* | --libe=*)
+ libexecdir="$ac_optarg" ;;
+
+ -localstatedir | --localstatedir | --localstatedi | --localstated \
+ | --localstate | --localstat | --localsta | --localst \
+ | --locals | --local | --loca | --loc | --lo)
+ ac_prev=localstatedir ;;
+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* \
+ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
+ localstatedir="$ac_optarg" ;;
+
+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+ ac_prev=mandir ;;
+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+ mandir="$ac_optarg" ;;
+
-nfp | --nfp | --nf)
# Obsolete; use --without-fp.
with_fp=no ;;
@@ -166,6 +256,15 @@ EOF
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
no_recursion=yes ;;
+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+ | --oldin | --oldi | --old | --ol | --o)
+ ac_prev=oldincludedir ;;
+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+ oldincludedir="$ac_optarg" ;;
+
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
ac_prev=prefix ;;
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
@@ -206,11 +305,40 @@ EOF
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+ ac_prev=sbindir ;;
+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+ | --sbi=* | --sb=*)
+ sbindir="$ac_optarg" ;;
+
+ -sharedstatedir | --sharedstatedir | --sharedstatedi \
+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+ | --sharedst | --shareds | --shared | --share | --shar \
+ | --sha | --sh)
+ ac_prev=sharedstatedir ;;
+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+ | --sha=* | --sh=*)
+ sharedstatedir="$ac_optarg" ;;
+
+ -site | --site | --sit)
+ ac_prev=site ;;
+ -site=* | --site=* | --sit=*)
+ site="$ac_optarg" ;;
+
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
srcdir="$ac_optarg" ;;
+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+ | --syscon | --sysco | --sysc | --sys | --sy)
+ ac_prev=sysconfdir ;;
+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+ sysconfdir="$ac_optarg" ;;
+
-target | --target | --targe | --targ | --tar | --ta | --t)
ac_prev=target ;;
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
@@ -220,7 +348,7 @@ EOF
verbose=yes ;;
-version | --version | --versio | --versi | --vers)
- echo "configure generated by autoconf version 1.120"
+ echo "configure generated by autoconf version 2.10"
exit 0 ;;
-with-* | --with-*)
@@ -266,7 +394,7 @@ EOF
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
;;
- *)
+ *)
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
echo "configure: warning: $ac_option: invalid host type" 1>&2
fi
@@ -283,19 +411,20 @@ if test -n "$ac_prev"; then
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
fi
-trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
+trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
# File descriptor usage:
-# 0 unused; standard input
+# 0 standard input
# 1 file creation
# 2 errors and warnings
-# 3 unused; some systems may open it to /dev/tty
-# 4 checking for... messages and results
+# 3 some systems may open it to /dev/tty
+# 4 used on the Kubota Titan
+# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
- exec 4>/dev/null
+ exec 6>/dev/null
else
- exec 4>&1
+ exec 6>&1
fi
exec 5>./config.log
@@ -362,13 +491,9 @@ srcdir=`echo "${srcdir}" | sed 's%\([^/]
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
if test "x$prefix" != xNONE; then
- CONFIG_SITE=$prefix/lib/config.site
+ CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
else
- CONFIG_SITE=/usr/local/lib/config.site
- fi
- # System dependent files override system independent ones.
- if test "x$exec_prefix" != xNONE && test "x$exec_prefix" != "x$prefix"; then
- CONFIG_SITE="$CONFIG_SITE $exec_prefix/lib/config.site"
+ CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
fi
fi
for ac_site_file in $CONFIG_SITE; do
@@ -389,7 +514,8 @@ fi
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
-ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
@@ -408,10 +534,10 @@ fi
-echo $ac_n "checking whether ${MAKE-make} sets \$MAKE""... $ac_c" 1>&4
+echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
set dummy ${MAKE-make}; ac_make=$2
-if eval "test \"`echo '${'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftestmake <<\EOF
all:
@@ -427,18 +553,18 @@ fi
rm -f conftestmake
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
- echo "$ac_t""yes" 1>&4
+ echo "$ac_t""yes" 1>&6
SET_MAKE=
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
SET_MAKE="MAKE=${MAKE-make}"
fi
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
@@ -452,39 +578,88 @@ else
fi
done
IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
- echo "$ac_t""$CC" 1>&4
+ echo "$ac_t""$CC" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+if test -z "$CC"; then
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
+ ac_prog_rejected=no
+ for ac_dir in $PATH; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+ fi
+ ac_cv_prog_CC="cc"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+if test $ac_prog_rejected = yes; then
+ # We found a bogon in the path, so make sure we never use it.
+ set dummy $ac_cv_prog_CC
+ shift
+ if test $# -gt 0; then
+ # We chose a different compiler from the bogus one.
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set CC to just the basename; use the full file name.
+ shift
+ set dummy "$ac_dir/$ac_word" "$@"
+ shift
+ ac_cv_prog_CC="$@"
+ fi
+fi
+fi
+fi
+CC="$ac_cv_prog_CC"
+if test -n "$CC"; then
+ echo "$ac_t""$CC" 1>&6
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
+ test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
+fi
-echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.c <<EOF
#ifdef __GNUC__
- yes
+ yes;
#endif
EOF
-if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
fi
fi
-echo "$ac_t""$ac_cv_prog_gcc" 1>&4
+
+echo "$ac_t""$ac_cv_prog_gcc" 1>&6
if test $ac_cv_prog_gcc = yes; then
GCC=yes
if test "${CFLAGS+set}" != set; then
- echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
@@ -495,11 +670,12 @@ fi
rm -f conftest*
fi
- echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
+
+echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
if test $ac_cv_prog_gcc_g = yes; then
- CFLAGS="-g -O"
+ CFLAGS="-g -O2"
else
- CFLAGS="-O"
+ CFLAGS="-O2"
fi
fi
else
@@ -507,14 +683,14 @@ else
test "${CFLAGS+set}" = set || CFLAGS="-g"
fi
-echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
+echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
fi
if test -z "$CPP"; then
-if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
# This must be in double quotes, not single quotes, because CPP may get
# substituted into the Makefile and "${CC-cc}" will confuse make.
@@ -522,12 +698,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
-#line 526 "configure"
+#line 702 "configure"
#include "confdefs.h"
-#include <stdio.h>
+#include <assert.h>
Syntax Error
EOF
-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
@@ -536,12 +713,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
-#line 540 "configure"
+#line 717 "configure"
#include "confdefs.h"
-#include <stdio.h>
+#include <assert.h>
Syntax Error
EOF
-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
@@ -555,18 +733,20 @@ fi
rm -f conftest*
ac_cv_prog_CPP="$CPP"
fi
+ CPP="$ac_cv_prog_CPP"
+else
+ ac_cv_prog_CPP="$CPP"
fi
-CPP="$ac_cv_prog_CPP"
-echo "$ac_t""$CPP" 1>&4
+echo "$ac_t""$CPP" 1>&6
if test $ac_cv_prog_gcc = yes; then
- echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
ac_pattern="Autoconf.*'x'"
cat > conftest.$ac_ext <<EOF
-#line 570 "configure"
+#line 750 "configure"
#include "confdefs.h"
#include <sgtty.h>
Autoconf TIOCGETP
@@ -584,7 +764,7 @@ rm -f conftest*
if test $ac_cv_prog_gcc_traditional = no; then
cat > conftest.$ac_ext <<EOF
-#line 588 "configure"
+#line 768 "configure"
#include "confdefs.h"
#include <termio.h>
Autoconf TCGETA
@@ -598,7 +778,8 @@ rm -f conftest*
fi
fi
- echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&4
+
+echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
if test $ac_cv_prog_gcc_traditional = yes; then
CC="$CC -traditional"
fi
@@ -630,18 +811,20 @@ ac_configure=$ac_aux_dir/configure # Thi
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
+# AmigaOS /c/install
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
-echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
+echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
if test -z "$INSTALL"; then
-if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
for ac_dir in $PATH; do
- case "$ac_dir" in
- ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
+ # Account for people who put trailing slashes in PATH elements.
+ case "$ac_dir/" in
+ /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
*)
# OSF1 and SCO ODT 3.0 have their own names for install.
for ac_prog in ginstall installbsd scoinst install; do
@@ -661,12 +844,19 @@ else
esac
done
IFS="$ac_save_ifs"
- # As a last resort, use the slow shell script.
- test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
+
fi
- INSTALL="$ac_cv_path_install"
+ if test "${ac_cv_path_install+set}" = set; then
+ INSTALL="$ac_cv_path_install"
+ else
+ # As a last resort, use the slow shell script. We don't cache a
+ # path for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the path is relative.
+ INSTALL="$ac_install_sh"
+ fi
fi
-echo "$ac_t""$INSTALL" 1>&4
+echo "$ac_t""$INSTALL" 1>&6
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
@@ -676,9 +866,9 @@ test -z "$INSTALL_DATA" && INSTALL_DATA=
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$RANLIB"; then
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
@@ -697,18 +887,18 @@ fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
- echo "$ac_t""$RANLIB" 1>&4
+ echo "$ac_t""$RANLIB" 1>&6
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
for ac_prog in 'bison -y' byacc
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_prog_YACC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$YACC"; then
ac_cv_prog_YACC="$YACC" # Let the user override the test.
@@ -726,18 +916,18 @@ fi
fi
YACC="$ac_cv_prog_YACC"
if test -n "$YACC"; then
- echo "$ac_t""$YACC" 1>&4
+ echo "$ac_t""$YACC" 1>&6
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
test -n "$YACC" && break
done
test -n "$YACC" || YACC="yacc"
-echo $ac_n "checking for AIX""... $ac_c" 1>&4
+echo $ac_n "checking for AIX""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
-#line 741 "configure"
+#line 931 "configure"
#include "confdefs.h"
#ifdef _AIX
yes
@@ -747,28 +937,29 @@ EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "yes" >/dev/null 2>&1; then
rm -rf conftest*
- echo "$ac_t""yes" 1>&4; cat >> confdefs.h <<\EOF
+ echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
#define _ALL_SOURCE 1
EOF
else
rm -rf conftest*
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
rm -f conftest*
-ac_safe=`echo "minix/config.h" | tr './' '__'`
-echo $ac_n "checking for minix/config.h""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ac_safe=`echo "minix/config.h" | tr './\055' '___'`
+echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 768 "configure"
+#line 958 "configure"
#include "confdefs.h"
#include <minix/config.h>
EOF
-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -781,10 +972,10 @@ fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&4
+ echo "$ac_t""yes" 1>&6
MINIX=yes
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
MINIX=
fi
@@ -803,11 +994,11 @@ EOF
fi
-echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&4
+echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
if test -d /etc/conf/kconfig.d &&
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
then
- echo "$ac_t""yes" 1>&4
+ echo "$ac_t""yes" 1>&6
ISC=yes # If later tests want to check for ISC.
cat >> confdefs.h <<\EOF
#define _POSIX_SOURCE 1
@@ -819,21 +1010,28 @@ EOF
CC="$CC -Xp"
fi
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
ISC=
fi
for ac_func in uname
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 834 "configure"
+#line 1025 "configure"
#include "confdefs.h"
-#include <ctype.h> /* Arbitrary system header to define __stub macros. */
-int main() { return 0; }
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char $ac_func();
+
+int main() { t(); return 0; }
int t() {
/* The GNU C library defines this for functions which it implements
@@ -842,13 +1040,12 @@ int t() {
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-/* Override any gcc2 internal prototype to avoid an error. */
-char $ac_func(); $ac_func();
+$ac_func();
#endif
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:1049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -859,23 +1056,23 @@ rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&4
- ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
+ echo "$ac_t""yes" 1>&6
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
PROGS="$PROGS uname" MAN="$MAN uname.1"
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
done
-echo $ac_n "checking for working const""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for working const""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 879 "configure"
+#line 1076 "configure"
#include "confdefs.h"
int main() { return 0; }
@@ -886,6 +1083,9 @@ typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this. */
char const *const *ccp;
char **p;
+/* NEC SVR4.0.2 mips cc rejects this. */
+struct point {int x, y;};
+static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
It does not let you subtract one const X* pointer from another in an arm
of an if-expression whose if-part is not a constant expression */
@@ -922,7 +1122,7 @@ ccp = (char const *const *) p;
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:1126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
else
@@ -932,7 +1132,8 @@ fi
rm -f conftest*
fi
-echo "$ac_t""$ac_cv_c_const" 1>&4
+
+echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
cat >> confdefs.h <<\EOF
#define const
@@ -941,19 +1142,19 @@ EOF
fi
# If we cannot run a trivial program, we must be cross compiling.
-echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
- ac_cv_cross=yes
+ ac_cv_c_cross=yes
else
cat > conftest.$ac_ext <<EOF
-#line 953 "configure"
+#line 1154 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
-eval $ac_link
+{ (eval echo configure:1158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
ac_cv_c_cross=no
else
@@ -962,22 +1163,24 @@ fi
fi
rm -fr conftest*
fi
+
+echo "$ac_t""$ac_cv_c_cross" 1>&6
cross_compiling=$ac_cv_c_cross
-echo "$ac_t""$ac_cv_c_cross" 1>&4
-echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 974 "configure"
+#line 1176 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -992,7 +1195,7 @@ rm -f conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
-#line 996 "configure"
+#line 1199 "configure"
#include "confdefs.h"
#include <string.h>
EOF
@@ -1010,7 +1213,7 @@ fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
-#line 1014 "configure"
+#line 1217 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
@@ -1028,10 +1231,10 @@ fi
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
- ac_cv_header_stdc=no
+ :
else
cat > conftest.$ac_ext <<EOF
-#line 1035 "configure"
+#line 1238 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@@ -1042,7 +1245,7 @@ if (XOR (islower (i), ISLOWER (i)) || to
exit (0); }
EOF
-eval $ac_link
+{ (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
:
else
@@ -1052,7 +1255,8 @@ fi
rm -fr conftest*
fi
fi
-echo "$ac_t""$ac_cv_header_stdc" 1>&4
+
+echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
@@ -1060,15 +1264,59 @@ EOF
fi
-echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_c_bigendian'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
- if test "$cross_compiling" = yes; then
+ ac_cv_c_bigendian=unknown
+# See if sys/param.h defines the BYTE_ORDER macro.
+cat > conftest.$ac_ext <<EOF
+#line 1275 "configure"
+#include "confdefs.h"
+#include <sys/types.h>
+#include <sys/param.h>
+int main() { return 0; }
+int t() {
+
+#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
+ bogus endian macros
+#endif
+; return 0; }
+EOF
+if { (eval echo configure:1287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ # It does; now see whether it defined to BIG_ENDIAN or not.
+cat > conftest.$ac_ext <<EOF
+#line 1291 "configure"
+#include "confdefs.h"
+#include <sys/types.h>
+#include <sys/param.h>
+int main() { return 0; }
+int t() {
+
+#if BYTE_ORDER != BIG_ENDIAN
+ not big endian
+#endif
+; return 0; }
+EOF
+if { (eval echo configure:1303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_c_bigendian=yes
+else
+ rm -rf conftest*
+ ac_cv_c_bigendian=no
+fi
+rm -f conftest*
+
+fi
+rm -f conftest*
+
+if test $ac_cv_c_bigendian = unknown; then
+if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
-#line 1072 "configure"
+#line 1320 "configure"
#include "confdefs.h"
main () {
/* Are we little or big endian? From Harbison&Steele. */
@@ -1081,7 +1329,7 @@ main () {
exit (u.c[sizeof (long) - 1] == 1);
}
EOF
-eval $ac_link
+{ (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
ac_cv_c_bigendian=no
else
@@ -1090,7 +1338,9 @@ fi
fi
rm -fr conftest*
fi
-echo "$ac_t""$ac_cv_c_bigendian" 1>&4
+fi
+
+echo "$ac_t""$ac_cv_c_bigendian" 1>&6
if test $ac_cv_c_bigendian = yes; then
cat >> confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
@@ -1099,12 +1349,12 @@ EOF
fi
-echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_struct_tm'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1108 "configure"
+#line 1358 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <time.h>
@@ -1113,7 +1363,7 @@ int t() {
struct tm *tp; tp->tm_sec;
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:1367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_struct_tm=time.h
else
@@ -1123,7 +1373,8 @@ fi
rm -f conftest*
fi
-echo "$ac_t""$ac_cv_struct_tm" 1>&4
+
+echo "$ac_t""$ac_cv_struct_tm" 1>&6
if test $ac_cv_struct_tm = sys/time.h; then
cat >> confdefs.h <<\EOF
#define TM_IN_SYS_TIME 1
@@ -1131,12 +1382,12 @@ EOF
fi
-echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_header_time'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1140 "configure"
+#line 1391 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
@@ -1146,7 +1397,7 @@ int t() {
struct tm *tp;
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:1401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_time=yes
else
@@ -1156,7 +1407,8 @@ fi
rm -f conftest*
fi
-echo "$ac_t""$ac_cv_header_time" 1>&4
+
+echo "$ac_t""$ac_cv_header_time" 1>&6
if test $ac_cv_header_time = yes; then
cat >> confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
@@ -1164,12 +1416,12 @@ EOF
fi
-echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_struct_tm_zone'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1173 "configure"
+#line 1425 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_cv_struct_tm>
@@ -1178,7 +1430,7 @@ int t() {
struct tm tm; tm.tm_zone;
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:1434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_struct_tm_zone=yes
else
@@ -1188,30 +1440,31 @@ fi
rm -f conftest*
fi
-echo "$ac_t""$ac_cv_struct_tm_zone" 1>&4
+
+echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
if test "$ac_cv_struct_tm_zone" = yes; then
cat >> confdefs.h <<\EOF
#define HAVE_TM_ZONE 1
EOF
else
- echo $ac_n "checking for tzname""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_var_tzname'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ echo $ac_n "checking for tzname""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1204 "configure"
+#line 1457 "configure"
#include "confdefs.h"
#include <time.h>
#ifndef tzname /* For SGI. */
extern char *tzname[]; /* RS6000 and others reject char **tzname. */
#endif
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
atoi(*tzname);
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
ac_cv_var_tzname=yes
else
@@ -1221,7 +1474,8 @@ fi
rm -f conftest*
fi
- echo "$ac_t""$ac_cv_var_tzname" 1>&4
+
+echo "$ac_t""$ac_cv_var_tzname" 1>&6
if test $ac_cv_var_tzname = yes; then
cat >> confdefs.h <<\EOF
#define HAVE_TZNAME 1
@@ -1230,33 +1484,35 @@ EOF
fi
fi
-echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_header_stat_broken'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1239 "configure"
+#line 1493 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
-#ifdef S_ISBLK
+
+#if defined(S_ISBLK) && defined(S_IFDIR)
# if S_ISBLK (S_IFDIR)
You lose.
# endif
-# ifdef S_IFCHR
-# if S_ISBLK (S_IFCHR)
+#endif
+
+#if defined(S_ISBLK) && defined(S_IFCHR)
+# if S_ISBLK (S_IFCHR)
You lose.
-# endif
# endif
#endif
-#ifdef S_ISLNK
+#if defined(S_ISLNK) && defined(S_IFREG)
# if S_ISLNK (S_IFREG)
You lose.
# endif
#endif
-#ifdef S_ISSOCK
+#if defined(S_ISSOCK) && defined(S_IFREG)
# if S_ISSOCK (S_IFREG)
You lose.
# endif
@@ -1274,7 +1530,8 @@ fi
rm -f conftest*
fi
-echo "$ac_t""$ac_cv_header_stat_broken" 1>&4
+
+echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
if test $ac_cv_header_stat_broken = yes; then
cat >> confdefs.h <<\EOF
#define STAT_MACROS_BROKEN 1
@@ -1282,12 +1539,12 @@ EOF
fi
-echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_type_uid_t'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1291 "configure"
+#line 1548 "configure"
#include "confdefs.h"
#include <sys/types.h>
EOF
@@ -1302,7 +1559,8 @@ fi
rm -f conftest*
fi
-echo "$ac_t""$ac_cv_type_uid_t" 1>&4
+
+echo "$ac_t""$ac_cv_type_uid_t" 1>&6
if test $ac_cv_type_uid_t = no; then
cat >> confdefs.h <<\EOF
#define uid_t int
@@ -1314,15 +1572,15 @@ EOF
fi
-echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_type_getgroups'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
ac_cv_type_getgroups=cross
else
cat > conftest.$ac_ext <<EOF
-#line 1326 "configure"
+#line 1584 "configure"
#include "confdefs.h"
/* Thanks to Mike Rendell for this test. */
@@ -1347,7 +1605,7 @@ main()
}
EOF
-eval $ac_link
+{ (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
ac_cv_type_getgroups=gid_t
else
@@ -1357,7 +1615,7 @@ fi
rm -fr conftest*
if test $ac_cv_type_getgroups = cross; then
cat > conftest.$ac_ext <<EOF
-#line 1361 "configure"
+#line 1619 "configure"
#include "confdefs.h"
#include <unistd.h>
EOF
@@ -1373,18 +1631,19 @@ rm -f conftest*
fi
fi
-echo "$ac_t""$ac_cv_type_getgroups" 1>&4
+
+echo "$ac_t""$ac_cv_type_getgroups" 1>&6
cat >> confdefs.h <<EOF
#define GETGROUPS_T $ac_cv_type_getgroups
EOF
-echo $ac_n "checking for size_t""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_type_size_t'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for size_t""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1388 "configure"
+#line 1647 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@@ -1402,7 +1661,7 @@ fi
rm -f conftest*
fi
-echo "$ac_t""$ac_cv_type_size_t" 1>&4
+echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
cat >> confdefs.h <<\EOF
#define size_t unsigned
@@ -1414,15 +1673,22 @@ fi
for ac_func in bcopy endgrent endpwent ftime getcwd getgroups gettimeofday \
isascii memcpy sethostname strerror sysinfo
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1423 "configure"
+#line 1682 "configure"
#include "confdefs.h"
-#include <ctype.h> /* Arbitrary system header to define __stub macros. */
-int main() { return 0; }
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char $ac_func();
+
+int main() { t(); return 0; }
int t() {
/* The GNU C library defines this for functions which it implements
@@ -1431,13 +1697,12 @@ int t() {
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-/* Override any gcc2 internal prototype to avoid an error. */
-char $ac_func(); $ac_func();
+$ac_func();
#endif
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -1448,14 +1713,14 @@ rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&4
- ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
+ echo "$ac_t""yes" 1>&6
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
done
@@ -1463,15 +1728,22 @@ done
# SCO-ODT-3.0 is reported to need -los to link programs using initgroups
for ac_func in initgroups
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1472 "configure"
+#line 1737 "configure"
#include "confdefs.h"
-#include <ctype.h> /* Arbitrary system header to define __stub macros. */
-int main() { return 0; }
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char $ac_func();
+
+int main() { t(); return 0; }
int t() {
/* The GNU C library defines this for functions which it implements
@@ -1480,13 +1752,12 @@ int t() {
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-/* Override any gcc2 internal prototype to avoid an error. */
-char $ac_func(); $ac_func();
+$ac_func();
#endif
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -1497,70 +1768,82 @@ rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&4
- ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
+ echo "$ac_t""yes" 1>&6
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
done
if test $ac_cv_func_initgroups = no; then
- echo $ac_n "checking for -los""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_lib_os'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ echo $ac_n "checking for -los""... $ac_c" 1>&6
+ac_lib_var=`echo os'_'initgroups | tr './+\055' '__p_'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="$LIBS -los "
+LIBS="-los $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 1520 "configure"
+#line 1792 "configure"
#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char initgroups();
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
initgroups()
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:1804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_lib_os=yes"
+ eval "ac_cv_lib_$ac_lib_var=yes"
else
rm -rf conftest*
- eval "ac_cv_lib_os=no"
+ eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
-if eval "test \"`echo '$ac_cv_lib_'os`\" = yes"; then
- echo "$ac_t""yes" 1>&4
- ac_tr_lib=HAVE_LIB`echo os | tr '[a-z]' '[A-Z]'`
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_lib=HAVE_LIB`echo os | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
- LIBS="$LIBS -los"
+ LIBS="-los $LIBS"
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
fi
for ac_func in syslog
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1561 "configure"
+#line 1837 "configure"
#include "confdefs.h"
-#include <ctype.h> /* Arbitrary system header to define __stub macros. */
-int main() { return 0; }
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char $ac_func();
+
+int main() { t(); return 0; }
int t() {
/* The GNU C library defines this for functions which it implements
@@ -1569,13 +1852,12 @@ int t() {
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-/* Override any gcc2 internal prototype to avoid an error. */
-char $ac_func(); $ac_func();
+$ac_func();
#endif
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -1586,55 +1868,60 @@ rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&4
- ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
+ echo "$ac_t""yes" 1>&6
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
done
if test $ac_cv_func_syslog = no; then
# syslog is not in the default libraries. See if it's in some other.
for lib in bsd socket inet; do
- echo $ac_n "checking for -l$lib""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_lib_$lib'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ echo $ac_n "checking for -l$lib""... $ac_c" 1>&6
+ac_lib_var=`echo $lib'_'syslog | tr './+\055' '__p_'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="$LIBS -l$lib "
+LIBS="-l$lib $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 1611 "configure"
+#line 1894 "configure"
#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char syslog();
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
syslog()
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_lib_$lib=yes"
+ eval "ac_cv_lib_$ac_lib_var=yes"
else
rm -rf conftest*
- eval "ac_cv_lib_$lib=no"
+ eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
-if eval "test \"`echo '$ac_cv_lib_'$lib`\" = yes"; then
- echo "$ac_t""yes" 1>&4
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SYSLOG 1
EOF
LIBS="$LIBS -l$lib"; break
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
done
@@ -1643,17 +1930,18 @@ fi
for ac_hdr in string.h fcntl.h limits.h syslog.h sys/time.h unistd.h \
sys/timeb.h float.h sys/systeminfo.h sys/param.h
do
-ac_safe=`echo "$ac_hdr" | tr './' '__'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
+echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1653 "configure"
+#line 1940 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -1666,14 +1954,14 @@ fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&4
- ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
+ echo "$ac_t""yes" 1>&6
+ ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
done
@@ -1681,15 +1969,22 @@ done
for ac_func in gethostname getusershell mktime stime \
strcspn strstr strtol strtoul strtod
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1690 "configure"
+#line 1978 "configure"
#include "confdefs.h"
-#include <ctype.h> /* Arbitrary system header to define __stub macros. */
-int main() { return 0; }
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char $ac_func();
+
+int main() { t(); return 0; }
int t() {
/* The GNU C library defines this for functions which it implements
@@ -1698,13 +1993,12 @@ int t() {
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-/* Override any gcc2 internal prototype to avoid an error. */
-char $ac_func(); $ac_func();
+$ac_func();
#endif
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -1715,24 +2009,24 @@ rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&4
+ echo "$ac_t""yes" 1>&6
:
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi
done
-echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_func_memcmp'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_func_memcmp'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
ac_cv_func_memcmp=no
else
cat > conftest.$ac_ext <<EOF
-#line 1736 "configure"
+#line 2030 "configure"
#include "confdefs.h"
main()
@@ -1742,7 +2036,7 @@ main()
}
EOF
-eval $ac_link
+{ (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
ac_cv_func_memcmp=yes
else
@@ -1751,18 +2045,26 @@ fi
fi
rm -fr conftest*
fi
-echo "$ac_t""$ac_cv_func_memcmp" 1>&4
+
+echo "$ac_t""$ac_cv_func_memcmp" 1>&6
test $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o"
-echo $ac_n "checking for vprintf""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_func_vprintf'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for vprintf""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1763 "configure"
+#line 2058 "configure"
#include "confdefs.h"
-#include <ctype.h> /* Arbitrary system header to define __stub macros. */
-int main() { return 0; }
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char vprintf(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char vprintf();
+
+int main() { t(); return 0; }
int t() {
/* The GNU C library defines this for functions which it implements
@@ -1771,13 +2073,12 @@ int t() {
#if defined (__stub_vprintf) || defined (__stub___vprintf)
choke me
#else
-/* Override any gcc2 internal prototype to avoid an error. */
-char vprintf(); vprintf();
+vprintf();
#endif
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_vprintf=yes"
else
@@ -1788,25 +2089,32 @@ rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
- echo "$ac_t""yes" 1>&4
+ echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_VPRINTF 1
EOF
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
if test "$ac_cv_func_vprintf" != yes; then
-echo $ac_n "checking for _doprnt""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_func__doprnt'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1807 "configure"
+#line 2108 "configure"
#include "confdefs.h"
-#include <ctype.h> /* Arbitrary system header to define __stub macros. */
-int main() { return 0; }
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char _doprnt(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char _doprnt();
+
+int main() { t(); return 0; }
int t() {
/* The GNU C library defines this for functions which it implements
@@ -1815,13 +2123,12 @@ int t() {
#if defined (__stub__doprnt) || defined (__stub____doprnt)
choke me
#else
-/* Override any gcc2 internal prototype to avoid an error. */
-char _doprnt(); _doprnt();
+_doprnt();
#endif
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func__doprnt=yes"
else
@@ -1832,33 +2139,33 @@ rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
- echo "$ac_t""yes" 1>&4
+ echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_DOPRNT 1
EOF
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
fi
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments. Useless!
-echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1854 "configure"
+#line 2161 "configure"
#include "confdefs.h"
#include <alloca.h>
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
char *p = alloca(2 * sizeof(int));
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
ac_cv_header_alloca_h=yes
else
@@ -1868,7 +2175,8 @@ fi
rm -f conftest*
fi
-echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
+
+echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
if test $ac_cv_header_alloca_h = yes; then
cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA_H 1
@@ -1876,12 +2184,12 @@ EOF
fi
-echo $ac_n "checking for alloca""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for alloca""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1885 "configure"
+#line 2193 "configure"
#include "confdefs.h"
#ifdef __GNUC__
@@ -1900,12 +2208,12 @@ char *alloca ();
# endif
#endif
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
char *p = (char *) alloca(1);
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
ac_cv_func_alloca=yes
else
@@ -1915,7 +2223,8 @@ fi
rm -f conftest*
fi
-echo "$ac_t""$ac_cv_func_alloca" 1>&4
+
+echo "$ac_t""$ac_cv_func_alloca" 1>&6
if test $ac_cv_func_alloca = yes; then
cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA 1
@@ -1934,12 +2243,12 @@ if test $ac_cv_func_alloca = no; then
EOF
-echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1943 "configure"
+#line 2252 "configure"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
webecray
@@ -1959,148 +2268,72 @@ fi
rm -f conftest*
fi
-echo "$ac_t""$ac_cv_os_cray" 1>&4
+
+echo "$ac_t""$ac_cv_os_cray" 1>&6
if test $ac_cv_os_cray = yes; then
-echo $ac_n "checking for _getb67""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+for ac_func in _getb67 GETB67 getb67; do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1970 "configure"
+#line 2281 "configure"
#include "confdefs.h"
-#include <ctype.h> /* Arbitrary system header to define __stub macros. */
-int main() { return 0; }
-int t() {
-
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub__getb67) || defined (__stub____getb67)
-choke me
-#else
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
-char _getb67(); _getb67();
-#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char $ac_func();
-; return 0; }
-EOF
-if eval $ac_link; then
- rm -rf conftest*
- eval "ac_cv_func__getb67=yes"
-else
- rm -rf conftest*
- eval "ac_cv_func__getb67=no"
-fi
-rm -f conftest*
-
-fi
-if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
- echo "$ac_t""yes" 1>&4
- cat >> confdefs.h <<\EOF
-#define CRAY_STACKSEG_END _getb67
-EOF
-
-else
- echo "$ac_t""no" 1>&4
-echo $ac_n "checking for GETB67""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
-else
- cat > conftest.$ac_ext <<EOF
-#line 2011 "configure"
-#include "confdefs.h"
-#include <ctype.h> /* Arbitrary system header to define __stub macros. */
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
-#if defined (__stub_GETB67) || defined (__stub___GETB67)
-choke me
-#else
-/* Override any gcc2 internal prototype to avoid an error. */
-char GETB67(); GETB67();
-#endif
-
-; return 0; }
-EOF
-if eval $ac_link; then
- rm -rf conftest*
- eval "ac_cv_func_GETB67=yes"
-else
- rm -rf conftest*
- eval "ac_cv_func_GETB67=no"
-fi
-rm -f conftest*
-
-fi
-if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
- echo "$ac_t""yes" 1>&4
- cat >> confdefs.h <<\EOF
-#define CRAY_STACKSEG_END GETB67
-EOF
-
-else
- echo "$ac_t""no" 1>&4
-echo $ac_n "checking for getb67""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
-else
- cat > conftest.$ac_ext <<EOF
-#line 2052 "configure"
-#include "confdefs.h"
-#include <ctype.h> /* Arbitrary system header to define __stub macros. */
-int main() { return 0; }
-int t() {
-
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_getb67) || defined (__stub___getb67)
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-/* Override any gcc2 internal prototype to avoid an error. */
-char getb67(); getb67();
+$ac_func();
#endif
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_func_getb67=yes"
+ eval "ac_cv_func_$ac_func=yes"
else
rm -rf conftest*
- eval "ac_cv_func_getb67=no"
+ eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi
-if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
- echo "$ac_t""yes" 1>&4
- cat >> confdefs.h <<\EOF
-#define CRAY_STACKSEG_END getb67
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ cat >> confdefs.h <<EOF
+#define CRAY_STACKSEG_END $ac_func
EOF
+ break
else
- echo "$ac_t""no" 1>&4
-fi
-
-fi
-
+ echo "$ac_t""no" 1>&6
fi
+done
fi
-echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
ac_cv_c_stack_direction=0
else
cat > conftest.$ac_ext <<EOF
-#line 2104 "configure"
+#line 2337 "configure"
#include "confdefs.h"
find_stack_direction ()
{
@@ -2119,7 +2352,7 @@ main ()
exit (find_stack_direction() < 0);
}
EOF
-eval $ac_link
+{ (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
if test -s conftest && (./conftest; exit) 2>/dev/null; then
ac_cv_c_stack_direction=1
else
@@ -2128,7 +2361,8 @@ fi
fi
rm -fr conftest*
fi
-echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
+
+echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
cat >> confdefs.h <<EOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
EOF
@@ -2136,21 +2370,21 @@ EOF
fi
-echo $ac_n "checking for 3-argument setpriority function""... $ac_c" 1>&4
-if eval "test \"`echo '${'utils_cv_func_setpriority'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for 3-argument setpriority function""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'utils_cv_func_setpriority'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2145 "configure"
+#line 2379 "configure"
#include "confdefs.h"
#include <sys/time.h>
#include <sys/resource.h>
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
setpriority(0, 0, 0);
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
utils_cv_func_setpriority=yes
else
@@ -2161,25 +2395,25 @@ rm -f conftest*
fi
-echo "$ac_t""$utils_cv_func_setpriority" 1>&4
+echo "$ac_t""$utils_cv_func_setpriority" 1>&6
if test $utils_cv_func_setpriority = yes; then
PROGS="$PROGS nice nohup"
MAN="$MAN nice.1 nohup.1"
else
- echo $ac_n "checking for nice function""... $ac_c" 1>&4
- if eval "test \"`echo '${'utils_cv_func_nice'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ echo $ac_n "checking for nice function""... $ac_c" 1>&6
+ if eval "test \"`echo '$''{'utils_cv_func_nice'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2175 "configure"
+#line 2409 "configure"
#include "confdefs.h"
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
nice();
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
utils_cv_func_nice=yes
else
@@ -2190,7 +2424,7 @@ rm -f conftest*
fi
- echo "$ac_t""$utils_cv_func_nice" 1>&4
+ echo "$ac_t""$utils_cv_func_nice" 1>&6
if test $utils_cv_func_nice = yes; then
cat >> confdefs.h <<\EOF
#define NICE_PRIORITY 1
@@ -2201,21 +2435,21 @@ EOF
fi
fi
-echo $ac_n "checking ut_host in struct utmp""... $ac_c" 1>&4
-if eval "test \"`echo '${'su_cv_func_ut_host_in_utmp'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking ut_host in struct utmp""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'su_cv_func_ut_host_in_utmp'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2210 "configure"
+#line 2444 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <utmp.h>
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
struct utmp ut; ut.ut_host;
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
su_cv_func_ut_host_in_utmp=yes
else
@@ -2226,7 +2460,7 @@ rm -f conftest*
fi
-echo "$ac_t""$su_cv_func_ut_host_in_utmp" 1>&4
+echo "$ac_t""$su_cv_func_ut_host_in_utmp" 1>&6
if test $su_cv_func_ut_host_in_utmp = yes; then
have_ut_host=1
cat >> confdefs.h <<\EOF
@@ -2236,21 +2470,21 @@ EOF
fi
if test -z "$have_ut_host"; then
- echo $ac_n "checking ut_host in struct utmpx""... $ac_c" 1>&4
- if eval "test \"`echo '${'su_cv_func_ut_host_in_utmpx'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ echo $ac_n "checking ut_host in struct utmpx""... $ac_c" 1>&6
+ if eval "test \"`echo '$''{'su_cv_func_ut_host_in_utmpx'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2245 "configure"
+#line 2479 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <utmpx.h>
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
struct utmpx ut; ut.ut_host;
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
su_cv_func_ut_host_in_utmpx=yes
else
@@ -2261,7 +2495,7 @@ rm -f conftest*
fi
- echo "$ac_t""$su_cv_func_ut_host_in_utmpx" 1>&4
+ echo "$ac_t""$su_cv_func_ut_host_in_utmpx" 1>&6
if test $su_cv_func_ut_host_in_utmpx = yes; then
cat >> confdefs.h <<\EOF
#define HAVE_UTMPX_H 1
@@ -2274,23 +2508,23 @@ EOF
fi
fi
-echo $ac_n "checking POSIX termios""... $ac_c" 1>&4
-if eval "test \"`echo '${'su_cv_sys_posix_termios'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'su_cv_sys_posix_termios'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2283 "configure"
+#line 2517 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <unistd.h>
#include <termios.h>
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
/* SunOS 4.0.3 has termios.h but not the library calls. */
tcgetattr(0, 0);
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
su_cv_sys_posix_termios=yes
else
@@ -2301,26 +2535,26 @@ rm -f conftest*
fi
-echo "$ac_t""$su_cv_sys_posix_termios" 1>&4
+echo "$ac_t""$su_cv_sys_posix_termios" 1>&6
if test $su_cv_sys_posix_termios = yes; then
PROGS="$PROGS stty" MAN="$MAN stty.1"
- echo $ac_n "checking c_line in struct termios""... $ac_c" 1>&4
- if eval "test \"`echo '${'su_cv_sys_c_line_in_termios'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ echo $ac_n "checking c_line in struct termios""... $ac_c" 1>&6
+ if eval "test \"`echo '$''{'su_cv_sys_c_line_in_termios'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2315 "configure"
+#line 2549 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <termios.h>
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
struct termios t; t.c_line;
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
su_cv_sys_c_line_in_termios=yes
else
@@ -2331,27 +2565,27 @@ rm -f conftest*
fi
- echo "$ac_t""$su_cv_sys_c_line_in_termios" 1>&4
+ echo "$ac_t""$su_cv_sys_c_line_in_termios" 1>&6
test $su_cv_sys_c_line_in_termios = yes && cat >> confdefs.h <<\EOF
#define HAVE_C_LINE 1
EOF
- echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&4
- if eval "test \"`echo '${'su_cv_sys_tiocgwinsz_in_termios_h'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
+ if eval "test \"`echo '$''{'su_cv_sys_tiocgwinsz_in_termios_h'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2346 "configure"
+#line 2580 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <termios.h>
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
int x = TIOCGWINSZ;
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
su_cv_sys_tiocgwinsz_in_termios_h=yes
else
@@ -2362,27 +2596,27 @@ rm -f conftest*
fi
- echo "$ac_t""$su_cv_sys_tiocgwinsz_in_termios_h" 1>&4
+ echo "$ac_t""$su_cv_sys_tiocgwinsz_in_termios_h" 1>&6
else
su_cv_sys_tiocgwinsz_in_termios_h=no
fi
if test $su_cv_sys_tiocgwinsz_in_termios_h = no; then
- echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&4
- if eval "test \"`echo '${'su_cv_sys_tiocgwinsz_in_sys_ioctl_h'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
+ if eval "test \"`echo '$''{'su_cv_sys_tiocgwinsz_in_sys_ioctl_h'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2377 "configure"
+#line 2611 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/ioctl.h>
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
int x = TIOCGWINSZ;
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
su_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
else
@@ -2393,7 +2627,7 @@ rm -f conftest*
fi
- echo "$ac_t""$su_cv_sys_tiocgwinsz_in_sys_ioctl_h" 1>&4
+ echo "$ac_t""$su_cv_sys_tiocgwinsz_in_sys_ioctl_h" 1>&6
test $su_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes \
&& cat >> confdefs.h <<\EOF
@@ -2402,17 +2636,18 @@ EOF
fi
-ac_safe=`echo "sys/ptem.h" | tr './' '__'`
-echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ac_safe=`echo "sys/ptem.h" | tr './\055' '___'`
+echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2412 "configure"
+#line 2646 "configure"
#include "confdefs.h"
#include <sys/ptem.h>
EOF
-eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:2651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -2425,157 +2660,171 @@ fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&4
+ echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define WINSIZE_IN_PTEM 1
EOF
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
# The -lsun library is required for YP support on Irix-4.0.5 systems.
-echo $ac_n "checking for -lsun""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_lib_sun'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for -lsun""... $ac_c" 1>&6
+ac_lib_var=`echo sun'_'yp_match | tr './+\055' '__p_'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="$LIBS -lsun "
+LIBS="-lsun $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2447 "configure"
+#line 2683 "configure"
#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char yp_match();
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
yp_match()
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_lib_sun=yes"
+ eval "ac_cv_lib_$ac_lib_var=yes"
else
rm -rf conftest*
- eval "ac_cv_lib_sun=no"
+ eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
-if eval "test \"`echo '$ac_cv_lib_'sun`\" = yes"; then
- echo "$ac_t""yes" 1>&4
- ac_tr_lib=HAVE_LIB`echo sun | tr '[a-z]' '[A-Z]'`
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_lib=HAVE_LIB`echo sun | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
- LIBS="$LIBS -lsun"
+ LIBS="-lsun $LIBS"
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
-echo "checking for shadow password routines" 1>&4
+echo "checking for shadow password routines" 1>&6
# Needed on SysV for shadow passwords.
-echo $ac_n "checking for -lsec""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_lib_sec'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for -lsec""... $ac_c" 1>&6
+ac_lib_var=`echo sec'_'main | tr './+\055' '__p_'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="$LIBS -lsec "
+LIBS="-lsec $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2489 "configure"
+#line 2730 "configure"
#include "confdefs.h"
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
main()
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_lib_sec=yes"
+ eval "ac_cv_lib_$ac_lib_var=yes"
else
rm -rf conftest*
- eval "ac_cv_lib_sec=no"
+ eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
-if eval "test \"`echo '$ac_cv_lib_'sec`\" = yes"; then
- echo "$ac_t""yes" 1>&4
- ac_tr_lib=HAVE_LIB`echo sec | tr '[a-z]' '[A-Z]'`
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_lib=HAVE_LIB`echo sec | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
- LIBS="$LIBS -lsec"
+ LIBS="-lsec $LIBS"
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
# Needed on Linux for shadow passwords.
-echo $ac_n "checking for -lshadow""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_lib_shadow'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for -lshadow""... $ac_c" 1>&6
+ac_lib_var=`echo shadow'_'main | tr './+\055' '__p_'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="$LIBS -lshadow "
+LIBS="-lshadow $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2530 "configure"
+#line 2772 "configure"
#include "confdefs.h"
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
main()
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_lib_shadow=yes"
+ eval "ac_cv_lib_$ac_lib_var=yes"
else
rm -rf conftest*
- eval "ac_cv_lib_shadow=no"
+ eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
-if eval "test \"`echo '$ac_cv_lib_'shadow`\" = yes"; then
- echo "$ac_t""yes" 1>&4
- ac_tr_lib=HAVE_LIB`echo shadow | tr '[a-z]' '[A-Z]'`
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_lib=HAVE_LIB`echo shadow | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
- LIBS="$LIBS -lshadow"
+ LIBS="-lshadow $LIBS"
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
cat > conftest.$ac_ext <<EOF
-#line 2564 "configure"
+#line 2806 "configure"
#include "confdefs.h"
#include <shadow.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "sp_pwdp" >/dev/null 2>&1; then
rm -rf conftest*
- echo $ac_n "checking for getspnam""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_func_getspnam'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ echo $ac_n "checking for getspnam""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_func_getspnam'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2576 "configure"
+#line 2818 "configure"
#include "confdefs.h"
-#include <ctype.h> /* Arbitrary system header to define __stub macros. */
-int main() { return 0; }
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char getspnam(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char getspnam();
+
+int main() { t(); return 0; }
int t() {
/* The GNU C library defines this for functions which it implements
@@ -2584,13 +2833,12 @@ int t() {
#if defined (__stub_getspnam) || defined (__stub___getspnam)
choke me
#else
-/* Override any gcc2 internal prototype to avoid an error. */
-char getspnam(); getspnam();
+getspnam();
#endif
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_getspnam=yes"
else
@@ -2601,13 +2849,13 @@ rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'getspnam`\" = yes"; then
- echo "$ac_t""yes" 1>&4
+ echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
#define HAVE_SHADOW_H 1
EOF
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
fi
@@ -2616,15 +2864,22 @@ rm -f conftest*
for ac_func in crypt
do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2625 "configure"
+#line 2873 "configure"
#include "confdefs.h"
-#include <ctype.h> /* Arbitrary system header to define __stub macros. */
-int main() { return 0; }
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+#include <assert.h>
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char $ac_func();
+
+int main() { t(); return 0; }
int t() {
/* The GNU C library defines this for functions which it implements
@@ -2633,13 +2888,12 @@ int t() {
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
-/* Override any gcc2 internal prototype to avoid an error. */
-char $ac_func(); $ac_func();
+$ac_func();
#endif
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -2650,88 +2904,98 @@ rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&4
- ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
+ echo "$ac_t""yes" 1>&6
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
done
if test $ac_cv_func_crypt = no; then
# SCO-ODT-3.0 is reported to need this library for crypt.
- echo $ac_n "checking for -lufc""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_lib_ufc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ echo $ac_n "checking for -lufc""... $ac_c" 1>&6
+ac_lib_var=`echo ufc'_'crypt | tr './+\055' '__p_'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="$LIBS -lufc "
+LIBS="-lufc $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2674 "configure"
+#line 2929 "configure"
#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char crypt();
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
crypt()
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_lib_ufc=yes"
+ eval "ac_cv_lib_$ac_lib_var=yes"
else
rm -rf conftest*
- eval "ac_cv_lib_ufc=no"
+ eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
-if eval "test \"`echo '$ac_cv_lib_'ufc`\" = yes"; then
- echo "$ac_t""yes" 1>&4
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
LIBS="$LIBS -lufc"
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
# NetBSD needs this library for crypt.
- echo $ac_n "checking for -lcrypt""... $ac_c" 1>&4
-if eval "test \"`echo '${'ac_cv_lib_crypt'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&4
+ echo $ac_n "checking for -lcrypt""... $ac_c" 1>&6
+ac_lib_var=`echo crypt'_'crypt | tr './+\055' '__p_'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="$LIBS -lcrypt "
+LIBS="-lcrypt $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2706 "configure"
+#line 2966 "configure"
#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char crypt();
-int main() { return 0; }
+int main() { t(); return 0; }
int t() {
crypt()
; return 0; }
EOF
-if eval $ac_link; then
+if { (eval echo configure:2978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
- eval "ac_cv_lib_crypt=yes"
+ eval "ac_cv_lib_$ac_lib_var=yes"
else
rm -rf conftest*
- eval "ac_cv_lib_crypt=no"
+ eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
-if eval "test \"`echo '$ac_cv_lib_'crypt`\" = yes"; then
- echo "$ac_t""yes" 1>&4
- ac_tr_lib=HAVE_LIB`echo crypt | tr '[a-z]' '[A-Z]'`
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_lib=HAVE_LIB`echo crypt | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
- LIBS="$LIBS -lcrypt"
+ LIBS="-lcrypt $LIBS"
else
- echo "$ac_t""no" 1>&4
+ echo "$ac_t""no" 1>&6
fi
fi
@@ -2739,9 +3003,7 @@ fi
fi
trap '' 1 2 15
-if test -w $cache_file; then
-echo "updating cache $cache_file"
-cat > $cache_file <<\EOF
+cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
@@ -2757,17 +3019,26 @@ cat > $cache_file <<\EOF
# --recheck option to rerun configure.
#
EOF
-# Ultrix sh set writes to stderr and can't be redirected directly.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
- sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
- >> $cache_file
+ sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
+ >> confcache
+if cmp -s $cache_file confcache; then
+ :
else
-echo "not updating unwritable cache $cache_file"
+ if test -w $cache_file; then
+ echo "updating cache $cache_file"
+ cat confcache > $cache_file
+ else
+ echo "not updating unwritable cache $cache_file"
+ fi
fi
+rm -f confcache
-trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
+trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
-test "x$prefix" = xNONE && prefix=/usr/local
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
@@ -2786,9 +3057,11 @@ DEFS=-DHAVE_CONFIG_H
: ${CONFIG_STATUS=./config.status}
echo creating $CONFIG_STATUS
-rm -f $CONFIG_STATUS
+# Some systems, like AmigaOS, won't allow you to remove a script that is
+# being executed, so just move it out of the way instead.
+if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
cat > $CONFIG_STATUS <<EOF
-#!/bin/sh
+#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
@@ -2807,7 +3080,7 @@ do
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- echo "$CONFIG_STATUS generated by autoconf version 1.120"
+ echo "$CONFIG_STATUS generated by autoconf version 2.10"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
@@ -2818,11 +3091,13 @@ done
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
-trap 'rm -fr Makefile doc/Makefile lib/Makefile man/Makefile src/Makefile config.h conftest*; exit 1' 1 2 15
+trap 'rm -fr `echo "Makefile doc/Makefile lib/Makefile man/Makefile src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+EOF
+cat >> $CONFIG_STATUS <<EOF
-# Protect against being on the right side of a sed subst in config.status.
-sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
- s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
+# Protect against being on the right side of a sed subst in config.status.
+sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
+ s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@CFLAGS@%$CFLAGS%g
@@ -2834,6 +3109,21 @@ s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
+s%@bindir@%$bindir%g
+s%@sbindir@%$sbindir%g
+s%@libexecdir@%$libexecdir%g
+s%@datadir@%$datadir%g
+s%@sysconfdir@%$sysconfdir%g
+s%@sharedstatedir@%$sharedstatedir%g
+s%@localstatedir@%$localstatedir%g
+s%@libdir@%$libdir%g
+s%@includedir@%$includedir%g
+s%@oldincludedir@%$oldincludedir%g
+s%@infodir@%$infodir%g
+s%@guidedir@%$guidedir%g
+s%@psdir@%$psdir%g
+s%@dvidir@%$dvidir%g
+s%@mandir@%$mandir%g
s%@PROGS@%$PROGS%g
s%@MAN@%$MAN%g
s%@SET_MAKE@%$SET_MAKE%g
@@ -2868,7 +3158,7 @@ for ac_file in .. $CONFIG_FILES; do if t
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
- ac_dir_suffix="/$ac_dir"
+ ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
# A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
else
@@ -2943,13 +3233,13 @@ EOF
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h. And first:
-# Protect against being on the right side of a sed subst in config.status.
+# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
-s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
+s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
@@ -2997,6 +3287,12 @@ cat >> $CONFIG_STATUS <<\EOF
echo "$ac_file is unchanged"
rm -f conftest.h
else
+ # Remove last slash and all that follows it. Not all systems have dirname.
+ ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
+ if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
+ # The file is in a subdirectory.
+ test ! -d "$ac_dir" && mkdir "$ac_dir"
+ fi
rm -f $ac_file
mv conftest.h $ac_file
fi
@@ -3007,5 +3303,6 @@ date > stamp-h
exit 0
EOF
chmod +x $CONFIG_STATUS
+rm -f CONFIG.STATUS.old
rm -fr confdefs* $ac_clean_files
-test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
+test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
diff -rup --new-file baseline/fsf/sh-utils/doc/Makefile.in amiga/fsf/sh-utils/doc/Makefile.in
--- baseline/fsf/sh-utils/doc/Makefile.in Thu Nov 3 23:52:12 1994
+++ amiga/fsf/sh-utils/doc/Makefile.in Sat Sep 28 00:00:00 1996
@@ -26,16 +26,19 @@ MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
prefix = @prefix@
-infodir = $(prefix)/info
+infodir = @infodir@
+guidedir = @guidedir@
.SUFFIXES:
DISTFILES = Makefile.in sh-utils.texi texinfo.tex sh-utils.info version.texi
-all: sh-utils.info
+all: sh-utils.info sh-utils.guide
info: sh-utils.info
+guide: sh-utils.guide
+
version.texi: ../src/version.c
sed -e '/version_string/!d' \
-e 's/[^"]*"\([^"]*\)".*/@set VERSION \1/' \
@@ -47,21 +50,27 @@ version.texi: ../src/version.c
sh-utils.info: sh-utils.texi version.texi
$(MAKEINFO) -I$(srcdir) --no-split sh-utils.texi --output=$@
+sh-utils.guide: sh-utils.texi version.texi
+ $(MAKEINFO) -I$(srcdir) --amiga-39 $(srcdir)/sh-utils.texi -o $@
+
dvi: sh-utils.dvi
sh-utils.dvi: sh-utils.texi version.texi
$(TEXI2DVI) $(srcdir)/sh-utils.texi
installdirs:
- $(srcdir)/../mkinstalldirs $(infodir)
+ $(srcdir)/../mkinstalldirs $(infodir) $(guidedir)
install: all installdirs
- cd $(srcdir) && for file in sh-utils.info; do \
+ for file in sh-utils.info*; do \
$(INSTALL_DATA) $$file $(infodir)/$$file; \
done
+ for file in sh-utils.guide; do \
+ $(INSTALL_DATA) $$file $(guidedir)/$$file; \
+ done
uninstall:
- rm -f $(infodir)/sh-utils.info
+ rm -f $(infodir)/sh-utils.info* $(guidedir)/sh-utils.guide
check:
@@ -77,7 +86,7 @@ distclean: clean
rm -f Makefile
realclean: distclean
- rm -f sh-utils.info version.texi
+ rm -f sh-utils.info sh-utils.guide version.texi
distdir = ../`cat ../distname`/$(subdir)
dist: $(DISTFILES)
diff -rup --new-file baseline/fsf/sh-utils/doc/sh-utils.info amiga/fsf/sh-utils/doc/sh-utils.info
--- baseline/fsf/sh-utils/doc/sh-utils.info Sat Nov 5 06:31:47 1994
+++ amiga/fsf/sh-utils/doc/sh-utils.info Wed Dec 31 17:00:00 1969
@@ -1,2760 +0,0 @@
-This is Info file sh-utils.info, produced by Makeinfo-1.55 from the
-input file sh-utils.texi.
-
-START-INFO-DIR-ENTRY
-* Shell utilities: (sh-utils). GNU shell utilities.
-* basename: (sh-utils)basename invocation. Strip directory and suffix.
-* date: (sh-utils)date invocation. Print/set system date and time.
-* dirname: (sh-utils)dirname invocation. Strip non-directory suffix.
-* echo: (sh-utils)echo invocation. Print a line of text.
-* env: (sh-utils)env invocation. Modify the environment.
-* expr: (sh-utils)expr invocation. Evaluate expressions.
-* false: (sh-utils)false invocation. Do nothing, unsuccessfully.
-* groups: (sh-utils)groups invocation. Print group names a user is in.
-* hostname: (sh-utils)hostname invocation. Print or set system name.
-* id: (sh-utils)id invocation. Print real/effective uid/gid.
-* logname: (sh-utils)logname invocation. Print current login name.
-* nice: (sh-utils)nice invocation. Modify scheduling priority.
-* pathchk: (sh-utils)pathchk invocation. Check file name portability.
-* printenv: (sh-utils)printenv invocation. Print environment variables.
-* printf: (sh-utils)printf invocation. Format and print data.
-* pwd: (sh-utils)pwd invocation. Print working directory.
-* sleep: (sh-utils)sleep invocation. Delay for a specified time.
-* stty: (sh-utils)stty invocation. Print/change terminal settings.
-* su: (sh-utils)su invocation. Modify user and group id.
-* tee: (sh-utils)tee invocation. Redirect to multiple files.
-* test: (sh-utils)test invocation. File/string tests.
-* true: (sh-utils)true invocation. Do nothing, successfully.
-* tty: (sh-utils)tty invocation. Print terminal name.
-* uname: (sh-utils)uname invocation. Print system information.
-* users: (sh-utils)users invocation. Print current user names.
-* who: (sh-utils)who invocation. Print who is logged in.
-* whoami: (sh-utils)whoami invocation. Print effective user id.
-* yes: (sh-utils)yes invocation. Print a string indefinitely.
-END-INFO-DIR-ENTRY
-
- This file documents the GNU shell utilities.
-
- Copyright (C) 1994 Free Software Foundation, Inc.
-
- Permission is granted to make and distribute verbatim copies of this
-manual provided the copyright notice and this permission notice are
-preserved on all copies.
-
- Permission is granted to copy and distribute modified versions of
-this manual under the conditions for verbatim copying, provided that
-the entire resulting derived work is distributed under the terms of a
-permission notice identical to this one.
-
- Permission is granted to copy and distribute translations of this
-manual into another language, under the above conditions for modified
-versions, except that this permission notice may be stated in a
-translation approved by the Foundation.
-
-
-File: sh-utils.info, Node: Top, Next: Introduction, Prev: (DIR), Up: (DIR)
-
-GNU shell utilities
-*******************
-
- This manual minimally documents version GNU sh-utils 1.12 of the GNU
-shell utilities.
-
-* Menu:
-
-* Introduction:: Caveats, overview, and authors.
-* Common options:: Common options.
-* Printing text:: echo printf yes
-* Conditions:: false true test expr
-* Redirection:: tee
-* File name manipulation:: dirname basename pathchk
-* Working context information:: pwd stty printenv tty
-* User information:: id logname whoami groups users who
-* System context:: date uname hostname
-* Modified command invocation:: env nice nohup su
-* Delaying:: sleep
-* Index:: General index.
-
-
-File: sh-utils.info, Node: Introduction, Next: Common options, Prev: Top, Up: Top
-
-Introduction
-************
-
- First of all, this manual is incomplete. The `stty' section, in
-particular, needs substantial reorganization and additional explanatory
-text before it will be up to the standard of other GNU manuals.
-Explanatory text in general is lacking; the manual presently assumes you
-pretty much know what to do, and just need to be reminded of how. Thus,
-if you are interested, please get involved in improving this manual.
-The entire GNU community will benefit.
-
- Some of these programs are useful only when writing shell scripts;
-utilities like these are, in fact, the "language" of shell scripts (to
-a great extent). Others are occasionally useful interactively.
-
- The GNU shell utilities are mostly compatible with the POSIX.2
-standard.
-
- Please report bugs to `bug-gnu-utils@prep.ai.mit.edu'. Remember to
-include the version number, machine architecture, input files, and any
-other information needed to reproduce the bug. *Note Bugs: (gcc)Bugs.
-
- This manual is based on the Unix man pages in the distribution, which
-were originally written by David MacKenzie and updated by Jim Meyering.
-Franc,ois Pinard did the initial conversion to Texinfo format. Karl
-Berry did the indexing, some reorganization, and editing of the results.
-Richard Stallman contributed his usual invaluable insights to the
-overall process.
-
-
-File: sh-utils.info, Node: Common options, Next: Printing text, Prev: Introduction, Up: Top
-
-Common options
-**************
-
- Certain options are available in all these programs. Rather than
-writing identical descriptions for each of the programs, they are
-described here. (In fact, every GNU program accepts (or should accept)
-these options.)
-
- Many of these programs take arbitrary strings as arguments. In those
-cases, `--help' and `--version' are taken as these options only if
-there is one and exactly one command line argument.
-
-`--help'
- Print a usage message listing all available options, then exit
- successfully.
-
-`--version'
- Print the version number, then exit successfully.
-
-
-File: sh-utils.info, Node: Printing text, Next: Conditions, Prev: Common options, Up: Top
-
-Printing text
-*************
-
- This section describes commands that display text strings.
-
-* Menu:
-
-* echo invocation:: Print a line of text.
-* printf invocation:: Format and print data.
-* yes invocation:: Print a string until interrupted.
-
-
-File: sh-utils.info, Node: echo invocation, Next: printf invocation, Up: Printing text
-
-`echo': Print a line of text
-============================
-
- Synopsis:
-
- echo [ OPTION ]... [ STRING ]...
-
- `echo' writes each given STRING to standard output, with a space
-between each and a newline after the last one.
-
- The program accepts the following options. Also see *Note Common
-options::.
-
-`-n'
- Do not output the trailing newline.
-
-`-e'
- Enable interpretation of the following backslash-escaped
- characters in each STRING:
-
- `\a'
- alert (bell)
-
- `\b'
- backspace
-
- `\c'
- suppress trailing newline
-
- `\f'
- form feed
-
- `\n'
- new line
-
- `\r'
- carriage return
-
- `\t'
- horizontal tab
-
- `\v'
- vertical tab
-
- `\\'
- backslash
-
- `\NNN'
- the character whose ASCII code is NNN (octal); if NNN is not
- a valid octal number, it is printed literally.
-
-
-File: sh-utils.info, Node: printf invocation, Next: yes invocation, Prev: echo invocation, Up: Printing text
-
-`printf': Format and print data
-===============================
-
- Synopsis:
-
- printf FORMAT [ ARGUMENT ]...
-
- `printf' prints the FORMAT string, interpreting `%' directives and
-`\' escapes in the same way as the C `printf' function. The FORMAT
-argument is re-used as necessary to convert all of the given ARGUMENTs.
-
- `printf' has one additional directive, `%b', which prints its
-argument string with `\' escapes interpreted in the same way as in the
-FORMAT string.
-
- `printf' interprets `\0ooo' in FORMAT as an octal number (if OOO is
-0 to 3 octal digits) specifying a character to print, and `\xhhh' as a
-hexadecimal number (if HHH is 1 to 3 hex digits) specifying a character
-to print.
-
- An additional escape, `\c', causes `printf' to produce no further
-output.
-
- The only options are a lone `--help' or `--version'. *Note Common
-options::.
-
-
-File: sh-utils.info, Node: yes invocation, Prev: printf invocation, Up: Printing text
-
-`yes': Print a string until interrupted
-=======================================
-
- `yes' prints the command line arguments, separated by spaces and
-followed by a newline, forever until it is killed. If no arguments are
-given, it prints `y' followed by a newline forever until killed.
-
- The only options are a lone `--help' or `--version'. *Note Common
-options::.
-
-
-File: sh-utils.info, Node: Conditions, Next: Redirection, Prev: Printing text, Up: Top
-
-Conditions
-**********
-
- This section describes commands that are primarily useful for their
-exit status, rather than their output. Thus, they are often used as the
-condition of shell `if' statements, or as the last command in a
-pipeline.
-
-* Menu:
-
-* false invocation:: Do nothing, unsuccessfully.
-* true invocation:: Do nothing, successfully.
-* test invocation:: Check file types and compare values.
-* expr invocation:: Evaluate expressions.
-
-
-File: sh-utils.info, Node: false invocation, Next: true invocation, Up: Conditions
-
-`false': Do nothing, unsuccessfully
-===================================
-
- `false' does nothing except return an exit status of 1, meaning
-"failure". It can be used as a place holder in shell scripts where an
-unsuccessful command is needed.
-
- Any arguments are ignored, except for a lone `--help' or `--version'
-(*note Common options::.).
-
-
-File: sh-utils.info, Node: true invocation, Next: test invocation, Prev: false invocation, Up: Conditions
-
-`true': Do nothing, successfully
-================================
-
- `true' does nothing except return an exit status of 0, meaning
-"success". It can be used as a place holder in shell scripts where a
-successful command is needed, although the shell built-in command `:'
-(colon) may be faster.
-
- Any arguments are ignored, except for a lone `--help' or `--version'
-(*note Common options::.).
-
-
-File: sh-utils.info, Node: test invocation, Next: expr invocation, Prev: true invocation, Up: Conditions
-
-`test': Check file types and compare values
-===========================================
-
- `test' returns a status of 0 (true) or 1 (false) depending on the
-evaluation of the conditional expression EXPR. Each part of the
-expression must be a separate argument.
-
- `test' has file status checks, string operators, and numeric
-comparison operators.
-
- Because most shells have a built-in command by the same name, using
-the unadorned command name in a script or interactively may get you
-different functionality than that described here.
-
- Besides the options below, `test' accepts a lone `--help' or
-`--version'. *Note Common options::. A single non-option argument is
-also allowed: `test' returns true if the argument is not null.
-
-* Menu:
-
-* File type tests:: -[bcdfhLpSt]
-* Access permission tests:: -[gkruwxOG]
-* File characteristics tests:: -e -s -nt -ot -ef
-* String tests:: -z -n = !=
-* Numeric tests:: -eq -ne -lt -le -gt -ge
-* Connectives for test:: ! -a -o
-
-
-File: sh-utils.info, Node: File type tests, Next: Access permission tests, Up: test invocation
-
-File type tests
----------------
-
- These options test for particular types of files. (Everything's a
-file, but not all files are the same!)
-
-`-b FILE'
- True if FILE exists and is a block special device.
-
-`-c FILE'
- True if FILE exists and is a character special device.
-
-`-d FILE'
- True if FILE exists and is a directory.
-
-`-f FILE'
- True if FILE exists and is a regular file.
-
-`-h FILE'
-`-L FILE'
- True if FILE exists and is a symbolic link.
-
-`-p FILE'
- True if FILE exists and is a named pipe.
-
-`-S FILE'
- True if FILE exists and is a socket.
-
-`-t [ FD ]'
- True if FD is opened on a terminal. If FD is omitted, it defaults
- to 1 (standard output).
-
-
-File: sh-utils.info, Node: Access permission tests, Next: File characteristics tests, Prev: File type tests, Up: test invocation
-
-Access permission tests
------------------------
-
- These options test for particular access permissions.
-
-`-g FILE'
- True if FILE exists and has its set-group-id bit set.
-
-`-k FILE'
- True if FILE has its "sticky" bit set.
-
-`-r FILE'
- True if FILE exists and is readable.
-
-`-u FILE'
- True if FILE exists and has its set-user-id bit set.
-
-`-w FILE'
- True if FILE exists and is writable.
-
-`-x FILE'
- True if FILE exists and is executable.
-
-`-O FILE'
- True if FILE exists and is owned by the current effective user id.
-
-`-G FILE'
- True if FILE exists and is owned by the current effective group id.
-
-
-File: sh-utils.info, Node: File characteristics tests, Next: String tests, Prev: Access permission tests, Up: test invocation
-
-File characteristics tests
---------------------------
-
- These options test other file characteristics.
-
-`-e FILE'
- True if FILE exists.
-
-`-s FILE'
- True if FILE exists and has a size greater than zero.
-
-`FILE1 -nt FILE2'
- True if FILE1 is newer (according to modification date) than FILE2.
-
-`FILE1 -ot FILE2'
- True if FILE1 is older (according to modification date) than FILE2.
-
-`FILE1 -ef FILE2'
- True if FILE1 and FILE2 have the same device and inode numbers,
- i.e., if they are hard links to each other.
-
-
-File: sh-utils.info, Node: String tests, Next: Numeric tests, Prev: File characteristics tests, Up: test invocation
-
-String tests
-------------
-
- These options test string characteristics. Strings are not quoted
-for `test', though you may need to quote them to protect characters
-with special meaning to the shell, e.g., spaces.
-
-`-z STRING'
- True if the length of STRING is zero.
-
-`-n STRING'
-`STRING'
- True if the length of STRING is non-zero.
-
-`STRING1 = STRING2'
- True if the strings are equal.
-
-`STRING1 != STRING2'
- True if the strings are not equal.
-
-
-File: sh-utils.info, Node: Numeric tests, Next: Connectives for test, Prev: String tests, Up: test invocation
-
-Numeric tests
--------------
-
- Numeric relationals. The arguments must be entirely numeric
-(possibly negative), or the special expression `-l STRING', which
-evaluates to the length of STRING.
-
-`ARG1 -eq ARG2'
-`ARG1 -ne ARG2'
-`ARG1 -lt ARG2'
-`ARG1 -le ARG2'
-`ARG1 -gt ARG2'
-`ARG1 -ge ARG2'
- These arithmetic binary operators return true if ARG1 is equal,
- not-equal, less-than, less-than-or-equal, greater-than, or
- greater-than-or-equal than ARG2, respectively.
-
- For example:
-
- test -1 -gt -2 && echo yes
- => yes
- test -l abc -gt 1 && echo yes
- => yes
- test 0x100 -eq 1
- error--> test: integer expression expected before -eq
-
-
-File: sh-utils.info, Node: Connectives for test, Prev: Numeric tests, Up: test invocation
-
-Connectives for `test'
-----------------------
-
- The usual logical connectives.
-
-`! EXPR'
- True if EXPR is false.
-
-`EXPR1 -a EXPR2'
- True if both EXPR1 and EXPR2 are true.
-
-`EXPR1 -o EXPR2'
- True if either EXPR1 or EXPR2 is true.
-
-
-File: sh-utils.info, Node: expr invocation, Prev: test invocation, Up: Conditions
-
-`expr': Evaluate expressions
-============================
-
- `expr' evaluates an expression and writes the result on standard
-output. Each token of the expression must be a separate argument.
-
- Operands are either numbers or strings. `expr' coerces anything
-appearing in an operand position to an integer or a string depending on
-the operation being applied to it.
-
- Strings are not quoted for `expr', though you may need to quote them
-to protect characters with special meaning to the shell, e.g., spaces.
-
- Operators may given as infix symbols or prefix keywords. Parentheses
-may be used for grouping in the usual manner (you must quote parentheses
-to avoid the shell evaluating them, however).
-
- Exit status:
-
- 0 if the expression is neither null nor 0,
- 1 if the expression is null or 0,
- 2 for invalid expressions.
-
-* Menu:
-
-* Relations for expr:: | & < <= = == != >= >
-* Numeric expressions:: + - * / %
-* String expressions:: : match substr index length
-* Examples of expr:: Examples.
-
-
-File: sh-utils.info, Node: Relations for expr, Next: Numeric expressions, Up: expr invocation
-
-Relations for `expr'
---------------------
-
- The usual logical connectives and relations, in order of precedence.
-
-`|'
- Yields its first argument if it is neither null nor 0, otherwise
- its second argument.
-
-`&'
- Yields its first argument if neither argument is null or 0,
- otherwise 0.
-
-`< <= = == != >= >'
- Compare the arguments and return 1 if the relation is true, 0
- otherwise. `==' is a synonym for `='. `expr' first tries to
- coerce both arguments to numbers and do a numeric comparison; if
- either coercion fails, it does a lexicographic comparison.
-
-
-File: sh-utils.info, Node: Numeric expressions, Next: String expressions, Prev: Relations for expr, Up: expr invocation
-
-Numeric expressions
--------------------
-
- Numeric operators, in order of increasing precedence. The
-connectives (previous section) have higher precedence, the string
-operators (following section) have lower.
-
-`+ -'
- Addition and subtraction. Both arguments are coerced to numbers;
- an error occurs if this cannot be done.
-
-`* / %'
- Multiplication, division, remainder. Both arguments are coerced to
- numbers; an error occurs if this cannot be done.
-
-
-File: sh-utils.info, Node: String expressions, Next: Examples of expr, Prev: Numeric expressions, Up: expr invocation
-
-String expressions
-------------------
-
- String operators. These have lowest precedence.
-
-`STRING : REGEX'
- Perform pattern matching. The arguments are coerced to strings
- and the second is considered to be a (basic, a la `grep') regular
- expression, with a `^' implicitly prepended. The first argument is
- then matched against this regular expression.
-
- If the match succeeds and REGEX uses `\(' and `\)', the `:'
- expression returns the part of STRING that matched the
- subexpression; otherwise, it returns the number of characters
- matched.
-
- If the match fails, the `:' operator returns the null string if
- `\(' and `\)' are used in REGEX, otherwise 0.
-
- Only the first `\( ... \)' pair is relevant to the return value;
- additional pairs are meaningful only for grouping the regular
- expression operators.
-
- *Note Regular Expression Library: (regex)Top, for details of
- regular expression syntax.
-
-`match STRING REGEX'
- An alternative way to do pattern matching. This is the same as
- `STRING : REGEX'.
-
-`substr STRING POSITION LENGTH'
- Returns the substring of STRING beginning at POSITION with length
- at most LENGTH. If either POSITION or LENGTH is negative or
- non-numeric, returns the null string.
-
-`index STRING CHARACTER-CLASS'
- Returns the first position in STRING where the first character in
- CHARSET was found. If no character in CHARSET is found in STRING,
- return 0.
-
-`length STRING'
- Returns the length of STRING.
-
- The keywords cannot be used as strings.
-
-
-File: sh-utils.info, Node: Examples of expr, Prev: String expressions, Up: expr invocation
-
-Examples of `expr'
-------------------
-
- Here are a few examples, including quoting for shell metacharacters.
-
- To add 1 to the shell variable `foo', in Bourne-compatible shells:
- foo=`expr $foo + 1`
-
- To print the non-directory part of the file name stored in `$fname',
-which need not contain a `/'.
- expr $fname : '.*/\(^.*\)' '^|' $fname
-
- expr abc : 'a\(.\)c'
- => b
- expr index abcdef cz
- => 3
- expr index index a
- error--> expr: syntax error
-
-
-File: sh-utils.info, Node: Redirection, Next: File name manipulation, Prev: Conditions, Up: Top
-
-Redirection
-***********
-
- Unix shells commonly provide several forms of "redirection"--ways to
-change the input source or output destination of a command. But one
-useful redirection is performed by a separate command, not by the shell;
-it's described here.
-
-* Menu:
-
-* tee invocation:: Redirect output to multiple files.
-
-
-File: sh-utils.info, Node: tee invocation, Up: Redirection
-
-`tee': Redirect output to multiple files
-========================================
-
- The `tee' command copies standard input to standard output and also
-to any files given as arguments. This is useful when you want not only
-to send some data down a pipe, but also to save a copy.
-
- Synopsis:
-
- tee [ OPTION ]... [ FILE ]...
-
- If a file being written to does not already exist, it is created.
-If a file being written to already exists, the data it previously
-contained is overwritten unless the `-a' option is used.
-
- The program accepts the following options. Also see *Note Common
-options::.
-
-`-a'
-`--append'
- Append standard input to the given files rather than overwriting
- them.
-
-`-i'
-`--ignore-interrupts'
- Ignore interrupt signals.
-
-
-File: sh-utils.info, Node: File name manipulation, Next: Working context information, Prev: Redirection, Up: Top
-
-File name manipulation
-**********************
-
- This section describes commands that manipulate file names.
-
-* Menu:
-
-* basename invocation:: Strip directory and suffix from a file name.
-* dirname invocation:: Strip non-directory suffix from a file name.
-* pathchk invocation:: Check file name portability.
-
-
-File: sh-utils.info, Node: basename invocation, Next: dirname invocation, Up: File name manipulation
-
-`basename': Strip directory and suffix from a file name
-=======================================================
-
- Synopsis:
-
- basename NAME [ SUFFIX ]
-
- The `basename' command removes any leading directory components from
-NAME. If SUFFIX is specified and is identical to the end of NAME, it
-is removed from NAME as well. `basename' prints the result on standard
-output.
-
- The only options are `--help' and `--version'. *Note Common
-options::.
-
-
-File: sh-utils.info, Node: dirname invocation, Next: pathchk invocation, Prev: basename invocation, Up: File name manipulation
-
-`dirname': Strip non-directory suffix from a file name
-======================================================
-
- Synopsis:
-
- dirname NAME
-
- `dirname' prints all but the final slash-delimited component of
-NAME. If NAME is a single component, `dirname' prints `.' (meaning the
-current directory).
-
- The only options are `--help' and `--version'. *Note Common
-options::.
-
-
-File: sh-utils.info, Node: pathchk invocation, Prev: dirname invocation, Up: File name manipulation
-
-`pathchk': Check file name portability
-======================================
-
- Synopsis:
-
- pathchk [ OPTION ]... NAME...
-
- For each NAME, `pathchk' prints a message if any of these conditions
-is true:
- 1. one of the existing directories in NAME does not have search
- (execute) permission,
-
- 2. the length of NAME is larger than its filesystem's maximum file
- name length,
-
- 3. the length of one component of NAME, corresponding to an existing
- directory name, is larger than its filesystem's maximum length for
- a file name component.
-
- The program accepts the following option. Also see *Note Common
-options::.
-
-`-p'
-`--portability'
- Instead of performing length checks on the underlying filesystem,
- test the length of each file name and its components against the
- POSIX.1 minimum limits for portability. Also check that the file
- name contains no characters not in the portable file name
- character set.
-
- Exit status:
-
- 0 if all specified file names passed all of the tests,
- 1 otherwise.
-
-
-File: sh-utils.info, Node: Working context information, Next: User information, Prev: File name manipulation, Up: Top
-
-Working context information
-***************************
-
- This section describes commands that display or alter the context in
-which you are working: the current directory, the terminal settings, and
-so forth. See also the user-related commands in the next section.
-
-* Menu:
-
-* pwd invocation:: Print working directory.
-* stty invocation:: Print or change terminal characteristics.
-* printenv invocation:: Print environment variables.
-* tty invocation:: Print file name of terminal on standard input.
-
-
-File: sh-utils.info, Node: pwd invocation, Next: stty invocation, Up: Working context information
-
-`pwd': Print working directory
-==============================
-
- `pwd' prints the fully resolved name of the current directory. That
-is, all components of the printed name will be actual directory
-names--none will be symbolic links.
-
- Because most shells have a built-in command by the same name, using
-the unadorned command name in a script or interactively may get you
-different functionality than that described here.
-
- The only options are a lone `--help' or `--version'. *Note Common
-options::.
-
-
-File: sh-utils.info, Node: stty invocation, Next: printenv invocation, Prev: pwd invocation, Up: Working context information
-
-`stty': Print or change terminal characteristics
-================================================
-
- If given no arguments, `stty' prints the baud rate, line discipline
-number (on systems that support it), and line settings that have been
-changed from the values set by `stty sane'. Mode reading and setting
-are performed on the tty line connected to standard input.
-
- `stty' accepts many non-option arguments that change aspects of the
-terminal line operation, as described below.
-
- Synopses:
-
- stty [ SETTING ]...
- stty [ OPTION ]
-
- The program accepts the following options. Also see *Note Common
-options::.
-
-`-a'
-`--all'
- Print all current settings in human-readable form.
-
-`-g'
-`--save'
- Print all current settings in a form that can be used as an
- argument to another `stty' command to restore the current settings.
-
- Many settings can be turned off by preceding them with a `-'. Such
-arguments are marked below with "May be negated" in their description.
-The descriptions themselves refer to the positive case, that is, when
-*not* negated (unless stated otherwise, of course).
-
- Some settings are not available on all POSIX systems, since they use
-extensions. Such arguments are marked below with "Non-POSIX" in their
-description. On non-POSIX systems, those or other settings also may not
-be available, but it's not feasible to document all the variations: just
-try it and see.
-
-* Menu:
-
-* Control:: Control settings
-* Input:: Input settings
-* Output:: Output settings
-* Local:: Local settings
-* Combination:: Combination settings
-* Characters:: Special characters
-* Special:: Special settings
-
-
-File: sh-utils.info, Node: Control, Next: Input, Up: stty invocation
-
-Control settings
-----------------
-
- Control settings:
-
-`parenb'
- Generate parity bit in output and expect parity bit in input. May
- be negated.
-
-`parodd'
- Set odd parity (even if negated). May be negated.
-
-`cs5'
-`cs6'
-`cs7'
-`cs8'
- Set character size to 5, 6, 7, or 8 bits.
-
-`hup'
-`hupcl'
- Send a hangup signal when the last process closes the tty. May be
- negated.
-
-`cstopb'
- Use two stop bits per character (one if negated). May be negated.
-
-`cread'
- Allow input to be received. May be negated.
-
-`clocal'
- Disable modem control signals. May be negated.
-
-`crtscts'
- Enable RTS/CTS flow control. Non-POSIX. May be negated.
-
-
-File: sh-utils.info, Node: Input, Next: Output, Prev: Control, Up: stty invocation
-
-Input settings
---------------
-
-`ignbrk'
- Ignore breaks. May be negated.
-
-`brkint'
- Make breaks cause an interrupt signal. May be negated.
-
-`ignpar'
- Ignore parity errors. May be negated.
-
-`parmrk'
- Mark parity errors (with a 255-0-character sequence). May be
- negated.
-
-`inpck'
- Enable input parity checking. May be negated.
-
-`istrip'
- Clear high (8th) bit of input characters. May be negated.
-
-`inlcr'
- Translate newline to carriage return. May be negated.
-
-`igncr'
- Ignore carriage return. May be negated.
-
-`icrnl'
- Translate carriage return to newline. May be negated.
-
-`ixon'
- Enable XON/XOFF flow control (that is, CTRL-s/CTRL-Q). May be
- negated.
-
-`ixoff'
-`tandem'
- Enable sending of `stop' character when the system input buffer is
- almost full, and `start' character when it becomes almost empty
- again. May be negated.
-
-`iuclc'
- Translate uppercase characters to lowercase. Non-POSIX. May be
- negated.
-
-`ixany'
- Allow any character to restart output (only the start character if
- negated). Non-POSIX. May be negated.
-
-`imaxbel'
- Enable beeping and not flushing input buffer if a character arrives
- when the input buffer is full. Non-POSIX. May be negated.
-
-
-File: sh-utils.info, Node: Output, Next: Local, Prev: Input, Up: stty invocation
-
-Output settings
----------------
-
- These arguments specify output-related operations.
-
-`opost'
- Postprocess output. May be negated.
-
-`olcuc'
- Translate lowercase characters to uppercase. Non-POSIX. May be
- negated.
-
-`ocrnl'
- Translate carriage return to newline. Non-POSIX. May be negated.
-
-`onlcr'
- Translate newline to carriage return-newline. Non-POSIX. May be
- negated.
-
-`onocr'
- Do not print carriage returns in the first column. Non-POSIX.
- May be negated.
-
-`onlret'
- Newline performs a carriage return. Non-POSIX. May be negated.
-
-`ofill'
- Use fill (padding) characters instead of timing for delays.
- Non-POSIX. May be negated.
-
-`ofdel'
- Use delete characters for fill instead of null characters.
- Non-POSIX. May be negated.
-
-`nl1'
-`nl0'
- Newline delay style. Non-POSIX.
-
-`cr3'
-`cr2'
-`cr1'
-`cr0'
- Carriage return delay style. Non-POSIX.
-
-`tab3'
-`tab2'
-`tab1'
-`tab0'
- Horizontal tab delay style. Non-POSIX.
-
-`bs1'
-`bs0'
- Backspace delay style. Non-POSIX.
-
-`vt1'
-`vt0'
- Vertical tab delay style. Non-POSIX.
-
-`ff1'
-`ff0'
- Form feed delay style. Non-POSIX.
-
-
-File: sh-utils.info, Node: Local, Next: Combination, Prev: Output, Up: stty invocation
-
-Local settings
---------------
-
-`isig'
- Enable `interrupt', `quit', and `suspend' special characters. May
- be negated.
-
-`icanon'
- Enable `erase', `kill', `werase', and `rprnt' special characters.
- May be negated.
-
-`iexten'
- Enable non-POSIX special characters. May be negated.
-
-`echo'
- Echo input characters. May be negated.
-
-`echoe'
-`crterase'
- Echo `erase' characters as backspace-space-backspace. May be
- negated.
-
-`echok'
- Echo a newline after a `kill' character. May be negated.
-
-`echonl'
- Echo newline even if not echoing other characters. May be negated.
-
-`noflsh'
- Disable flushing after `interrupt' and `quit' special characters.
- May be negated.
-
-`xcase'
- Enable input and output of uppercase characters by preceding their
- lowercase equivalents with `\', when `icanon' is set. Non-POSIX.
- May be negated.
-
-`tostop'
- Stop background jobs that try to write to the terminal. Non-POSIX.
- May be negated.
-
-`echoprt'
-`prterase'
- Echo erased characters backward, between `\' and `/'. Non-POSIX.
- May be negated.
-
-`echoctl'
-`ctlecho'
- Echo control characters in hat notation (`^C') instead of
- literally. Non-POSIX. May be negated.
-
-`echoke'
-`crtkill'
- Echo the `kill' special character by erasing each character on the
- line as indicated by the `echoprt' and `echoe' settings, instead
- of by the `echoctl' and `echok' settings. Non-POSIX. May be
- negated.
-
-
-File: sh-utils.info, Node: Combination, Next: Characters, Prev: Local, Up: stty invocation
-
-Combination settings
---------------------
-
- Combination settings:
-
-`evenp'
-`parity'
- Same as `parenb -parodd cs7'. May be negated. If negated, same
- as `-parenb cs8'.
-
-`oddp'
- Same as `parenb parodd cs7'. May be negated. If negated, same as
- `-parenb cs8'.
-
-`nl'
- Same as `-icrnl -onlcr'. May be negated. If negated, same as
- `icrnl -inlcr -igncr onlcr -ocrnl -onlret'.
-
-`ek'
- Reset the `erase' and `kill' special characters to their default
- values.
-
-`sane'
- Same as:
- cread -ignbrk brkint -inlcr -igncr icrnl -ixoff -iuclc -ixany
- imaxbel opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel
- nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl
- -noflsh -xcase -tostop -echoprt echoctl echoke
- and also sets all special characters to their default values.
-
-`cooked'
- Same as `brkint ignpar istrip icrnl ixon opost isig icanon', plus
- sets the `eof' and `eol' characters to their default values if
- they are the same as the `min' and `time' characters. May be
- negated. If negated, same as `raw'.
-
-`raw'
- Same as:
- -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr
- -icrnl -ixon -ixoff -iuclc -ixany -imaxbel -opost -isig -icanon
- -xcase min 1 time 0
- May be negated. If negated, same as `cooked'.
-
-`cbreak'
- Same as `-icanon'. May be negated. If negated, same as `icanon'.
-
-`pass8'
- Same as `-parenb -istrip cs8'. May be negated. If negated, same
- as `parenb istrip cs7'.
-
-`litout'
- Same as `-parenb -istrip -opost cs8'. May be negated. If
- negated, same as `parenb istrip opost cs7'.
-
-`decctlq'
- Same as `-ixany'. Non-POSIX. May be negated.
-
-`tabs'
- Same as `tab0'. Non-POSIX. May be negated. If negated, same as
- `tab3'.
-
-`lcase'
-`LCASE'
- Same as `xcase iuclc olcuc'. Non-POSIX. May be negated.
-
-`crt'
- Same as `echoe echoctl echoke'.
-
-`dec'
- Same as `echoe echoctl echoke -ixany intr ^C erase ^? kill C-u'.
-
-
-File: sh-utils.info, Node: Characters, Next: Special, Prev: Combination, Up: stty invocation
-
-Special characters
-------------------
-
- The special characters' default values vary from system to system.
-They are set with the syntax `name value', where the names are listed
-below and the value can be given either literally, in hat notation
-(`^C'), or as an integer which may start with `0x' to indicate
-hexadecimal, `0' to indicate octal, or any other digit to indicate
-decimal.
-
- For GNU stty, giving a value of `^-' or `undef' disables that
-special character. (This is incompatible with Ultrix `stty', which
-uses a value of `u' to disable a special character. GNU `stty' treats
-a value `u' like any other, namely to set that special character to u.)
-
-`intr'
- Send an interrupt signal.
-
-`quit'
- Send a quit signal.
-
-`erase'
- Erase the last character typed.
-
-`kill'
- Erase the current line.
-
-`eof'
- Send an end of file (terminate the input).
-
-`eol'
- End the line.
-
-`eol2'
- Alternate character to end the line. Non-POSIX.
-
-`swtch'
- Switch to a different shell layer. Non-POSIX.
-
-`start'
- Restart the output after stopping it.
-
-`stop'
- Stop the output.
-
-`susp'
- Send a terminal stop signal.
-
-`dsusp'
- Send a terminal stop signal after flushing the input. Non-POSIX.
-
-`rprnt'
- Redraw the current line. Non-POSIX.
-
-`werase'
- Erase the last word typed. Non-POSIX.
-
-`lnext'
- Enter the next character typed literally, even if it is a special
- character. Non-POSIX.
-
-
-File: sh-utils.info, Node: Special, Prev: Characters, Up: stty invocation
-
-Special settings
-----------------
-
-`min N'
- Set the minimum number of characters that will satisfy a read until
- the time value has expired, when `-icanon' is set.
-
-`time N'
- Set the number of tenths of a second before reads time out if the
- min number of characters have not been read, when `-icanon' is set.
-
-`ispeed N'
- Set the input speed to N.
-
-`ospeed N'
- Set the output speed to N.
-
-`rows N'
- Tell the tty kernel driver that the terminal has N rows.
- Non-POSIX.
-
-`cols N'
-`columns N'
- Tell the kernel that the terminal has N columns. Non-POSIX.
-
-`size'
- Print the number of rows and columns that the kernel thinks the
- terminal has. (Systems that don't support rows and cols in the
- kernel typically use the environment variables `LINES' and
- `COLUMNS' instead; however, GNU `stty' does not know anything
- about them.) Non-POSIX.
-
-`line N'
- Use line discipline N. Non-POSIX.
-
-`speed'
- Print the terminal speed.
-
-`N'
- Set the input and output speeds to N. N can be one of: 0 50 75
- 110 134 134.5 150 200 300 600 1200 1800 2400 4800 9600 19200 38400
- `exta' `extb'. `exta' is the same as 19200; `extb' is the same as
- 38400. 0 hangs up the line if `-clocal' is set.
-
-
-File: sh-utils.info, Node: printenv invocation, Next: tty invocation, Prev: stty invocation, Up: Working context information
-
-`printenv': Print all or some environment variables
-===================================================
-
- Synopsis:
-
- printenv [ OPTION ] [ VARIABLE ]...
-
- If no VARIABLEs are specified, `printenv' prints the value of every
-environment variable. Otherwise, it prints the value of each VARIABLE
-that is set, and nothing for those that are not set.
-
- The only options are a lone `--help' or `--version'. *Note Common
-options::.
-
- Exit status:
-
- 0 if all variables specified were found
- 1 if at least one specified variable was not found
- 2 if a write error occurred
-
-
-File: sh-utils.info, Node: tty invocation, Prev: printenv invocation, Up: Working context information
-
-`tty': Print file name of terminal on standard input
-====================================================
-
- `tty' prints the file name of the tty connected to its standard
-input. It prints `not a tty' if standard input is not a tty.
-
- Synopsis:
-
- tty [ OPTION ]...
-
- The program accepts the following option. Also see *Note Common
-options::.
-
-`-s'
-`--silent'
-`--quiet'
- Print nothing; only return an exit status.
-
- Exit status:
-
- 0 if standard input is a tty
- 1 if standard input is not a tty
- 2 if given incorrect arguments
- 3 if a write error occurs
-
-
-File: sh-utils.info, Node: User information, Next: System context, Prev: Working context information, Up: Top
-
-User information
-****************
-
- This section describes commands that print user-related information:
-logins, groups, and so forth.
-
-* Menu:
-
-* id invocation:: Print real and effective uid and gid.
-* logname invocation:: Print current login name.
-* whoami invocation:: Print effective user id.
-* groups invocation:: Print group names a user is in.
-* users invocation:: Print login names of users currently logged in.
-* who invocation:: Print who is currently logged in.
-
-
-File: sh-utils.info, Node: id invocation, Next: logname invocation, Up: User information
-
-`id': Print real and effective uid and gid
-==========================================
-
-`id' prints information about the given user, or the process running it
-if no user is specified.
-
- Synopsis:
-
- id [ OPTION ]... [ USERNAME ]
-
- By default, it prints the real user id, real group id, effective
-user id if different from the real user id, effective group id if
-different from the real group id, and supplemental group ids.
-
- Each of these numeric values is preceded by an identifying string and
-followed by the corresponding user or group name in parentheses.
-
- The options cause `id' to print only part of the above information.
-Also see *Note Common options::.
-
-`-g'
-`--group'
- Print only the group id.
-
-`-G'
-`--groups'
- Print only the supplementary groups.
-
-`-n'
-`--name'
- Print the user or group name instead of the ID number. Requires
- `-u', `-g', or `-G'.
-
-`-r'
-`--real'
- Print the real, instead of effective, user or group id. Requires
- `-u', `-g', or `-G'.
-
-`-u'
-`--user'
- Print only the user id.
-
-
-File: sh-utils.info, Node: logname invocation, Next: whoami invocation, Prev: id invocation, Up: User information
-
-`logname': Print current login name
-===================================
-
- `logname' prints the calling user's name, as found in the file
-`/etc/utmp', and exits with a status of 0. If there is no `/etc/utmp'
-entry for the calling process, `logname' prints an error message and
-exits with a status of 1.
-
- The only options are `--help' and `--version'. *Note Common
-options::.
-
-
-File: sh-utils.info, Node: whoami invocation, Next: groups invocation, Prev: logname invocation, Up: User information
-
-`whoami': Print effective user id
-=================================
-
- `whoami' prints the user name associated with the current effective
-user id. It is equivalent to the command `id -un'.
-
- The only options are `--help' and `--version'. *Note Common
-options::.
-
-
-File: sh-utils.info, Node: groups invocation, Next: users invocation, Prev: whoami invocation, Up: User information
-
-`groups': Print group names a user is in
-========================================
-
- `groups' prints the names of the primary and any supplementary
-groups that each given USERNAME, or the current process if none are
-given, is in. If user names are given, the name of each user is
-printed before the list of that user's groups.
-
- Synopsis:
-
- groups [ USERNAME ]...
-
- The group lists are equivalent to the output of the command `id -Gn'.
-
- The only options are `--help' and `--version'. *Note Common
-options::.
-
-
-File: sh-utils.info, Node: users invocation, Next: who invocation, Prev: groups invocation, Up: User information
-
-`users': Print login names of users currently logged in
-=======================================================
-
- `users' prints on a single line a blank-separated list of user names
-of users currently logged in to the current host. Each user name
-corresponds to a login session, so if a user has more than one login
-session, that user's name will appear the same number of times in the
-output.
-
- Synopsis:
-
- users [ FILE ]
-
- With no FILE argument, `users' extracts its information from the
-file `/etc/utmp'. If a file argument is given, `users' uses that file
-instead. A common choice is `/etc/wtmp'.
-
- The only options are `--help' and `--version'. *Note Common
-options::.
-
-
-File: sh-utils.info, Node: who invocation, Prev: users invocation, Up: User information
-
-`who': Print who is currently logged in
-=======================================
-
- Synopsis:
-
- `who' [ OPTION ] [ FILE ] [ am i ]
-
- If given no non-option arguments, `who' prints the following
-information for each user currently logged on: login name, terminal
-line, login time, and remote hostname or X display.
-
- If given one non-option argument, `who' uses that instead of
-`/etc/utmp' as the name of the file containing the record of users
-logged on. `/etc/wtmp' is commonly given as an argument to `who' to
-look at who has previously logged on.
-
- If given two non-option arguments, `who' prints only the entry for
-the user running it (determined from its standard input), preceded by
-the hostname. Traditionally, the two arguments given are `am i', as in
-`who am i'.
-
- The program accepts the following options. Also see *Note Common
-options::.
-
-`-m'
- Same as `who am i'.
-
-`-q'
-`--count'
- Print only the login names and the number of users logged on.
- Overrides all other options.
-
-`-s'
- Ignored; for compatibility with other versions of `who'.
-
-`-i'
-`-u'
-`--idle'
- After the login time, print the number of hours and minutes that
- the user has been idle. `.' means the user was active in last
- minute. `old' means the user was idle for more than 24 hours.
-
-`-H'
-`--heading'
- Print a line of column headings.
-
-`-w'
-`-T'
-`--mesg'
-`--message'
-`--writable'
- After each login name print a character indicating the user's
- message status:
-
- `+' allowing `write' messages
- `-' disallowing `write' messages
- `?' cannot find terminal device
-
-
-File: sh-utils.info, Node: System context, Next: Modified command invocation, Prev: User information, Up: Top
-
-System context
-**************
-
- This section describes commands that print or change system-wide
-information.
-
-* Menu:
-
-* date invocation:: Print or set system date and time.
-* uname invocation:: Print system information.
-* hostname invocation:: Print or set system name.
-
-
-File: sh-utils.info, Node: date invocation, Next: uname invocation, Up: System context
-
-`date': Print or set system date and time
-=========================================
-
- `date' with no arguments prints the current time and date, in the
-format of the `%c' directive (described below).
-
- Synopses:
-
- date [ OPTION ]... [ +FORMAT ]
- date [ -u|--utc|--universal ] [ MMDDHHMM[[CC]YY][.SS] ]
-
- If given an argument that starts with a `+', `date' prints the
-current time and date (or the time and date specified by the `--date'
-option, see below) in the format defined by that argument, which is the
-same as in the `strftime' function. Except for directives, which start
-with `%', characters in the format string are printed unchanged. The
-directives are described below.
-
- By default, `date' pads numeric fields with zeroes. GNU `date'
-recognizes the following numeric modifiers between the `%' and the
-directive. These are GNU extensions.
-
-`-'
- (hyphen) do not pad the field
-
-`_'
- (underscore) pad the field with spaces
-
-* Menu:
-
-* Time directives:: %[HIklMprsSTXZ]
-* Date directives:: %[aAbBcdDhjmUwWxyY]
-* Literal directives:: %[%nt]
-* Setting the time:: Changing the system clock.
-* Options for date:: Instead of the current time.
-* Examples of date:: Examples.
-
-
-File: sh-utils.info, Node: Time directives, Next: Date directives, Up: date invocation
-
-Time directives
----------------
-
- `date' directives related to times.
-
-`%H'
- hour (00...23)
-
-`%I'
- hour (01...12)
-
-`%k'
- hour ( 0...23)
-
-`%l'
- hour ( 1...12)
-
-`%M'
- minute (00...59)
-
-`%p'
- locale's AM or PM
-
-`%r'
- time, 12-hour (hh:mm:ss [AP]M)
-
-`%s'
- seconds since the epoch, i.e., 1 January 1970 00:00:00 UTC (a GNU
- extension)
-
-`%S'
- second (00...61)
-
-`%T'
- time, 24-hour (hh:mm:ss)
-
-`%X'
- locale's time representation (%H:%M:%S)
-
-`%Z'
- time zone (e.g., EDT), or nothing if no time zone is determinable
-
-
-File: sh-utils.info, Node: Date directives, Next: Literal directives, Prev: Time directives, Up: date invocation
-
-Date directives
----------------
-
- `date' directives related to dates.
-
-`%a'
- locale's abbreviated weekday name (Sun...Sat)
-
-`%A'
- locale's full weekday name, variable length (Sunday...Saturday)
-
-`%b'
- locale's abbreviated month name (Jan...Dec)
-
-`%B'
- locale's full month name, variable length (January...December)
-
-`%c'
- locale's date and time (Sat Nov 04 12:02:33 EST 1989)
-
-`%d'
- day of month (01...31)
-
-`%D'
- date (mm/dd/yy)
-
-`%h'
- same as %b
-
-`%j'
- day of year (001...366)
-
-`%m'
- month (01...12)
-
-`%U'
- week number of year with Sunday as first day of week (00...53)
-
-`%w'
- day of week (0...6) with 0 corresponding to Sunday
-
-`%W'
- week number of year with Monday as first day of week (00...53)
-
-`%x'
- locale's date representation (mm/dd/yy)
-
-`%y'
- last two digits of year (00...99)
-
-`%Y'
- year (1970....)
-
-
-File: sh-utils.info, Node: Literal directives, Next: Setting the time, Prev: Date directives, Up: date invocation
-
-Literal directives
-------------------
-
- `date' directives that produce literal strings.
-
-`%%'
- a literal %
-
-`%n'
- a newline
-
-`%t'
- a horizontal tab
-
-
-File: sh-utils.info, Node: Setting the time, Next: Options for date, Prev: Literal directives, Up: date invocation
-
-Setting the time
-----------------
-
- If given an argument that does not start with `+', `date' sets the
-system clock to the time and date specified by that argument (as
-described below). You must have appropriate privileges to set the
-system clock. The `--date' and `--set' options may not be used with
-such an argument. The `--universal' option may be used with such an
-argument to indicate that the specified time and date are relative to
-Coordinated Universal Time rather than to the local time zone.
-
- The argument must consist entirely of digits, which have the
-following meaning:
-
-MM
- month
-
-DD
- day within month
-
-HH
- hour
-
-MM
- minute
-
-CC
- first two digits of year (optional)
-
-YY
- last two digits of year (optional)
-
-SS
- second (optional)
-
- The `--set' option also sets the system clock; see the next section.
-
-
-File: sh-utils.info, Node: Options for date, Next: Examples of date, Prev: Setting the time, Up: date invocation
-
-Options for `date'
-------------------
-
- The program accepts the following options. Also see *Note Common
-options::.
-
-`-d DATESTR'
-`--date=DATESTR'
- Display the time and date specified in DATESTR instead of the
- current time and date. DATESTR can be in almost any common
- format. It can contain month names, timezones, `am' and `pm',
- `yesterday', `ago', `next', etc. The source file `getdate.y'
- implements this parsing for all GNU routines; we need precise
- documentation!
-
-`-f DATEFILE'
-`--file=DATEFILE'
- Parse each line in DATEFILE as with `-d' and display the resulting
- time and date. If DATEFILE is `-', use standard input. This is
- useful when you have many dates to process, because the system
- overhead of starting up the `date' executable many times can be
- considerable.
-
-`-s DATESTR'
-`--set=DATESTR'
- Set the time and date to DATESTR, See `-d' above.
-
-`-u'
-`--utc'
-`--universal'
- Print or set the time and date in Universal Coordinated Time
- instead of in local (wall clock) time.
-
-
-File: sh-utils.info, Node: Examples of date, Prev: Options for date, Up: date invocation
-
-Examples of `date'
-------------------
-
- Here are a few examples. Also see the documentation for the `-d'
-option in the previous section.
-
- * To print the date of the day before yesterday:
-
- date --date='2 days ago'
-
- * To print the date of the day three months and one day hence:
- date --date='3 months 1 day'
-
- * To print the day of year of Christmas in the current year:
- date --date='25 Dec' +%j
-
- * To print the current full month name and the day of the month:
- date '+%B %d'
-
- But this may not be what you want because for the first nine days
- of the month, the `%d' expands to a zero-padded two-digit field,
- for example `date -d 1may '+%B %d'' will print `May 01'.
-
- * To print a date without the leading zero for one-digit days of the
- month, you can use the (GNU extension) `-' modifier to suppress
- the padding altogether.
- date -d=1may '+%B %-d'
-
- * To print the current date and time in the format required by many
- non-GNU versions of `date' when setting the system clock:
- date +%m%d%H%M%Y.%S
-
- * To set the system clock forward by two minutes:
- date --set='+2 minutes'
-
-
-File: sh-utils.info, Node: uname invocation, Next: hostname invocation, Prev: date invocation, Up: System context
-
-`uname': Print system information
-=================================
-
- `uname' prints information about the machine and operating system it
-is run on. If no options are given, `uname' acts as if the `-s' option
-were given.
-
- Synopsis:
-
- uname [ OPTION ]...
-
- If multiple options or `-a' are given, the selected information is
-printed in this order:
-
- SYSNAME NODENAME RELEASE OSVERSION MACHINE
-
- The OSVERSION, at least, may well be multiple words. For example:
-
- bash$ uname -a
- => Linux hayley 1.0.4 #3 Thu May 12 18:06:34 1994 i486
-
- The program accepts the following options. Also see *Note Common
-options::.
-
-`-a'
-`--all'
- Print all of the below information.
-
-`-m'
-`--machine'
- Print the machine (hardware) type.
-
-`-n'
-`--nodename'
- Print the machine's network node hostname.
-
-`-r'
-`--release'
- Print the operating system release.
-
-`-s'
-`--sysname'
- Print the operating system name.
-
-`-v'
- Print the operating system version.
-
-
-File: sh-utils.info, Node: hostname invocation, Prev: uname invocation, Up: System context
-
-`hostname': Print or set system name
-====================================
-
- With no arguments, `hostname' prints the name of the current host
-system. With one argument, it sets the current host name to the
-specified string. You must have appropriate privileges to set the host
-name.
-
- Synopsis:
-
- hostname [ NAME ]
-
- The only options are `--help' and `--version'. *Note Common
-options::.
-
-
-File: sh-utils.info, Node: Modified command invocation, Next: Delaying, Prev: System context, Up: Top
-
-Modified command invocation
-***************************
-
- This section describes commands that run other commands in some
-context different than the current one: a modified environment, as a
-different user, etc.
-
-* Menu:
-
-* env invocation:: Modify environment variables.
-* nice invocation:: Modify scheduling priority.
-* nohup invocation:: Immunize to hangups.
-* su invocation:: Modify user and group id.
-
-
-File: sh-utils.info, Node: env invocation, Next: nice invocation, Up: Modified command invocation
-
-`env': Run a command in a modified environment
-==============================================
-
- `env' runs a command with an environment modified as specified by
-the command line arguments.
-
- Synopses:
-
- env [ OPTION ]... [ NAME=VALUE ]... [ COMMAND [ ARGS ]... ]
- env
-
- Arguments of the form `VARIABLE=VALUE' set the environment variable
-VARIABLE to value VALUE. VALUE may be empty (`VARIABLE='). Setting a
-variable to an empty value is different from unsetting it.
-
- The first remaining argument specifies the program name to invoke;
-it is searched for according to the `PATH' environment variable. Any
-remaining arguments are passed as arguments to that program.
-
- If no command name is specified following the environment
-specifications, the resulting environment is printed. This is like
-specifying a command name of `printenv'.
-
- The program accepts the following options. Also see *Note Common
-options::.
-
-`-u NAME'
-`--unset=NAME'
- Remove variable NAME from the environment, if it was in the
- environment.
-
-`-'
-`-i'
-`--ignore-environment'
- Start with an empty environment, ignoring the inherited
- environment.
-
-
-File: sh-utils.info, Node: nice invocation, Next: nohup invocation, Prev: env invocation, Up: Modified command invocation
-
-`nice': Run a command with modified scheduling priority
-=======================================================
-
- If no arguments are given, `nice' prints the current scheduling
-priority, which it inherited. Otherwise, `nice' runs the given COMMAND
-with its scheduling priority adjusted. If no ADJUSTMENT is given, the
-priority of the command is incremented by 10. You must have
-appropriate privileges to specify a negative adjustment. The priority
-can be adjusted by `nice' over the range of -20 (the highest priority)
-to 19 (the lowest).
-
- Synopsis:
-
- nice [ OPTION ]... [ COMMAND [ ARG ]... ]
-
- Because most shells have a built-in command by the same name, using
-the unadorned command name in a script or interactively may get you
-different functionality than that described here.
-
- The program accepts the following option. Also see *Note Common
-options::.
-
-`-n ADJUSTMENT'
-`-ADJUSTMENT'
-`--adjustment=ADJUSTMENT'
- Add ADJUSTMENT instead of 10 to the command's priority.
-
-
-File: sh-utils.info, Node: nohup invocation, Next: su invocation, Prev: nice invocation, Up: Modified command invocation
-
-`nohup': Run a command immune to hangups
-========================================
-
- `nohup' runs the given COMMAND with hangup signals ignored, so that
-the command can continue running in the background after you log out.
-
- Synopsis:
-
- nohup COMMAND [ ARG ]...
-
- Also, the scheduling priority is increased by 5. If standard output
-is a tty, it and standard error are redirected so that they are
-appended to the file `nohup.out'; if that cannot be written to, they are
-appended to the file `$HOME/nohup.out'. If that cannot be written to,
-the command is not run.
-
- If `nohup' creates either `nohup.out' or `$HOME/nohup.out', it
-creates it with no "group" or "other" access permissions. It does not
-change the permissions if the output file already existed.
-
- `nohup' does not automatically put the command it runs in the
-background; you must do that explicitly, by ending the command line
-with an `&'.
-
- The only options are `--help' and `--version'. *Note Common
-options::.
-
-
-File: sh-utils.info, Node: su invocation, Prev: nohup invocation, Up: Modified command invocation
-
-`su': Run a command with substitute user and group id
-=====================================================
-
- `su' allows one user to temporarily become another user. It runs a
-command (often an interactive shell) with the real and effective user
-id, group id, and supplemental groups of a given USER.
-
- Synopsis:
-
- su [ OPTION ]... [ USER [ ARG ]... ]
-
- If no USER is given, the default is `root', the super-user. The
-shell to use is taken from USER's `passwd' entry, or `/bin/sh' if none
-is specified there. If USER has a password, `su' prompts for the
-password unless run by a user with effective user id of zero (the
-super-user).
-
- By default, `su' does not change the current directory. It sets the
-environment variables `HOME' and `SHELL' from the password entry for
-USER, and if USER is not the super-user, sets `USER' and `LOGNAME' to
-USER. By default, the shell is not a login shell.
-
- Any additional ARGs are passed as additional arguments to the shell.
-
- GNU `su' does not treat `/bin/sh' or any other shells specially
-(e.g., by setting `argv[0]' to `-su', passing `-c' only to certain
-shells, etc.).
-
- `su' can optionally be compiled to use `syslog' to report failed,
-and optionally successful, `su' attempts. (If the system supports
-`syslog'.) However, GNU `su' does not check if the user is a member of
-the `wheel' group; see below.
-
- The program accepts the following options. Also see *Note Common
-options::.
-
-`-c COMMAND'
-`--command=COMMAND'
- Pass COMMAND, a single command line to run, to the shell with a
- `-c' option instead of starting an interactive shell.
-
-`-f'
-`--fast'
- Pass the `-f' option to the shell. This probably only makes sense
- if the shell run is `csh' or `tcsh', for which the `-f' option
- prevents reading the startup file (`.cshrc'). With Bourne-like
- shells, the `-f' option disables file name pattern expansion
- (globbing), which is not likely to be useful.
-
-`-'
-`-l'
-`--login'
- Make the shell a login shell. This means the following. Unset all
- environment variables except `TERM', `HOME', and `SHELL' (which
- are set as described above), and `USER' and `LOGNAME' (which are
- set, even for the super-user, as described above), and set `PATH'
- to a compiled-in default value. Change to USER's home directory.
- Prepend `-' to the shell's name, intended to make it read its
- login startup file(s).
-
-`-m'
-`-p'
-`--preserve-environment'
- Do not change the environment variables `HOME', `USER', `LOGNAME',
- or `SHELL'. Run the shell given in the environment variable
- `SHELL' instead of the shell from USER's passwd entry, unless the
- user running `su' is not the superuser and USER's shell is
- restricted. A "restricted shell" is one that is not listed in the
- file `/etc/shells', or in a compiled-in list if that file does not
- exist. Parts of what this option does can be overridden by
- `--login' and `--shell'.
-
-`-s SHELL'
-`--shell=SHELL'
- Run SHELL instead of the shell from USER's passwd entry, unless
- the user running `su' is not the superuser and USER's shell is
- restricted (see `-m' just above).
-
-Why GNU `su' does not support the `wheel' group
-===============================================
-
- (This section is by Richard Stallman.)
-
- Sometimes a few of the users try to hold total power over all the
-rest. For example, in 1984, a few users at the MIT AI lab decided to
-seize power by changing the operator password on the Twenex system and
-keeping it secret from everyone else. (I was able to thwart this coup
-and give power back to the users by patching the kernel, but I wouldn't
-know how to do that in Unix.)
-
- However, occasionally the rulers do tell someone. Under the usual
-`su' mechanism, once someone learns the root password who sympathizes
-with the ordinary users, he or she can tell the rest. The "wheel
-group" feature would make this impossible, and thus cement the power of
-the rulers.
-
- I'm on the side of the masses, not that of the rulers. If you are
-used to supporting the bosses and sysadmins in whatever they do, you
-might find this idea strange at first.
-
-
-File: sh-utils.info, Node: Delaying, Next: Index, Prev: Modified command invocation, Up: Top
-
-Delaying
-********
-
- Perhaps `wait' or other commands should be described here also?
-
-* Menu:
-
-* sleep invocation:: Delay for a specified time.
-
-
-File: sh-utils.info, Node: sleep invocation, Up: Delaying
-
-`sleep': Delay for a specified time
-===================================
-
- `sleep' pauses for an amount of time specified by the sum of the
-values of the command line arguments.
-
- Synopsis:
-
- sleep [ NUMBER[smhd] ]...
-
- Each argument is a number followed by an optional unit; the default
-is seconds. The units are:
-
-`s'
- seconds
-
-`m'
- minutes
-
-`h'
- hours
-
-`d'
- days
-
- The only options are `--help' and `--version'. *Note Common
-options::.
-
-
-File: sh-utils.info, Node: Index, Prev: Delaying, Up: Top
-
-Index
-*****
-
-* Menu:
-
-* !: Connectives for test.
-* !=: String tests.
-* %: Numeric expressions.
-* &: Relations for expr.
-* *: Numeric expressions.
-* +: Numeric expressions.
-* -: Numeric expressions.
-* -: env invocation.
-* -: su invocation.
-* -adjustment: nice invocation.
-* -all: stty invocation.
-* -all: uname invocation.
-* -append: tee invocation.
-* -command: su invocation.
-* -count: who invocation.
-* -date: Options for date.
-* -fast: su invocation.
-* -file: Options for date.
-* -group: id invocation.
-* -groups: id invocation.
-* -heading: who invocation.
-* -help: Common options.
-* -idle: who invocation.
-* -ignore-environment: env invocation.
-* -ignore-interrupts: tee invocation.
-* -login: su invocation.
-* -machine: uname invocation.
-* -mesg: who invocation.
-* -message: who invocation.
-* -name: id invocation.
-* -nodename: uname invocation.
-* -portability: pathchk invocation.
-* -preserve-environment: su invocation.
-* -quiet: tty invocation.
-* -real: id invocation.
-* -release: uname invocation.
-* -save: stty invocation.
-* -set: Options for date.
-* -shell: su invocation.
-* -silent: tty invocation.
-* -sysname: uname invocation.
-* -universal: Options for date.
-* -user: id invocation.
-* -utc: Options for date.
-* -version: Common options.
-* -writable: who invocation.
-* -ADJUSTMENT: nice invocation.
-* -a: uname invocation.
-* -a: tee invocation.
-* -a: Connectives for test.
-* -a: stty invocation.
-* -b: File type tests.
-* -c: File type tests.
-* -c: su invocation.
-* -d: Options for date.
-* -d: File type tests.
-* -e: File characteristics tests.
-* -e: echo invocation.
-* -ef: File characteristics tests.
-* -eq: Numeric tests.
-* -f: Options for date.
-* -f: su invocation.
-* -f: File type tests.
-* -g: Access permission tests.
-* -G: id invocation.
-* -G: Access permission tests.
-* -g: id invocation.
-* -g: stty invocation.
-* -ge: Numeric tests.
-* -gt: Numeric tests.
-* -h: File type tests.
-* -H: who invocation.
-* -i: tee invocation.
-* -i: who invocation.
-* -i: env invocation.
-* -k: Access permission tests.
-* -L: File type tests.
-* -l: su invocation.
-* -le: Numeric tests.
-* -lt: Numeric tests.
-* -m: su invocation.
-* -m: who invocation.
-* -m: uname invocation.
-* -n: String tests.
-* -n: echo invocation.
-* -n: id invocation.
-* -n: uname invocation.
-* -n: nice invocation.
-* -ne: Numeric tests.
-* -nt: File characteristics tests.
-* -O: Access permission tests.
-* -o: Connectives for test.
-* -ot: File characteristics tests.
-* -p: su invocation.
-* -p: File type tests.
-* -p: pathchk invocation.
-* -q: who invocation.
-* -r: id invocation.
-* -r: Access permission tests.
-* -r: uname invocation.
-* -s: File characteristics tests.
-* -s: who invocation.
-* -S: File type tests.
-* -s: uname invocation.
-* -s: Options for date.
-* -s: su invocation.
-* -s: tty invocation.
-* -t: File type tests.
-* -T: who invocation.
-* -u: Options for date.
-* -u: env invocation.
-* -u: Access permission tests.
-* -u: who invocation.
-* -u: id invocation.
-* -unset: env invocation.
-* -v: uname invocation.
-* -w: who invocation.
-* -w: Access permission tests.
-* -x: Access permission tests.
-* -z: String tests.
-* .cshrc: su invocation.
-* /: Numeric expressions.
-* /bin/sh: su invocation.
-* /etc/passwd: su invocation.
-* /etc/shells: su invocation.
-* /etc/utmp: who invocation.
-* /etc/utmp: users invocation.
-* /etc/utmp: logname invocation.
-* /etc/wtmp: users invocation.
-* /etc/wtmp: who invocation.
-* <: Relations for expr.
-* <=: Relations for expr.
-* =: String tests.
-* =: Relations for expr.
-* ==: Relations for expr.
-* >: Relations for expr.
-* >=: Relations for expr.
-* date options: Options for date.
-* -su: su invocation.
-* access permission tests: Access permission tests.
-* addition: Numeric expressions.
-* am i: who invocation.
-* and operator: Connectives for test.
-* and operator: Relations for expr.
-* appropriate privileges: hostname invocation.
-* appropriate privileges: nice invocation.
-* appropriate privileges: Setting the time.
-* arbitrary date strings, parsing: Options for date.
-* arbitrary text, displaying: echo invocation.
-* arithmetic tests: Numeric tests.
-* background jobs, stopping at terminal write: Local.
-* backslash escapes: echo invocation.
-* basename: basename invocation.
-* baud rate, setting: Special.
-* beeping at input buffer full: Input.
-* beginning of time: Time directives.
-* block special check: File type tests.
-* breaks, cause interrupts: Input.
-* breaks, ignoring: Input.
-* brkint: Input.
-* bsN: Output.
-* bugs, reporting: Introduction.
-* built-in shell commands, conflicts with: nice invocation.
-* built-in shell commands, conflicts with: pwd invocation.
-* built-in shell commands, conflicts with: test invocation.
-* C-s/C-q flow control: Input.
-* case translation: Local.
-* cbreak: Combination.
-* change or print terminal settings: stty invocation.
-* character size: Control.
-* character special check: File type tests.
-* characters, special: Characters.
-* check file types: test invocation.
-* clocal: Control.
-* cols: Special.
-* columns: Special.
-* COLUMNS: Special.
-* combination settings: Combination.
-* commands for delaying: Delaying.
-* commands for exit status: Conditions.
-* commands for file name manipulation: File name manipulation.
-* commands for invoking other commands: Modified command invocation.
-* commands for printing text: Printing text.
-* commands for printing the working context: Working context information.
-* commands for printing user information: User information.
-* commands for redirection: Redirection.
-* commands for system context: System context.
-* common options: Common options.
-* compare values: test invocation.
-* comparison operators: Relations for expr.
-* conditions: Conditions.
-* conflicts with shell built-ins: nice invocation.
-* conflicts with shell built-ins: pwd invocation.
-* conflicts with shell built-ins: test invocation.
-* connectives, logical: Relations for expr.
-* connectives, logical: Connectives for test.
-* context, system: System context.
-* control characters, using ^C: Local.
-* control settings: Control.
-* cooked: Combination.
-* coordinated universal time: Options for date.
-* crN: Output.
-* cread: Control.
-* crt: Combination.
-* crterase: Local.
-* crtkill: Local.
-* crtscts: Control.
-* csN: Control.
-* cstopb: Control.
-* ctlecho: Local.
-* current working directory, printing: pwd invocation.
-* date: date invocation.
-* date directives: Date directives.
-* date strings, parsing: Options for date.
-* dec: Combination.
-* decctlq: Combination.
-* delay for a specified time: sleep invocation.
-* delaying commands: Delaying.
-* destinations, multiple output: tee invocation.
-* directives, date: Date directives.
-* directives, literal: Literal directives.
-* directives, time: Time directives.
-* directory check: File type tests.
-* directory components, printing: dirname invocation.
-* directory, stripping from file names: basename invocation.
-* dirname: dirname invocation.
-* disabling special characters: Characters.
-* displaying text: echo invocation.
-* division: Numeric expressions.
-* do nothing, successfully: true invocation.
-* dsusp: Characters.
-* echo: Local.
-* echo: echo invocation.
-* echoctl: Local.
-* echoe: Local.
-* echok: Local.
-* echoke: Local.
-* echonl: Local.
-* echoprt: Local.
-* effective uid and gid, printing: id invocation.
-* effective UID, printing: whoami invocation.
-* eight-bit characters: Combination.
-* eight-bit characters: Control.
-* eight-bit input: Input.
-* ek: Combination.
-* env: env invocation.
-* environment variables, printing: printenv invocation.
-* environment, preserving: su invocation.
-* environment, printing: env invocation.
-* environment, running a program in a modified: env invocation.
-* eof: Characters.
-* eol: Characters.
-* eol2: Characters.
-* epoch, seconds since: Time directives.
-* equal string check: String tests.
-* erase: Characters.
-* evaluation of expressions: expr invocation.
-* even parity: Control.
-* evenp: Combination.
-* examples of date: Examples of date.
-* examples of expr: Examples of expr.
-* executable file check: Access permission tests.
-* existence-of-file check: File characteristics tests.
-* exit status commands: Conditions.
-* exit status of expr: expr invocation.
-* exit status of pathchk: pathchk invocation.
-* exit status of printenv: printenv invocation.
-* exit status of true: true invocation.
-* exit status of true: false invocation.
-* exit status of tty: tty invocation.
-* expr: expr invocation.
-* expression evaluation: test invocation.
-* expression evaluation: expr invocation.
-* expressions, numeric: Numeric expressions.
-* expressions, string: String expressions.
-* failure exit status: false invocation.
-* false: false invocation.
-* fascism: su invocation.
-* ffN: Output.
-* fields, padding numeric: date invocation.
-* file characteristics tests: File characteristics tests.
-* file name manipulation: File name manipulation.
-* file name pattern expansion, disabled: su invocation.
-* file names, checking validity and portability: pathchk invocation.
-* file names, stripping directory and suffix: basename invocation.
-* file type tests: File type tests.
-* flow control, hardware: Control.
-* flow control, software: Input.
-* flushing, disabling: Local.
-* formatting times: date invocation.
-* getdate.y: Options for date.
-* globbing, disabled: su invocation.
-* Greenwich Mean Time: Options for date.
-* group wheel, not supported: su invocation.
-* groups: groups invocation.
-* hangups, immunity to: nohup invocation.
-* hard link check: File characteristics tests.
-* hardware flow control: Control.
-* hardware type: uname invocation.
-* hat notation for control characters: Local.
-* help, online: Common options.
-* history: Introduction.
-* HOME: su invocation.
-* hostname: hostname invocation.
-* hostname: uname invocation.
-* hup[cl]: Control.
-* icanon: Local.
-* icrnl: Input.
-* id: id invocation.
-* idle time: who invocation.
-* iexten: Local.
-* ignbrk: Input.
-* igncr: Input.
-* ignpar: Input.
-* imaxbel: Input.
-* immunity to hangups: nohup invocation.
-* index: String expressions.
-* information, about current users: who invocation.
-* inlcr: Input.
-* inpck: Input.
-* input settings: Input.
-* intr: Characters.
-* introduction: Introduction.
-* invocation of commands, modified: Modified command invocation.
-* isig: Local.
-* ispeed: Special.
-* istrip: Input.
-* iuclc: Input.
-* ixany: Input.
-* ixoff: Input.
-* ixon: Input.
-* kill: Characters.
-* last DAY: Options for date.
-* LCASE: Combination.
-* lcase: Combination.
-* leading directory components, stripping: basename invocation.
-* length: String expressions.
-* line: Special.
-* line settings of terminal: stty invocation.
-* LINES: Special.
-* literal directives: Literal directives.
-* litout: Combination.
-* lnext: Characters.
-* local settings: Local.
-* logical and operator: Relations for expr.
-* logical and operator: Connectives for test.
-* logical connectives: Relations for expr.
-* logical connectives: Connectives for test.
-* logical or operator: Relations for expr.
-* logical or operator: Connectives for test.
-* login name, printing: logname invocation.
-* login sessions, printing users with: users invocation.
-* login shell: su invocation.
-* login shell, creating: su invocation.
-* login time: who invocation.
-* logname: logname invocation.
-* LOGNAME: su invocation.
-* lowercase, translating to output: Output.
-* machine type: uname invocation.
-* machine-readable stty output: stty invocation.
-* manipulation of file names: File name manipulation.
-* match: String expressions.
-* matching patterns: String expressions.
-* message status: who invocation.
-* min: Special.
-* MIT AI lab: su invocation.
-* modem control: Control.
-* modified command invocation: Modified command invocation.
-* modified environment, running a program in: env invocation.
-* modifying scheduling priority: nice invocation.
-* multiplication: Numeric expressions.
-* name of operating system: uname invocation.
-* named pipe check: File type tests.
-* network node name: uname invocation.
-* newer-than file check: File characteristics tests.
-* newline echoing after kill: Local.
-* newline, echoing: Local.
-* newline, translating to crlf: Output.
-* newline, translating to return: Input.
-* next DAY: Options for date.
-* nice: nice invocation.
-* nl: Combination.
-* nlN: Output.
-* no-op: true invocation.
-* node name: uname invocation.
-* noflsh: Local.
-* nohup: nohup invocation.
-* nohup.out: nohup invocation.
-* nohup.out: nohup invocation.
-* non-directory suffix, stripping: dirname invocation.
-* nonempty file check: File characteristics tests.
-* nonzero-length string check: String tests.
-* not-equal string check: String tests.
-* numeric expressions: Numeric expressions.
-* numeric field padding: date invocation.
-* numeric tests: Numeric tests.
-* ocrnl: Output.
-* odd parity: Control.
-* oddp: Combination.
-* ofdel: Output.
-* ofill: Output.
-* olcuc: Output.
-* older-than file check: File characteristics tests.
-* onlcr: Output.
-* onlret: Output.
-* onocr: Output.
-* operating system name: uname invocation.
-* operating system release: uname invocation.
-* operating system version: uname invocation.
-* opost: Output.
-* options for date: Options for date.
-* or operator: Relations for expr.
-* or operator: Connectives for test.
-* ospeed: Special.
-* output settings: Output.
-* owned by effective gid check: Access permission tests.
-* owned by effective uid check: Access permission tests.
-* pad character: Output.
-* pad instead of timing for delaying: Output.
-* padding of numeric fields: date invocation.
-* parenb: Control.
-* parentheses for grouping: expr invocation.
-* parity: Combination.
-* parity errors, marking: Input.
-* parity, ignoring: Input.
-* parmrk: Input.
-* parodd: Control.
-* parsing date strings: Options for date.
-* pass8: Combination.
-* passwd entry, and su shell: su invocation.
-* PATH: env invocation.
-* PATH: su invocation.
-* pathchk: pathchk invocation.
-* pattern matching: String expressions.
-* permission tests: Access permission tests.
-* pipe fitting: tee invocation.
-* portable file names, checking for: pathchk invocation.
-* POSIX.2: Introduction.
-* print name of current directory: pwd invocation.
-* print system information: uname invocation.
-* print terminal file name: tty invocation.
-* printenv: printenv invocation.
-* printf: printf invocation.
-* printing all or some environment variables: printenv invocation.
-* printing current user information: who invocation.
-* printing current usernames: users invocation.
-* printing groups a user is in: groups invocation.
-* printing real and effective uid and gid: id invocation.
-* printing text: echo invocation.
-* printing text, commands for: Printing text.
-* printing the current time: date invocation.
-* printing the effective UID: whoami invocation.
-* printing the hostname: hostname invocation.
-* printing user's login name: logname invocation.
-* priority, modifying: nice invocation.
-* prterase: Local.
-* pwd: pwd invocation.
-* quit: Characters.
-* raw: Combination.
-* read from stdin and write to stdout and files: tee invocation.
-* readable file check: Access permission tests.
-* real uid and gid, printing: id invocation.
-* redirection: Redirection.
-* regular expression matching: String expressions.
-* regular file check: File type tests.
-* relations, numeric or string: Relations for expr.
-* release of operating system: uname invocation.
-* remainder: Numeric expressions.
-* remote hostname: who invocation.
-* repeated output of a string: yes invocation.
-* restricted shell: su invocation.
-* return, ignoring: Input.
-* return, translating to newline: Output.
-* return, translating to newline: Input.
-* root, becoming: su invocation.
-* rows: Special.
-* rprnt: Characters.
-* RTS/CTS flow control: Control.
-* same file check: File characteristics tests.
-* sane: Combination.
-* scheduling priority, modifying: nice invocation.
-* seconds since the epoch: Time directives.
-* set-group-id check: Access permission tests.
-* set-user-id check: Access permission tests.
-* setting the hostname: hostname invocation.
-* setting the time: Setting the time.
-* SHELL: su invocation.
-* shell utilities: Top.
-* size: Special.
-* sleep: sleep invocation.
-* socket check: File type tests.
-* software flow control: Input.
-* special characters: Characters.
-* special settings: Special.
-* speed: Special.
-* start: Characters.
-* sticky bit check: Access permission tests.
-* stop: Characters.
-* stop bits: Control.
-* strftime and date: date invocation.
-* string expressions: String expressions.
-* string tests: String tests.
-* strip directory and suffix from file names: basename invocation.
-* stripping non-directory suffix: dirname invocation.
-* stty: stty invocation.
-* su: su invocation.
-* substitute user and group ids: su invocation.
-* substr: String expressions.
-* subtraction: Numeric expressions.
-* successful exit: true invocation.
-* suffix, stripping from file names: basename invocation.
-* super-user, becoming: su invocation.
-* supplementary groups, printing: groups invocation.
-* susp: Characters.
-* swtch: Characters.
-* symbolic link check: File type tests.
-* symbolic links and pwd: pwd invocation.
-* syslog: su invocation.
-* system context: System context.
-* system information, printing: uname invocation.
-* system name, printing: hostname invocation.
-* tabN: Output.
-* tabs: Combination.
-* tandem: Input.
-* tee: tee invocation.
-* TERM: su invocation.
-* terminal check: File type tests.
-* terminal file name, printing: tty invocation.
-* terminal lines, currently used: who invocation.
-* terminal settings: stty invocation.
-* test: test invocation.
-* text, displaying: echo invocation.
-* time: Special.
-* time directives: Time directives.
-* time formats: date invocation.
-* time setting: Setting the time.
-* time units: sleep invocation.
-* time, printing or setting: date invocation.
-* tomorrow: Options for date.
-* tostop: Local.
-* true: true invocation.
-* tty: tty invocation.
-* Twenex: su invocation.
-* two-way parity: Control.
-* u, and disabling special characters: Characters.
-* uname: uname invocation.
-* uppercase, translating to lowercase: Input.
-* USER: su invocation.
-* user id, switching: su invocation.
-* user information, commands for: User information.
-* user name, printing: logname invocation.
-* usernames, printing current: users invocation.
-* users: users invocation.
-* utilities for shell programming: Top.
-* utmp: logname invocation.
-* valid file names, checking for: pathchk invocation.
-* version number, finding: Common options.
-* version of operating system: uname invocation.
-* vtN: Output.
-* werase: Characters.
-* wheel group, not supported: su invocation.
-* who: who invocation.
-* who am i: who invocation.
-* whoami: whoami invocation.
-* working context: Working context information.
-* working directory, printing: pwd invocation.
-* writable file check: Access permission tests.
-* write, allowed: who invocation.
-* xcase: Local.
-* XON/XOFF flow control: Input.
-* yes: yes invocation.
-* yesterday: Options for date.
-* zero-length string check: String tests.
-* \0ooo: printf invocation.
-* \0xhhh: printf invocation.
-* \c: printf invocation.
-* |: Relations for expr.
-
-
-
-Tag Table:
-Node: Top2831
-Node: Introduction3654
-Node: Common options5097
-Node: Printing text5809
-Node: echo invocation6183
-Node: printf invocation7174
-Node: yes invocation8153
-Node: Conditions8614
-Node: false invocation9201
-Node: true invocation9634
-Node: test invocation10144
-Node: File type tests11284
-Node: Access permission tests12075
-Node: File characteristics tests12840
-Node: String tests13507
-Node: Numeric tests14089
-Node: Connectives for test14873
-Node: expr invocation15213
-Node: Relations for expr16354
-Node: Numeric expressions17048
-Node: String expressions17646
-Node: Examples of expr19350
-Node: Redirection19932
-Node: tee invocation20373
-Node: File name manipulation21201
-Node: basename invocation21657
-Node: dirname invocation22221
-Node: pathchk invocation22735
-Node: Working context information23898
-Node: pwd invocation24574
-Node: stty invocation25186
-Node: Control27095
-Node: Input27843
-Node: Output29200
-Node: Local30444
-Node: Combination32011
-Node: Characters34149
-Node: Special35689
-Node: printenv invocation37027
-Node: tty invocation37750
-Node: User information38445
-Node: id invocation39105
-Node: logname invocation40248
-Node: whoami invocation40751
-Node: groups invocation41145
-Node: users invocation41791
-Node: who invocation42603
-Node: System context44320
-Node: date invocation44743
-Node: Time directives46107
-Node: Date directives46761
-Node: Literal directives47758
-Node: Setting the time48042
-Node: Options for date49017
-Node: Examples of date50197
-Node: uname invocation51482
-Node: hostname invocation52587
-Node: Modified command invocation53086
-Node: env invocation53653
-Node: nice invocation54916
-Node: nohup invocation56042
-Node: su invocation57165
-Node: Delaying61441
-Node: sleep invocation61698
-Node: Index62230
-
-End Tag Table
diff -rup --new-file baseline/fsf/sh-utils/doc/version.texi amiga/fsf/sh-utils/doc/version.texi
--- baseline/fsf/sh-utils/doc/version.texi Sat Nov 5 06:31:34 1994
+++ amiga/fsf/sh-utils/doc/version.texi Sat Sep 28 00:00:00 1996
@@ -1,2 +1,2 @@
@set VERSION GNU sh-utils 1.12
-@set RELEASEDATE Sat 05 Nov 1994 08:31:34
+@set RELEASEDATE May 1996
diff -rup --new-file baseline/fsf/sh-utils/lib/getusershell.c amiga/fsf/sh-utils/lib/getusershell.c
--- baseline/fsf/sh-utils/lib/getusershell.c Mon Sep 26 14:55:54 1994
+++ amiga/fsf/sh-utils/lib/getusershell.c Sat Sep 28 00:00:00 1996
@@ -43,7 +43,7 @@ static int readname ();
/* List of shells to use if the shells file is missing. */
static char const* const default_shells[] =
{
- "/bin/sh", "/bin/csh", "/usr/bin/sh", "/usr/bin/csh", NULL
+ "/bin/sh", "/bin/ksh", "/bin/bash", NULL
};
/* Index of the next shell in `default_shells' to return.
diff -rup --new-file baseline/fsf/sh-utils/manifests/bin amiga/fsf/sh-utils/manifests/bin
--- baseline/fsf/sh-utils/manifests/bin Wed Dec 31 17:00:00 1969
+++ amiga/fsf/sh-utils/manifests/bin Wed Oct 9 23:32:31 1996
@@ -0,0 +1,59 @@
+COPYING
+COPYING.info
+bin/[
+bin/basename
+bin/date
+bin/dirname
+bin/echo
+bin/env
+bin/expr
+bin/false
+bin/groups
+bin/hostname
+bin/id
+bin/logname
+bin/nice
+bin/nohup
+bin/pathchk
+bin/printenv
+bin/printf
+bin/pwd
+bin/sleep
+bin/stty
+bin/tee
+bin/test
+bin/true
+bin/uname
+bin/users
+bin/whoami
+bin/yes
+guide/sh-utils.guide
+info/sh-utils.info
+man/man1/basename.1
+man/man1/date.1
+man/man1/dirname.1
+man/man1/echo.1
+man/man1/env.1
+man/man1/expr.1
+man/man1/false.1
+man/man1/groups.1
+man/man1/hostname.1
+man/man1/id.1
+man/man1/logname.1
+man/man1/nice.1
+man/man1/nohup.1
+man/man1/pathchk.1
+man/man1/printenv.1
+man/man1/printf.1
+man/man1/pwd.1
+man/man1/sleep.1
+man/man1/stty.1
+man/man1/tee.1
+man/man1/test.1
+man/man1/true.1
+man/man1/tty.1
+man/man1/uname.1
+man/man1/users.1
+man/man1/who.1
+man/man1/whoami.1
+man/man1/yes.1
diff -rup --new-file baseline/fsf/sh-utils/manifests/src amiga/fsf/sh-utils/manifests/src
--- baseline/fsf/sh-utils/manifests/src Wed Dec 31 17:00:00 1969
+++ amiga/fsf/sh-utils/manifests/src Sat Sep 28 00:00:00 1996
@@ -0,0 +1,124 @@
+fsf/sh-utils/COPYING
+fsf/sh-utils/COPYING.LIB
+fsf/sh-utils/ChangeLog
+fsf/sh-utils/INSTALL
+fsf/sh-utils/Makefile.in
+fsf/sh-utils/NEWS
+fsf/sh-utils/Product-Info
+fsf/sh-utils/README
+fsf/sh-utils/acconfig.h
+fsf/sh-utils/config.h.in
+fsf/sh-utils/configure
+fsf/sh-utils/configure.in
+fsf/sh-utils/doc/Makefile.in
+fsf/sh-utils/doc/sh-utils.texi
+fsf/sh-utils/doc/texinfo.tex
+fsf/sh-utils/doc/version.texi
+fsf/sh-utils/install-sh
+fsf/sh-utils/lib/Makefile.in
+fsf/sh-utils/lib/alloca.c
+fsf/sh-utils/lib/basename.c
+fsf/sh-utils/lib/error.c
+fsf/sh-utils/lib/full-write.c
+fsf/sh-utils/lib/getdate.c
+fsf/sh-utils/lib/getdate.y
+fsf/sh-utils/lib/gethostname.c
+fsf/sh-utils/lib/getline.c
+fsf/sh-utils/lib/getline.h
+fsf/sh-utils/lib/getopt.c
+fsf/sh-utils/lib/getopt.h
+fsf/sh-utils/lib/getopt1.c
+fsf/sh-utils/lib/getugroups.c
+fsf/sh-utils/lib/getusershell.c
+fsf/sh-utils/lib/group-member.c
+fsf/sh-utils/lib/group-member.h
+fsf/sh-utils/lib/long-options.c
+fsf/sh-utils/lib/long-options.h
+fsf/sh-utils/lib/memcmp.c
+fsf/sh-utils/lib/mktime.c
+fsf/sh-utils/lib/pathmax.h
+fsf/sh-utils/lib/posixtm.c
+fsf/sh-utils/lib/posixtm.y
+fsf/sh-utils/lib/putenv.c
+fsf/sh-utils/lib/regex.c
+fsf/sh-utils/lib/regex.h
+fsf/sh-utils/lib/safe-xstat.cin
+fsf/sh-utils/lib/safe-xstat.hin
+fsf/sh-utils/lib/stime.c
+fsf/sh-utils/lib/strcspn.c
+fsf/sh-utils/lib/strftime.c
+fsf/sh-utils/lib/stripslash.c
+fsf/sh-utils/lib/strstr.c
+fsf/sh-utils/lib/strtod.c
+fsf/sh-utils/lib/strtol.c
+fsf/sh-utils/lib/strtoul.c
+fsf/sh-utils/lib/xgetcwd.c
+fsf/sh-utils/lib/xgethostname.c
+fsf/sh-utils/lib/xmalloc.c
+fsf/sh-utils/lib/xstrdup.c
+fsf/sh-utils/man/Makefile.in
+fsf/sh-utils/man/basename.1
+fsf/sh-utils/man/date.1
+fsf/sh-utils/man/dirname.1
+fsf/sh-utils/man/echo.1
+fsf/sh-utils/man/env.1
+fsf/sh-utils/man/expr.1
+fsf/sh-utils/man/false.1
+fsf/sh-utils/man/groups.1
+fsf/sh-utils/man/hostname.1
+fsf/sh-utils/man/id.1
+fsf/sh-utils/man/logname.1
+fsf/sh-utils/man/nice.1
+fsf/sh-utils/man/nohup.1
+fsf/sh-utils/man/pathchk.1
+fsf/sh-utils/man/printenv.1
+fsf/sh-utils/man/printf.1
+fsf/sh-utils/man/pwd.1
+fsf/sh-utils/man/sleep.1
+fsf/sh-utils/man/stty.1
+fsf/sh-utils/man/su.1
+fsf/sh-utils/man/tee.1
+fsf/sh-utils/man/test.1
+fsf/sh-utils/man/true.1
+fsf/sh-utils/man/tty.1
+fsf/sh-utils/man/uname.1
+fsf/sh-utils/man/users.1
+fsf/sh-utils/man/who.1
+fsf/sh-utils/man/whoami.1
+fsf/sh-utils/man/yes.1
+fsf/sh-utils/manifests/bin
+fsf/sh-utils/manifests/src
+fsf/sh-utils/mkinstalldirs
+fsf/sh-utils/src/Makefile.in
+fsf/sh-utils/src/basename.c
+fsf/sh-utils/src/date.c
+fsf/sh-utils/src/dirname.c
+fsf/sh-utils/src/echo.c
+fsf/sh-utils/src/env.c
+fsf/sh-utils/src/expr.c
+fsf/sh-utils/src/false.sh
+fsf/sh-utils/src/groups.sh
+fsf/sh-utils/src/hostname.c
+fsf/sh-utils/src/id.c
+fsf/sh-utils/src/logname.c
+fsf/sh-utils/src/nice.c
+fsf/sh-utils/src/nohup.sh
+fsf/sh-utils/src/pathchk.c
+fsf/sh-utils/src/printenv.c
+fsf/sh-utils/src/printf.c
+fsf/sh-utils/src/pwd.c
+fsf/sh-utils/src/sleep.c
+fsf/sh-utils/src/stty.c
+fsf/sh-utils/src/su.c
+fsf/sh-utils/src/system.h
+fsf/sh-utils/src/tee.c
+fsf/sh-utils/src/test.c
+fsf/sh-utils/src/true.sh
+fsf/sh-utils/src/tty.c
+fsf/sh-utils/src/uname.c
+fsf/sh-utils/src/version.c
+fsf/sh-utils/src/version.h
+fsf/sh-utils/src/who.c
+fsf/sh-utils/src/whoami.c
+fsf/sh-utils/src/yes.c
+fsf/sh-utils/stamp-h.in
diff -rup --new-file baseline/fsf/sh-utils/src/Makefile.in amiga/fsf/sh-utils/src/Makefile.in
--- baseline/fsf/sh-utils/src/Makefile.in Thu Nov 3 23:53:32 1994
+++ amiga/fsf/sh-utils/src/Makefile.in Sat Sep 28 00:00:00 1996
@@ -46,12 +46,14 @@ version.o
DISTFILES = Makefile.in system.h $(SOURCES) groups.sh nohup.sh \
false.sh true.sh version.h
+# Amiga hacks - remove tty and who, since they need ttyname().
PROGS = basename date dirname echo env expr false groups hostname id logname \
-pathchk printenv printf pwd sleep tee test true tty users who whoami yes @PROGS@
+pathchk printenv printf pwd sleep tee test true users whoami yes @PROGS@
LIBPROGS =
-all: $(PROGS) su $(LIBPROGS)
+# Amiga hack - remove su since it needs getpass().
+all: $(PROGS) $(LIBPROGS)
.SUFFIXES:
.SUFFIXES: .c .o
@@ -74,7 +76,7 @@ install: all installdirs
$(bindir)/`echo $$f|sed '$(transform)'`; \
done
$(RM) -f $(bindir)/'['; ln $(bindir)/$(binprefix)test $(bindir)/'['
- @if test `./id -u` = 0; then \
+ @if false; then \
echo you are root, so installing su; \
$(INSTALL_PROGRAM) su $(bindir)/$(binprefix)su; \
chown root $(bindir)/$(binprefix)su; \
@@ -149,7 +151,8 @@ false: false.sh .version
groups: groups.sh .version
$(RM) -f $@ $@-t
- sed -e "s,@bindir@,$(bindir),g" \
+ # Amiga hack - avoid autoconf substitutions of @bindir@
+ sed -e "s,@bin.*dir@,$(bindir),g" \
-e "s/@VERSION@/`cat .version`/" $(srcdir)/groups.sh \
> $@-t
mv $@-t $@
@@ -166,7 +169,8 @@ logname: logname.o
nohup: nohup.sh .version
$(RM) -f $@ $@-t
- sed -e "s,@bindir@,$(bindir),g" \
+ # Amiga hack - avoid autoconf substitutions of @bindir@
+ sed -e "s,@bin.*dir@,$(bindir),g" \
-e "s/@VERSION@/`cat .version`/" $(srcdir)/nohup.sh \
> $@-t
mv $@-t $@
diff -rup --new-file baseline/fsf/sh-utils/src/basename.c amiga/fsf/sh-utils/src/basename.c
--- baseline/fsf/sh-utils/src/basename.c Thu Oct 20 21:59:41 1994
+++ amiga/fsf/sh-utils/src/basename.c Sat Sep 28 00:00:00 1996
@@ -65,7 +65,6 @@ Usage: %s PATH [SUFFIX]\n\
exit (status);
}
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/date.c amiga/fsf/sh-utils/src/date.c
--- baseline/fsf/sh-utils/src/date.c Sat Oct 1 11:06:08 1994
+++ amiga/fsf/sh-utils/src/date.c Sat Sep 28 00:00:00 1996
@@ -139,7 +139,6 @@ batch_convert (input_filename, format)
return status;
}
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/dirname.c amiga/fsf/sh-utils/src/dirname.c
--- baseline/fsf/sh-utils/src/dirname.c Thu Oct 20 21:59:42 1994
+++ amiga/fsf/sh-utils/src/dirname.c Sat Sep 28 00:00:00 1996
@@ -54,7 +54,6 @@ Usage: %s PATH\n\
exit (status);
}
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/echo.c amiga/fsf/sh-utils/src/echo.c
--- baseline/fsf/sh-utils/src/echo.c Fri Sep 30 19:41:10 1994
+++ amiga/fsf/sh-utils/src/echo.c Sat Sep 28 00:00:00 1996
@@ -101,7 +101,7 @@ Without -E, the following sequences are
/* Print the words in LIST to standard output. If the first word is
`-n', then don't print a trailing newline. We also support the
echo syntax from Version 9 unix systems. */
-void
+
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/env.c amiga/fsf/sh-utils/src/env.c
--- baseline/fsf/sh-utils/src/env.c Fri Sep 30 19:41:11 1994
+++ amiga/fsf/sh-utils/src/env.c Sat Sep 28 00:00:00 1996
@@ -111,7 +111,6 @@ static struct option const longopts[] =
{NULL, 0, NULL, 0}
};
-void
main (argc, argv, envp)
register int argc;
register char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/expr.c amiga/fsf/sh-utils/src/expr.c
--- baseline/fsf/sh-utils/src/expr.c Thu Oct 20 21:59:43 1994
+++ amiga/fsf/sh-utils/src/expr.c Sat Sep 28 00:00:00 1996
@@ -150,7 +150,6 @@ Pattern matches return the string matche
exit (status);
}
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/hostname.c amiga/fsf/sh-utils/src/hostname.c
--- baseline/fsf/sh-utils/src/hostname.c Fri Sep 30 19:41:13 1994
+++ amiga/fsf/sh-utils/src/hostname.c Sat Sep 28 00:00:00 1996
@@ -73,7 +73,6 @@ Usage: %s [NAME]\n\
exit (status);
}
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/id.c amiga/fsf/sh-utils/src/id.c
--- baseline/fsf/sh-utils/src/id.c Mon Oct 10 18:47:01 1994
+++ amiga/fsf/sh-utils/src/id.c Sat Sep 28 00:00:00 1996
@@ -102,7 +102,6 @@ static struct option const longopts[] =
{NULL, 0, NULL, 0}
};
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/logname.c amiga/fsf/sh-utils/src/logname.c
--- baseline/fsf/sh-utils/src/logname.c Fri Sep 30 19:41:15 1994
+++ amiga/fsf/sh-utils/src/logname.c Sat Sep 28 00:00:00 1996
@@ -58,7 +58,6 @@ usage (status)
exit (status);
}
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/nice.c amiga/fsf/sh-utils/src/nice.c
--- baseline/fsf/sh-utils/src/nice.c Fri Sep 30 19:41:16 1994
+++ amiga/fsf/sh-utils/src/nice.c Sat Sep 28 00:00:00 1996
@@ -54,7 +54,6 @@ static struct option const longopts[] =
{NULL, 0, NULL, 0}
};
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/pathchk.c amiga/fsf/sh-utils/src/pathchk.c
--- baseline/fsf/sh-utils/src/pathchk.c Thu Oct 20 21:59:44 1994
+++ amiga/fsf/sh-utils/src/pathchk.c Sat Sep 28 00:00:00 1996
@@ -114,7 +114,6 @@ static struct option const longopts[] =
{NULL, 0, NULL, 0}
};
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/printenv.c amiga/fsf/sh-utils/src/printenv.c
--- baseline/fsf/sh-utils/src/printenv.c Fri Sep 30 19:41:18 1994
+++ amiga/fsf/sh-utils/src/printenv.c Sat Sep 28 00:00:00 1996
@@ -76,7 +76,6 @@ If no VARIABLE, print them all.\n\
exit (status);
}
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/printf.c amiga/fsf/sh-utils/src/printf.c
--- baseline/fsf/sh-utils/src/printf.c Fri Sep 30 19:41:19 1994
+++ amiga/fsf/sh-utils/src/printf.c Sat Sep 28 00:00:00 1996
@@ -125,7 +125,6 @@ ARGUMENTs converted to proper type first
exit (status);
}
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/pwd.c amiga/fsf/sh-utils/src/pwd.c
--- baseline/fsf/sh-utils/src/pwd.c Fri Sep 30 19:41:20 1994
+++ amiga/fsf/sh-utils/src/pwd.c Sat Sep 28 00:00:00 1996
@@ -50,7 +50,6 @@ usage (status)
exit (status);
}
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/sleep.c amiga/fsf/sh-utils/src/sleep.c
--- baseline/fsf/sh-utils/src/sleep.c Thu Oct 20 21:59:45 1994
+++ amiga/fsf/sh-utils/src/sleep.c Sat Sep 28 00:00:00 1996
@@ -64,7 +64,6 @@ SUFFIX may be s for seconds, m for minut
exit (status);
}
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/stty.c amiga/fsf/sh-utils/src/stty.c
--- baseline/fsf/sh-utils/src/stty.c Fri Sep 30 19:41:23 1994
+++ amiga/fsf/sh-utils/src/stty.c Sat Sep 28 00:00:00 1996
@@ -623,7 +623,6 @@ settings, CHAR is taken literally, or co
exit (status);
}
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/su.c amiga/fsf/sh-utils/src/su.c
--- baseline/fsf/sh-utils/src/su.c Mon Oct 10 18:47:02 1994
+++ amiga/fsf/sh-utils/src/su.c Sat Sep 28 00:00:00 1996
@@ -123,10 +123,10 @@ uid_t getuid ();
#include "version.h"
/* The default PATH for simulated logins to non-superuser accounts. */
-#define DEFAULT_LOGIN_PATH ":/usr/ucb:/bin:/usr/bin"
+#define DEFAULT_LOGIN_PATH ":/bin"
/* The default PATH for simulated logins to superuser accounts. */
-#define DEFAULT_ROOT_LOGIN_PATH "/usr/ucb:/bin:/usr/bin:/etc"
+#define DEFAULT_ROOT_LOGIN_PATH "/ade"
/* The shell to run if none is given in the user's passwd entry. */
#define DEFAULT_SHELL "/bin/sh"
@@ -188,7 +188,6 @@ static struct option const longopts[] =
{0, 0, 0, 0}
};
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/tee.c amiga/fsf/sh-utils/src/tee.c
--- baseline/fsf/sh-utils/src/tee.c Fri Sep 30 19:41:25 1994
+++ amiga/fsf/sh-utils/src/tee.c Sat Sep 28 00:00:00 1996
@@ -77,7 +77,6 @@ usage (status)
exit (status);
}
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/tty.c amiga/fsf/sh-utils/src/tty.c
--- baseline/fsf/sh-utils/src/tty.c Fri Sep 30 19:41:27 1994
+++ amiga/fsf/sh-utils/src/tty.c Sat Sep 28 00:00:00 1996
@@ -55,7 +55,6 @@ static struct option const longopts[] =
{NULL, 0, NULL, 0}
};
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/uname.c amiga/fsf/sh-utils/src/uname.c
--- baseline/fsf/sh-utils/src/uname.c Fri Sep 30 19:41:28 1994
+++ amiga/fsf/sh-utils/src/uname.c Sat Sep 28 00:00:00 1996
@@ -82,7 +82,6 @@ static struct option const long_options[
{NULL, 0, NULL, 0}
};
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/who.c amiga/fsf/sh-utils/src/who.c
--- baseline/fsf/sh-utils/src/who.c Fri Sep 30 19:41:29 1994
+++ amiga/fsf/sh-utils/src/who.c Sat Sep 28 00:00:00 1996
@@ -146,7 +146,6 @@ static struct option const longopts[] =
{NULL, 0, NULL, 0}
};
-void
main (argc, argv)
int argc;
char **argv;
diff -rup --new-file baseline/fsf/sh-utils/src/whoami.c amiga/fsf/sh-utils/src/whoami.c
--- baseline/fsf/sh-utils/src/whoami.c Fri Sep 30 19:41:30 1994
+++ amiga/fsf/sh-utils/src/whoami.c Sat Sep 28 00:00:00 1996
@@ -64,7 +64,6 @@ Same as id -un.\n\
exit (status);
}
-void
main (argc, argv)
int argc;
char *argv[];
diff -rup --new-file baseline/fsf/sh-utils/src/yes.c amiga/fsf/sh-utils/src/yes.c
--- baseline/fsf/sh-utils/src/yes.c Fri Sep 30 19:41:31 1994
+++ amiga/fsf/sh-utils/src/yes.c Sat Sep 28 00:00:00 1996
@@ -48,7 +48,6 @@ Without any STRING, assume `y'.\n\
exit (status);
}
-void
main (argc, argv)
int argc;
char **argv;