#!/bin/sh # This is a shell archive (produced by GNU sharutils 4.2). # To extract the files from this archive, save it to some FILE, remove # everything before the `!/bin/sh' line above, then type `sh FILE'. # # Made on 1999-07-07 23:45 PDT by . # Source directory was `/net/knick/project/reb/src/base/tar'. # # Existing files will *not* be overwritten unless `-c' is specified. # # This shar contains: # length mode name # ------ ---------- ------------------------------------------ # 8221 -r--r--r-- tar-1.13/README # 10 -rw-rw-r-- tar-1.13/stamp-h.in # 11651 -r--r--r-- tar-1.13/ABOUT-NLS # 732 -r--r--r-- tar-1.13/AUTHORS # 85570 -r--r--r-- tar-1.13/BACKLOG # 17989 -r--r--r-- tar-1.13/COPYING # 50363 -rw-rw-r-- tar-1.13/ChangeLog # 7831 -r--r--r-- tar-1.13/INSTALL # 2484 -r--r--r-- tar-1.13/Makefile.am # 13933 -rw-rw-r-- tar-1.13/Makefile.in # 7340 -r--r--r-- tar-1.13/NEWS # 18002 -r--r--r-- tar-1.13/THANKS # 809 -r--r--r-- tar-1.13/TODO # 2571 -r--r--r-- tar-1.13/acconfig.h # 31952 -rw-rw-r-- tar-1.13/acinclude.m4 # 37120 -rw-rw-r-- tar-1.13/aclocal.m4 # 29612 -r--r--r-- tar-1.13/config.guess # 11992 -rw-rw-r-- tar-1.13/config.h.in # 20453 -r--r--r-- tar-1.13/config.sub # 187588 -rwxrwxr-x tar-1.13/configure # 8182 -r--r--r-- tar-1.13/configure.in # 5603 -r-xr-xr-x tar-1.13/install-sh # 6274 -r-xr-xr-x tar-1.13/missing # 722 -r-xr-xr-x tar-1.13/mkinstalldirs # 5015 -r--r--r-- tar-1.13/PORTS # 30361 -r--r--r-- tar-1.13/rebox.el # 5297 -r--r--r-- tar-1.13/doc/ChangeLog # 2268 -r--r--r-- tar-1.13/doc/Makefile.am # 11443 -rw-rw-r-- tar-1.13/doc/Makefile.in # 2679 -r-xr-xr-x tar-1.13/doc/mdate-sh # 62 -rw-rw-r-- tar-1.13/doc/stamp-vti # 194985 -r--r--r-- tar-1.13/doc/texinfo.tex # 62 -rw-rw-r-- tar-1.13/doc/version.texi # 354435 -r--r--r-- tar-1.13/doc/tar.texi # 2652 -r-xr-xr-x tar-1.13/doc/convtexi.pl # 16892 -r--r--r-- tar-1.13/doc/getdate.texi # 9241 -rw-rw-r-- tar-1.13/doc/header.texi # 5082 -r--r--r-- tar-1.13/doc/tar.info # 49886 -r--r--r-- tar-1.13/doc/tar.info-1 # 48095 -r--r--r-- tar-1.13/doc/tar.info-2 # 46870 -r--r--r-- tar-1.13/doc/tar.info-3 # 50628 -r--r--r-- tar-1.13/doc/tar.info-4 # 46417 -r--r--r-- tar-1.13/doc/tar.info-5 # 46857 -r--r--r-- tar-1.13/doc/tar.info-6 # 46626 -r--r--r-- tar-1.13/doc/tar.info-7 # 14724 -r--r--r-- tar-1.13/doc/tar.info-8 # 8095 -r--r--r-- tar-1.13/lib/ChangeLog # 1819 -r--r--r-- tar-1.13/lib/Makefile.am # 19451 -rw-rw-r-- tar-1.13/lib/Makefile.in # 14245 -r--r--r-- tar-1.13/lib/alloca.c # 4226 -r--r--r-- tar-1.13/lib/execlp.c # 2111 -r--r--r-- tar-1.13/lib/fileblocks.c # 5663 -r--r--r-- tar-1.13/lib/fnmatch.c # 1676 -r--r--r-- tar-1.13/lib/ftruncate.c # 54651 -rw-rw-r-- tar-1.13/lib/getdate.c # 1478 -r--r--r-- tar-1.13/lib/lchown.c # 1132 -r--r--r-- tar-1.13/lib/malloc.c # 940 -r--r--r-- tar-1.13/lib/memset.c # 2927 -r--r--r-- tar-1.13/lib/mkdir.c # 1274 -r--r--r-- tar-1.13/lib/realloc.c # 2813 -r--r--r-- tar-1.13/lib/rename.c # 1942 -r--r--r-- tar-1.13/lib/rmdir.c # 2629 -r--r--r-- tar-1.13/lib/strstr.c # 11501 -r--r--r-- tar-1.13/lib/strtol.c # 891 -r--r--r-- tar-1.13/lib/strtoul.c # 1104 -r--r--r-- tar-1.13/lib/strtoull.c # 1586 -r--r--r-- tar-1.13/lib/strtoumax.c # 2123 -r--r--r-- tar-1.13/lib/utime.c # 2629 -r--r--r-- tar-1.13/lib/addext.c # 8390 -r--r--r-- tar-1.13/lib/argmatch.c # 7426 -r--r--r-- tar-1.13/lib/backupfile.c # 1658 -r--r--r-- tar-1.13/lib/basename.c # 6356 -r--r--r-- tar-1.13/lib/error.c # 3019 -r--r--r-- tar-1.13/lib/exclude.c # 1836 -r--r--r-- tar-1.13/lib/full-write.c # 25769 -r--r--r-- tar-1.13/lib/getdate.y # 30070 -r--r--r-- tar-1.13/lib/getopt.c # 4550 -r--r--r-- tar-1.13/lib/getopt1.c # 12177 -r--r--r-- tar-1.13/lib/modechange.c # 3028 -r--r--r-- tar-1.13/lib/msleep.c # 9045 -r--r--r-- tar-1.13/lib/quotearg.c # 1487 -r--r--r-- tar-1.13/lib/safe-read.c # 1908 -r--r--r-- tar-1.13/lib/xgetcwd.c # 2731 -r--r--r-- tar-1.13/lib/xmalloc.c # 1318 -r--r--r-- tar-1.13/lib/xstrdup.c # 5669 -r--r--r-- tar-1.13/lib/xstrtol.c # 110 -r--r--r-- tar-1.13/lib/xstrtoul.c # 1042 -r--r--r-- tar-1.13/lib/xstrtoumax.c # 4586 -r--r--r-- tar-1.13/lib/argmatch.h # 1901 -r--r--r-- tar-1.13/lib/backupfile.h # 195 -r--r--r-- tar-1.13/lib/basename.h # 2672 -r--r--r-- tar-1.13/lib/error.h # 1306 -r--r--r-- tar-1.13/lib/exclude.h # 2436 -r--r--r-- tar-1.13/lib/fnmatch.h # 5861 -r--r--r-- tar-1.13/lib/getopt.h # 1301 -r--r--r-- tar-1.13/lib/getdate.h # 626 -r--r--r-- tar-1.13/lib/getpagesize.h # 188 -r--r--r-- tar-1.13/lib/lchown.h # 2446 -r--r--r-- tar-1.13/lib/modechange.h # 1720 -r--r--r-- tar-1.13/lib/pathmax.h # 4111 -r--r--r-- tar-1.13/lib/quotearg.h # 281 -r--r--r-- tar-1.13/lib/safe-read.h # 2003 -r--r--r-- tar-1.13/lib/xalloc.h # 1693 -r--r--r-- tar-1.13/lib/xstrtol.h # 15118 -r--r--r-- tar-1.13/lib/mktime.c # 1440 -r--r--r-- tar-1.13/lib/stpcpy.c # 35362 -r--r--r-- tar-1.13/intl/ChangeLog # 6512 -r--r--r-- tar-1.13/intl/Makefile.in # 2693 -r--r--r-- tar-1.13/intl/linux-msg.sed # 2421 -r--r--r-- tar-1.13/intl/po2tbl.sed.in # 2814 -r--r--r-- tar-1.13/intl/xopen-msg.sed # 3205 -r--r--r-- tar-1.13/intl/gettext.h # 2182 -r--r--r-- tar-1.13/intl/gettextP.h # 1787 -r--r--r-- tar-1.13/intl/hash-string.h # 5733 -r--r--r-- tar-1.13/intl/libgettext.h # 2413 -r--r--r-- tar-1.13/intl/loadinfo.h # 5331 -r--r--r-- tar-1.13/intl/bindtextdom.c # 16512 -r--r--r-- tar-1.13/intl/dcgettext.c # 1786 -r--r--r-- tar-1.13/intl/dgettext.c # 1939 -r--r--r-- tar-1.13/intl/gettext.c # 5852 -r--r--r-- tar-1.13/intl/finddomain.c # 6117 -r--r--r-- tar-1.13/intl/loadmsgcat.c # 10101 -r--r--r-- tar-1.13/intl/localealias.c # 3265 -r--r--r-- tar-1.13/intl/textdomain.c # 10404 -r--r--r-- tar-1.13/intl/l10nflist.c # 4616 -r--r--r-- tar-1.13/intl/explodename.c # 1646 -r--r--r-- tar-1.13/intl/intl-compat.c # 6625 -r--r--r-- tar-1.13/intl/cat-compat.c # 41 -r--r--r-- tar-1.13/intl/VERSION # 332 -r--r--r-- tar-1.13/m4/Makefile.am # 4988 -rw-rw-r-- tar-1.13/m4/Makefile.in # 2980 -r--r--r-- tar-1.13/m4/ccstdc.m4 # 984 -r--r--r-- tar-1.13/m4/d-ino.m4 # 10582 -r--r--r-- tar-1.13/m4/gettext.m4 # 621 -r--r--r-- tar-1.13/m4/inttypes_h.m4 # 615 -r--r--r-- tar-1.13/m4/isc-posix.m4 # 389 -r--r--r-- tar-1.13/m4/jm-mktime.m4 # 3611 -r--r--r-- tar-1.13/m4/largefile.m4 # 884 -r--r--r-- tar-1.13/m4/lcmessage.m4 # 1016 -r--r--r-- tar-1.13/m4/malloc.m4 # 3959 -r--r--r-- tar-1.13/m4/mktime.m4 # 1410 -r--r--r-- tar-1.13/m4/progtest.m4 # 1043 -r--r--r-- tar-1.13/m4/realloc.m4 # 583 -r--r--r-- tar-1.13/m4/uintmax_t.m4 # 466 -r--r--r-- tar-1.13/m4/ulonglong.m4 # 971 -r--r--r-- tar-1.13/m4/utimbuf.m4 # 329 -r--r--r-- tar-1.13/m4/utime.m4 # 882 -r--r--r-- tar-1.13/m4/utimes.m4 # 627 -r--r--r-- tar-1.13/m4/xstrtoumax.m4 # 156646 -r--r--r-- tar-1.13/src/ChangeLog # 1385 -r--r--r-- tar-1.13/src/Makefile.am # 15268 -rw-rw-r-- tar-1.13/src/Makefile.in # 1529 -r--r--r-- tar-1.13/src/ansi2knr.1 # 18704 -r--r--r-- tar-1.13/src/ansi2knr.c # 10934 -r--r--r-- tar-1.13/src/rmt.c # 4777 -r--r--r-- tar-1.13/src/arith.c # 44605 -r--r--r-- tar-1.13/src/buffer.c # 22294 -r--r--r-- tar-1.13/src/compare.c # 41901 -r--r--r-- tar-1.13/src/create.c # 8656 -r--r--r-- tar-1.13/src/delete.c # 28412 -r--r--r-- tar-1.13/src/extract.c # 19282 -r--r--r-- tar-1.13/src/incremen.c # 28260 -r--r--r-- tar-1.13/src/list.c # 3643 -r--r--r-- tar-1.13/src/mangle.c # 12123 -r--r--r-- tar-1.13/src/misc.c # 20821 -r--r--r-- tar-1.13/src/names.c # 5730 -r--r--r-- tar-1.13/src/open3.c # 19180 -r--r--r-- tar-1.13/src/rtapelib.c # 34553 -r--r--r-- tar-1.13/src/tar.c # 5762 -r--r--r-- tar-1.13/src/update.c # 4330 -r--r--r-- tar-1.13/src/arith.h # 16028 -r--r--r-- tar-1.13/src/common.h # 3513 -r--r--r-- tar-1.13/src/rmt.h # 13735 -r--r--r-- tar-1.13/src/system.h # 8960 -r--r--r-- tar-1.13/src/tar.h # 6878 -r--r--r-- tar-1.13/scripts/ChangeLog # 869 -r--r--r-- tar-1.13/scripts/Makefile.am # 5653 -rw-rw-r-- tar-1.13/scripts/Makefile.in # 183 -r--r--r-- tar-1.13/scripts/WARNING # 2678 -r--r--r-- tar-1.13/scripts/backup-specs # 3238 -r-xr-xr-x tar-1.13/scripts/dump-remind # 6526 -r-xr-xr-x tar-1.13/scripts/level-0 # 6646 -r-xr-xr-x tar-1.13/scripts/level-1 # 1015 -r--r--r-- tar-1.13/scripts/weekly.new # 6898 -r--r--r-- tar-1.13/po/Makefile.in.in # 437 -r--r--r-- tar-1.13/po/POTFILES.in # 29776 -rw-rw-r-- tar-1.13/po/tar.pot # 10 -rw-rw-r-- tar-1.13/po/stamp-cat-id # 46645 -rw-rw-r-- tar-1.13/po/cs.po # 50112 -rw-rw-r-- tar-1.13/po/de.po # 76252 -rw-rw-r-- tar-1.13/po/es.po # 50653 -rw-rw-r-- tar-1.13/po/fr.po # 47305 -rw-rw-r-- tar-1.13/po/it.po # 42202 -rw-rw-r-- tar-1.13/po/ko.po # 48210 -rw-rw-r-- tar-1.13/po/nl.po # 45775 -rw-rw-r-- tar-1.13/po/no.po # 46418 -rw-rw-r-- tar-1.13/po/pl.po # 52500 -rw-rw-r-- tar-1.13/po/pt.po # 46907 -rw-rw-r-- tar-1.13/po/ru.po # 48638 -rw-rw-r-- tar-1.13/po/sl.po # 45790 -rw-rw-r-- tar-1.13/po/sv.po # 31428 -rw-rw-r-- tar-1.13/po/cs.gmo # 31757 -rw-rw-r-- tar-1.13/po/de.gmo # 32838 -rw-rw-r-- tar-1.13/po/es.gmo # 34841 -rw-rw-r-- tar-1.13/po/fr.gmo # 29020 -rw-rw-r-- tar-1.13/po/it.gmo # 22638 -rw-rw-r-- tar-1.13/po/ko.gmo # 31056 -rw-rw-r-- tar-1.13/po/nl.gmo # 30528 -rw-rw-r-- tar-1.13/po/no.gmo # 30543 -rw-rw-r-- tar-1.13/po/pl.gmo # 16905 -rw-rw-r-- tar-1.13/po/pt.gmo # 31588 -rw-rw-r-- tar-1.13/po/ru.gmo # 30723 -rw-rw-r-- tar-1.13/po/sl.gmo # 30505 -rw-rw-r-- tar-1.13/po/sv.gmo # 18227 -rw-rw-r-- tar-1.13/po/cat-id-tbl.c # 4898 -r--r--r-- tar-1.13/tests/ChangeLog # 1429 -r--r--r-- tar-1.13/tests/Makefile.am # 10051 -rw-rw-r-- tar-1.13/tests/Makefile.in # 196 -r-xr-xr-x tar-1.13/tests/preset.in # 4704 -r--r--r-- tar-1.13/tests/genfile.c # 289 -r-xr-xr-x tar-1.13/tests/after # 230 -r-xr-xr-x tar-1.13/tests/before # 545 -r-xr-xr-x tar-1.13/tests/version.sh # 1223 -r-xr-xr-x tar-1.13/tests/ignfail.sh # 218 -r-xr-xr-x tar-1.13/tests/extrac01.sh # 227 -r-xr-xr-x tar-1.13/tests/extrac02.sh # 269 -r-xr-xr-x tar-1.13/tests/extrac03.sh # 203 -r-xr-xr-x tar-1.13/tests/old.sh # 713 -r-xr-xr-x tar-1.13/tests/volume.sh # 268 -r-xr-xr-x tar-1.13/tests/gzip.sh # 199 -r-xr-xr-x tar-1.13/tests/append.sh # 265 -r-xr-xr-x tar-1.13/tests/delete01.sh # 315 -r-xr-xr-x tar-1.13/tests/delete02.sh # save_IFS="${IFS}" IFS="${IFS}:" gettext_dir=FAILED locale_dir=FAILED first_param="$1" for dir in $PATH do if test "$gettext_dir" = FAILED && test -f $dir/gettext \ && ($dir/gettext --version >/dev/null 2>&1) then set `$dir/gettext --version 2>&1` if test "$3" = GNU then gettext_dir=$dir fi fi if test "$locale_dir" = FAILED && test -f $dir/shar \ && ($dir/shar --print-text-domain-dir >/dev/null 2>&1) then locale_dir=`$dir/shar --print-text-domain-dir` fi done IFS="$save_IFS" if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED then echo=echo else TEXTDOMAINDIR=$locale_dir export TEXTDOMAINDIR TEXTDOMAIN=sharutils export TEXTDOMAIN echo="$gettext_dir/gettext -s" fi touch -am 1231235999 $$.touch >/dev/null 2>&1 if test ! -f 1231235999 && test -f $$.touch; then shar_touch=touch else shar_touch=: echo $echo 'WARNING: not restoring timestamps. Consider getting and' $echo "installing GNU \`touch', distributed in GNU File Utilities..." echo fi rm -f 1231235999 $$.touch # if mkdir _sh15121; then $echo 'x -' 'creating lock directory' else $echo 'failed to create lock directory' exit 1 fi # ============= tar-1.13/README ============== if test ! -d 'tar-1.13'; then $echo 'x -' 'creating directory' 'tar-1.13' mkdir 'tar-1.13' fi if test -f 'tar-1.13/README' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/README' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/README' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/README' && Please glance through *all* sections of this `README' file before starting configuration. Also make sure you read files `ABOUT-NLS' and `INSTALL' if you are not familiar with them already. X If you got the `tar' distribution in `shar' format, timestamps ought to be properly restored, do not ignore such complaints at `unshar' time. X GNU `tar' saves many files together into a single tape or disk archive, and can restore individual files from the archive. It includes multivolume support, the ability to archive sparse files, automatic archive compression/decompression, remote archives and special features that allow `tar' to be used for incremental and full backups. This distribution also includes `rmt', the remote tape server. The `mt' tape drive control program is in the GNU `cpio' distribution. X GNU `tar' is derived from John Gilmore's public domain `tar'. X See file `ABOUT-NLS' for how to customize this program to your language. See file `BACKLOG' for a summary of pending mail and articles. See file `COPYING' for copying conditions. See file `INSTALL' for compilation and installation instructions. See file `PORTS' for various ports of GNU tar to non-Unix systems. See file `NEWS' for a list of major changes in the current release. See file `THANKS' for a list of contributors. X Besides those configure options documented in files `INSTALL' and `ABOUT-NLS', a few extra options may be accepted after `./configure': X * `--with-dmalloc' is a debugging option for looking at memory management problems, it prerequires Gray Watson's package, which is available as `ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz'. X The default archive device is now `stdin' on read and `stdout' on write. The installer can still override this by presetting `DEFAULT_ARCHIVE' in the environment before configuring (the behavior of `-[0-7]' or `-[0-7]lmh' options in `tar' are then derived automatically). Similarly, `DEFAULT_BLOCKING' can be preset to something else than 20. X For comprehensive modifications to GNU tar, you might need tools beyond those used in simple installations. Fully install GNU m4 1.4 first, and only then, Autoconf 2.13 or later. Install Perl, then Automake 1.4 or later. You might need Bison 1.26 or later, and GNU tar itself. All are available on GNU archive sites, like in ftp://ftp.gnu.org/pub/gnu/. X Send bug reports to `tar-bugs@gnu.org'. (Beware, old-timers: it is `@gnu', not `@prep'; and not `bug-gnu-utils' anymore.) A bug report is an adequate description of the problem: your input, what you expected, what you got, and why this is wrong. Diffs are welcome, but they only describe a solution, from which the problem might be uneasy to infer. If needed, submit actual data files with your report. Small data files are preferred. Big files may sometimes be necessary, but do not send them to the report address; rather take special arrangement with the maintainer. X Your feedback will help us to make a better and more portable package. Consider documentation errors as bugs, and report them as such. If you develop anything pertaining to `tar' or have suggestions, let us know and share your findings by writing at `tar-forum@iro.umontreal.ca'. X X.--------------------. | Installation hints | `--------------------' X Here are a few hints which might help installing `tar' on some systems. X * Static linking. X Some platform will, by default, prepare a smaller `tar' executable which depends on shared libraries. Since GNU `tar' may be used for system-level backups and disaster recovery, installers might prefer to force static linking, making a bigger `tar' executable maybe, but able to work standalone, in situations where shared libraries are not available. The way to achieve static linking varies between systems. Set LDFLAGS to a value from the table below, before configuration (see `INSTALL'). X X Platform Compiler LDFLAGS X X (any) Gnu C -static X AIX (vendor) "-bnso -bI:/lib/syscalls.exp" X HPUX (vendor) -Wl,-a,archive X IRIX (vendor) -non_shared X OSF (vendor) -non_shared X SCO 3.2v5 (vendor) -dn X Solaris (vendor) -Bstatic X SunOS (vendor) -Bstatic X * Failed `incremen.sh'. X In an NFS environment, lack of synchronisation between machine clocks might create difficulties to any tool comparing dates and file timestamps, like `tar' in incremental dumps. This has been a recurrent problem in GNU Makefiles for the last few years. We would like a general solution. X * BSD compatibility matters. X Set LIBS to `-lbsd' before configuration (see `INSTALL') if the linker complains about undefined `valloc' (AIX) or `bsd_ioctl' (Slackware). Also set CPPFLAGS to `-I/usr/include/bsd/sys' before configuration to solve dirent problems (NeXT), or to `-I/usr/include/bsd' if is not found (Slackware). X * `union wait' problems. X Configuration of `union wait' does not always take the best decision. If you have this problem, edit file `config.cache' after configuration, find the line about `tar_cv_header_union_wait', change `yes' by `no' or vice-versa, execute `./config.status', then launch `make'. X * `%lld' unsupported in `printf'. X GNU C has `long long', but the underneath C library might not support the `%lld' format. If you have this problem, edit file `config.cache' after configuration, find the line about `ac_cv_sizeof_long_long, change `8' by `0', execute `./config.status', then launch `make'. X * FreeBSD users -- `configure' fails. X It has been reported that `configure' does not run on FreeBSD 2.1.7, because of a buggy `sh'. It works using `bash', however. X * ISC users -- `S_*' symbols undefined. X On ISC 4.1mu, POSIX environment, set CFLAGS to `-posix' and CPPFLAGS to `-D_SYSV3' before configuration (see `INSTALL'). This will trigger the definition of a few `S_' prefixed symbols from . X * Ultrix users -- broken `make'. X It seems that Ultrix make does not correctly handle shell commands having logical connectives in them. Use `s5make' if you have it, try `PROG_ENV=SYSTEM_FIVE make' (works on Ultrix 4.4), or install GNU Make. X X.------------------. | Special topics. | `------------------' X Here are a few special matters about GNU `tar', not related to build matters. See previous section for such. X * File attributes. X About *security*, it is probable that future releases of `tar' will have some behaviour changed. There are many pending suggestions to choose from. Today, extracting an archive not being `root', `tar' will restore suid/sgid bits on files but owned by the extracting user. `root' automatically gets a lot of special priviledges, `-p' might later become required to get them. X GNU `tar' does not properly restore symlink attributes. Various systems implement flavours of symbolic links showing different behaviour and properties. We did not successfully sorted all these out yet. Currently, the `lchown' call will be used if available, but that's all. X * POSIX compliance. X GNU `tar' implements an early draft of the POSIX 1003.1 `ustar' standard which is different from the final standard. This will be progressively corrected over the incoming few years. Don't be mislead by the mere existence of the --posix option. Later releases will become able to read truly POSIX archives, and also to produce them under option. (Also, if you look at the internals, don't take the GNU extensions you see for granted, as they are planned to change.) GNU tar 2.0 will produce POSIX archives by default, but there is a long way before we get there. X * What's next? X The emphasis from 1.11.2 to 1.12 has been on solving the main portability, execution or usability bugs. This was accompanied all over with an internal cleanup in the sources, and the reassembly of a `tar' manual. X The `BACKLOG' file shows an approximative priorisation of the many pending problems and suggestions. Besides pending problems and all other matters listed above, the cleanup is planned to continue and extend to the general organisation of the code, preparing a long time in advance for a possible merge of the `cpio' and `tar' distributions, into some common `paxutils'. We also want to address some long-awaited performance issues (for example: double buffering) or enhancements (for example: per-file compression). SHAR_EOF $shar_touch -am 0628192699 'tar-1.13/README' && chmod 0444 'tar-1.13/README' || $echo 'restore of' 'tar-1.13/README' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/README:' 'MD5 check failed' 1b5d2394c13d2c31596f901c029d1319 tar-1.13/README SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/README'`" test 8221 -eq "$shar_count" || $echo 'tar-1.13/README:' 'original size' '8221,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/stamp-h.in ============== if test -f 'tar-1.13/stamp-h.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/stamp-h.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/stamp-h.in' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/stamp-h.in' && timestamp SHAR_EOF $shar_touch -am 0707012599 'tar-1.13/stamp-h.in' && chmod 0664 'tar-1.13/stamp-h.in' || $echo 'restore of' 'tar-1.13/stamp-h.in' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/stamp-h.in:' 'MD5 check failed' 1ded054093de910d9786c62bc4fe8cc6 tar-1.13/stamp-h.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/stamp-h.in'`" test 10 -eq "$shar_count" || $echo 'tar-1.13/stamp-h.in:' 'original size' '10,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/ABOUT-NLS ============== if test -f 'tar-1.13/ABOUT-NLS' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/ABOUT-NLS' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/ABOUT-NLS' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/ABOUT-NLS' && Notes on the Free Translation Project ************************************* X X Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all together, so that will gradually become able to speak many languages. A few packages already provide translations for their messages. X X If you found this `ABOUT-NLS' file inside a distribution, you may assume that the distributed package does use GNU `gettext' internally, itself available at your nearest GNU archive site. But you do *not* need to install GNU `gettext' prior to configuring, installing or using this package with messages translated. X X Installers will find here some useful hints. These notes also explain how users should proceed for getting the programs to use the available translations. They tell how people wanting to contribute and work at translations should contact the appropriate team. X X When reporting bugs in the `intl/' directory or bugs which may be related to internationalization, you should tell about the version of `gettext' which is used. The information can be found in the `intl/VERSION' file, in internationalized packages. X One advise in advance ===================== X X If you want to exploit the full power of internationalization, you should configure it using X X ./configure --with-included-gettext X to force usage of internationalizing routines provided within this package, despite the existence of internationalizing capabilities in the operating system where this package is being installed. So far, only the `gettext' implementation in the GNU C library version 2 provides as many features (such as locale alias or message inheritance) as the implementation here. It is also not possible to offer this additional functionality on top of a `catgets' implementation. Future versions of GNU `gettext' will very likely convey even more functionality. So it might be a good idea to change to GNU `gettext' as soon as possible. X X So you need not provide this option if you are using GNU libc 2 or you have installed a recent copy of the GNU gettext package with the included `libintl'. X INSTALL Matters =============== X X Some packages are "localizable" when properly installed; the programs they contain can be made to speak your own native language. Most such packages use GNU `gettext'. Other packages have their own ways to internationalization, predating GNU `gettext'. X X By default, this package will be installed to allow translation of messages. It will automatically detect whether the system provides usable `catgets' (if using this is selected by the installer) or `gettext' functions. If neither is available, the GNU `gettext' own library will be used. This library is wholly contained within this package, usually in the `intl/' subdirectory, so prior installation of the GNU `gettext' package is *not* required. Installers may use special options at configuration time for changing the default behaviour. The commands: X X ./configure --with-included-gettext X ./configure --with-catgets X ./configure --disable-nls X will respectively bypass any pre-existing `catgets' or `gettext' to use the internationalizing routines provided within this package, enable the use of the `catgets' functions (if found on the locale system), or else, *totally* disable translation of messages. X X When you already have GNU `gettext' installed on your system and run configure without an option for your new package, `configure' will probably detect the previously built and installed `libintl.a' file and will decide to use this. This might be not what is desirable. You should use the more recent version of the GNU `gettext' library. I.e. if the file `intl/VERSION' shows that the library which comes with this package is more recent, you should use X X ./configure --with-included-gettext X to prevent auto-detection. X X By default the configuration process will not test for the `catgets' function and therefore they will not be used. The reasons are already given above: the emulation on top of `catgets' cannot provide all the extensions provided by the GNU `gettext' library. If you nevertheless want to use the `catgets' functions use X X ./configure --with-catgets X to enable the test for `catgets' (this causes no harm if `catgets' is not available on your system). If you really select this option we would like to hear about the reasons because we cannot think of any good one ourself. X X Internationalized packages have usually many `po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless translations have been forbidden at `configure' time by using the `--disable-nls' switch, all available translations are installed together with the package. However, the environment variable `LINGUAS' may be set, prior to configuration, to limit the installed set. `LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. X Using This Package ================== X X As a user, if your language has been installed for this package, you only have to set the `LANG' environment variable to the appropriate ISO 639 `LL' two-letter code prior to using the programs in the package. For example, let's suppose that you speak German. At the shell prompt, merely execute `setenv LANG de' (in `csh'), `export LANG; LANG=de' (in `sh') or `export LANG=de' (in `bash'). This can be done from your `.login' or `.profile' file, once and for all. X X An operating system might already offer message localization for many of its programs, while other programs have been installed locally with the full capabilities of GNU `gettext'. Just using `gettext' extended syntax for `LANG' would break proper localization of already available operating system programs. In this case, users should set both `LANGUAGE' and `LANG' variables in their environment, as programs using GNU `gettext' give preference to `LANGUAGE'. For example, some Swedish users would rather read translations in German than English for when Swedish is not available. This is easily accomplished by setting `LANGUAGE' to `sv:de' while leaving `LANG' to `sv'. X Translating Teams ================= X X For the Free Translation Project to be a success, we need interested people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list, courtesy of Linux International. You may reach your translation team at the address `LL@li.org', replacing LL by the two-letter ISO 639 code for your language. Language codes are *not* the same as the country codes given in ISO 3166. The following translation teams exist, as of December 1997: X X Chinese `zh', Czech `cs', Danish `da', Dutch `nl', English `en', X Esperanto `eo', Finnish `fi', French `fr', German `de', Hungarian X `hu', Irish `ga', Italian `it', Indonesian `id', Japanese `ja', X Korean `ko', Latin `la', Norwegian `no', Persian `fa', Polish X `pl', Portuguese `pt', Russian `ru', Slovenian `sl', Spanish `es', X Swedish `sv', and Turkish `tr'. X For example, you may reach the Chinese translation team by writing to `zh@li.org'. X X If you'd like to volunteer to *work* at translating messages, you should become a member of the translating team for your own language. The subscribing address is *not* the same as the list itself, it has `-request' appended. For example, speakers of Swedish can send a message to `sv-request@li.org', having this message body: X X subscribe X X Keep in mind that team members are expected to participate *actively* in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to get started, please write to `translation@iro.umontreal.ca' to reach the coordinator for all translator teams. X X The English team is special. It works at improving and uniformizing the terminology in use. Proven linguistic skill are praised more than programming skill, here. X Available Packages ================== X X Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of December 1997. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination. X X Ready PO files cs da de en es fi fr it ja ko nl no pl pt ru sl sv X .----------------------------------------------------. X bash | [] [] [] | 3 X bison | [] [] [] | 3 X clisp | [] [] [] [] | 4 X cpio | [] [] [] [] [] [] | 6 X diffutils | [] [] [] [] [] | 5 X enscript | [] [] [] [] [] [] | 6 X fileutils | [] [] [] [] [] [] [] [] [] [] | 10 X findutils | [] [] [] [] [] [] [] [] [] | 9 X flex | [] [] [] [] | 4 X gcal | [] [] [] [] [] | 5 X gettext | [] [] [] [] [] [] [] [] [] [] [] | 12 X grep | [] [] [] [] [] [] [] [] [] [] | 10 X hello | [] [] [] [] [] [] [] [] [] [] [] | 11 X id-utils | [] [] [] | 3 X indent | [] [] [] [] [] | 5 X libc | [] [] [] [] [] [] [] | 7 X m4 | [] [] [] [] [] [] | 6 X make | [] [] [] [] [] [] | 6 X music | [] [] | 2 X ptx | [] [] [] [] [] [] [] [] | 8 X recode | [] [] [] [] [] [] [] [] [] | 9 X sh-utils | [] [] [] [] [] [] [] [] | 8 X sharutils | [] [] [] [] [] [] | 6 X tar | [] [] [] [] [] [] [] [] [] [] [] | 11 X texinfo | [] [] [] | 3 X textutils | [] [] [] [] [] [] [] [] [] | 9 X wdiff | [] [] [] [] [] [] [] [] | 8 X `----------------------------------------------------' X 17 languages cs da de en es fi fr it ja ko nl no pl pt ru sl sv X 27 packages 6 4 25 1 18 1 26 2 1 12 20 9 19 7 4 7 17 179 X X Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are used for implementing regional variants of languages, or language dialects. X X For a PO file in the matrix above to be effective, the package to which it applies should also have been internationalized and distributed as such by its maintainer. There might be an observable lag between the mere existence a PO file and its wide availability in a distribution. X X If December 1997 seems to be old, you may fetch a more recent copy of this `ABOUT-NLS' file on most GNU archive sites. X SHAR_EOF $shar_touch -am 0430230598 'tar-1.13/ABOUT-NLS' && chmod 0444 'tar-1.13/ABOUT-NLS' || $echo 'restore of' 'tar-1.13/ABOUT-NLS' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/ABOUT-NLS:' 'MD5 check failed' ef11564ccd2881c65a06c9b0d6f7deec tar-1.13/ABOUT-NLS SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/ABOUT-NLS'`" test 11651 -eq "$shar_count" || $echo 'tar-1.13/ABOUT-NLS:' 'original size' '11651,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/AUTHORS ============== if test -f 'tar-1.13/AUTHORS' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/AUTHORS' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/AUTHORS' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/AUTHORS' && Authors of GNU tar. X The following contributions warranted legal paper exchanges with the Free Software Foundation. Also see files ChangeLog and THANKS. X TAR Jay Fenlason Assigns his changes. X TAR Richard E Salz 1993-03-11 Disclaims changes to getdate.y. X TAR MANUAL (?) Amy Gorin (US 1963) 1995-01-10 Assigns the Tar Manual. X TAR Francois Pinard Canada 1949 1996-02-01 Assigns past and future changes. X TAR Melissa Weisshaus US 1966 1997-04-09 Assigns changes to the manual and future changes. melissa@gnu.ai.mit.edu X TAR Thomas Michael Innis Bushnell US 1967 1997-04-09 Assigns changes. thomas@gnu.ai.mit.edu X TAR Thomas Michael Innis Bushnell US 1967 1997-04-09 Assigns changes to manual. thomas@gnu.ai.mit.edu SHAR_EOF $shar_touch -am 0418123297 'tar-1.13/AUTHORS' && chmod 0444 'tar-1.13/AUTHORS' || $echo 'restore of' 'tar-1.13/AUTHORS' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/AUTHORS:' 'MD5 check failed' ce4d3aaf246049b3c48382c69d234b84 tar-1.13/AUTHORS SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/AUTHORS'`" test 732 -eq "$shar_count" || $echo 'tar-1.13/AUTHORS:' 'original size' '732,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/BACKLOG ============== if test -f 'tar-1.13/BACKLOG' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/BACKLOG' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/BACKLOG' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/BACKLOG M(R!3=6UM87)Y(&]F('!E;F1I;F<@96UA:6P@9F]R($=.52!T87(@,2XQ,BX* M(R!,87-T('5P9&%T960@;VX@,3DY-RTP-"TR-2X*"B,@5&AI2!E M>'!E8W0*(R!S;VUE(&9E961B86-K(&9R;VT@;64N("!5;G1I;"!T:&5N+"!P M;&5A7,@<')A8W1I M8V%L+"!N;W(@9F%I2P@=&\@=VET:&AO;&0@ M80HC(')E;&5AG5D;SH@4F5;,ETZ(%EO=7(@5]S=')I;F<@86YD"C$P+B`Q M.3DU+3`V+3$Y(%)O8F5R="!,:7!E.B!293H@4&%T8V@@=&\@9VYU('1A<@HQ M,2X@,3DY-2TP-RTP-2!3=&5F86X@0F]H;3H@4F4Z($)U9R!I;B!T87(M,2XQ M,2XX"C$R+B`Q.3DU+3`Y+3(P($IO97)G96X@2&%E9V&5L($AA8F5R;6%N;CH@0G5G M(&EN(&=N=2UT87(@,2TQ,2XR"C$X+B`Q.3DV+3`T+3$Y($EA;B!*86-K6]U(&9I M;F0@=&AE('-Y;6)O;&EC(&QI;FMS('1O(&9I;&4*(#(N(#$Y.3$M,3(M,#8@ M4&%U;"!%9V=E2=S(')E<&]R=&5D(&)U9W,@:6X@1TY5('1A M`H@."X@,3DY-BTP.2TP-"!Z=VEC:WDZ(%)E.B!;1G)A M;N=O:7,@4&EN87)D(#QP:6YA2`\8VIF0&YE=&%X',N8V\*,3(N(#$Y.38M,3`M M,38@4FEC:&%R9"!3=&%L;&UA;CH@4$]325@@8V]M<&QI86YC92!T97-TF%R+D1O0U,N554N4T4Z(%)E M.B!T87(@,2XQ,2XR"B`W*B`Q.3DT+3`Y+3$U(&MW>FA`9VYU+F%I+FUI="YE M9'4Z(&9I;&5U=&EL6YT87@@ M9F]R(&EN=F]K:6YG('1A<@HQ,2H@,3DY-2TP,BTR-2!786QT97(@0RX@4&5L M:7-S97)O.B!'3E4@=&%R(&]N($9R965"4T0@,BXP"C$R+B`Q.3DU+3`S+3`X M($IO8VAE;B!(96EN.B!'3E4M<&%C:V%G97,@=&\@:6YT97)N871I;VYA;&EZ M90HQ,RX@,3DY-2TP-BTR-2!&2!P M871C:"!F;W(@=&%R+3$N,3$N."`M+2!B=6<@9FEX97,*,C`J(#$Y.34M,#@M M,#D@4F]N86QD($8N($=U:6QM971T93H@8G5G(&EN($=.52!T87(@,2XQ,2XX M("T@8'8G(&]P=&EO;B!C875S97,*,C$N(#$Y.34M,3(M,#4@1'(N($IO97)G M(%=E=6QE.B!293H@=&%R("TM(&UY('!A=&-H(&9O&4* M,C,J(#$Y.34M,3(M,#<@1'(N($IO97)G(%=E=6QE.B!293H@=&%R("TM(&UY M('!A=&-H(&9O2!P871C:"!F;W(@ M=&%R+3$N,3$N."`M+2!B=6<@9FEX97,*,C4N(#$Y.34M,3(M,3`@2F]H;B!0 M+B!2;W5I;&QAFEE.B!M86MI;F<@)VUA:V4@9&ES="<@FEE.B!293H@;6%K:6YG("=M86ME M(&1I2!3+B!3;W)E;G-E;CH@4')O8FQE;2!W M:71H($=.52!T87(*(#8N(#$Y.34M,#,M,30@"!S M<&5C6EN9R!S>6UB;VQI8R!L:6YK&ET&ES=`HR,RX@,3DY-BTP.2TQ-B!&7-T96US/PH*'1R86-T+6YA;65S"B`Q+B`Q.3DQ+3`Y+3(V('=I97)D84!L=&(N8G-O+FYL M.B!T87(@9&]E&5D"C$R+B`Q M.3DU+3$R+3(P($UA'1R86-T+7!E M'`*(#0N(#$Y.38M,#$M,#8@1G)A;N=O:7,@4&EN87)D M.B!293H@1TY5('1A4!M87AW96QL M+G5C6T*,C$N(#$Y.30H@ M-BX@,3DY-RTP,2TR-B!*;VX@3&5W:7,Z(%)E.B!'3E4@=&%R('9U;&YE0HQ,"X@ M,3DY-RTP,BTP-R!Y=F5S0&UH=BYN970Z(%ML:6YU>"US96-U5T@4F4Z M($=.52!T87(@=G5L;F5R86)I;&ET>0HQ,2X@,3DY-RTP,BTP-R!&5T@4F4Z(%)E.B!'3E4@=&%R('9U;&YE"C$T+B`Q.3DW M+3`T+3`Q($9R86[G;VES(%!I;F%R9#H@=&%R('-E8W5R:71Y"C$U+B`Q.3DW M+3`T+3`R($9R86[G;VES(%!I;F%R9#H@4F4Z('1A0HQ-BX@ M,3DY-RTP-"TP,R!&&D@ M:6X@=&%R('!R971E"!(86EL<&5R:6XZ(&)E='1E"!D96%L:6YG('=I=&@@"YC;VTZ(%1H92!D:69F(&9I;&4@:2!M M96YT:6]N960N+BXN('-O;64@;V8@=&AE(',*(#DN(#$Y.34M,#(M,3,@2F]N M871H86X@22X@2V%M96YS.B!'3E4@=&%R(#$N,3$N,CH@:&%N9&QE3H@ M=&%R(&5N:&%N8V5M96YT"C$Q+B`Q.3DU+3`U+3(X($LN($)E"!S M<&5C'1R86-T6UL:6YK2!L:6YK960@9FD*-#0N(#$Y.36UB;VQI8R!L:0H@-"X@,3DY-BTP-RTR,R!$;W5G;&%S(%-T97=A2!B92!B M65R:6YG M.B!293H@=&%R+3$N,3$N,3$Z(&YE=R!F86EL=7)E('=I=&@@"!2961H870@,RXP+C,@.R!S=')A;F=E(&5R6UL:6YK M6UL:6YK"B`W+B`Q M.3DV+3`U+3`W($)EGII;FDZ M(&9E871U6T*,3$N M(#$Y.38M,#6T*,30N(#$Y.38M M,#7+I M96XZ(%)E.B!(;W<@9&]E2!&:71Z:&%R9&EN9V4Z(%)E.B!(;W<@9&]E6UL:6YK6UL:6YK65R:6YG.B!C<"`M<"!S:&]U;&0@<')E`HS M,"X@,3DY-BTP.2TR,B!4:71O($9L86=E;&QA.B!293H@5$%2($)U9R!H86YD M;&EN9R!3>6UB;VQI8R!,:6YK6UB;VQI8R!L:6YK6T*(#@N(#$Y.38M M,3(M,3<@2FEM($UE>65R:6YG.B!T87(@=G,N(&-H;W=N+VQC:&]W;B!;9VYU M+G5T:6QS+F)U9UT@4F4Z(&-P("UP(&1O90H@.2X@,3DY-BTQ,BTR,"!0:&EL M:7!P92!38VAN;V5B96QE;CH@4F4Z(&-P("UP(&1O97,@;F]T('!R97-E6T*,3$N(#$Y.36UB;VQI8R!L:0HQ,BX@ M,3DY-RTP,2TR.2!*:6T@365Y97)I;F6UB;VQI8R!L:6X*,30N(#$Y.3`HQ-BX@,3DY-RTP,BTQ-R!!;F1R96%S($IA96=E`HQ-RX@,3DY-RTP,BTR,B!! M;&5X86YD97(@5BX@3'5K>6%N;W8Z('1A65R:6YG.B!293H@=&%R('9S+B!C:&]W;B]L8VAO=VX@6V=N=2YU=&EL6UB;VQI8R!,:6YK6=N=7,N8V]M.B!'3E4@=&%R(&%N9"!G M8V,@:&5A9&5R(&EN"B`T+B`Q.3DU+3`Q+3$P($LN($)E3\*(#4N(#$Y.34M,#$M,3`@1G)A;F-O:7,@4&EN M87)D.B!293H@1TY5('1A2!P'!E8W1E9"!%3PHQ-"X@,3DY-BTP-BTR,"!$879I M9"!,+B!%;&QI;W1T.B!$86UA9V5D(&9I;&4@<')E<"YA:2YM:70N961U("]P M=6(O9VYU+W1A2!786QD96XZ('1A MFEP('9S+B!Z:7`@*'=AFEP('5N"B`R+B`Q.3DS+3`T+3,P($IE86XM;&]U M<"!'86EL;'DZ('1AFEN93H@(D1O(%=H870@22!-96%N(B!P M871C:"!F;W(@1TY5('1A2!,96ES M;F5R.B!T87(@,2XQ,2XY"C(P+B`N+BXN+2XN+2XN($UA3H@4F4Z('1A7-T96US("AW87,@4F4*,C65R:6YG.B!293H@4')E3H@4F4Z(%!R97)E;&5A M2!O<&5R871I;VYS(&EN('1A2!O<&5R871I;VYS(&EN('1A2!O<&5R871I M;VYS(&EN('1AFEP+3YT87(_"B`W+B`Q.3DT+3`Y+3`R($1E;&5M87(Z(%)E.B!7:&EC M:"!IFEP+3YT87(_"B`X+B`Q.3DT M+3`Y+3`W(&IO;F)O>4!N975R;VUA;F-E3H@4F4Z('1A2`O("U9"C$Y M+B`Q.3DU+3$Q+3$Q(%-K:7`@36]N=&%N87)O.B!3:&]R="!T87(@9FEL92!F M;W(@=&%R(#$N,3$N."!O;B!P'0@=71I;&ET:0H@,BH@,3DY-"TP."TQ-B!4:&]M87,N M2V]E;FEG0&-I=RYU;FDM:V%R;'-R=6AE+F1E.B!T87(L(&]N($QI;G5X('1H M:7,@=&EM90H@,RX@,3DY-"TP.2TP,2!#:')IB(@=W)I=&EN9R!T;R!G>FEP.R!E87-Y(&9I>#\*(#0J M(#$Y.30M,#DM,#(@0VAR:7,@365T8V%L9CH@4F4Z(&QOB(@=W)I=&EN M9R!T;R!G>FEP.R!E87-Y(&9I>`H@-BX@,3DY-2TP-"TP-R!'3H@1TY5('1A#H@=&%R(&ED96$* M(#,N(#$Y.3`M,#,M,#$@5&]M($MA2!-87)G;VQI;CH@1TY5('1AB!O<'1I;VX@=VET:"!$050@9')I=F4*,C4N(#$Y M.30M,3`M,3(@0VQA=7,M1&EE=&5R($)R961L.B!293H@5&%R(&%N9"!Z(&]P M=&EO;B!W:71H($1!5"!D6$*,S,N(#$Y M.34M,3$M,C,@1G)A;N=O:7,@4&EN87)D.B!293H@475I8VL@;VYE(&9O'1E;G-I;VYS('1O(&=N=2!T87(*-#(N(#$Y.38M,#(M M,C<@061R:6%N($)I;&%N9#H@4F4Z('1ACH@4F4Z(%-T71S.B!02!P871C M:"!F;W(@=&%R+3$N,3$N."`M+2!B=6<*(#@N(#$Y.38M,#,M,C0@0TE#(&EN M8RP@5&5C:#H@8G5G(')E<&]R="`M('1A`HQ-RX@,3DY-"TP.2TP,B!*;VAN($1A=FED($%N9VQI;CH@ M26YS=&%L;&%T:6]N(&1I2!F;W(@2!I;B!C<&EO+3(N,R!-86ME9FEL92YI M;@HR-"X@,3DY-2TP,RTR,2!&FUA;FXZ(%)E.B!(;W<@9&\@22!F;W)W M87)D(&EN8V]M:6YG(&UA:6P@=&\@82!M86D*,C8J(#$Y.34M,#0M,C`@36EK M92!*86=D:7,Z(%!A=&-H('1O(&-P:6\@,BXS+W1A6QV M86EN(%)/54=)15(Z(%)E.B!"=6<@:6X@=&%R+3$N,3$N.`HU-"X@,3DY-RTP M,BTR-2!&FEP('!R M;V=L96TN+BX*,3@N(#$Y.38M,#DM,#0@06QO:7,@4W1E:6YD;#H@4&]S&5C(B!A7,Z(%-#4TD@4W5P<&]R="!F;W(@8W!I;R=S(&UT('5N M9&5R('1H92!,:6YU>"!K97)N96P*,38N(#$Y.38M,#8M,#4@4&%R=&EC;&4@ M36%N.B!T87(@,2XQ,2XX("8@8G-D:0HQ-RX@,3DY-BTP-BTQ-"!-87)K($)Y M;G5M.B!293H@=&%R+3$N,3$N.2`F(%-'22`V+C$@0V]M<&EL871I;VX@4')O M8FQE;7,*,3@N(#$Y.38M,#8M,3<@36%R:R!">6YU;3H@4F4Z('1AB!!9VAA M:65P;W5R.B!293H@4')O8FQE;2!W:71H(&=T87(M,2XQ,2XR"B`S+B`Q.3DT M+3$Q+3`W($II;2!-97EE3\*,3(N(#$Y.34M,#$M,CD@ M2V%I.B!293H@9VYU('1A`HQ-"X@,3DY-2TP-BTQ.2!$879E($)A6)J,RYE9VQI;BYA9BYM:6PZ M($=.52!C<&EO('9E2!O<'1I;VX*,C@N(#$Y.33H@4F4Z(%-O;64@1TY5('1A3H@4F4Z($%U=&]M86ME(&%N9"!C<&EO"C$X M+B`Q.3DU+3$R+3`S(%1O;2!4"YC;VTZ(&)U M9R!I;B!C<&EO(&-O;F9I9W5R92!F;W(@&D@9&]E M#\A(&9O2!4+B!$86ER:6MI.B!"=6<@:6X@8W!I;RTR+C0N,BP@ M86YD(&]T:&5R('%U97-T:6]NCH@8W!I;RTR+C,@96YH86YC96UE;G0@7-T96US"B`R+B`Q.3DV M+3`X+3`X($9R86[G;VES(%!I;F%R9#H@4F4Z($)A8VMU<"!O9B!(=7)D('-Y M2P@9G)O;2!C<&EO M(&1I2!P871C:"!F;W(@=&%R+3$N,3$N."`M+2!B M=6<@9FEX97,*(#"!S M<&5C"!S<&5C2!D;V5S("=T87(@+6-L9B<@ M87)C:&EV92`O<')O8R!F:6QE3$N:&EA+FYR8RYC83H@4F4Z(%!A=&-H97,@9F]R('1A2!D;V5S("=T87(@+6-L9B<@87)C:&EV92`O<')O8R!F:6QE M2!D M;V5S("=T87(@+6-L9B<@87)C:&EV92`O<')O8R!F:6QE3$N:&EA+FYR8RYC83H@4F4Z(%!A=&-H M97,@9F]R('1A3H@4F4Z('1A6]U"]N86UE"B`W+B`Q.3DT+3`X+3$U($9R86YC;VES(%!I M;F%R9#H@4F4Z($$@<&%X(&EM<&QE;65N=&%T:6]N(&9O3H@4F4Z($)U9R!I;B!'3E4@=&%R(#$N,3$N M,@H@.2X@,3DY-2TP-"TR,2!&&EM+F=B82YO>BYA M=3H@02!P87@@:6UP;&5M96YT871I;VX@9F]R($=.50H@-2X@,3DY-"TP."TQ M-2!&"!I;7!L96UE;G1A=&EO;B!F M;W(@1TY5"B`V+B`Q.3DT+3`X+3$V(&=J8D!M87AI;2YG8F$N;WHN874Z(%)E M.B!!('!A>"!I;7!L96UE;G1A=&EO;B!F;W(@1TY5"B`W+B`Q.3DT+3`X+3$V M(&=J8D!M87AI;2YG8F$N;WHN874Z(%)E.B!!('!A>"!I;7!L96UE;G1A=&EO M;B!F;W(@1TY5"B`X+B`Q.3DT+3`X+3$V($9R86YC;VES(%!I;F%R9#H@4F4Z M($$@<&%X(&EM<&QE;65N=&%T:6]N(&9O3H@4F4Z($)U9R!I;B!'3E4@=&%R(#$N,3$N,@HQ,"X@,3DY M-2TP-"TR-2!&3H@4F4Z M(%-O;64@1TY5('1A0H*2!&:71Z:&%R9&EN9V4Z(&-P(&9A:6QS('1O(&UA:V4@6EN9R!'3E4@8W`N+BX*"G)M86EL+S,M0H@,2X@,3DX M.2TP,RTS,2!0:65T('9A;B!/;W-T6]U(&9I;F0@=&AE('-Y;6)O;&EC(&QI;FMS('1O M(&9I;&5S+@H@,RX@,3DY,"TQ,BTQ,B!$86X@0F5R;G-T96EN.B!293H@2&]W M(&1O('EO=2!F:6YD('1H92!S>6UB;VQI8R!L:6YK2`J3H@ M4F4Z(%1A2!H86-K(&9O"!F;W(@:6YV;VMI;F<@=&%R"B`T+B`Q.3DU+3`Q+3`T M($9R86YC;VES(%!I;F%R9#H@4F4Z(&)U9R!F;W5N9"!I;B!'3E4@=&%R+3$N M,3$N,@H@-2X@,3DY-2TP-RTP-2!0875L($%S<&EN=V%L;#H@=&%R("U'("U. M(&ES(&-O;F9U2!*+B!,964Z($=.52!T M87(@+2UN97=E4!G96XN M8V%M+F%C+G5K.B!'3E4@=&%R('-T871U2!,96ES;F5R.B!P3H@2!,96ES;F5R.B!P7)K83H@4F4Z($1U M<&QI8V%T:6YG(&$@9FEL92!S>7-T96T*,38N(#$Y.38M,#4M,S`@3&%R&-L=61E('!A='1E6YU;3H@4F4Z('1A&-L=61E+69R;VT*,C,N(#$Y M.38M,3$M,#D@1G)A;N=O:7,@4&EN87)D.B!293H@=&%R(#$N,3$N."!B=6<@ M=VET:"`G*B\G(&9I;&4@9FEL=&5R"C(T+B`Q.3DV+3$Q+3`Y($YA="!-86MA M&ET+7-T871U2H@;F]T(&%P<&5N9#\_/PH@-2X@,3DY-2TQ,"TP,R!'97)A;&0@ M1"X@06YD97)S;VXZ('1A&ET('-T871U&ET('-T871U2!H86-K(&9O"!!9&UI;FES=')A=&]R.B!2 M93H@=&%R"B`W+B`Q.3DT+3`R+3$X($QE"`T+C(L(&%N9"!A=&]L"C$P+B`Q M.3DU+3`Q+3$Y('!H3H@=&%R(#$N,3$N,2`M+6QI2!D96-E;G0@8F%C:W5P('-O9G1W M87)E(&9O"`_/S\*,C`N(#$Y.30M,#@M,C8@6]U(&1I9&XG="!H879E(&5N;W5G:"!T;R!D;R!A;')E861Y M"C0V+B`Q.3DU+3`T+3(W(%5R:2!-971H.B!T87(M,2XQ,2XR"C0W+B`Q.3DU M+3`U+3$U(&%S8D!U;'ES3H@1EE).B!T87(M;6]D92YE;"!H86-K7-T97)I97,*(#$N(#$Y.38M M,#(M,C(@9G5L8V]`'1A<@H@,2X@,3DY-2TQ,2TP,2!&65R:6YG.B!293H@=&%R(#$N,3$N-"!P;VEN=&5R(&)U9R!I;B!G971?9&ER M96-T;W)Y7V-O;G1E;@HQ-RX@,3DY-RTP,BTR-R!&7-T96US*0H@.2X@,3DY-BTP."TR,"!3=&5P M:&5N($,N(%1W965D:64Z(%)E.B`V-&)I="!L2!!+B!#:&5R;F]V+"!";&%C:R!-86=E.B!293H@1TY5('1A M7!E7-T96US"B`R+B`Q.3DV+3`R+3(U M($9R86[G;VES(%!I;F%R9#H@4F4Z('1A7-T96US"B`S+B`Q.3DV+3`W+3$V($UA'13=&5P(#,N,B!F;W(@=&%R M"B`U+B`Q.3DV+3$P+3$X($QE;&4@1V%I9F%X.B!293H@271A;&EA;B!M97-S M86=E2P@;65L:7-S82!R97!L:65S+@H@-RX@,3DY-RTP-"TP M,2!&'0@;6]N=&@*(#8N(#$Y.34M,#8M,3(@1G)A M;N=O:7,@4&EN87)D.B!293H@;F5X="!M;VYT:`H@-RX@,3DY-2TP-BTQ,B!+ M+B!"97)R>3H@4F4Z(&YE>'0@;6]N=&@*(#@N(#$Y.38M,#(M,C`@2V%R;"!" M97)R>3H@9&%T92`M+69I;&4]"B`Y+B`Q.3DV+3`R+3(X($II;2!-97EE&-L=61E"B`Q M+B`Q.3DW+3`S+3(W($9R86[G;VES(%!I;F%R9#H@4F4Z($1O8W5M96YT871I M;VX@;VX@9VYU('1A<@H@,BX@,3DY-RTP,RTR-R!5;')I8V@@5VEN9&PZ($1O M8W5M96YT871I;VX@;VX@9VYU('1A<@H*'1E;G-I;VX*,3$N M(#$Y.#@M,#,M,34@2F]H;B!':6QM;W)E.B!293H@=&%R(&5X=&5N2!E>&-A=F%T:6]N"C0S+B`Q.3DV+3$Q+3(R M($9R86[G;VES(%!I;F%R9#H@4F4Z($=.52!T87(@,2XQ,2XQ-"!P3H@0V]M<&EL92!E"YC M(&EN('1A7-I8W,N=6)C+F-A.B!'3E4@=&%R(#$N,3$N,CH@&%N9')E($]L:79A.B!293H@1TY5(%1A&%N9&5R(%8N($QU:WEA;F]V.B!293H@02!F96%T M=7)E('1O(&%D9`H*&D*(#0N(#$Y.33H@4F4Z(%5N9&5S:7)A8FQE(&)E:&%V:6]R(&]F('1A M<@H@,RX@,3DY-RTP-"TQ,"!"0H*2!3=6)S>7-T96TZ(%)E M='5R;F5D(&UA:6PZ(%5S97(@=6YK;F]W;@H@-BX@,3DY-RTP-"TR,"!-86EL M($1E;&EV97)Y(%-U8G-Y2!3=6)S>7-T96TZ(%)E='5R;F5D(&UA:6PZ(%5S97(@=6YK M;F]W;@H@.2X@,3DY-RTP-"TR,R!-86EL($1E;&EV97)Y(%-U8G-Y2!3=6)S>7-T96TZ(%)E='5R;F5D(&UA M:6PZ($AO&5S"B!T ` end SHAR_EOF $shar_touch -am 0425172197 'tar-1.13/BACKLOG' && chmod 0444 'tar-1.13/BACKLOG' || $echo 'restore of' 'tar-1.13/BACKLOG' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/BACKLOG:' 'MD5 check failed' 0548a1b38f507adaffdda6e2613ad445 tar-1.13/BACKLOG SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/BACKLOG'`" test 85570 -eq "$shar_count" || $echo 'tar-1.13/BACKLOG:' 'original size' '85570,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/COPYING ============== if test -f 'tar-1.13/COPYING' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/COPYING' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/COPYING' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/COPYING' && X GNU GENERAL PUBLIC LICENSE X Version 2, June 1991 X X Copyright (C) 1989, 1991 Free Software Foundation, Inc. X 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA X Everyone is permitted to copy and distribute verbatim copies X of this license document, but changing it is not allowed. X X Preamble X X The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. X X When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. X X To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. X X For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. X X We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. X X Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. X X Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. X X The precise terms and conditions for copying, distribution and modification follow. X X GNU GENERAL PUBLIC LICENSE X TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION X X 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". X Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. X X 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. X You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. X X 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: X X a) You must cause the modified files to carry prominent notices X stating that you changed the files and the date of any change. X X b) You must cause any work that you distribute or publish, that in X whole or in part contains or is derived from the Program or any X part thereof, to be licensed as a whole at no charge to all third X parties under the terms of this License. X X c) If the modified program normally reads commands interactively X when run, you must cause it, when started running for such X interactive use in the most ordinary way, to print or display an X announcement including an appropriate copyright notice and a X notice that there is no warranty (or else, saying that you provide X a warranty) and that users may redistribute the program under X these conditions, and telling the user how to view a copy of this X License. (Exception: if the Program itself is interactive but X does not normally print such an announcement, your work based on X the Program is not required to print an announcement.) X These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. X Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. X In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. X X 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: X X a) Accompany it with the complete corresponding machine-readable X source code, which must be distributed under the terms of Sections X 1 and 2 above on a medium customarily used for software interchange; or, X X b) Accompany it with a written offer, valid for at least three X years, to give any third party, for a charge no more than your X cost of physically performing source distribution, a complete X machine-readable copy of the corresponding source code, to be X distributed under the terms of Sections 1 and 2 above on a medium X customarily used for software interchange; or, X X c) Accompany it with the information you received as to the offer X to distribute corresponding source code. (This alternative is X allowed only for noncommercial distribution and only if you X received the program in object code or executable form with such X an offer, in accord with Subsection b above.) X The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. X If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. X X 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. X X 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. X X 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. X X 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. X If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. X It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. X This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. X X 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. X X 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. X Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. X X 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. X X NO WARRANTY X X 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. X X 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. X X END OF TERMS AND CONDITIONS X X How to Apply These Terms to Your New Programs X X If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. X X To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. X X X Copyright (C) 19yy X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2 of the License, or X (at your option) any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X X You should have received a copy of the GNU General Public License X along with this program; if not, write to the Free Software X Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA X X Also add information on how to contact you by electronic and paper mail. X If the program is interactive, make it output a short notice like this when it starts in an interactive mode: X X Gnomovision version 69, Copyright (C) 19yy name of author X Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. X This is free software, and you are welcome to redistribute it X under certain conditions; type `show c' for details. X The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. X You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: X X Yoyodyne, Inc., hereby disclaims all copyright interest in the program X `Gnomovision' (which makes passes at compilers) written by James Hacker. X X , 1 April 1989 X Ty Coon, President of Vice X This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. SHAR_EOF $shar_touch -am 0704123897 'tar-1.13/COPYING' && chmod 0444 'tar-1.13/COPYING' || $echo 'restore of' 'tar-1.13/COPYING' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/COPYING:' 'MD5 check failed' c93c0550bd3173f4504b2cbd8991e50b tar-1.13/COPYING SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/COPYING'`" test 17989 -eq "$shar_count" || $echo 'tar-1.13/COPYING:' 'original size' '17989,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/ChangeLog ============== if test -f 'tar-1.13/ChangeLog' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/ChangeLog' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/ChangeLog' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/ChangeLog M,3DY.2TP-RTP."`@4&%U;"!%9V=E&-L=61E+F,N M"@H)*B!L:6(O8F%S96YA;64N:"P@;&EB+V5X8VQU9&4N8RP@;&EB+V5X8VQU M9&4N:"P@;&EB+W-A9F4M&-L=61E+F@[(&1O;B=T(&EN8VQU9&4@9G5L;"UW&-L=61E9%]F:6QE;F%M92!I;G-T96%D(&]F(&-H M96-K7V5X8VQU9&4N"@E#:&5C:R!B87-E(&YA;64@;V8@:6YC;VUI;F<@9FEL M92!N86UE+"!N;W0@96YT:7)E(&9I;&4@;F%M92P@=VAE;@H)9&5C:61I;F<@ M=VAE=&AE&-L=61E(&ET+@H*"2H@&-L=61E7W!O;VQ?&-L=61E7W!O;VQ?&-L=61E&-L=61E M7V9I;&4L"@EC:&5C:U]E>&-L=61E*3H*"5)E;6]V93L@;F]W(&1O;F4@:6X@ M+BXO;&EB+V5X8VQU9&4N8RX*"@DJ('-R8R]T87(N8R`H9&5C;V1E7V]P=&EO M;G,I.B!);FET:6%L:7IE(&!E>&-L=61E9"&-L M=61E7V9I;&4@86YD(&%D9%]E>&-L=61E(&9U;F-T:6]N'!A;F1S('1O(&$@;6%C"X*"2AS=')T M;VPL('-T2!C86XG="!B92!V86QI9"!C:&%R7-T96TN:"`H M25-!4T-)22DZ(%)E;6]V92X*"2A#5%E015]$3TU!24XL($E31$E'250L($E3 M3T1)1TE4+"!)4U!224Y4+"!)4U-004-%+"!37TE354E$+`H)4U])4T=)1"P@ M4U])4E534BP@4U])5U534BP@4U])6%534BP@4U])4D=24"P@4U])5T=24"P@ M4U])6$=24"P*"5-?25)/5$@L(%-?25=/5$@L(%-?25A/5$@L($U/1$5?5UA5 M4U(L($U/1$5?4BP@34]$15]25RP*"4U/1$5?4E=8+"!-3T1%7T%,3"P@4T5% M2U]3150L(%-%14M?0U52+"!3145+7T5.1"P@0TA!4E]-05@L"@E,3TY'7TU! M6"DZ($YE=R!M86-R;W,N"@H)*B!S7-T96TN:"X*"2AR96UO=F5?86YY7V9I;&4I.B!!9&0@8G)A8VME=',@=&\@ M<&%C:69Y(&=C8R`M5V%L;"X*"2H@"!V86QU97,N M"@DJ('-R8R]L:7-T+F,@*&1E8V]D95]M;V1E*3H@3&EK97=I'1R M86-T7W-P87)S95]F:6QE*3H@3&EK97=I&ET('-T871U'1R86-T+F,@*&5X=')A8W1?7-T96TN:"`H9G5L;%]R96%D+"!F=6QL7W=R M:71E*3H@3F5W(&1E8VQS+@H*"2H@<&\O4$]41DE,15,N:6XZ($%D9"!L:6(O M87)G;6%T8V@N8RP@;&EB+V5R&5C*3H@57-E(%-41$E.7T9)3$5.3R!A;F0@4U1$3U54 M7T9)3$5.3PH):6YS=&5A9"!O9B!F:6QE;F\@*'-T9&EN*2!A;F0@9FEL96YO M("AS=&1O=70I(&]R(#`@86YD(#$N"@H)*B!S"!S;VUE(&-O5]F:6QE*3H*"41O;B=T('1EF5S('5S:6YG(&$@9F]R;6%T('1H870GF5R;W,L(&YO="!S<&%C97,N"@E/=71P=70@82!T M'-T'-TFEP,BX*"2AD96-O9&5?;W!T:6]N'0N8RP@;&EB+V1I'-T'-T7!E%]T+FTT+`H);30O=6QO;F=L M;VYG+FTT+"!M-"]U=&EM8G5F+FTT+"!M-"]U=&EM92YM-"P@;30O=71I;65S M+FTT+`H);30O>'-T"YM-#H@3F5W(&9I;&5S+@H*"2H@8V]N9FEG M=7)E+FEN*&9P7U!23T=?14-(3RDZ(%)E;6]V93L@;F\@;&]N9V5R(&YE961E M9"X*"2A!0U]365-?3$%21T5&24Q%*3H@4F5N86UE9"!F"YC+"!U=&EM92YC+@H)*&YO M:6YS=%](14%$15)3*3H@061D(&QC:&]W;BYH+"!M;V1E8VAA;F=E+F@L('AS M=')T;VPN:"X*"2AL:6)T87)?85]33U520T53*3H@061D(&%D9&5X="YC+"!B M87-E;F%M92YC+"!X'!E8W0@8V]N9FQI8W1S)R!L:6YE+@H*"2H@&DZ(%)E;6]V92`M>2X*"C$Y.3DM,#0M,#D@(%!A=6P@16=G97)T("`\ M96=G97)T0'1W:6YS=6XN8V]M/@H*"2H@2UF86-T;W(M;V8M,3`@='EP;PH)*'=E M('=E'0@,"XQ,"XS-2!E9&ET M:6]N+@H*,3DY.2TP,RTR,B`@4&%U;"!%9V=E&%L;&]C+F@N"@DH;&EB=&%R7V%?4T]54D-%4RDZ($%D M9"!Q=6]T96%R9RYC+@H)*B!L:7-T+F,Z($EN8VQU9&4@/'%U;W1E87)G+F@^ M+@H)*&9R;VU?;V-T*3H@061D(&9O3L@86QL(&-A;&QE7-T96T@;6%L;&]C+@H*"2H@36%K969I;&4N86T@*$58 M5%)!7T1)4U0I.B!296UO=F4@04,M4$%40TA%4RP@04TM4$%40TA%4RP@0DDM M4$%40TA%4RX*"@DJ($UA:V5F:6QE+F%M("A%6%1205]$25-4*3H@4F5M;W9E M(&=M86QL;V,N8RX*"@DJ(&%C:6YC;'5D92YM-"`H9G!?5TE42%])3D-,541% M1%]-04Q,3T,I.B!296UO=F4N"@H)*B!T87(N=&5X:3H@1FEX(&)U9RUR97!O M2!G971S('1H M92!F;&%G7-T96TN:"`H1TE$ M7TU!6"P@34%*3U)?34%8+"!-24Y/4E]-05@L($U/1$5?34%8+"!/1D9?34%8 M+`H)4TE:15]-05@L(%1)345?34%8+%5)1%]-05@L(%5)3E1-05A?34%8*3H@ M(%)E;6]V93L@;F\@;&]N9V5R('5S960N"@H)*B!S5]C;VYT96YT2!T M:&4*"6UA>&EM=6T@=F%L=64L(&YO="!T:&4@;G5M8F5R(&]F(&)I=',N"@DH M1TE$7TY/0D]$62P@54E$7TY/0D]$62DZ($YE=R!M86-R;W,N"@DH9VED7W1O M7V]C="P@=6ED7W1O7V]C="DZ(%5S92!T:&5M(&%S('-U8G-T:71U=&5S+@H) M*&9I;FES:%]H96%D97(I.B!$;R!N;W0@87-S=6UE('1H870@54E.5$U!6%]4 M3U]/0U0@87!P96YD0H)2X*"@DJ($Y%5U,L(&-O;F9I9W5R92YI;B`H04U?24Y)5%]! M551/34%+12DZ(%9E&DZ($%D9"`M+6)Z:7`R+"`M+75N8GII M<#(@;W!T:6]N'0@=F5R2!C:&5C:VEN9R!F;W(@9V5T8V]N9@H)=VET:"!!0U]#2$5#2U]4 M3T],(&%N9"!B>2!D:71C:&EN9R!U;F%M92!I;B!F879O3H@57!D871E('1O(&9I;&5U=&EL M'0N8RP*"6EN=&PO M97AP;&]D96YA;64N8RP@:6YT;"]F:6YD9&]M86EN+F,L(&EN=&PO9V5T=&5X M="YC+`H):6YT;"]G971T97AT+F@L(&EN=&PO9V5T=&5X=%`N:"P@:6YT;"]H M87-H+7-T7)I9VAT+@H*"2H@3D574SH@,2XQ,BXV-#`P-`H*,3DY.2TP,BTP,2`@ M4&%U;"!%9V=E2!W97)E('1R87-H:6YG('1H92!T87(@9FEL92!H96%D M97(N"@H)*B!SFEP M,B!O%]T(&9O"P@:6YS M=&%L;"US:"P@;6ES2!03U-)6"XQ+3$Y.38@'1R86-T+F,@*'-E=%]S=&%T*3H@8VAM M;V0@869T97(@8VAO=VX@979E;B!W:&5N(&YO="!R;V]T.PH):68@=V4@87)E M('5S:6YG("TM2!I;G-T86QL M871I;VYS+"!R97AE8R!I'!L:6-I="!E;F%B M;&EN9RX*"2A(059%7TE.5%194$537T@L($A!5D5?4U1?1E-465!%7U-44DE. M1RP@9&%D9')?="P@;6%J;W)?="P@;6EN;W)?="P*"7-S:7IE7W0I.@H)3F5W M(&UA8W)O6YA;64@=VAI;&4*"6-H96-K M:6YG(&9O7,@;F\@=V]R:VEN9R!C;W!Y('=A2X*"5)E<&]R M=&5D(&)Y($)R=6YO($AA:6)L92P@0G)Y86YT($9U:FEM;W1O+"!*;VAN($1A M=FED($%N9VQI;BP*"4MA=F5H(%(N($=H87II+"!,875R96YT($-A:6QL870M M5F%L;&5T+"!386MA:2!+:7EO=&%K82!A;F0*"5-A;G1I86=O(%9I;&$@1&]N M8V5L+@H*,3DY-RTP-"TQ,2`@1G)A;N=O:7,@4&EN87)D("`\<&EN87)D0&ER M;RYU;6]N=')E86PN8V$^"@H)*B!C;VYF:6=U6UO2!A9&0@+6QN2!!2!38VAW:6UM97(L($UA6%N="!&=6II;6]T;RP@17)I8VL@0G)A;F1E MFDL($MU6UO"]F9"YH+@H)4F5P;W)T960@8GD@36%R='D@3&5I2!R M96UO=F4@82!<(&EN($%#7T]55%!55"!F;W(@875T;VUA:V4N"@HQ.3DV+3`R M+3`S("!&0H)8VAE8VMI;F<@9F]R('5N:6]N('=A:70@:7,@2!!;&%N($)A M=V1E;BP@0VAR:7,@07)T:'5R+"!#;W)A;G1H($=R>7!H;VXL"@E*96%N+5!H M:6QI<'!E($UA2!P7,O='!R:6YT M9BYH/B!A;F0@/'-Y2!#:')I2YH/B!I M9B!I="!W87,@9F]U;F0@=&\@97AI6EN9R!T;PH)9V5T($5/4$Y/5%-5 M4%`@9&5F:6YE9"X*"@DJ(&-O;F9I9W5R92YI;CH@0VAE8VL@9F]R('-G='1Y M+F@N"@HQ.3DU+3$Q+3`V("!&2X*"C$Y.34M,3`M,C<@($9R86[G;VES(%!I;F%R9"`@ M/'!I;F%R9$!I2!30T\@56YI>"`S+C(N-"X* M"5)E<&]R=&5D(&)Y($)E;&$@3'5B:VEN(&%N9"!2;V1N97D@0G)O=VXN"@HQ M.3DU+3`W+3(S("!&7,O2!"&5C M;'`@87,@;F5E9&5D("AF;W(@36EN:7@L(&UA:6YL>2DN"@H)*B!C;VYF:6=U M'0@ M,"XV+C$N"@E297!O2!5;')I8V@@1')E<'!E2!$87-S96X@86YD(%5L M6EN9R!R=6QE M+@H*"2H@8V]N9FEG=7)E+FEN.B!!9&IU2X*"C$Y.34M,#4M M,C@@($9R86[G;VES(%!I;F%R9"`@/'!I;F%R9$!I7,O:6]C8V]M+F@^+@H)4F5P;W)T960@ M8GD@2F]S97!H($4N(%-A8V-O+@H*,3DY-2TP,2TP,2`@1G)A;N=O:7,@4&EN M87)D("`\<&EN87)D0&ER;RYU;6]N=')E86PN8V$^"@H)*B!-86ME9FEL92YI M;B`H1$E35$9)3$53*3H@1&ES=')I8G5T92!355!03U)4+"!W:71H("IPRPJ+WU-86ME9FEL92YI;CH@0VQE86X@=7`L(&9O M;&QO=VEN9R!T:&]S92!O9B!'3E4@;30N("!)('=I;&P*"6YO="!D971A:6P@ M86QL('1H92!C:&%N9V5S(&AE2!I;B!L:6(@86YD('-R8RX*"2A4 M04=3*3H@1&5L971E9"X*"2AD:7-T8VQE86XL(')E86QC;&5A;BDZ(%)E;6]V M92!C;VYF:62X*"2AS=&%M<"UH M*3H@2&%V92`N+V-O;F9I9RYS=&%T=7,@8W)E871E(&-O;F9I9RYH(&]N;'DN M("!$;R!N;W0*"6-R96%T92!S=&%M<"UH(&AE2X*"@DJ(&-O;F9I9W5R92YI;CH@0VAE M8VL@9F]R('5N:6]N('=A:70N("!!9&%P=&5D(&9R;VT@;6%K92`S+C2!'6UO2!L;V]K M:6YG(&%R;W5N9"!F;W(@=F%R:6]U2!!;F1R M96%S(%-C:'=A8B!A;F0@2V%V96@@4BX@1VAA>FDN"@HQ.3DT+3`X+3(P("!& M2!"'!A;G-I M;VXN("!#;W)R96-T"@ET:&4@;F\O=')U92!C;VYF=7-I;VX@:6X@=&5S=',N M("!$;R!N;W0@2!W M:&5N(&YO="!A;')E861Y(&EN('1H92!C86-H92X*"5)E<&]R=&5D(&)Y($MA M=F5H(%(N($=H87II+@H*"2H@8V]N9FEG=7)E+FEN.B!);F-L=61E(#QS>7,O M='EP97,N:#X@=VAE;B!T97-T:6YG(#QU=&EM92YH/BX*"5)E<&]R=&5D(&)Y M($%N9')E87,@4V-H=V%B+@H*"2H@8V]N9FEG=7)E+FEN.B!!;'-O(&-R96%T M92!D;V,O36%K969I;&4N"@DJ($UA:V5F:6QE+FEN.B!!9&0@9&]C(&EN('-U M8F1I2!+879E:"!2+B!' M:&%Z:2X*"@DJ(&-O;F9I9W5R92YI;CH@0VAE8VL@9F]R(#QS>7,O9V5N=&%P M92YH/BP@2$%615]365-?1T5.5$%015]("@EI&%N9&5R($1U<'5Y(&%N9"!+ M=7)T($IA96=EFDN"@HQ.3DT+3`X M+3$U("!&&5C7W!R969I>"P*"6)I;G!R969I>"P@8FEN9&ER(&%N9"!L:6)E>&5C M9&ER+@H)*$U$149)3D53*3H@3F5W+"!UFD@*&9O2!"&ES M=&5N8V4N("!"=70@:7,@8'1E2!!;F1R96%S(%-C:'=A8BX*"@DJ(&-O M;F9I9W5R92YI;CH@1&5F:6YE('5I9%]T(&%N9"!G:61?="!I9B!N96-E2!*;VYA=&AA;B!)+B!+86UE;G,N"@H)*B!-86ME M9FEL92YI;B`H9&ES=&-L96%N+6QO8V%L*3H@1&5L971E(&-O;F9I9RYC86-H M92X*"5)E<&]R=&5D(&)Y(%1H;VUA2X*"C$Y.30M,#@M,#$@($9R M86[G;VES(%!I;F%R9"`@/'!I;F%R9$!I2YH/BX*"C$Y.30M,#2!D96-I9&EN9R!$159)0T5?4%)% M1DE8(&%N9"!$14Y325197TQ%5%1%4B!F'0L($%U M=&]C;VYF"@EN;W<@=7-E2!!;&%N($UO9')A+"!"=7)K M:&%R9"!0;&%C:&4L($5D=V%R9"!796QB;W5R;F4L"@E(96YR:6L@0F%K;6%N M+"!*969F&ES="X*"2H@86-C M;VYF:62!D969I;F5D(&)O=&@@:6X@(G!O7,O:6\O=')I;V-T M;"YH/BP@;F5E9&5D(&9O<@H)9&5F:6YI;F<@7TE/5R!A;F0@7TE/4B!O;B!T M:&4@5&5K=')O;FEX(%A$.#@N"@E297!O2!+879E:"!2+B!':&%Z M:2X*"C$Y.30M,#2!I;B!T97-T<&%D+F,L"@EA8F]U="!A(&YE961E9"!P M861D:6YG(&9I96QD(&EN('1H92!T87(@:&5A9&5R('-T7-T96US(&9O7-T96TN"@E297!O2!-86YF M7,O=&EM96(N:#XL(&9O2!F;W(@:70L('-O(&AE&5Y(%9O=F5N:V\L($)E;B!!+B!-97-A;F1E MG)A(%!E:7-A8V@L($AU9V@@4V5C:V5R+5=A;&ME2!R97!L86-E9"P@;'5R:VEN9R!A="!T:&4@<')E=FEO M=7,@;VYE+@H)070@=&AE('-A;64@=&EM92P@2P*"4IO:&X@3"X@0VAM:65L97=S:VDL($MA60N M"@H)*B!C;VYF:6=UF5D M(&)Y(&UO=FEN9R!E;G1R:65S(')E;&%T960@=&\*"7-C&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/ChangeLog:' 'MD5 check failed' f61d316c8f0ad43dbe285742bd46ac84 tar-1.13/ChangeLog SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/ChangeLog'`" test 50363 -eq "$shar_count" || $echo 'tar-1.13/ChangeLog:' 'original size' '50363,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/INSTALL ============== if test -f 'tar-1.13/INSTALL' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/INSTALL' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/INSTALL' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/INSTALL' && Basic Installation ================== X X These are generic installation instructions. X X The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, a file `config.cache' that saves the results of its tests to speed up reconfiguring, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). X X If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If at some point `config.cache' contains results you don't want to keep, you may remove or edit it. X X The file `configure.in' is used to create `configure' by a program called `autoconf'. You only need `configure.in' if you want to change it or regenerate `configure' using a newer version of `autoconf'. X The simplest way to compile this package is: X X 1. `cd' to the directory containing the package's source code and type X `./configure' to configure the package for your system. If you're X using `csh' on an old version of System V, you might need to type X `sh ./configure' instead to prevent `csh' from trying to execute X `configure' itself. X X Running `configure' takes awhile. While running, it prints some X messages telling which features it is checking for. X X 2. Type `make' to compile the package. X X 3. Optionally, type `make check' to run any self-tests that come with X the package. X X 4. Type `make install' to install the programs and any data files and X documentation. X X 5. You can remove the program binaries and object files from the X source code directory by typing `make clean'. To also remove the X files that `configure' created (so you can compile the package for X a different kind of computer), type `make distclean'. There is X also a `make maintainer-clean' target, but that is intended mainly X for the package's developers. If you use it, you may have to get X all sorts of other programs in order to regenerate files that came X with the distribution. X Compilers and Options ===================== X X Some systems require unusual options for compilation or linking that the `configure' script does not know about. You can give `configure' initial values for variables by setting them in the environment. Using a Bourne-compatible shell, you can do that on the command line like this: X CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure X Or on systems that have the `env' program, you can do it like this: X env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure X Compiling For Multiple Architectures ==================================== X X You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. X X If you have to use a `make' that does not supports the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. X Installation Names ================== X X 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 option `--prefix=PATH'. X X You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. X X In addition, if you use an unusual directory layout you can give options like `--bindir=PATH' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. X X If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. X Optional Features ================= X X Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. X X For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. X Specifying the System Type ========================== X X There may be some features `configure' can not figure out automatically, but needs to determine by the type of host the package will run on. Usually `configure' can figure that out, but if it prints a message saying it can not guess the host type, give it the `--host=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name with three fields: X CPU-COMPANY-SYSTEM X See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the host type. X X If you are building compiler tools for cross-compiling, you can also use the `--target=TYPE' option to select the type of system they will produce code for and the `--build=TYPE' option to select the type of system on which you are compiling the package. X Sharing Defaults ================ X X If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. X Operation Controls ================== X X `configure' recognizes the following options to control how it operates. X `--cache-file=FILE' X Use and save the results of the tests in FILE instead of X `./config.cache'. Set FILE to `/dev/null' to disable caching, for X debugging `configure'. X `--help' X Print a summary of the options to `configure', and exit. X `--quiet' `--silent' `-q' X Do not print messages saying which checks are being made. To X suppress all normal output, redirect it to `/dev/null' (any error X messages will still be shown). X `--srcdir=DIR' X Look for the package's source code in directory DIR. Usually X `configure' can determine that directory automatically. X `--version' X Print the version of Autoconf used to generate the `configure' X script, and exit. X `configure' also accepts some other, not widely useful, options. SHAR_EOF $shar_touch -am 0623044097 'tar-1.13/INSTALL' && chmod 0444 'tar-1.13/INSTALL' || $echo 'restore of' 'tar-1.13/INSTALL' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/INSTALL:' 'MD5 check failed' 0d6be33865b76025c20b48bcac87adb7 tar-1.13/INSTALL SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/INSTALL'`" test 7831 -eq "$shar_count" || $echo 'tar-1.13/INSTALL:' 'original size' '7831,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/Makefile.am ============== if test -f 'tar-1.13/Makefile.am' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/Makefile.am' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/Makefile.am' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/Makefile.am' && # Main Makefile for GNU tar. # Copyright 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. X # This program 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. X # This program 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. X # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. X AUTOMAKE_OPTIONS = gnits dist-shar X BABYL = rmail/* admin/*/RMAIL EXTRA_DIST = PORTS rebox.el ACLOCAL_AMFLAGS = SUBDIRS = doc lib intl m4 src scripts po tests X all-local: $(CONFIG_HEADER) X id: ID X ID: X cd lib && $(MAKE) $@ X cd src && $(MAKE) $@ X # This is a bit of a hack; there must be a better way. M4DIR = $(srcdir)/m4 ACINCLUDE_INPUTS = $(M4DIR)/ccstdc.m4 $(M4DIR)/d-ino.m4 $(M4DIR)/gettext.m4 \ X $(M4DIR)/inttypes_h.m4 $(M4DIR)/isc-posix.m4 $(M4DIR)/jm-mktime.m4 \ X $(M4DIR)/largefile.m4 $(M4DIR)/lcmessage.m4 $(M4DIR)/malloc.m4 \ X $(M4DIR)/mktime.m4 $(M4DIR)/progtest.m4 $(M4DIR)/realloc.m4 \ X $(M4DIR)/uintmax_t.m4 $(M4DIR)/ulonglong.m4 $(M4DIR)/utimbuf.m4 \ X $(M4DIR)/utime.m4 $(M4DIR)/utimes.m4 $(M4DIR)/xstrtoumax.m4 X $(srcdir)/acinclude.m4 : $(ACINCLUDE_INPUTS) X cat $(ACINCLUDE_INPUTS) >$(srcdir)/acinclude.m4 X dist-zoo: $(DISTFILES) X rm -rf $(distdir) X mkdir $(distdir) X distdir=`cd $(distdir) && pwd` \ X && cd $(srcdir) \ X && automake --include-deps --output-dir=$$distdir X @for file in $(DISTFILES); do \ X test -f $(distdir)/$$file \ X || cp -p $(srcdir)/$$file $(distdir)/$$file; \ X done X for subdir in $(SUBDIRS); do \ X test -d $(distdir)/$$subdir \ X || mkdir $(distdir)/$$subdir \ X || exit 1; \ X chmod 777 $(distdir)/$$subdir; \ X (cd $$subdir && $(MAKE) dist) || exit 1; \ X done X @sublist="$(DIST_SUBDIRS)"; \ X for dir in $$sublist; do \ X echo copying directory $$dir; \ X tar -chf - $$dir | (cd $(distdir) && tar -xBpf -); \ X done X chmod -R a+r $(distdir) X find $(distdir) -type f | xargs dosfn # find $(distdir) -type f | xargs recode :ibmpc X mv $(distdir) $(PACKAGE) X find $(PACKAGE) -type f | zoo ahIq $(PACKAGE).zoo X rm -rf $(PACKAGE) SHAR_EOF $shar_touch -am 0702174299 'tar-1.13/Makefile.am' && chmod 0444 'tar-1.13/Makefile.am' || $echo 'restore of' 'tar-1.13/Makefile.am' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/Makefile.am:' 'MD5 check failed' e10716c25c84dbd5ac2543907ace842a tar-1.13/Makefile.am SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/Makefile.am'`" test 2484 -eq "$shar_count" || $echo 'tar-1.13/Makefile.am:' 'original size' '2484,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/Makefile.in ============== if test -f 'tar-1.13/Makefile.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/Makefile.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/Makefile.in' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/Makefile.in M(R!-86ME9FEL92YI;B!G96YE2!B>2!A=71O M;6%K92`Q+C0@9G)O;2!-86ME9FEL92YA;0H*(R!#;W!Y2!L87<[('=I=&AO=70*(R!E=F5N('1H92!I;7!L:65D('=A6]U(&-A;B!R961I0HC(&ET('5N9&5R('1H92!T97)M2!L871E2!O9@HC($U%4D-(04Y404)) M3$E462!O"`]($!P&5C9&ER(#T@0&QI8F5X96-D M:7)`"F1A=&%D:7(@/2!`9&%T861I7-C;VYF M9&ER0`IS:&%R961S=&%T961I2X*331$25(@/2`D*'-R8V1I6]U(')U;B!@;6%K92B`B)"1F86EL(@H* M;6]S=&QY8VQE86XM&ET M(#$[.R!ER!F:6QEGAF M("0H9&ES=&1I@H)+7)M("UR9B`D*&1I&5C.B!I;G-T86QL+65X96,M M&5C+6%M(&EN2!R97%U:7)E('-P96-I86P@=&]O M;',@=&\@&5C+7)E8W5R&5C+7)E8W5R6-L96%N+71A9W,@7`ID:7-T8VQE86XM=&%G&5C+6%M(&EN M6-L96%N(&1I2`D)&1I$)P9B`M*3L@7`H)9&]N90H)8VAM;V0@+5(@ M82MR("0H9&ES=&1I&%R M9W,@9&]S9FX*(PEF:6YD("0H9&ES=&1I7!E(&8@?"!Z;V\@86A)<2`D*%!!0TM!1T4I+GIO;PH) M&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/Makefile.in:' 'MD5 check failed' 22068063e5aaa9497e53a00eb6dcfeb4 tar-1.13/Makefile.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/Makefile.in'`" test 13933 -eq "$shar_count" || $echo 'tar-1.13/Makefile.in:' 'original size' '13933,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/NEWS ============== if test -f 'tar-1.13/NEWS' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/NEWS' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/NEWS' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/NEWS M1TY5('1A&5S(&%N9"!P;W)T:6YG(&9I>&5S+@HJ(%1H:7,@&5S(&EN('1H:7,@2!H879E;B=T(&)E96X@;65R9V5D('EE="X**B!!;B!I;G1E2!W:71H('!A>'5T:6QS+@H@(%!L96%S92!T6UO2!O=F5R('1H92!Q=6]T:6YG(&1O;F4@ M8GD@=&AE('-H96QL+@H*3W5T<'5T(&9O'0N"BH@365S6UB;VQI8R!N86UE2!A='1E;7!T(&1E;&5T:6YG M(&5X:7-T:6YG(&9I;&5S('=H96X@:6X@=&AE('=A>2X**B!/<'1I;VX@+2UU M;FQI;FLM9FER2X**B!/ M<'1I;VX@+2UN=6UE'1R M86-T('-Y;6)O;&EC(&QI;FMS(&%S(&AA"!A;F0@+2UV97)S:6]N+6-O M;G1R;VP@;W!T:6]N&EN9F\@;6%N=6%L+@HJ(%1H92!D979I8V4@ M9&5F875L=',@=&\@2!T:&4@:6YS=&%L;&5R+@HJ($]P=&EO;B`M+7-P87)S92`H+5,I('-H;W5L M9"!W;W)K(&]N(&UO3L@;F]T:6-E&%M<&QE(&]F(&$*1%5-4%]214U) M3D1?4T-225!4+@H**B!3=7!E&5D+@H**B!);F-O;7!A=&EB:6QI='D@<')O8FQE;7,@ M=VET:"!A(&)U9R!O;B!3;VQAFEP(&%N9"`M>BD[(&-A;&QS M(&=Z:7`@:6YS=&5A9`IO9B!C;VUP2!A;GD*8V]M<')E&5S+@H,"E9E&5S+@H**B!.;W<@=7-E2`M5"!T;R!B90IN=6QL+71E6]U M(&-A;B!N;W<@9VEV92!M=6QT:7!L92`M9B!A6]U(&1O;B=T('1E;&P@ M:70*=VAA="!T;R!D=6UP+@H**B!7:&5N(&5X=')A8W1I;F<@9&ER96-T;W)I M97,L('1A6]U(&YO"FQO;F=E'1R86-T('1O(&AI="!T:&4@96YD(&]F('1H92!T87!E(&9O<@IL;VYG M(&YA;65S('1O('=O&-L=61E+69R;VT@9&]E&-L=61E('5S M960@=&\@9&\N"@HJ($5X:70@'1R86-T+"!T:&4@;&%B96P@:7,@;F]W(&$@2!&96YL87-O;BX*"BH@4V5E($-H86YG94QO9R!F;W(@;6]R92!D971A %:6QS+@I& ` end SHAR_EOF $shar_touch -am 0707210999 'tar-1.13/NEWS' && chmod 0444 'tar-1.13/NEWS' || $echo 'restore of' 'tar-1.13/NEWS' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/NEWS:' 'MD5 check failed' e72eab89bd36c468aae595d9c8fc63b9 tar-1.13/NEWS SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/NEWS'`" test 7340 -eq "$shar_count" || $echo 'tar-1.13/NEWS:' 'original size' '7340,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/THANKS ============== if test -f 'tar-1.13/THANKS' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/THANKS' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/THANKS' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/THANKS M1TY5('1A2!3<&5N8V5R+"!&2!R97!O"!38VAM:61T"0ER M;V]T0&QA8V5S;2YU9G-M+F)R"D%L97AA;F1E0D)9'5P=7E`7-B+F5D=0I! M;F1E7-I:S0N:W1H+G-E"D%N9')E($YO=F%E7)UBYC:`I!;F1R97D@02X@0VAE&5L($)O;&1T"0EB;VQD M=$!M871H+G5C2YC;VT*0F5N($$N($UE4!H9W,N6=A87)D($)A:0D)8F%I0&EE2!!+B!3;6ET M:`EB87-M:71H0'!R;VUE=&AE=7,N8VAE;2YU;6XN961U"D)R96YD86X@2V5H M;V4)"6)R96YD86Y`8WEG;G5S+F-O;0I"6=N=7,N8V]M"D)R=6-E($5V86YS"0EB9&5`"YO>BYA=0I"6%N="!&=6II;6]T;PD)9G5J:6UO=&]`9&5N86QI+F-H M96TN=V%S:&EN9W1O;BYE9'4*0G5R:VAA6P)"6AE>6Q`;F%DD!C M=',N8V]M"D-H86YC92!297-C:&ME"0ECF5N8F5R9PD)=&-T(6-H:7`* M0VAR:7,@07)T:'5R"0EC6-O M;2YM:2YO4!I<&,Q+F-S+G%C+F5D=0I#;&%U9&4@4V-A4!W;W)L9"YS M=&0N8V]M"D1A;&4@5VEL97,)"7=I;&5S0&=E;W)D:2YC86QS<&%N+F-O;0I$ M86X@0FQO8V@)"61A;D!T2YN970*1&%N:65L($AA9V5R='D)"6AA9T!G;G4N;W)G"D1A;FEE;"!1 M=6EN;&%N"0EQ=6EN;&%N0'!A=&AN86UE+F-O;0I$86YI96P@4BX@1W5I;&1E M0ED86YI96Q`8V]M<&%S2!2+B!*;VAN4!C M2YC;VT*1&%V:60@3&5M7-I8W,N;&]U:7-V:6QL92YE9'4*1&%V:60@3G5G96YT"0ED M879I9&Y`8FQA>F4N;F5T+F%U"D1A=FED(%-H87<)"61A=FED+G-H87=`86QC M871E;"YC;VTN874*1&%V:60@4W1E:6YE<@D)9'-T96EN97)`:7-P82YU;FDM M;W-N86)R=65C:RYD90I$879I9"!487EL;W()"71A>6QOG4@3F]R:71O6X)97)I8VA`=7)U:RYOD!F75`8V-G871E+F1P+F)E8VMM86XN8V]M"D=E&5L0&-S M+G1U+6)E75K:2!"97-S:&\) M"6)S:$!G6=N=7,N8V]M"DEA;B!4+B!::6UM97)M86X):71Z0&-R M;"YC;VT*26YD0D):FIB M0&IA9W=A6=N=7,N8V]M M"DIA;65S($-R87=F;W)D(%)A;'-T;VX)<7)A;'-T;VXK0'!I='0N961U"DIA M;65S($4N($-A0EM8VME;'9E>4!F869N:7(N8V]M"DIA;6EE(%IA=VEN6I`96-M=V8N:6YT"DIE86XM;&]U<"!'86EL;'D):FQO=7!`8VAO2!';VQD8F5R9PE*+D=O;&1B97)G0&-R86YF:65L9"YA M8RYU:PI*969F0D):FEM M8D!T;W1O"YA8W,N;VAI;RUS=&%T92YE9'4*2FEM($9A65R:6YG"0EM97EE0D):FIM0&IJ;2YC;VT*2F]A8VAI;2!(;VQZ9G5S2YC&5R M;W@N8V]M"DIO:&X@1&%V:60@06YG;&EN"61A=F5`:&EA=6QY,2YH:6$N;G)C M+F-A"DIO:&X@1VEL;6]R90D)9VYU0'1O860N8V]M"DIO:&X@2BX@4WIE=&5L M80D):F]H;G-`86YG96QO+F%M9"YC;VT*2F]H;B!,+B!#:&UI96QE=W-K:0EJ M;&-`871T;6%I;"YC;VT*2F]H;B!/;&5Y;FEC:PD):G5O0&ML:6YZ:&%I+G)U M=&=E"YC;VT*2F]H;B!2;W5I;&QA7-J M;G-`971A8W)S,2YS869B+F%F+FUI;`I*;VYA=&AA;B!4:&]R;F)U7-I8W,N=6)C+F-A"DIO6]K92YE9'4*2OQR9V5N($S\=&5R&ES+G-E"DMA:2!0971Z:V4)"7=P<$!M M87)I92YP:'ES:6LN='4M8F5R;&EN+F1E"DMA:2!38VAL:6-H=&EN9PD):V%I M0&-O;7!U=&5L+F-O;0I+87)L($)E"YN970*2V%RFE`8V%I<"YR=71G97)S+F5D=0I+96ET:"!9;W5N M9PD)>6]U;F=K0&%S=')O+F]C:7,N=&5M<&QE+F5D=0I+96QL>2!3=&5P:&5N M6-L;VYE+G-T86YF;W)D+F5D=0I,875R96YT($-A:6QL870M5F%L M;&5T"6-A:6QL871`;F]E+FQY;VXN8V5M86=R968N9G(*3&%U6YU;4!C M96YN87,N;FAM9FPN9V]V"DUAD!C"!(86EL<&5R M:6X)"6UA>$!N:6,N9V%C+F5D=0I-87AI;64@5&%K6=N=7,N8V]M"DUI8VAA96P@4"!5FUA;FXN86,N:6P*36EK92!-=75S2YA8RYU:PI0875L($YE=F%I"0EP86QI*T!OF1I='(Q+F%R M8W,N86,N870*4&5T97(@4V5E8F%C:`D)60)"5(N2RY, M;&]Y9$!C4!P86YI>"YC;VT*4F]B97)T($4N($)R;W=N"0EB0D)8F]B9D!U;FEX+F%D=F%N2!':6%N;FEN:0D)7,N8V]M"E)O9&5R:6-H(%-C:'5P<`D)6)OGEB;W)R84!C7,N:WEO=&\M=2YA8RYJ<`I3 M86T@4FEC:&%R9',)"7-A;4!B;'5E2YE9'4* M4V5T:"!2;V)E7,N8V]M"E-T97!H96X@ M2B!"979A;@D)'1E8V@N8V\N=6L*5&AE($MI;F<)"65L=FES0&=N=2YO6)OG1`=6YI<&QE>"YC;RYU:PI4 M:6UO=&AY($HN($QE90D)=&EM;&5E0&YE=&-O;2YC;VT*5&EM;W1H>2!&;W-S M=6T)"69O"YC;VT*5&]M M(%%U:6YN"0ET0D) M=')O;65Y0&1R:7`N8V]L;W)A9&\N961U"E1O2!2=61O;'!H"0ER=61T61E<@D)=G-N>61EG5D;PD)4T=2,#`T,3-`;FEF M='ES97)V92YO&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/THANKS:' 'MD5 check failed' 4c880b6edcaaa26c1e4bc761c8e51f52 tar-1.13/THANKS SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/THANKS'`" test 18002 -eq "$shar_count" || $echo 'tar-1.13/THANKS:' 'original size' '18002,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/TODO ============== if test -f 'tar-1.13/TODO' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/TODO' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/TODO' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/TODO' && * TODO file for GNU tar -*- outline -*- X Tell if you feel like volunteering for any of these ideas, listed more or less in decreasing order of priority. Some TODO items are implicit from received email. See file BACKLOG. Significant contributions require written assignments and disclaimers. X X.* create.c: diagnostics missing when `goto badfile'. X.* compare.c: confusion between stderr and stdlis, WARN and ERROR. X.* --ignore-failed-read might have been defeated. X.* Better clean sources for list.c, extract.c, create.c and buffer.c. X.* revise all NAMSIZ references, too often related to short buffers. X.* current_link_name, current_file_name not always quoted when printed. X.* Take over script maintenance, implement a `restore' script. X.* Make a debugging feature out of all `#if 0'. SHAR_EOF $shar_touch -am 0701224199 'tar-1.13/TODO' && chmod 0444 'tar-1.13/TODO' || $echo 'restore of' 'tar-1.13/TODO' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/TODO:' 'MD5 check failed' b25686d3002f038e88e3c33a13829da9 tar-1.13/TODO SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/TODO'`" test 809 -eq "$shar_count" || $echo 'tar-1.13/TODO:' 'original size' '809,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/acconfig.h ============== if test -f 'tar-1.13/acconfig.h' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/acconfig.h' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/acconfig.h' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/acconfig.h M+RH@4W!E8VEA;"!D969I;FET:6]NF4@ M9F]R(&%R8VAI=F5S+B`@*B\*(W5N9&5F($1%1D%53%1?0DQ/0TM)3D<*"B\J M($1E9FEN92!T;R`Q(&EF(&1E;G-I='D@;6%Y(&)E(&EN9&EC871E9"!B>2!; M;&UH72!A="!E;F0@;V8@9&5V:6-E+B`@*B\*(W5N9&5F($1%3E-)5%E?3$54 M5$52"@HO*B!$969I;F4@=&\@82!S=')I;F<@9VEV:6YG('1H92!P6]U(&QA8VL@82`S+6%R M9W5M96YT('9E&ES=',L(&]R(&EF('EO=2!H879E(#QN M971D8BYH/BX@("HO"B-U;F1E9B!(059%7U)405!%3$E""@HO*B!$969I;F4@ M=&\@,2!I9B!M:VYO9"!F=6YC=&EO;B!I&ES=',@86YD(&1E8VQA7,O='EP97,N:#X@9&]E7,O='EP97,N:#X@9&]E M6]U2X@("HO"B-U M;F1E9B!214U/5$5?4TA%3$P*"B\J($1E9FEN92!T;R!@:6YT)R!I9B`\&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/acconfig.h:' 'MD5 check failed' 30455c8ee687cfc838b2c217d5de2fc6 tar-1.13/acconfig.h SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/acconfig.h'`" test 2571 -eq "$shar_count" || $echo 'tar-1.13/acconfig.h:' 'original size' '2571,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/acinclude.m4 ============== if test -f 'tar-1.13/acinclude.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/acinclude.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/acinclude.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/acinclude.m4' && # The following is taken from automake 1.4, # except that it prefers the compiler option -Ae to "-Aa -D_HPUX_SOURCE" # because only the former supports 64-bit integral types on HP-UX 10.20. X ## ----------------------------------------- ## ## ANSIfy the C compiler whenever possible. ## ## From Franc,ois Pinard ## ## ----------------------------------------- ## X # serial 2 X # @defmac AC_PROG_CC_STDC # @maindex PROG_CC_STDC # @ovindex CC # If the C compiler in not in ANSI C mode by default, try to add an option # to output variable @code{CC} to make it so. This macro tries various # options that select ANSI C on some system or another. It considers the # compiler to be in ANSI C mode if it handles function prototypes correctly. # # If you use this macro, you should check after calling it whether the C # compiler has been set to accept ANSI C; if not, the shell variable # @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source # code in ANSI C, you can make an un-ANSIfied copy of it by using the # program @code{ansi2knr}, which comes with Ghostscript. # @end defmac X AC_DEFUN(AM_PROG_CC_STDC, [AC_REQUIRE([AC_PROG_CC]) AC_BEFORE([$0], [AC_C_INLINE]) AC_BEFORE([$0], [AC_C_CONST]) dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require dnl a magic option to avoid problems with ANSI preprocessor commands dnl like #elif. dnl FIXME: can't do this because then AC_AIX won't work due to a dnl circular dependency. dnl AC_BEFORE([$0], [AC_PROG_CPP]) AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C) AC_CACHE_VAL(am_cv_prog_cc_stdc, [am_cv_prog_cc_stdc=no ac_save_CC="$CC" # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do X CC="$ac_save_CC $ac_arg" X AC_TRY_COMPILE( [#include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) X char **p; X int i; { X return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { X char *s; X va_list v; X va_start (v,p); X s = g (p, va_arg (v,int)); X va_end (v); X return s; } int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; ], [ return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ], [am_cv_prog_cc_stdc="$ac_arg"; break]) done CC="$ac_save_CC" ]) if test -z "$am_cv_prog_cc_stdc"; then X AC_MSG_RESULT([none needed]) else X AC_MSG_RESULT($am_cv_prog_cc_stdc) fi case "x$am_cv_prog_cc_stdc" in X x|xno) ;; X *) CC="$CC $am_cv_prog_cc_stdc" ;; esac ]) #serial 2 X dnl From Jim Meyering. dnl dnl Check whether struct dirent has a member named d_ino. dnl X AC_DEFUN(jm_STRUCT_DIRENT_D_INO, X [AC_REQUIRE([AC_HEADER_DIRENT])dnl X AC_CACHE_CHECK([for d_ino member in directory struct], X jm_cv_struct_dirent_d_ino, X [AC_TRY_LINK(dnl X [ #include #ifdef HAVE_DIRENT_H # include #else /* not HAVE_DIRENT_H */ # define dirent direct # ifdef HAVE_SYS_NDIR_H # include # endif /* HAVE_SYS_NDIR_H */ # ifdef HAVE_SYS_DIR_H # include # endif /* HAVE_SYS_DIR_H */ # ifdef HAVE_NDIR_H # include # endif /* HAVE_NDIR_H */ #endif /* HAVE_DIRENT_H */ X ], X [struct dirent dp; dp.d_ino = 0;], X X jm_cv_struct_dirent_d_ino=yes, X jm_cv_struct_dirent_d_ino=no) X ] X ) X if test $jm_cv_struct_dirent_d_ino = yes; then X AC_DEFINE(D_INO_IN_DIRENT, 1, X [Define if there is a member named d_ino in the struct describing X directory headers.]) X fi X ] ) # Macro to add for using GNU gettext. # Ulrich Drepper , 1995. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. X # serial 107 X AC_PREREQ(2.13) dnl Minimum Autoconf version required. X AC_DEFUN(AM_WITH_NLS, X [AC_MSG_CHECKING([whether NLS is requested]) X dnl Default is enabled NLS X AC_ARG_ENABLE(nls, X [ --disable-nls do not use Native Language Support], X USE_NLS=$enableval, USE_NLS=yes) X AC_MSG_RESULT($USE_NLS) X AC_SUBST(USE_NLS) X X USE_INCLUDED_LIBINTL=no X X dnl If we use NLS figure out what method X if test "$USE_NLS" = "yes"; then X AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if NLS is requested.]) X AC_MSG_CHECKING([whether included gettext is requested]) X AC_ARG_WITH(included-gettext, X [ --with-included-gettext use the GNU gettext library included here], X nls_cv_force_use_gnu_gettext=$withval, X nls_cv_force_use_gnu_gettext=no) X AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) X X nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" X if test "$nls_cv_force_use_gnu_gettext" != "yes"; then X dnl User does not insist on using GNU NLS library. Figure out what X dnl to use. If gettext or catgets are available (in this order) we X dnl use this. Else we have to fall back to GNU NLS library. X dnl catgets is only used if permitted by option --with-catgets. X nls_cv_header_intl= X nls_cv_header_libgt= X CATOBJEXT=NONE X X AC_CHECK_HEADER(libintl.h, X [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc, X [AC_TRY_LINK([#include ], [return (int) gettext ("")], X gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)]) X X if test "$gt_cv_func_gettext_libc" != "yes"; then X AC_CHECK_LIB(intl, bindtextdomain, X [AC_CHECK_LIB(intl, gettext)]) X fi X X if test "$gt_cv_func_gettext_libc" = "yes" \ X || test "$ac_cv_lib_intl_gettext" = "yes"; then X AC_DEFINE(HAVE_GETTEXT, 1, X [Define to 1 if you have gettext and don't want to use GNU gettext.]) X AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl X if test "$MSGFMT" != "no"; then X AC_CHECK_FUNCS(dcgettext) X AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) X AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) X AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; X return _nl_msg_cat_cntr], X [CATOBJEXT=.gmo X DATADIRNAME=share], X [CATOBJEXT=.mo X DATADIRNAME=lib]) X INSTOBJEXT=.mo X fi X fi X ]) X X if test "$CATOBJEXT" = "NONE"; then X AC_MSG_CHECKING([whether catgets can be used]) X AC_ARG_WITH(catgets, X [ --with-catgets use catgets functions if available], X nls_cv_use_catgets=$withval, nls_cv_use_catgets=no) X AC_MSG_RESULT($nls_cv_use_catgets) X X if test "$nls_cv_use_catgets" = "yes"; then X dnl No gettext in C library. Try catgets next. X AC_CHECK_LIB(i, main) X AC_CHECK_FUNC(catgets, X [AC_DEFINE(HAVE_CATGETS, 1, X [Define as 1 if you have catgets and don't want to use GNU gettext.]) X INTLOBJS="\$(CATOBJS)" X AC_PATH_PROG(GENCAT, gencat, no)dnl X if test "$GENCAT" != "no"; then X AC_PATH_PROG(GMSGFMT, gmsgfmt, no) X if test "$GMSGFMT" = "no"; then X AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no) X fi X AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) X USE_INCLUDED_LIBINTL=yes X CATOBJEXT=.cat X INSTOBJEXT=.cat X DATADIRNAME=lib X INTLDEPS='$(top_builddir)/intl/libintl.a' X INTLLIBS=$INTLDEPS X LIBS=`echo $LIBS | sed -e 's/-lintl//'` X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi]) X fi X fi X X if test "$CATOBJEXT" = "NONE"; then X dnl Neither gettext nor catgets in included in the C library. X dnl Fall back on GNU gettext library. X nls_cv_use_gnu_gettext=yes X fi X fi X X if test "$nls_cv_use_gnu_gettext" = "yes"; then X dnl Mark actions used to generate GNU NLS library. X INTLOBJS="\$(GETTOBJS)" X AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt) X AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) X AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) X AC_SUBST(MSGFMT) X USE_INCLUDED_LIBINTL=yes X CATOBJEXT=.gmo X INSTOBJEXT=.mo X DATADIRNAME=share X INTLDEPS='$(top_builddir)/intl/libintl.a' X INTLLIBS=$INTLDEPS X LIBS=`echo $LIBS | sed -e 's/-lintl//'` X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi X X dnl Test whether we really found GNU xgettext. X if test "$XGETTEXT" != ":"; then X dnl If it is no GNU xgettext we define it as : so that the X dnl Makefiles still can work. X if $XGETTEXT --omit-header /dev/null 2> /dev/null; then X : ; X else X AC_MSG_RESULT( X [found xgettext program is not GNU xgettext; ignore it]) X XGETTEXT=":" X fi X fi X X # We need to process the po/ directory. X POSUB=po X else X DATADIRNAME=share X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi X if test -z "$nls_cv_header_intl"; then X # Clean out junk possibly left behind by a previous configuration. X rm -f intl/libintl.h X fi X AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl) X AC_OUTPUT_COMMANDS( X [case "$CONFIG_FILES" in *po/Makefile.in*) X sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile X esac]) X X X # If this is used in GNU gettext we have to set USE_NLS to `yes' X # because some of the sources are only built for this goal. X if test "$PACKAGE" = gettext; then X USE_NLS=yes X USE_INCLUDED_LIBINTL=yes X fi X X dnl These rules are solely for the distribution goal. While doing this X dnl we only have to keep exactly one list of the available catalogs X dnl in configure.in. X for lang in $ALL_LINGUAS; do X GMOFILES="$GMOFILES $lang.gmo" X POFILES="$POFILES $lang.po" X done X X dnl Make all variables we use known to autoconf. X AC_SUBST(USE_INCLUDED_LIBINTL) X AC_SUBST(CATALOGS) X AC_SUBST(CATOBJEXT) X AC_SUBST(DATADIRNAME) X AC_SUBST(GMOFILES) X AC_SUBST(INSTOBJEXT) X AC_SUBST(INTLDEPS) X AC_SUBST(INTLLIBS) X AC_SUBST(INTLOBJS) X AC_SUBST(POFILES) X AC_SUBST(POSUB) X ]) X AC_DEFUN(AM_GNU_GETTEXT, X [AC_REQUIRE([AC_PROG_MAKE_SET])dnl X AC_REQUIRE([AC_PROG_CC])dnl X AC_REQUIRE([AC_PROG_RANLIB])dnl X AC_REQUIRE([AC_ISC_POSIX])dnl X AC_REQUIRE([AC_HEADER_STDC])dnl X AC_REQUIRE([AC_C_CONST])dnl X AC_REQUIRE([AC_C_INLINE])dnl X AC_REQUIRE([AC_TYPE_OFF_T])dnl X AC_REQUIRE([AC_TYPE_SIZE_T])dnl X AC_REQUIRE([AC_FUNC_ALLOCA])dnl X AC_REQUIRE([AC_FUNC_MMAP])dnl X X AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \ unistd.h sys/param.h]) X AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \ strdup __argz_count __argz_stringify __argz_next]) X X if test "${ac_cv_func_stpcpy+set}" != "set"; then X AC_CHECK_FUNCS(stpcpy) X fi X if test "${ac_cv_func_stpcpy}" = "yes"; then X AC_DEFINE(HAVE_STPCPY, 1, [Define to 1 if you have the stpcpy function.]) X fi X X AM_LC_MESSAGES X AM_WITH_NLS X X if test "x$CATOBJEXT" != "x"; then X if test "x$ALL_LINGUAS" = "x"; then X LINGUAS= X else X AC_MSG_CHECKING(for catalogs to be installed) X NEW_LINGUAS= X for lang in ${LINGUAS=$ALL_LINGUAS}; do X case "$ALL_LINGUAS" in X *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; X esac X done X LINGUAS=$NEW_LINGUAS X AC_MSG_RESULT($LINGUAS) X fi X X dnl Construct list of names of catalog files to be constructed. X if test -n "$LINGUAS"; then X for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done X fi X fi X X dnl The reference to in the installed file X dnl must be resolved because we cannot expect the users of this X dnl to define HAVE_LOCALE_H. X if test $ac_cv_header_locale_h = yes; then X INCLUDE_LOCALE_H="#include " X else X INCLUDE_LOCALE_H="\ /* The system does not provide the header . Take care yourself. */" X fi X AC_SUBST(INCLUDE_LOCALE_H) X X dnl Determine which catalog format we have (if any is needed) X dnl For now we know about two different formats: X dnl Linux libc-5 and the normal X/Open format X test -d intl || mkdir intl X if test "$CATOBJEXT" = ".cat"; then X AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen) X X dnl Transform the SED scripts while copying because some dumb SEDs X dnl cannot handle comments. X sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed X fi X dnl po2tbl.sed is always needed. X sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ X $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed X X dnl In the intl/Makefile.in we have a special dependency which makes X dnl only sense for gettext. We comment this out for non-gettext X dnl packages. X if test "$PACKAGE" = "gettext"; then X GT_NO="#NO#" X GT_YES= X else X GT_NO= X GT_YES="#YES#" X fi X AC_SUBST(GT_NO) X AC_SUBST(GT_YES) X X dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly X dnl find the mkinstalldirs script in another subdir but ($top_srcdir). X dnl Try to locate is. X MKINSTALLDIRS= X if test -n "$ac_aux_dir"; then X MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" X fi X if test -z "$MKINSTALLDIRS"; then X MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" X fi X AC_SUBST(MKINSTALLDIRS) X X dnl *** For now the libtool support in intl/Makefile is not for real. X l= X AC_SUBST(l) X X dnl Generate list of files to be processed by xgettext which will X dnl be included in po/Makefile. X test -d po || mkdir po X changequote(, )dnl X case "$srcdir" in X .) X posrcprefix="../" ;; X /* | [A-Za-z]:*) X posrcprefix="$srcdir/" ;; X *) X posrcprefix="../$srcdir/" ;; X esac X changequote([, ])dnl X rm -f po/POTFILES X sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ X < $srcdir/po/POTFILES.in > po/POTFILES X ]) #serial 3 X dnl From Paul Eggert. X # Define HAVE_INTTYPES_H if exists, # doesn't clash with , and declares uintmax_t. X AC_DEFUN(jm_AC_HEADER_INTTYPES_H, [ X AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h, X [AC_TRY_COMPILE( X [#include #include ], X [uintmax_t i = (uintmax_t) -1;], X jm_ac_cv_header_inttypes_h=yes, X jm_ac_cv_header_inttypes_h=no)]) X if test $jm_ac_cv_header_inttypes_h = yes; then X AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, [Define if exists, doesn't clash with , X and declares uintmax_t. ]) X fi ]) #serial 1 dnl This test replaces the one in autoconf. dnl Currently this macro should have the same name as the autoconf macro dnl because gettext's gettext.m4 (distributed in the automake package) dnl still uses it. Otherwise, the use in gettext.m4 makes autoheader dnl give these diagnostics: dnl configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX dnl configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX X undefine([AC_ISC_POSIX]) AC_DEFUN(AC_ISC_POSIX, X [ X dnl This test replaces the obsolescent AC_ISC_POSIX kludge. X AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) X ] ) #serial 7 X dnl From Jim Meyering. dnl A wrapper around AC_FUNC_MKTIME. X AC_DEFUN(jm_FUNC_MKTIME, [AC_REQUIRE([AC_FUNC_MKTIME])dnl X X dnl mktime.c uses localtime_r if it exists. Check for it. X AC_CHECK_FUNCS(localtime_r) X X if test $ac_cv_func_working_mktime = no; then X AC_DEFINE_UNQUOTED(mktime, rpl_mktime, X [Define to rpl_mktime if the replacement function should be used.]) X fi ]) #serial 4 X dnl By default, many hosts won't let programs access large files; dnl one must use special compiler options to get large-file access to work. dnl For more details about this brain damage please see: dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html X dnl Written by Paul Eggert . X dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME) AC_DEFUN(AC_SYS_LARGEFILE_FLAGS, X [AC_CACHE_CHECK([for $1 value to request large file support], X ac_cv_sys_largefile_$1, X [ac_cv_sys_largefile_$1=`($GETCONF LFS_$1) 2>/dev/null` || { X ac_cv_sys_largefile_$1=no X ifelse($1, CFLAGS, X [case "$host_os" in X # IRIX 6.2 and later require cc -n32. changequote(, )dnl X irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*) changequote([, ])dnl X if test "$GCC" != yes; then X ac_cv_sys_largefile_CFLAGS=-n32 X fi X ac_save_CC="$CC" X CC="$CC $ac_cv_sys_largefile_CFLAGS" X AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no) X CC="$ac_save_CC" X esac]) X }])]) X dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL) AC_DEFUN(AC_SYS_LARGEFILE_SPACE_APPEND, X [case $2 in X no) ;; X ?*) X case "[$]$1" in X '') $1=$2 ;; X *) $1=[$]$1' '$2 ;; X esac ;; X esac]) X dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, CACHE-VAR, COMMENT, CODE-TO-SET-DEFAULT) AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE, X [AC_CACHE_CHECK([for $1], $2, X [$2=no changequote(, )dnl X $4 X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X -D$1) X $2=1 ;; X -D$1=*) X $2=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; X esac X done changequote([, ])dnl X ]) X if test "[$]$2" != no; then X AC_DEFINE_UNQUOTED([$1], [$]$2, [$3]) X fi]) X AC_DEFUN(AC_SYS_LARGEFILE, X [AC_REQUIRE([AC_CANONICAL_HOST]) X AC_ARG_ENABLE(largefile, X [ --disable-largefile omit support for large files]) X if test "$enable_largefile" != no; then X AC_CHECK_TOOL(GETCONF, getconf) X AC_SYS_LARGEFILE_FLAGS(CFLAGS) X AC_SYS_LARGEFILE_FLAGS(LDFLAGS) X AC_SYS_LARGEFILE_FLAGS(LIBS) X X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X no) ;; X -D_FILE_OFFSET_BITS=*) ;; X -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;; X -D_LARGE_FILES | -D_LARGE_FILES=*) ;; X -D?* | -I?*) X AC_SYS_LARGEFILE_SPACE_APPEND(CPPFLAGS, "$ac_flag") ;; X *) X AC_SYS_LARGEFILE_SPACE_APPEND(CFLAGS, "$ac_flag") ;; X esac X done X AC_SYS_LARGEFILE_SPACE_APPEND(LDFLAGS, "$ac_cv_sys_largefile_LDFLAGS") X AC_SYS_LARGEFILE_SPACE_APPEND(LIBS, "$ac_cv_sys_largefile_LIBS") X AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, X ac_cv_sys_file_offset_bits, X [Number of bits in a file offset, on hosts where this is settable.] X [case "$host_os" in X # HP-UX 10.20 and later X hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) X ac_cv_sys_file_offset_bits=64 ;; X esac]) X AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, X ac_cv_sys_largefile_source, X [Define to make fseeko etc. visible, on some hosts.], X [case "$host_os" in X # HP-UX 10.20 and later X hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) X ac_cv_sys_largefile_source=1 ;; X esac]) X AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, X ac_cv_sys_large_files, X [Define for large files, on AIX-style hosts.], X [case "$host_os" in X # AIX 4.2 and later X aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*) X ac_cv_sys_large_files=1 ;; X esac]) X fi X ]) # Check whether LC_MESSAGES is available in . # Ulrich Drepper , 1995. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. X # serial 2 X AC_PREREQ(2.13) dnl Minimum Autoconf version required. X AC_DEFUN(AM_LC_MESSAGES, X [if test $ac_cv_header_locale_h = yes; then X AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, X [AC_TRY_LINK([#include ], [return LC_MESSAGES], X am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) X if test $am_cv_val_LC_MESSAGES = yes; then X AC_DEFINE(HAVE_LC_MESSAGES, 1, X [Define if your locale.h file contains LC_MESSAGES.]) X fi X fi]) #serial 3 X dnl From Jim Meyering. dnl Determine whether malloc accepts 0 as its argument. dnl If it doesn't, arrange to use the replacement function. dnl X AC_DEFUN(jm_FUNC_MALLOC, [ X dnl xmalloc.c requires that this symbol be defined so it doesn't X dnl mistakenly use a broken malloc -- as it might if this test were omitted. X AC_DEFINE_UNQUOTED(HAVE_DONE_WORKING_MALLOC_CHECK, 1, X [Define if the malloc check has been performed. ]) X X AC_CACHE_CHECK([for working malloc], jm_cv_func_working_malloc, X [AC_TRY_RUN([ X char *malloc (); X int X main () X { X exit (malloc (0) ? 0 : 1); X } X ], X jm_cv_func_working_malloc=yes, X jm_cv_func_working_malloc=no, X dnl When crosscompiling, assume malloc is broken. X jm_cv_func_working_malloc=no) X ]) X if test $jm_cv_func_working_malloc = no; then X AC_SUBST(LIBOBJS) X LIBOBJS="$LIBOBJS malloc.$ac_objext" X AC_DEFINE_UNQUOTED(malloc, rpl_malloc, X [Define to rpl_malloc if the replacement function should be used.]) X fi ]) #serial 1 X dnl From Paul Eggert dnl Check for a working mktime. dnl This is a preview of what should appear in the next public autoconf release. X AC_DEFUN(AC_FUNC_MKTIME, [AC_REQUIRE([AC_HEADER_TIME])dnl AC_CHECK_HEADERS(sys/time.h unistd.h) AC_CHECK_FUNCS(alarm) AC_CACHE_CHECK([for working mktime], ac_cv_func_working_mktime, [AC_TRY_RUN( changequote(<<, >>)dnl < # include X #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif X #if HAVE_UNISTD_H # include #endif X #if !HAVE_ALARM # define alarm(X) /* empty */ #endif X /* Work around redefinition to rpl_putenv by other config tests. */ #undef putenv X static time_t time_t_max; X /* Values we'll use to set the TZ environment variable. */ static const char *const tz_strings[] = { X (const char *) 0, "TZ=GMT0", "TZ=JST-9", X "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" }; #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) X /* Fail if mktime fails to convert a date in the spring-forward gap. X Based on a problem report from Andreas Jaeger. */ static void spring_forward_gap () { X /* glibc (up to about 1998-10-07) failed this test) */ X struct tm tm; X X /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" X instead of "TZ=America/Vancouver" in order to detect the bug even X on systems that don't support the Olson extension, or don't have the X full zoneinfo tables installed. */ X putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); X X tm.tm_year = 98; X tm.tm_mon = 3; X tm.tm_mday = 5; X tm.tm_hour = 2; X tm.tm_min = 0; X tm.tm_sec = 0; X tm.tm_isdst = -1; X if (mktime (&tm) == (time_t)-1) X exit (1); } X static void mktime_test (now) X time_t now; { X struct tm *lt; X if ((lt = localtime (&now)) && mktime (lt) != now) X exit (1); X now = time_t_max - now; X if ((lt = localtime (&now)) && mktime (lt) != now) X exit (1); } X static void irix_6_4_bug () { X /* Based on code from Ariel Faigon. */ X struct tm tm; X tm.tm_year = 96; X tm.tm_mon = 3; X tm.tm_mday = 0; X tm.tm_hour = 0; X tm.tm_min = 0; X tm.tm_sec = 0; X tm.tm_isdst = -1; X mktime (&tm); X if (tm.tm_mon != 2 || tm.tm_mday != 31) X exit (1); } X static void bigtime_test (j) X int j; { X struct tm tm; X time_t now; X tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; X now = mktime (&tm); X if (now != (time_t) -1) X { X struct tm *lt = localtime (&now); X if (! (lt X && lt->tm_year == tm.tm_year X && lt->tm_mon == tm.tm_mon X && lt->tm_mday == tm.tm_mday X && lt->tm_hour == tm.tm_hour X && lt->tm_min == tm.tm_min X && lt->tm_sec == tm.tm_sec X && lt->tm_yday == tm.tm_yday X && lt->tm_wday == tm.tm_wday X && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) X == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) X exit (1); X } } X int main () { X time_t t, delta; X int i, j; X X /* This test makes some buggy mktime implementations loop. X Give up after 60 seconds; a mktime slower than that X isn't worth using anyway. */ X alarm (60); X X for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) X continue; X time_t_max--; X delta = time_t_max / 997; /* a suitable prime number */ X for (i = 0; i < N_STRINGS; i++) X { X if (tz_strings[i]) X putenv (tz_strings[i]); X X for (t = 0; t <= time_t_max - delta; t += delta) X mktime_test (t); X mktime_test ((time_t) 60 * 60); X mktime_test ((time_t) 60 * 60 * 24); X X for (j = 1; 0 < j; j *= 2) X bigtime_test (j); X bigtime_test (j - 1); X } X irix_6_4_bug (); X spring_forward_gap (); X exit (0); } >>, changequote([, ])dnl ac_cv_func_working_mktime=yes, ac_cv_func_working_mktime=no, ac_cv_func_working_mktime=no)]) if test $ac_cv_func_working_mktime = no; then X LIBOBJS="$LIBOBJS mktime.${ac_objext}" fi ]) # Search path for a program which passes the given test. # Ulrich Drepper , 1996. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. X # serial 1 X dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN(AM_PATH_PROG_WITH_TEST, [# Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in X /*) X ac_cv_path_$1="[$]$1" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in ifelse([$5], , $PATH, [$5]); do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if [$3]; then X ac_cv_path_$1="$ac_dir/$ac_word" X break X fi X fi X done X IFS="$ac_save_ifs" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl X ;; esac])dnl $1="$ac_cv_path_$1" if test -n "[$]$1"; then X AC_MSG_RESULT([$]$1) else X AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) #serial 3 X dnl From Jim Meyering. dnl Determine whether realloc works when both arguments are 0. dnl If it doesn't, arrange to use the replacement function. dnl X AC_DEFUN(jm_FUNC_REALLOC, [ X dnl xmalloc.c requires that this symbol be defined so it doesn't X dnl mistakenly use a broken realloc -- as it might if this test were omitted. X AC_DEFINE_UNQUOTED(HAVE_DONE_WORKING_REALLOC_CHECK, 1, X [Define if the realloc check has been performed. ]) X X AC_CACHE_CHECK([for working realloc], jm_cv_func_working_realloc, X [AC_TRY_RUN([ X char *realloc (); X int X main () X { X exit (realloc (0, 0) ? 0 : 1); X } X ], X jm_cv_func_working_realloc=yes, X jm_cv_func_working_realloc=no, X dnl When crosscompiling, assume realloc is broken. X jm_cv_func_working_realloc=no) X ]) X if test $jm_cv_func_working_realloc = no; then X AC_SUBST(LIBOBJS) X LIBOBJS="$LIBOBJS realloc.$ac_objext" X AC_DEFINE_UNQUOTED(realloc, rpl_realloc, X [Define to rpl_realloc if the replacement function should be used.]) X fi ]) #serial 3 X dnl From Paul Eggert. X AC_PREREQ(2.13) X # Define uintmax_t to `unsigned long' or `unsigned long long' # if does not exist. X AC_DEFUN(jm_AC_TYPE_UINTMAX_T, [ X AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) X if test $jm_ac_cv_header_inttypes_h = no; then X AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) X test $ac_cv_type_unsigned_long_long = yes \ X && ac_type='unsigned long long' \ X || ac_type='unsigned long' X AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, [ Define to \`unsigned long' or \`unsigned long long' X if doesn't define.]) X fi ]) #serial 1 X dnl From Paul Eggert. X AC_DEFUN(jm_AC_TYPE_UNSIGNED_LONG_LONG, [ X AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, X [AC_TRY_COMPILE([], X [unsigned long long i = (unsigned long long) -1;], X ac_cv_type_unsigned_long_long=yes, X ac_cv_type_unsigned_long_long=no)]) X if test $ac_cv_type_unsigned_long_long = yes; then X AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, X [Define if you have the unsigned long long type.]) X fi ]) #serial 2 X dnl From Jim Meyering X dnl Define HAVE_STRUCT_UTIMBUF if `struct utimbuf' is declared -- dnl usually in . dnl Some systems have utime.h but don't declare the struct anywhere. X AC_DEFUN(jm_STRUCT_UTIMBUF, [ X AC_CHECK_HEADERS(utime.h) X AC_REQUIRE([AC_HEADER_TIME]) X AC_CACHE_CHECK([for struct utimbuf], fu_cv_sys_struct_utimbuf, X [AC_TRY_COMPILE( X [ #ifdef TIME_WITH_SYS_TIME # include # include #else # ifdef HAVE_SYS_TIME_H # include # else # include # endif #endif #ifdef HAVE_UTIME_H # include #endif X ], X [static struct utimbuf x; x.actime = x.modtime;], X fu_cv_sys_struct_utimbuf=yes, X fu_cv_sys_struct_utimbuf=no) X ]) X X if test $fu_cv_sys_struct_utimbuf = yes; then X AC_DEFINE_UNQUOTED(HAVE_STRUCT_UTIMBUF, 1, [Define if struct utimbuf is declared -- usually in . X Some systems have utime.h but don't declare the struct anywhere. ]) X fi ]) #serial 1 X dnl From Jim Meyering dnl Replace the utime function on systems that need it. X dnl FIXME X AC_DEFUN(jm_FUNC_UTIME, [ X AC_CHECK_HEADERS(utime.h) X AC_REQUIRE([jm_STRUCT_UTIMBUF]) X AC_REQUIRE([AC_FUNC_UTIME_NULL]) X X if test $ac_cv_func_utime_null = no; then X jm_FUNC_UTIMES_NULL X AC_REPLACE_FUNCS(utime) X fi ]) #serial 3 X dnl Shamelessly cloned from acspecific.m4's AC_FUNC_UTIME_NULL, dnl then do case-insensitive s/utime/utimes/. X AC_DEFUN(jm_FUNC_UTIMES_NULL, [AC_CACHE_CHECK(whether utimes accepts a null argument, ac_cv_func_utimes_null, [rm -f conftestdata; > conftestdata AC_TRY_RUN([ /* In case stat has been defined to rpl_stat, undef it here. */ #undef stat #include #include main() { struct stat s, t; exit(!(stat ("conftestdata", &s) == 0 && utimes("conftestdata", (long *)0) == 0 && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime && t.st_mtime - s.st_mtime < 120)); }], X ac_cv_func_utimes_null=yes, X ac_cv_func_utimes_null=no, X ac_cv_func_utimes_null=no) rm -f core core.* *.core]) X X if test $ac_cv_func_utimes_null = yes; then X AC_DEFINE_UNQUOTED(HAVE_UTIMES_NULL, 1, X [Define if utimes accepts a null argument]) X fi X ] ) #serial 1 X # autoconf tests required for use of xstrtoumax.c X AC_DEFUN(jm_AC_PREREQ_XSTRTOUMAX, [ X AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) X AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) X AC_CHECK_HEADERS(stdlib.h) X AC_REPLACE_FUNCS(strtoumax) X X dnl We don't need (and can't compile) the replacement strtoull X dnl unless the type `unsigned long long' exists. X dnl Also, only the replacement strtoumax invokes strtoull, X dnl so we need the replacement strtoull only if strtoumax does not exist. X case "$ac_cv_type_unsigned_long_long,$ac_cv_func_strtoumax" in X yes,no) X AC_REPLACE_FUNCS(strtoull) X ;; X esac X ]) SHAR_EOF $shar_touch -am 0705000999 'tar-1.13/acinclude.m4' && chmod 0664 'tar-1.13/acinclude.m4' || $echo 'restore of' 'tar-1.13/acinclude.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/acinclude.m4:' 'MD5 check failed' 0ac5c15de09c100def9fd1fc25644c79 tar-1.13/acinclude.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/acinclude.m4'`" test 31952 -eq "$shar_count" || $echo 'tar-1.13/acinclude.m4:' 'original size' '31952,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/aclocal.m4 ============== if test -f 'tar-1.13/aclocal.m4' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/aclocal.m4' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/aclocal.m4' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/aclocal.m4' && dnl aclocal.m4 generated automatically by aclocal 1.4 X dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. X dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A dnl PARTICULAR PURPOSE. X # The following is taken from automake 1.4, # except that it prefers the compiler option -Ae to "-Aa -D_HPUX_SOURCE" # because only the former supports 64-bit integral types on HP-UX 10.20. X X # serial 2 X # @defmac AC_PROG_CC_STDC # @maindex PROG_CC_STDC # @ovindex CC # If the C compiler in not in ANSI C mode by default, try to add an option # to output variable @code{CC} to make it so. This macro tries various # options that select ANSI C on some system or another. It considers the # compiler to be in ANSI C mode if it handles function prototypes correctly. # # If you use this macro, you should check after calling it whether the C # compiler has been set to accept ANSI C; if not, the shell variable # @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source # code in ANSI C, you can make an un-ANSIfied copy of it by using the # program @code{ansi2knr}, which comes with Ghostscript. # @end defmac X AC_DEFUN(AM_PROG_CC_STDC, [AC_REQUIRE([AC_PROG_CC]) AC_BEFORE([$0], [AC_C_INLINE]) AC_BEFORE([$0], [AC_C_CONST]) dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require dnl a magic option to avoid problems with ANSI preprocessor commands dnl like #elif. dnl FIXME: can't do this because then AC_AIX won't work due to a dnl circular dependency. dnl AC_BEFORE([$0], [AC_PROG_CPP]) AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C) AC_CACHE_VAL(am_cv_prog_cc_stdc, [am_cv_prog_cc_stdc=no ac_save_CC="$CC" # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do X CC="$ac_save_CC $ac_arg" X AC_TRY_COMPILE( [#include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) X char **p; X int i; { X return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { X char *s; X va_list v; X va_start (v,p); X s = g (p, va_arg (v,int)); X va_end (v); X return s; } int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; ], [ return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ], [am_cv_prog_cc_stdc="$ac_arg"; break]) done CC="$ac_save_CC" ]) if test -z "$am_cv_prog_cc_stdc"; then X AC_MSG_RESULT([none needed]) else X AC_MSG_RESULT($am_cv_prog_cc_stdc) fi case "x$am_cv_prog_cc_stdc" in X x|xno) ;; X *) CC="$CC $am_cv_prog_cc_stdc" ;; esac ]) #serial 2 X dnl From Jim Meyering. dnl dnl Check whether struct dirent has a member named d_ino. dnl X AC_DEFUN(jm_STRUCT_DIRENT_D_INO, X [AC_REQUIRE([AC_HEADER_DIRENT])dnl X AC_CACHE_CHECK([for d_ino member in directory struct], X jm_cv_struct_dirent_d_ino, X [AC_TRY_LINK(dnl X [ #include #ifdef HAVE_DIRENT_H # include #else /* not HAVE_DIRENT_H */ # define dirent direct # ifdef HAVE_SYS_NDIR_H # include # endif /* HAVE_SYS_NDIR_H */ # ifdef HAVE_SYS_DIR_H # include # endif /* HAVE_SYS_DIR_H */ # ifdef HAVE_NDIR_H # include # endif /* HAVE_NDIR_H */ #endif /* HAVE_DIRENT_H */ X ], X [struct dirent dp; dp.d_ino = 0;], X X jm_cv_struct_dirent_d_ino=yes, X jm_cv_struct_dirent_d_ino=no) X ] X ) X if test $jm_cv_struct_dirent_d_ino = yes; then X AC_DEFINE(D_INO_IN_DIRENT, 1, X [Define if there is a member named d_ino in the struct describing X directory headers.]) X fi X ] ) # Macro to add for using GNU gettext. # Ulrich Drepper , 1995. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. X # serial 107 X AC_PREREQ(2.13) dnl Minimum Autoconf version required. X AC_DEFUN(AM_WITH_NLS, X [AC_MSG_CHECKING([whether NLS is requested]) X dnl Default is enabled NLS X AC_ARG_ENABLE(nls, X [ --disable-nls do not use Native Language Support], X USE_NLS=$enableval, USE_NLS=yes) X AC_MSG_RESULT($USE_NLS) X AC_SUBST(USE_NLS) X X USE_INCLUDED_LIBINTL=no X X dnl If we use NLS figure out what method X if test "$USE_NLS" = "yes"; then X AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if NLS is requested.]) X AC_MSG_CHECKING([whether included gettext is requested]) X AC_ARG_WITH(included-gettext, X [ --with-included-gettext use the GNU gettext library included here], X nls_cv_force_use_gnu_gettext=$withval, X nls_cv_force_use_gnu_gettext=no) X AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) X X nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" X if test "$nls_cv_force_use_gnu_gettext" != "yes"; then X dnl User does not insist on using GNU NLS library. Figure out what X dnl to use. If gettext or catgets are available (in this order) we X dnl use this. Else we have to fall back to GNU NLS library. X dnl catgets is only used if permitted by option --with-catgets. X nls_cv_header_intl= X nls_cv_header_libgt= X CATOBJEXT=NONE X X AC_CHECK_HEADER(libintl.h, X [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc, X [AC_TRY_LINK([#include ], [return (int) gettext ("")], X gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)]) X X if test "$gt_cv_func_gettext_libc" != "yes"; then X AC_CHECK_LIB(intl, bindtextdomain, X [AC_CHECK_LIB(intl, gettext)]) X fi X X if test "$gt_cv_func_gettext_libc" = "yes" \ X || test "$ac_cv_lib_intl_gettext" = "yes"; then X AC_DEFINE(HAVE_GETTEXT, 1, X [Define to 1 if you have gettext and don't want to use GNU gettext.]) X AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl X if test "$MSGFMT" != "no"; then X AC_CHECK_FUNCS(dcgettext) X AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) X AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) X AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; X return _nl_msg_cat_cntr], X [CATOBJEXT=.gmo X DATADIRNAME=share], X [CATOBJEXT=.mo X DATADIRNAME=lib]) X INSTOBJEXT=.mo X fi X fi X ]) X X if test "$CATOBJEXT" = "NONE"; then X AC_MSG_CHECKING([whether catgets can be used]) X AC_ARG_WITH(catgets, X [ --with-catgets use catgets functions if available], X nls_cv_use_catgets=$withval, nls_cv_use_catgets=no) X AC_MSG_RESULT($nls_cv_use_catgets) X X if test "$nls_cv_use_catgets" = "yes"; then X dnl No gettext in C library. Try catgets next. X AC_CHECK_LIB(i, main) X AC_CHECK_FUNC(catgets, X [AC_DEFINE(HAVE_CATGETS, 1, X [Define as 1 if you have catgets and don't want to use GNU gettext.]) X INTLOBJS="\$(CATOBJS)" X AC_PATH_PROG(GENCAT, gencat, no)dnl X if test "$GENCAT" != "no"; then X AC_PATH_PROG(GMSGFMT, gmsgfmt, no) X if test "$GMSGFMT" = "no"; then X AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no) X fi X AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) X USE_INCLUDED_LIBINTL=yes X CATOBJEXT=.cat X INSTOBJEXT=.cat X DATADIRNAME=lib X INTLDEPS='$(top_builddir)/intl/libintl.a' X INTLLIBS=$INTLDEPS X LIBS=`echo $LIBS | sed -e 's/-lintl//'` X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi]) X fi X fi X X if test "$CATOBJEXT" = "NONE"; then X dnl Neither gettext nor catgets in included in the C library. X dnl Fall back on GNU gettext library. X nls_cv_use_gnu_gettext=yes X fi X fi X X if test "$nls_cv_use_gnu_gettext" = "yes"; then X dnl Mark actions used to generate GNU NLS library. X INTLOBJS="\$(GETTOBJS)" X AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt) X AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) X AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, X [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) X AC_SUBST(MSGFMT) X USE_INCLUDED_LIBINTL=yes X CATOBJEXT=.gmo X INSTOBJEXT=.mo X DATADIRNAME=share X INTLDEPS='$(top_builddir)/intl/libintl.a' X INTLLIBS=$INTLDEPS X LIBS=`echo $LIBS | sed -e 's/-lintl//'` X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi X X dnl Test whether we really found GNU xgettext. X if test "$XGETTEXT" != ":"; then X dnl If it is no GNU xgettext we define it as : so that the X dnl Makefiles still can work. X if $XGETTEXT --omit-header /dev/null 2> /dev/null; then X : ; X else X AC_MSG_RESULT( X [found xgettext program is not GNU xgettext; ignore it]) X XGETTEXT=":" X fi X fi X X # We need to process the po/ directory. X POSUB=po X else X DATADIRNAME=share X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi X if test -z "$nls_cv_header_intl"; then X # Clean out junk possibly left behind by a previous configuration. X rm -f intl/libintl.h X fi X AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl) X AC_OUTPUT_COMMANDS( X [case "$CONFIG_FILES" in *po/Makefile.in*) X sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile X esac]) X X X # If this is used in GNU gettext we have to set USE_NLS to `yes' X # because some of the sources are only built for this goal. X if test "$PACKAGE" = gettext; then X USE_NLS=yes X USE_INCLUDED_LIBINTL=yes X fi X X dnl These rules are solely for the distribution goal. While doing this X dnl we only have to keep exactly one list of the available catalogs X dnl in configure.in. X for lang in $ALL_LINGUAS; do X GMOFILES="$GMOFILES $lang.gmo" X POFILES="$POFILES $lang.po" X done X X dnl Make all variables we use known to autoconf. X AC_SUBST(USE_INCLUDED_LIBINTL) X AC_SUBST(CATALOGS) X AC_SUBST(CATOBJEXT) X AC_SUBST(DATADIRNAME) X AC_SUBST(GMOFILES) X AC_SUBST(INSTOBJEXT) X AC_SUBST(INTLDEPS) X AC_SUBST(INTLLIBS) X AC_SUBST(INTLOBJS) X AC_SUBST(POFILES) X AC_SUBST(POSUB) X ]) X AC_DEFUN(AM_GNU_GETTEXT, X [AC_REQUIRE([AC_PROG_MAKE_SET])dnl X AC_REQUIRE([AC_PROG_CC])dnl X AC_REQUIRE([AC_PROG_RANLIB])dnl X AC_REQUIRE([AC_ISC_POSIX])dnl X AC_REQUIRE([AC_HEADER_STDC])dnl X AC_REQUIRE([AC_C_CONST])dnl X AC_REQUIRE([AC_C_INLINE])dnl X AC_REQUIRE([AC_TYPE_OFF_T])dnl X AC_REQUIRE([AC_TYPE_SIZE_T])dnl X AC_REQUIRE([AC_FUNC_ALLOCA])dnl X AC_REQUIRE([AC_FUNC_MMAP])dnl X X AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \ unistd.h sys/param.h]) X AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \ strdup __argz_count __argz_stringify __argz_next]) X X if test "${ac_cv_func_stpcpy+set}" != "set"; then X AC_CHECK_FUNCS(stpcpy) X fi X if test "${ac_cv_func_stpcpy}" = "yes"; then X AC_DEFINE(HAVE_STPCPY, 1, [Define to 1 if you have the stpcpy function.]) X fi X X AM_LC_MESSAGES X AM_WITH_NLS X X if test "x$CATOBJEXT" != "x"; then X if test "x$ALL_LINGUAS" = "x"; then X LINGUAS= X else X AC_MSG_CHECKING(for catalogs to be installed) X NEW_LINGUAS= X for lang in ${LINGUAS=$ALL_LINGUAS}; do X case "$ALL_LINGUAS" in X *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; X esac X done X LINGUAS=$NEW_LINGUAS X AC_MSG_RESULT($LINGUAS) X fi X X dnl Construct list of names of catalog files to be constructed. X if test -n "$LINGUAS"; then X for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done X fi X fi X X dnl The reference to in the installed file X dnl must be resolved because we cannot expect the users of this X dnl to define HAVE_LOCALE_H. X if test $ac_cv_header_locale_h = yes; then X INCLUDE_LOCALE_H="#include " X else X INCLUDE_LOCALE_H="\ /* The system does not provide the header . Take care yourself. */" X fi X AC_SUBST(INCLUDE_LOCALE_H) X X dnl Determine which catalog format we have (if any is needed) X dnl For now we know about two different formats: X dnl Linux libc-5 and the normal X/Open format X test -d intl || mkdir intl X if test "$CATOBJEXT" = ".cat"; then X AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen) X X dnl Transform the SED scripts while copying because some dumb SEDs X dnl cannot handle comments. X sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed X fi X dnl po2tbl.sed is always needed. X sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ X $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed X X dnl In the intl/Makefile.in we have a special dependency which makes X dnl only sense for gettext. We comment this out for non-gettext X dnl packages. X if test "$PACKAGE" = "gettext"; then X GT_NO="#NO#" X GT_YES= X else X GT_NO= X GT_YES="#YES#" X fi X AC_SUBST(GT_NO) X AC_SUBST(GT_YES) X X dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly X dnl find the mkinstalldirs script in another subdir but ($top_srcdir). X dnl Try to locate is. X MKINSTALLDIRS= X if test -n "$ac_aux_dir"; then X MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" X fi X if test -z "$MKINSTALLDIRS"; then X MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" X fi X AC_SUBST(MKINSTALLDIRS) X X dnl *** For now the libtool support in intl/Makefile is not for real. X l= X AC_SUBST(l) X X dnl Generate list of files to be processed by xgettext which will X dnl be included in po/Makefile. X test -d po || mkdir po X changequote(, )dnl X case "$srcdir" in X .) X posrcprefix="../" ;; X /* | [A-Za-z]:*) X posrcprefix="$srcdir/" ;; X *) X posrcprefix="../$srcdir/" ;; X esac X changequote([, ])dnl X rm -f po/POTFILES X sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ X < $srcdir/po/POTFILES.in > po/POTFILES X ]) #serial 3 X dnl From Paul Eggert. X # Define HAVE_INTTYPES_H if exists, # doesn't clash with , and declares uintmax_t. X AC_DEFUN(jm_AC_HEADER_INTTYPES_H, [ X AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h, X [AC_TRY_COMPILE( X [#include #include ], X [uintmax_t i = (uintmax_t) -1;], X jm_ac_cv_header_inttypes_h=yes, X jm_ac_cv_header_inttypes_h=no)]) X if test $jm_ac_cv_header_inttypes_h = yes; then X AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, [Define if exists, doesn't clash with , X and declares uintmax_t. ]) X fi ]) #serial 1 dnl This test replaces the one in autoconf. dnl Currently this macro should have the same name as the autoconf macro dnl because gettext's gettext.m4 (distributed in the automake package) dnl still uses it. Otherwise, the use in gettext.m4 makes autoheader dnl give these diagnostics: dnl configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX dnl configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX X undefine([AC_ISC_POSIX]) AC_DEFUN(AC_ISC_POSIX, X [ X dnl This test replaces the obsolescent AC_ISC_POSIX kludge. X AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) X ] ) #serial 7 X dnl From Jim Meyering. dnl A wrapper around AC_FUNC_MKTIME. X AC_DEFUN(jm_FUNC_MKTIME, [AC_REQUIRE([AC_FUNC_MKTIME])dnl X X dnl mktime.c uses localtime_r if it exists. Check for it. X AC_CHECK_FUNCS(localtime_r) X X if test $ac_cv_func_working_mktime = no; then X AC_DEFINE_UNQUOTED(mktime, rpl_mktime, X [Define to rpl_mktime if the replacement function should be used.]) X fi ]) #serial 4 X dnl By default, many hosts won't let programs access large files; dnl one must use special compiler options to get large-file access to work. dnl For more details about this brain damage please see: dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html X dnl Written by Paul Eggert . X dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME) AC_DEFUN(AC_SYS_LARGEFILE_FLAGS, X [AC_CACHE_CHECK([for $1 value to request large file support], X ac_cv_sys_largefile_$1, X [ac_cv_sys_largefile_$1=`($GETCONF LFS_$1) 2>/dev/null` || { X ac_cv_sys_largefile_$1=no X ifelse($1, CFLAGS, X [case "$host_os" in X # IRIX 6.2 and later require cc -n32. changequote(, )dnl X irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*) changequote([, ])dnl X if test "$GCC" != yes; then X ac_cv_sys_largefile_CFLAGS=-n32 X fi X ac_save_CC="$CC" X CC="$CC $ac_cv_sys_largefile_CFLAGS" X AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no) X CC="$ac_save_CC" X esac]) X }])]) X dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL) AC_DEFUN(AC_SYS_LARGEFILE_SPACE_APPEND, X [case $2 in X no) ;; X ?*) X case "[$]$1" in X '') $1=$2 ;; X *) $1=[$]$1' '$2 ;; X esac ;; X esac]) X dnl Internal subroutine of AC_SYS_LARGEFILE. dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, CACHE-VAR, COMMENT, CODE-TO-SET-DEFAULT) AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE, X [AC_CACHE_CHECK([for $1], $2, X [$2=no changequote(, )dnl X $4 X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X -D$1) X $2=1 ;; X -D$1=*) X $2=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; X esac X done changequote([, ])dnl X ]) X if test "[$]$2" != no; then X AC_DEFINE_UNQUOTED([$1], [$]$2, [$3]) X fi]) X AC_DEFUN(AC_SYS_LARGEFILE, X [AC_REQUIRE([AC_CANONICAL_HOST]) X AC_ARG_ENABLE(largefile, X [ --disable-largefile omit support for large files]) X if test "$enable_largefile" != no; then X AC_CHECK_TOOL(GETCONF, getconf) X AC_SYS_LARGEFILE_FLAGS(CFLAGS) X AC_SYS_LARGEFILE_FLAGS(LDFLAGS) X AC_SYS_LARGEFILE_FLAGS(LIBS) X X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X no) ;; X -D_FILE_OFFSET_BITS=*) ;; X -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;; X -D_LARGE_FILES | -D_LARGE_FILES=*) ;; X -D?* | -I?*) X AC_SYS_LARGEFILE_SPACE_APPEND(CPPFLAGS, "$ac_flag") ;; X *) X AC_SYS_LARGEFILE_SPACE_APPEND(CFLAGS, "$ac_flag") ;; X esac X done X AC_SYS_LARGEFILE_SPACE_APPEND(LDFLAGS, "$ac_cv_sys_largefile_LDFLAGS") X AC_SYS_LARGEFILE_SPACE_APPEND(LIBS, "$ac_cv_sys_largefile_LIBS") X AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, X ac_cv_sys_file_offset_bits, X [Number of bits in a file offset, on hosts where this is settable.] X [case "$host_os" in X # HP-UX 10.20 and later X hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) X ac_cv_sys_file_offset_bits=64 ;; X esac]) X AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, X ac_cv_sys_largefile_source, X [Define to make fseeko etc. visible, on some hosts.], X [case "$host_os" in X # HP-UX 10.20 and later X hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) X ac_cv_sys_largefile_source=1 ;; X esac]) X AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, X ac_cv_sys_large_files, X [Define for large files, on AIX-style hosts.], X [case "$host_os" in X # AIX 4.2 and later X aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*) X ac_cv_sys_large_files=1 ;; X esac]) X fi X ]) # Check whether LC_MESSAGES is available in . # Ulrich Drepper , 1995. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. X # serial 2 X AC_PREREQ(2.13) dnl Minimum Autoconf version required. X AC_DEFUN(AM_LC_MESSAGES, X [if test $ac_cv_header_locale_h = yes; then X AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, X [AC_TRY_LINK([#include ], [return LC_MESSAGES], X am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) X if test $am_cv_val_LC_MESSAGES = yes; then X AC_DEFINE(HAVE_LC_MESSAGES, 1, X [Define if your locale.h file contains LC_MESSAGES.]) X fi X fi]) #serial 3 X dnl From Jim Meyering. dnl Determine whether malloc accepts 0 as its argument. dnl If it doesn't, arrange to use the replacement function. dnl X AC_DEFUN(jm_FUNC_MALLOC, [ X dnl xmalloc.c requires that this symbol be defined so it doesn't X dnl mistakenly use a broken malloc -- as it might if this test were omitted. X AC_DEFINE_UNQUOTED(HAVE_DONE_WORKING_MALLOC_CHECK, 1, X [Define if the malloc check has been performed. ]) X X AC_CACHE_CHECK([for working malloc], jm_cv_func_working_malloc, X [AC_TRY_RUN([ X char *malloc (); X int X main () X { X exit (malloc (0) ? 0 : 1); X } X ], X jm_cv_func_working_malloc=yes, X jm_cv_func_working_malloc=no, X dnl When crosscompiling, assume malloc is broken. X jm_cv_func_working_malloc=no) X ]) X if test $jm_cv_func_working_malloc = no; then X AC_SUBST(LIBOBJS) X LIBOBJS="$LIBOBJS malloc.$ac_objext" X AC_DEFINE_UNQUOTED(malloc, rpl_malloc, X [Define to rpl_malloc if the replacement function should be used.]) X fi ]) #serial 1 X dnl From Paul Eggert dnl Check for a working mktime. dnl This is a preview of what should appear in the next public autoconf release. X AC_DEFUN(AC_FUNC_MKTIME, [AC_REQUIRE([AC_HEADER_TIME])dnl AC_CHECK_HEADERS(sys/time.h unistd.h) AC_CHECK_FUNCS(alarm) AC_CACHE_CHECK([for working mktime], ac_cv_func_working_mktime, [AC_TRY_RUN( changequote(<<, >>)dnl < # include X #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif X #if HAVE_UNISTD_H # include #endif X #if !HAVE_ALARM # define alarm(X) /* empty */ #endif X /* Work around redefinition to rpl_putenv by other config tests. */ #undef putenv X static time_t time_t_max; X /* Values we'll use to set the TZ environment variable. */ static const char *const tz_strings[] = { X (const char *) 0, "TZ=GMT0", "TZ=JST-9", X "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" }; #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) X /* Fail if mktime fails to convert a date in the spring-forward gap. X Based on a problem report from Andreas Jaeger. */ static void spring_forward_gap () { X /* glibc (up to about 1998-10-07) failed this test) */ X struct tm tm; X X /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" X instead of "TZ=America/Vancouver" in order to detect the bug even X on systems that don't support the Olson extension, or don't have the X full zoneinfo tables installed. */ X putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); X X tm.tm_year = 98; X tm.tm_mon = 3; X tm.tm_mday = 5; X tm.tm_hour = 2; X tm.tm_min = 0; X tm.tm_sec = 0; X tm.tm_isdst = -1; X if (mktime (&tm) == (time_t)-1) X exit (1); } X static void mktime_test (now) X time_t now; { X struct tm *lt; X if ((lt = localtime (&now)) && mktime (lt) != now) X exit (1); X now = time_t_max - now; X if ((lt = localtime (&now)) && mktime (lt) != now) X exit (1); } X static void irix_6_4_bug () { X /* Based on code from Ariel Faigon. */ X struct tm tm; X tm.tm_year = 96; X tm.tm_mon = 3; X tm.tm_mday = 0; X tm.tm_hour = 0; X tm.tm_min = 0; X tm.tm_sec = 0; X tm.tm_isdst = -1; X mktime (&tm); X if (tm.tm_mon != 2 || tm.tm_mday != 31) X exit (1); } X static void bigtime_test (j) X int j; { X struct tm tm; X time_t now; X tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; X now = mktime (&tm); X if (now != (time_t) -1) X { X struct tm *lt = localtime (&now); X if (! (lt X && lt->tm_year == tm.tm_year X && lt->tm_mon == tm.tm_mon X && lt->tm_mday == tm.tm_mday X && lt->tm_hour == tm.tm_hour X && lt->tm_min == tm.tm_min X && lt->tm_sec == tm.tm_sec X && lt->tm_yday == tm.tm_yday X && lt->tm_wday == tm.tm_wday X && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) X == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) X exit (1); X } } X int main () { X time_t t, delta; X int i, j; X X /* This test makes some buggy mktime implementations loop. X Give up after 60 seconds; a mktime slower than that X isn't worth using anyway. */ X alarm (60); X X for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) X continue; X time_t_max--; X delta = time_t_max / 997; /* a suitable prime number */ X for (i = 0; i < N_STRINGS; i++) X { X if (tz_strings[i]) X putenv (tz_strings[i]); X X for (t = 0; t <= time_t_max - delta; t += delta) X mktime_test (t); X mktime_test ((time_t) 60 * 60); X mktime_test ((time_t) 60 * 60 * 24); X X for (j = 1; 0 < j; j *= 2) X bigtime_test (j); X bigtime_test (j - 1); X } X irix_6_4_bug (); X spring_forward_gap (); X exit (0); } >>, changequote([, ])dnl ac_cv_func_working_mktime=yes, ac_cv_func_working_mktime=no, ac_cv_func_working_mktime=no)]) if test $ac_cv_func_working_mktime = no; then X LIBOBJS="$LIBOBJS mktime.${ac_objext}" fi ]) # Search path for a program which passes the given test. # Ulrich Drepper , 1996. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. X # serial 1 X dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN(AM_PATH_PROG_WITH_TEST, [# Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in X /*) X ac_cv_path_$1="[$]$1" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in ifelse([$5], , $PATH, [$5]); do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if [$3]; then X ac_cv_path_$1="$ac_dir/$ac_word" X break X fi X fi X done X IFS="$ac_save_ifs" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl X ;; esac])dnl $1="$ac_cv_path_$1" if test -n "[$]$1"; then X AC_MSG_RESULT([$]$1) else X AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) #serial 3 X dnl From Jim Meyering. dnl Determine whether realloc works when both arguments are 0. dnl If it doesn't, arrange to use the replacement function. dnl X AC_DEFUN(jm_FUNC_REALLOC, [ X dnl xmalloc.c requires that this symbol be defined so it doesn't X dnl mistakenly use a broken realloc -- as it might if this test were omitted. X AC_DEFINE_UNQUOTED(HAVE_DONE_WORKING_REALLOC_CHECK, 1, X [Define if the realloc check has been performed. ]) X X AC_CACHE_CHECK([for working realloc], jm_cv_func_working_realloc, X [AC_TRY_RUN([ X char *realloc (); X int X main () X { X exit (realloc (0, 0) ? 0 : 1); X } X ], X jm_cv_func_working_realloc=yes, X jm_cv_func_working_realloc=no, X dnl When crosscompiling, assume realloc is broken. X jm_cv_func_working_realloc=no) X ]) X if test $jm_cv_func_working_realloc = no; then X AC_SUBST(LIBOBJS) X LIBOBJS="$LIBOBJS realloc.$ac_objext" X AC_DEFINE_UNQUOTED(realloc, rpl_realloc, X [Define to rpl_realloc if the replacement function should be used.]) X fi ]) #serial 3 X dnl From Paul Eggert. X AC_PREREQ(2.13) X # Define uintmax_t to `unsigned long' or `unsigned long long' # if does not exist. X AC_DEFUN(jm_AC_TYPE_UINTMAX_T, [ X AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) X if test $jm_ac_cv_header_inttypes_h = no; then X AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) X test $ac_cv_type_unsigned_long_long = yes \ X && ac_type='unsigned long long' \ X || ac_type='unsigned long' X AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, [ Define to \`unsigned long' or \`unsigned long long' X if doesn't define.]) X fi ]) #serial 1 X dnl From Paul Eggert. X AC_DEFUN(jm_AC_TYPE_UNSIGNED_LONG_LONG, [ X AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, X [AC_TRY_COMPILE([], X [unsigned long long i = (unsigned long long) -1;], X ac_cv_type_unsigned_long_long=yes, X ac_cv_type_unsigned_long_long=no)]) X if test $ac_cv_type_unsigned_long_long = yes; then X AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, X [Define if you have the unsigned long long type.]) X fi ]) #serial 2 X dnl From Jim Meyering X dnl Define HAVE_STRUCT_UTIMBUF if `struct utimbuf' is declared -- dnl usually in . dnl Some systems have utime.h but don't declare the struct anywhere. X AC_DEFUN(jm_STRUCT_UTIMBUF, [ X AC_CHECK_HEADERS(utime.h) X AC_REQUIRE([AC_HEADER_TIME]) X AC_CACHE_CHECK([for struct utimbuf], fu_cv_sys_struct_utimbuf, X [AC_TRY_COMPILE( X [ #ifdef TIME_WITH_SYS_TIME # include # include #else # ifdef HAVE_SYS_TIME_H # include # else # include # endif #endif #ifdef HAVE_UTIME_H # include #endif X ], X [static struct utimbuf x; x.actime = x.modtime;], X fu_cv_sys_struct_utimbuf=yes, X fu_cv_sys_struct_utimbuf=no) X ]) X X if test $fu_cv_sys_struct_utimbuf = yes; then X AC_DEFINE_UNQUOTED(HAVE_STRUCT_UTIMBUF, 1, [Define if struct utimbuf is declared -- usually in . X Some systems have utime.h but don't declare the struct anywhere. ]) X fi ]) #serial 1 X dnl From Jim Meyering dnl Replace the utime function on systems that need it. X dnl FIXME X AC_DEFUN(jm_FUNC_UTIME, [ X AC_CHECK_HEADERS(utime.h) X AC_REQUIRE([jm_STRUCT_UTIMBUF]) X AC_REQUIRE([AC_FUNC_UTIME_NULL]) X X if test $ac_cv_func_utime_null = no; then X jm_FUNC_UTIMES_NULL X AC_REPLACE_FUNCS(utime) X fi ]) #serial 3 X dnl Shamelessly cloned from acspecific.m4's AC_FUNC_UTIME_NULL, dnl then do case-insensitive s/utime/utimes/. X AC_DEFUN(jm_FUNC_UTIMES_NULL, [AC_CACHE_CHECK(whether utimes accepts a null argument, ac_cv_func_utimes_null, [rm -f conftestdata; > conftestdata AC_TRY_RUN([ /* In case stat has been defined to rpl_stat, undef it here. */ #undef stat #include #include main() { struct stat s, t; exit(!(stat ("conftestdata", &s) == 0 && utimes("conftestdata", (long *)0) == 0 && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime && t.st_mtime - s.st_mtime < 120)); }], X ac_cv_func_utimes_null=yes, X ac_cv_func_utimes_null=no, X ac_cv_func_utimes_null=no) rm -f core core.* *.core]) X X if test $ac_cv_func_utimes_null = yes; then X AC_DEFINE_UNQUOTED(HAVE_UTIMES_NULL, 1, X [Define if utimes accepts a null argument]) X fi X ] ) #serial 1 X # autoconf tests required for use of xstrtoumax.c X AC_DEFUN(jm_AC_PREREQ_XSTRTOUMAX, [ X AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) X AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) X AC_CHECK_HEADERS(stdlib.h) X AC_REPLACE_FUNCS(strtoumax) X X dnl We don't need (and can't compile) the replacement strtoull X dnl unless the type `unsigned long long' exists. X dnl Also, only the replacement strtoumax invokes strtoull, X dnl so we need the replacement strtoull only if strtoumax does not exist. X case "$ac_cv_type_unsigned_long_long,$ac_cv_func_strtoumax" in X yes,no) X AC_REPLACE_FUNCS(strtoull) X ;; X esac X ]) X # Like AC_CONFIG_HEADER, but automatically create stamp file. X AC_DEFUN(AM_CONFIG_HEADER, [AC_PREREQ([2.12]) AC_CONFIG_HEADER([$1]) dnl When config.status generates a header, we must update the stamp-h file. dnl This file resides in the same directory as the config header dnl that is generated. We must strip everything past the first ":", dnl and everything past the last "/". AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, <>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, <>; do X case " <<$>>CONFIG_HEADERS " in X *" <<$>>am_file "*<<)>> X echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx X ;; X esac X am_indx=`expr "<<$>>am_indx" + 1` done<<>>dnl>>) changequote([,]))]) X # Do all the work for Automake. This macro actually does too much -- # some checks are only needed if your package does certain things. # But this isn't really a big deal. X # serial 1 X dnl Usage: dnl AM_INIT_AUTOMAKE(package,version, [no-define]) X AC_DEFUN(AM_INIT_AUTOMAKE, [AC_REQUIRE([AC_PROG_INSTALL]) PACKAGE=[$1] AC_SUBST(PACKAGE) VERSION=[$2] AC_SUBST(VERSION) dnl test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then X AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi ifelse([$3],, AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) AC_REQUIRE([AM_SANITY_CHECK]) AC_REQUIRE([AC_ARG_PROGRAM]) dnl FIXME This is truly gross. missing_dir=`cd $ac_aux_dir && pwd` AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) AC_REQUIRE([AC_PROG_MAKE_SET])]) X # # Check to make sure that the build environment is sane. # X AC_DEFUN(AM_SANITY_CHECK, [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftestfile # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( X set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` X if test "[$]*" = "X"; then X # -L didn't work. X set X `ls -t $srcdir/configure conftestfile` X fi X if test "[$]*" != "X $srcdir/configure conftestfile" \ X && test "[$]*" != "X conftestfile $srcdir/configure"; then X X # If neither matched, then we have a broken ls. This can happen X # if, for instance, CONFIG_SHELL is bash and it inherits a X # broken ls alias from the environment. This has actually X # happened. Such a system could not be considered "sane". X AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) X fi X X test "[$]2" = conftestfile X ) then X # Ok. X : else X AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi rm -f conftest* AC_MSG_RESULT(yes)]) X dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) dnl The program must properly implement --version. AC_DEFUN(AM_MISSING_PROG, [AC_MSG_CHECKING(for working $2) # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if ($2 --version) < /dev/null > /dev/null 2>&1; then X $1=$2 X AC_MSG_RESULT(found) else X $1="$3/missing $2" X AC_MSG_RESULT(missing) fi AC_SUBST($1)]) X X # serial 1 X AC_DEFUN(AM_C_PROTOTYPES, [AC_REQUIRE([AM_PROG_CC_STDC]) AC_REQUIRE([AC_PROG_CPP]) AC_MSG_CHECKING([for function prototypes]) if test "$am_cv_prog_cc_stdc" != no; then X AC_MSG_RESULT(yes) X AC_DEFINE(PROTOTYPES,1,[Define if compiler has function prototypes]) X U= ANSI2KNR= else X AC_MSG_RESULT(no) X U=_ ANSI2KNR=./ansi2knr X # Ensure some checks needed by ansi2knr itself. X AC_HEADER_STDC X AC_CHECK_HEADERS(string.h) fi AC_SUBST(U)dnl AC_SUBST(ANSI2KNR)dnl ]) X X # serial 1 X AC_DEFUN(AM_WITH_DMALLOC, [AC_MSG_CHECKING(if malloc debugging is wanted) AC_ARG_WITH(dmalloc, [ --with-dmalloc use dmalloc, as in X ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz], [if test "$withval" = yes; then X AC_MSG_RESULT(yes) X AC_DEFINE(WITH_DMALLOC,1, X [Define if using the dmalloc debugging malloc package]) X LIBS="$LIBS -ldmalloc" X LDFLAGS="$LDFLAGS -g" else X AC_MSG_RESULT(no) fi], [AC_MSG_RESULT(no)]) ]) X SHAR_EOF $shar_touch -am 0707012499 'tar-1.13/aclocal.m4' && chmod 0664 'tar-1.13/aclocal.m4' || $echo 'restore of' 'tar-1.13/aclocal.m4' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/aclocal.m4:' 'MD5 check failed' c362e72943f835f2717daf64fbff2d2c tar-1.13/aclocal.m4 SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/aclocal.m4'`" test 37120 -eq "$shar_count" || $echo 'tar-1.13/aclocal.m4:' 'original size' '37120,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/config.guess ============== if test -f 'tar-1.13/config.guess' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/config.guess' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/config.guess' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/config.guess' && #! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc. # # This file 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 of the License, or # (at your option) any later version. # # This program 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 program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. X # Written by Per Bothner . # The master version of this file is at the FSF in /home/gd/gnu/lib. # Please send patches to the Autoconf mailing list . # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit system type (host/target name). # # Only a few systems have been added to this list; please add others # (but try to keep the structure clean). # X # Use $HOST_CC if defined. $CC may point to a cross-compiler if test x"$CC_FOR_BUILD" = x; then X if test x"$HOST_CC" != x; then X CC_FOR_BUILD="$HOST_CC" X else X if test x"$CC" != x; then X CC_FOR_BUILD="$CC" X else X CC_FOR_BUILD=cc X fi X fi fi X X # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 8/24/94.) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then X PATH=$PATH:/.attbin ; export PATH fi X UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown X dummy=dummy-$$ trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15 X # Note: order is significant - the case branches are not exclusive. X case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in X alpha:OSF1:*:*) X if test $UNAME_RELEASE = "V4.0"; then X UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` X fi X # A Vn.n version is a released version. X # A Tn.n version is a released field test version. X # A Xn.n version is an unreleased experimental baselevel. X # 1.2 uses "1.2" for uname -r. X cat <$dummy.s X .globl main X .ent main main: X .frame \$30,0,\$26,0 X .prologue 0 X .long 0x47e03d80 # implver $0 X lda \$2,259 X .long 0x47e20c21 # amask $2,$1 X srl \$1,8,\$2 X sll \$2,2,\$2 X sll \$0,3,\$0 X addl \$1,\$0,\$0 X addl \$2,\$0,\$0 X ret \$31,(\$26),1 X .end main EOF X $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null X if test "$?" = 0 ; then X ./$dummy X case "$?" in X 7) X UNAME_MACHINE="alpha" X ;; X 15) X UNAME_MACHINE="alphaev5" X ;; X 14) X UNAME_MACHINE="alphaev56" X ;; X 10) X UNAME_MACHINE="alphapca56" X ;; X 16) X UNAME_MACHINE="alphaev6" X ;; X esac X fi X rm -f $dummy.s $dummy X echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]` X exit 0 ;; X 21064:Windows_NT:50:3) X echo alpha-dec-winnt3.5 X exit 0 ;; X Amiga*:UNIX_System_V:4.0:*) X echo m68k-cbm-sysv4 X exit 0;; X amiga:NetBSD:*:*) X echo m68k-cbm-netbsd${UNAME_RELEASE} X exit 0 ;; X amiga:OpenBSD:*:*) X echo m68k-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X *:[Aa]miga[Oo][Ss]:*:*) X echo ${UNAME_MACHINE}-unknown-amigaos X exit 0 ;; X arc64:OpenBSD:*:*) X echo mips64el-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X arc:OpenBSD:*:*) X echo mipsel-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X hkmips:OpenBSD:*:*) X echo mips-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X pmax:OpenBSD:*:*) X echo mipsel-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X sgi:OpenBSD:*:*) X echo mips-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X wgrisc:OpenBSD:*:*) X echo mipsel-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) X echo arm-acorn-riscix${UNAME_RELEASE} X exit 0;; X arm32:NetBSD:*:*) X echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` X exit 0 ;; X SR2?01:HI-UX/MPP:*:*) X echo hppa1.1-hitachi-hiuxmpp X exit 0;; X Pyramid*:OSx*:*:*|MIS*:OSx*:*:*|MIS*:SMP_DC-OSx*:*:*) X # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. X if test "`(/bin/universe) 2>/dev/null`" = att ; then X echo pyramid-pyramid-sysv3 X else X echo pyramid-pyramid-bsd X fi X exit 0 ;; X NILE*:*:*:dcosx) X echo pyramid-pyramid-svr4 X exit 0 ;; X sun4H:SunOS:5.*:*) X echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` X exit 0 ;; X sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) X echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` X exit 0 ;; X i86pc:SunOS:5.*:*) X echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` X exit 0 ;; X sun4*:SunOS:6*:*) X # According to config.sub, this is the proper way to canonicalize X # SunOS6. Hard to guess exactly what SunOS6 will be like, but X # it's likely to be more like Solaris than SunOS4. X echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` X exit 0 ;; X sun4*:SunOS:*:*) X case "`/usr/bin/arch -k`" in X Series*|S4*) X UNAME_RELEASE=`uname -v` X ;; X esac X # Japanese Language versions have a version number like `4.1.3-JL'. X echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` X exit 0 ;; X sun3*:SunOS:*:*) X echo m68k-sun-sunos${UNAME_RELEASE} X exit 0 ;; X sun*:*:4.2BSD:*) X UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` X test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 X case "`/bin/arch`" in X sun3) X echo m68k-sun-sunos${UNAME_RELEASE} X ;; X sun4) X echo sparc-sun-sunos${UNAME_RELEASE} X ;; X esac X exit 0 ;; X aushp:SunOS:*:*) X echo sparc-auspex-sunos${UNAME_RELEASE} X exit 0 ;; X atari*:NetBSD:*:*) X echo m68k-atari-netbsd${UNAME_RELEASE} X exit 0 ;; X atari*:OpenBSD:*:*) X echo m68k-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X # The situation for MiNT is a little confusing. The machine name X # can be virtually everything (everything which is not X # "atarist" or "atariste" at least should have a processor X # > m68000). The system name ranges from "MiNT" over "FreeMiNT" X # to the lowercase version "mint" (or "freemint"). Finally X # the system name "TOS" denotes a system which is actually not X # MiNT. But MiNT is downward compatible to TOS, so this should X # be no problem. X atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) X echo m68k-atari-mint${UNAME_RELEASE} X exit 0 ;; X atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) X echo m68k-atari-mint${UNAME_RELEASE} X exit 0 ;; X *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) X echo m68k-atari-mint${UNAME_RELEASE} X exit 0 ;; X milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) X echo m68k-milan-mint${UNAME_RELEASE} X exit 0 ;; X hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) X echo m68k-hades-mint${UNAME_RELEASE} X exit 0 ;; X *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) X echo m68k-unknown-mint${UNAME_RELEASE} X exit 0 ;; X sun3*:NetBSD:*:*) X echo m68k-sun-netbsd${UNAME_RELEASE} X exit 0 ;; X sun3*:OpenBSD:*:*) X echo m68k-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X mac68k:NetBSD:*:*) X echo m68k-apple-netbsd${UNAME_RELEASE} X exit 0 ;; X mac68k:OpenBSD:*:*) X echo m68k-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X mvme68k:OpenBSD:*:*) X echo m68k-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X mvme88k:OpenBSD:*:*) X echo m88k-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X powerpc:machten:*:*) X echo powerpc-apple-machten${UNAME_RELEASE} X exit 0 ;; X macppc:NetBSD:*:*) X echo powerpc-apple-netbsd${UNAME_RELEASE} X exit 0 ;; X RISC*:Mach:*:*) X echo mips-dec-mach_bsd4.3 X exit 0 ;; X RISC*:ULTRIX:*:*) X echo mips-dec-ultrix${UNAME_RELEASE} X exit 0 ;; X VAX*:ULTRIX*:*:*) X echo vax-dec-ultrix${UNAME_RELEASE} X exit 0 ;; X 2020:CLIX:*:* | 2430:CLIX:*:*) X echo clipper-intergraph-clix${UNAME_RELEASE} X exit 0 ;; X mips:*:*:UMIPS | mips:*:*:RISCos) X sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus X int main (int argc, char *argv[]) { #else X int main (argc, argv) int argc; char *argv[]; { #endif X #if defined (host_mips) && defined (MIPSEB) X #if defined (SYSTYPE_SYSV) X printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); X #endif X #if defined (SYSTYPE_SVR4) X printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); X #endif X #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) X printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); X #endif X #endif X exit (-1); X } EOF X $CC_FOR_BUILD $dummy.c -o $dummy \ X && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ X && rm $dummy.c $dummy && exit 0 X rm -f $dummy.c $dummy X echo mips-mips-riscos${UNAME_RELEASE} X exit 0 ;; X Night_Hawk:Power_UNIX:*:*) X echo powerpc-harris-powerunix X exit 0 ;; X m88k:CX/UX:7*:*) X echo m88k-harris-cxux7 X exit 0 ;; X m88k:*:4*:R4*) X echo m88k-motorola-sysv4 X exit 0 ;; X m88k:*:3*:R3*) X echo m88k-motorola-sysv3 X exit 0 ;; X AViiON:dgux:*:*) X # DG/UX returns AViiON for all architectures X UNAME_PROCESSOR=`/usr/bin/uname -p` X if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then X if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ X -o ${TARGET_BINARY_INTERFACE}x = x ] ; then X echo m88k-dg-dgux${UNAME_RELEASE} X else X echo m88k-dg-dguxbcs${UNAME_RELEASE} X fi X else echo i586-dg-dgux${UNAME_RELEASE} X fi X exit 0 ;; X M88*:DolphinOS:*:*) # DolphinOS (SVR3) X echo m88k-dolphin-sysv3 X exit 0 ;; X M88*:*:R3*:*) X # Delta 88k system running SVR3 X echo m88k-motorola-sysv3 X exit 0 ;; X XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) X echo m88k-tektronix-sysv3 X exit 0 ;; X Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) X echo m68k-tektronix-bsd X exit 0 ;; X *:IRIX*:*:*) X echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` X exit 0 ;; X ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. X echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id X exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' X i?86:AIX:*:*) X echo i386-ibm-aix X exit 0 ;; X *:AIX:2:3) X if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then X sed 's/^ //' << EOF >$dummy.c X #include X X main() X { X if (!__power_pc()) X exit(1); X puts("powerpc-ibm-aix3.2.5"); X exit(0); X } EOF X $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 X rm -f $dummy.c $dummy X echo rs6000-ibm-aix3.2.5 X elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then X echo rs6000-ibm-aix3.2.4 X else X echo rs6000-ibm-aix3.2 X fi X exit 0 ;; X *:AIX:*:4) X IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` X if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then X IBM_ARCH=rs6000 X else X IBM_ARCH=powerpc X fi X if [ -x /usr/bin/oslevel ] ; then X IBM_REV=`/usr/bin/oslevel` X else X IBM_REV=4.${UNAME_RELEASE} X fi X echo ${IBM_ARCH}-ibm-aix${IBM_REV} X exit 0 ;; X *:AIX:*:*) X echo rs6000-ibm-aix X exit 0 ;; X ibmrt:4.4BSD:*|romp-ibm:BSD:*) X echo romp-ibm-bsd4.4 X exit 0 ;; X ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and X echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to X exit 0 ;; # report: romp-ibm BSD 4.3 X *:BOSX:*:*) X echo rs6000-bull-bosx X exit 0 ;; X DPX/2?00:B.O.S.:*:*) X echo m68k-bull-sysv3 X exit 0 ;; X 9000/[34]??:4.3bsd:1.*:*) X echo m68k-hp-bsd X exit 0 ;; X hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) X echo m68k-hp-bsd4.4 X exit 0 ;; X 9000/[34678]??:HP-UX:*:*) X case "${UNAME_MACHINE}" in X 9000/31? ) HP_ARCH=m68000 ;; X 9000/[34]?? ) HP_ARCH=m68k ;; X 9000/6?? | 9000/7?? | 9000/80[024] | 9000/8?[136790] | 9000/892 ) X sed 's/^ //' << EOF >$dummy.c X #include X #include X X int main () X { X #if defined(_SC_KERNEL_BITS) X long bits = sysconf(_SC_KERNEL_BITS); X #endif X long cpu = sysconf (_SC_CPU_VERSION); X X switch (cpu) X { X case CPU_PA_RISC1_0: puts ("hppa1.0"); break; X case CPU_PA_RISC1_1: puts ("hppa1.1"); break; X case CPU_PA_RISC2_0: X #if defined(_SC_KERNEL_BITS) X switch (bits) X { X case 64: puts ("hppa2.0w"); break; X case 32: puts ("hppa2.0n"); break; X default: puts ("hppa2.0"); break; X } break; X #else /* !defined(_SC_KERNEL_BITS) */ X puts ("hppa2.0"); break; X #endif X default: puts ("hppa1.0"); break; X } X exit (0); X } EOF X ($CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` X rm -f $dummy.c $dummy X esac X HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` X echo ${HP_ARCH}-hp-hpux${HPUX_REV} X exit 0 ;; X 3050*:HI-UX:*:*) X sed 's/^ //' << EOF >$dummy.c X #include X int X main () X { X long cpu = sysconf (_SC_CPU_VERSION); X /* The order matters, because CPU_IS_HP_MC68K erroneously returns X true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct X results, however. */ X if (CPU_IS_PA_RISC (cpu)) X { X switch (cpu) X { X case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; X case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; X case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; X default: puts ("hppa-hitachi-hiuxwe2"); break; X } X } X else if (CPU_IS_HP_MC68K (cpu)) X puts ("m68k-hitachi-hiuxwe2"); X else puts ("unknown-hitachi-hiuxwe2"); X exit (0); X } EOF X $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 X rm -f $dummy.c $dummy X echo unknown-hitachi-hiuxwe2 X exit 0 ;; X 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) X echo hppa1.1-hp-bsd X exit 0 ;; X 9000/8??:4.3bsd:*:*) X echo hppa1.0-hp-bsd X exit 0 ;; X *9??*:MPE*:*:*) X echo hppa1.0-hp-mpeix X exit 0 ;; X hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) X echo hppa1.1-hp-osf X exit 0 ;; X hp8??:OSF1:*:*) X echo hppa1.0-hp-osf X exit 0 ;; X i?86:OSF1:*:*) X if [ -x /usr/sbin/sysversion ] ; then X echo ${UNAME_MACHINE}-unknown-osf1mk X else X echo ${UNAME_MACHINE}-unknown-osf1 X fi X exit 0 ;; X parisc*:Lites*:*:*) X echo hppa1.1-hp-lites X exit 0 ;; X C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) X echo c1-convex-bsd X exit 0 ;; X C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) X if getsysinfo -f scalar_acc X then echo c32-convex-bsd X else echo c2-convex-bsd X fi X exit 0 ;; X C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) X echo c34-convex-bsd X exit 0 ;; X C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) X echo c38-convex-bsd X exit 0 ;; X C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) X echo c4-convex-bsd X exit 0 ;; X CRAY*X-MP:*:*:*) X echo xmp-cray-unicos X exit 0 ;; X CRAY*Y-MP:*:*:*) X echo ymp-cray-unicos${UNAME_RELEASE} X exit 0 ;; X CRAY*[A-Z]90:*:*:*) X echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ X | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ X -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ X exit 0 ;; X CRAY*TS:*:*:*) X echo t90-cray-unicos${UNAME_RELEASE} X exit 0 ;; X CRAY*T3E:*:*:*) X echo t3e-cray-unicosmk${UNAME_RELEASE} X exit 0 ;; X CRAY-2:*:*:*) X echo cray2-cray-unicos X exit 0 ;; X F300:UNIX_System_V:*:*) X FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'` X FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` X echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" X exit 0 ;; X F301:UNIX_System_V:*:*) X echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` X exit 0 ;; X hp3[0-9][05]:NetBSD:*:*) X echo m68k-hp-netbsd${UNAME_RELEASE} X exit 0 ;; X hp300:OpenBSD:*:*) X echo m68k-unknown-openbsd${UNAME_RELEASE} X exit 0 ;; X sparc*:BSD/OS:*:*) X echo sparc-unknown-bsdi${UNAME_RELEASE} X exit 0 ;; X i?86:BSD/386:*:* | i?86:BSD/OS:*:*) X echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} X exit 0 ;; X *:BSD/OS:*:*) X echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} X exit 0 ;; X *:FreeBSD:*:*) X if test -x /usr/bin/objformat; then X if test "elf" = "`/usr/bin/objformat`"; then X echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'` X exit 0 X fi X fi X echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` X exit 0 ;; X *:NetBSD:*:*) X echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` X exit 0 ;; X *:OpenBSD:*:*) X echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` X exit 0 ;; X i*:CYGWIN*:*) X echo ${UNAME_MACHINE}-pc-cygwin X exit 0 ;; X i*:MINGW*:*) X echo ${UNAME_MACHINE}-pc-mingw32 X exit 0 ;; X p*:CYGWIN*:*) X echo powerpcle-unknown-cygwin X exit 0 ;; X prep*:SunOS:5.*:*) X echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` X exit 0 ;; X *:GNU:*:*) X echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` X exit 0 ;; X *:Linux:*:*) X # uname on the ARM produces all sorts of strangeness, and we need to X # filter it out. X case "$UNAME_MACHINE" in X armv*) UNAME_MACHINE=$UNAME_MACHINE ;; X arm* | sa110*) UNAME_MACHINE="arm" ;; X esac X X # The BFD linker knows what the default object file format is, so X # first see if it will tell us. cd to the root directory to prevent X # problems with other programs or directories called `ld' in the path. X ld_help_string=`cd /; ld --help 2>&1` X ld_supported_emulations=`echo $ld_help_string \ X | sed -ne '/supported emulations:/!d X s/[ ][ ]*/ /g X s/.*supported emulations: *// X s/ .*// X p'` X case "$ld_supported_emulations" in X i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;; X i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;; X sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; X armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; X m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; X elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;; X esac X X if test "${UNAME_MACHINE}" = "alpha" ; then X sed 's/^ //' <$dummy.s X .globl main X .ent main X main: X .frame \$30,0,\$26,0 X .prologue 0 X .long 0x47e03d80 # implver $0 X lda \$2,259 X .long 0x47e20c21 # amask $2,$1 X srl \$1,8,\$2 X sll \$2,2,\$2 X sll \$0,3,\$0 X addl \$1,\$0,\$0 X addl \$2,\$0,\$0 X ret \$31,(\$26),1 X .end main EOF X LIBC="" X $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null X if test "$?" = 0 ; then X ./$dummy X case "$?" in X 7) X UNAME_MACHINE="alpha" X ;; X 15) X UNAME_MACHINE="alphaev5" X ;; X 14) X UNAME_MACHINE="alphaev56" X ;; X 10) X UNAME_MACHINE="alphapca56" X ;; X 16) X UNAME_MACHINE="alphaev6" X ;; X esac X X objdump --private-headers $dummy | \ X grep ld.so.1 > /dev/null X if test "$?" = 0 ; then X LIBC="libc1" X fi X fi X rm -f $dummy.s $dummy X echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 X elif test "${UNAME_MACHINE}" = "mips" ; then X cat >$dummy.c </dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 X rm -f $dummy.c $dummy X else X # Either a pre-BFD a.out linker (linux-gnuoldld) X # or one that does not give us useful --help. X # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. X # If ld does not provide *any* "supported emulations:" X # that means it is gnuoldld. X echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:" X test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 X X case "${UNAME_MACHINE}" in X i?86) X VENDOR=pc; X ;; X *) X VENDOR=unknown; X ;; X esac X # Determine whether the default compiler is a.out or elf X cat >$dummy.c < #ifdef __cplusplus X int main (int argc, char *argv[]) { #else X int main (argc, argv) int argc; char *argv[]; { #endif #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 X printf ("%s-${VENDOR}-linux-gnu\n", argv[1]); # else X printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); # endif # else X printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); # endif #else X printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]); #endif X return 0; } EOF X $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 X rm -f $dummy.c $dummy X fi ;; # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions # are messed up and put the nodename in both sysname and nodename. X i?86:DYNIX/ptx:4*:*) X echo i386-sequent-sysv4 X exit 0 ;; X i?86:UNIX_SV:4.2MP:2.*) X # Unixware is an offshoot of SVR4, but it has its own version X # number series starting with 2... X # I am not positive that other SVR4 systems won't match this, X # I just have to hope. -- rms. X # Use sysv4.2uw... so that sysv4* matches it. X echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} X exit 0 ;; X i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) X if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then X echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} X else X echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} X fi X exit 0 ;; X i?86:*:3.2:*) X if test -f /usr/options/cb.name; then X UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then X UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` X (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 X (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ X && UNAME_MACHINE=i586 X echo ${UNAME_MACHINE}-pc-sco$UNAME_REL X else X echo ${UNAME_MACHINE}-pc-sysv32 X fi X exit 0 ;; X i?86:UnixWare:*:*) X if /bin/uname -X 2>/dev/null >/dev/null ; then X (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ X && UNAME_MACHINE=i586 X fi X echo ${UNAME_MACHINE}-unixware-${UNAME_RELEASE}-${UNAME_VERSION} X exit 0 ;; X pc:*:*:*) X # uname -m prints for DJGPP always 'pc', but it prints nothing about X # the processor, so we play safe by assuming i386. X echo i386-pc-msdosdjgpp X exit 0 ;; X Intel:Mach:3*:*) X echo i386-pc-mach3 X exit 0 ;; X paragon:*:*:*) X echo i860-intel-osf1 X exit 0 ;; X i860:*:4.*:*) # i860-SVR4 X if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then X echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 X else # Add other i860-SVR4 vendors below as they are discovered. X echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 X fi X exit 0 ;; X mini*:CTIX:SYS*5:*) X # "miniframe" X echo m68010-convergent-sysv X exit 0 ;; X M68*:*:R3V[567]*:*) X test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; X 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) X OS_REL='' X test -r /etc/.relid \ X && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` X /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ X && echo i486-ncr-sysv4.3${OS_REL} && exit 0 X /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ X && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; X 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) X /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ X && echo i486-ncr-sysv4 && exit 0 ;; X m68*:LynxOS:2.*:*) X echo m68k-unknown-lynxos${UNAME_RELEASE} X exit 0 ;; X mc68030:UNIX_System_V:4.*:*) X echo m68k-atari-sysv4 X exit 0 ;; X i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*) X echo i386-unknown-lynxos${UNAME_RELEASE} X exit 0 ;; X TSUNAMI:LynxOS:2.*:*) X echo sparc-unknown-lynxos${UNAME_RELEASE} X exit 0 ;; X rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*) X echo rs6000-unknown-lynxos${UNAME_RELEASE} X exit 0 ;; X SM[BE]S:UNIX_SV:*:*) X echo mips-dde-sysv${UNAME_RELEASE} X exit 0 ;; X RM*:ReliantUNIX-*:*:*) X echo mips-sni-sysv4 X exit 0 ;; X RM*:SINIX-*:*:*) X echo mips-sni-sysv4 X exit 0 ;; X *:SINIX-*:*:*) X if uname -p 2>/dev/null >/dev/null ; then X UNAME_MACHINE=`(uname -p) 2>/dev/null` X echo ${UNAME_MACHINE}-sni-sysv4 X else X echo ns32k-sni-sysv X fi X exit 0 ;; X PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort X # says X echo i586-unisys-sysv4 X exit 0 ;; X *:UNIX_System_V:4*:FTX*) X # From Gerald Hewes . X # How about differentiating between stratus architectures? -djm X echo hppa1.1-stratus-sysv4 X exit 0 ;; X *:*:*:FTX*) X # From seanf@swdc.stratus.com. X echo i860-stratus-sysv4 X exit 0 ;; X mc68*:A/UX:*:*) X echo m68k-apple-aux${UNAME_RELEASE} X exit 0 ;; X news*:NEWS-OS:*:6*) X echo mips-sony-newsos6 X exit 0 ;; X R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R4000:UNIX_SV:*:*) X if [ -d /usr/nec ]; then X echo mips-nec-sysv${UNAME_RELEASE} X else X echo mips-unknown-sysv${UNAME_RELEASE} X fi X exit 0 ;; X BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. X echo powerpc-be-beos X exit 0 ;; X BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. X echo powerpc-apple-beos X exit 0 ;; X BePC:BeOS:*:*) # BeOS running on Intel PC compatible. X echo i586-pc-beos X exit 0 ;; X SX-4:SUPER-UX:*:*) X echo sx4-nec-superux${UNAME_RELEASE} X exit 0 ;; X SX-5:SUPER-UX:*:*) X echo sx5-nec-superux${UNAME_RELEASE} X exit 0 ;; X Power*:Rhapsody:*:*) X echo powerpc-apple-rhapsody${UNAME_RELEASE} X exit 0 ;; X *:Rhapsody:*:*) X echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} X exit 0 ;; esac X #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 X cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) X /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, X I don't know.... */ X printf ("mips-sony-bsd\n"); exit (0); #else #include X printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 X "4" #else X "" #endif X ); exit (0); #endif #endif X #if defined (__arm) && defined (__acorn) && defined (__unix) X printf ("arm-acorn-riscix"); exit (0); #endif X #if defined (hp300) && !defined (hpux) X printf ("m68k-hp-bsd\n"); exit (0); #endif X #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif X int version; X version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; X if (version < 4) X printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); X else X printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); X exit (0); #endif X #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) X printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) X printf ("ns32k-encore-mach\n"); exit (0); #else X printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif X #if defined (__386BSD__) X printf ("i386-pc-bsd\n"); exit (0); #endif X #if defined (sequent) #if defined (i386) X printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) X printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif X #if defined (_SEQUENT_) X struct utsname un; X X uname(&un); X X if (strncmp(un.version, "V2", 2) == 0) { X printf ("i386-sequent-ptx2\n"); exit (0); X } X if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ X printf ("i386-sequent-ptx1\n"); exit (0); X } X printf ("i386-sequent-ptx\n"); exit (0); X #endif X #if defined (vax) #if !defined (ultrix) X printf ("vax-dec-bsd\n"); exit (0); #else X printf ("vax-dec-ultrix\n"); exit (0); #endif #endif X #if defined (alliant) && defined (i860) X printf ("i860-alliant-bsd\n"); exit (0); #endif X X exit (1); } EOF X $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0 rm -f $dummy.c $dummy X # Apollos put the system type in the environment. X test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } X # Convex versions that predate uname can use getsysinfo(1) X if [ -x /usr/convex/getsysinfo ] then X case `getsysinfo -f cpu_type` in X c1*) X echo c1-convex-bsd X exit 0 ;; X c2*) X if getsysinfo -f scalar_acc X then echo c32-convex-bsd X else echo c2-convex-bsd X fi X exit 0 ;; X c34*) X echo c34-convex-bsd X exit 0 ;; X c38*) X echo c38-convex-bsd X exit 0 ;; X c4*) X echo c4-convex-bsd X exit 0 ;; X esac fi X #echo '(Unable to guess system type)' 1>&2 X exit 1 SHAR_EOF $shar_touch -am 0420192299 'tar-1.13/config.guess' && chmod 0444 'tar-1.13/config.guess' || $echo 'restore of' 'tar-1.13/config.guess' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/config.guess:' 'MD5 check failed' ba1c02e4530453e06dc7eecdff82c2ca tar-1.13/config.guess SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/config.guess'`" test 29612 -eq "$shar_count" || $echo 'tar-1.13/config.guess:' 'original size' '29612,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/config.h.in ============== if test -f 'tar-1.13/config.h.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/config.h.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/config.h.in' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/config.h.in' && /* config.h.in. Generated automatically from configure.in by autoheader. */ X /* Define if on AIX 3. X System headers sometimes define this. X We just want to avoid a redefinition error message. */ #ifndef _ALL_SOURCE #undef _ALL_SOURCE #endif X /* Define if using alloca.c. */ #undef C_ALLOCA X /* Define to empty if the keyword does not work. */ #undef const X /* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. X This function is required for alloca.c support on those systems. */ #undef CRAY_STACKSEG_END X /* Define to `int' if doesn't define. */ #undef gid_t X /* Define if you have alloca, as a function or macro. */ #undef HAVE_ALLOCA X /* Define if you have and it should be used (not on Ultrix). */ #undef HAVE_ALLOCA_H X /* Define if you don't have vprintf but do have _doprnt. */ #undef HAVE_DOPRNT X /* Define if your system has a working fnmatch function. */ #undef HAVE_FNMATCH X /* Define if you have a working `mmap' system call. */ #undef HAVE_MMAP X /* Define if your struct stat has st_blksize. */ #undef HAVE_ST_BLKSIZE X /* Define if your struct stat has st_blocks. */ #undef HAVE_ST_BLOCKS X /* Define if you have the vprintf function. */ #undef HAVE_VPRINTF X /* Define as __inline if that's what the C compiler calls it. */ #undef inline X /* Define if major, minor, and makedev are declared in . */ #undef MAJOR_IN_MKDEV X /* Define if major, minor, and makedev are declared in . */ #undef MAJOR_IN_SYSMACROS X /* Define if on MINIX. */ #undef _MINIX X /* Define to `int' if doesn't define. */ #undef mode_t X /* Define to `long' if doesn't define. */ #undef off_t X /* Define to `int' if doesn't define. */ #undef pid_t X /* Define if the system does not provide POSIX.1 features except X with this defined. */ #undef _POSIX_1_SOURCE X /* Define if you need to in order for stat and other things to work. */ #undef _POSIX_SOURCE X /* Define as the return type of signal handlers (int or void). */ #undef RETSIGTYPE X /* Define to `unsigned' if doesn't define. */ #undef size_t X /* If using the C implementation of alloca, define if you know the X direction of stack growth for your system; otherwise it will be X automatically deduced at run-time. X STACK_DIRECTION > 0 => grows toward higher addresses X STACK_DIRECTION < 0 => grows toward lower addresses X STACK_DIRECTION = 0 => direction of growth unknown X */ #undef STACK_DIRECTION X /* Define if the `S_IS*' macros in do not work properly. */ #undef STAT_MACROS_BROKEN X /* Define if you have the ANSI C header files. */ #undef STDC_HEADERS X /* Define if you can safely include both and . */ #undef TIME_WITH_SYS_TIME X /* Define to `int' if doesn't define. */ #undef uid_t X /* This is unconditionally defined for setting a GNU environment. */ #undef _GNU_SOURCE X /* Define to `int' if doesn't define. */ #undef daddr_t X /* Define to a string giving the full name of the default archive file. */ #undef DEFAULT_ARCHIVE X /* Define to a number giving the default blocking size for archives. */ #undef DEFAULT_BLOCKING X /* Define to 1 if density may be indicated by [lmh] at end of device. */ #undef DENSITY_LETTER X /* Define to a string giving the prefix of the default device, without the X part specifying the unit and density. */ #undef DEVICE_PREFIX X /* Define to 1 if you lack a 3-argument version of open, and want to X emulate it with system calls you do have. */ #undef EMUL_OPEN3 X /* Define to 1 if you have getgrgid(3). */ #undef HAVE_GETGRGID X /* Define to 1 if you have getpwuid(3). */ #undef HAVE_GETPWUID X /* Define to 1 if mknod function is available. */ #undef HAVE_MKNOD X /* Define if struct stat has a char st_fstype[] member. */ #undef HAVE_ST_FSTYPE_STRING X /* Define if `union wait' is the type of the first arg to wait functions. */ #undef HAVE_UNION_WAIT X /* Define to 1 if utime.h exists and declares struct utimbuf. */ #undef HAVE_UTIME_H X /* Define to `int' if doesn't define. */ #undef major_t X /* Define to `int' if doesn't define. */ #undef minor_t X /* Define to mt_model (v.g., for DG/UX), else to mt_type. */ #undef MTIO_CHECK_FIELD X /* Define to the full path of your rsh, if any. */ #undef REMOTE_SHELL X /* Define to `int' if doesn't define. */ #undef ssize_t X /* The number of bytes in a long long. */ #undef SIZEOF_LONG_LONG X /* The number of bytes in a unsigned long. */ #undef SIZEOF_UNSIGNED_LONG X /* Define if you have the __argz_count function. */ #undef HAVE___ARGZ_COUNT X /* Define if you have the __argz_next function. */ #undef HAVE___ARGZ_NEXT X /* Define if you have the __argz_stringify function. */ #undef HAVE___ARGZ_STRINGIFY X /* Define if you have the alarm function. */ #undef HAVE_ALARM X /* Define if you have the dcgettext function. */ #undef HAVE_DCGETTEXT X /* Define if you have the execlp function. */ #undef HAVE_EXECLP X /* Define if you have the fsync function. */ #undef HAVE_FSYNC X /* Define if you have the ftime function. */ #undef HAVE_FTIME X /* Define if you have the ftruncate function. */ #undef HAVE_FTRUNCATE X /* Define if you have the getcwd function. */ #undef HAVE_GETCWD X /* Define if you have the getpagesize function. */ #undef HAVE_GETPAGESIZE X /* Define if you have the isascii function. */ #undef HAVE_ISASCII X /* Define if you have the lchown function. */ #undef HAVE_LCHOWN X /* Define if you have the localtime_r function. */ #undef HAVE_LOCALTIME_R X /* Define if you have the memset function. */ #undef HAVE_MEMSET X /* Define if you have the mkdir function. */ #undef HAVE_MKDIR X /* Define if you have the mkfifo function. */ #undef HAVE_MKFIFO X /* Define if you have the munmap function. */ #undef HAVE_MUNMAP X /* Define if you have the nap function. */ #undef HAVE_NAP X /* Define if you have the napms function. */ #undef HAVE_NAPMS X /* Define if you have the poll function. */ #undef HAVE_POLL X /* Define if you have the putenv function. */ #undef HAVE_PUTENV X /* Define if you have the rename function. */ #undef HAVE_RENAME X /* Define if you have the rmdir function. */ #undef HAVE_RMDIR X /* Define if you have the select function. */ #undef HAVE_SELECT X /* Define if you have the setenv function. */ #undef HAVE_SETENV X /* Define if you have the setlocale function. */ #undef HAVE_SETLOCALE X /* Define if you have the stpcpy function. */ #undef HAVE_STPCPY X /* Define if you have the strcasecmp function. */ #undef HAVE_STRCASECMP X /* Define if you have the strchr function. */ #undef HAVE_STRCHR X /* Define if you have the strdup function. */ #undef HAVE_STRDUP X /* Define if you have the strerror function. */ #undef HAVE_STRERROR X /* Define if you have the strstr function. */ #undef HAVE_STRSTR X /* Define if you have the strtol function. */ #undef HAVE_STRTOL X /* Define if you have the strtoul function. */ #undef HAVE_STRTOUL X /* Define if you have the strtoull function. */ #undef HAVE_STRTOULL X /* Define if you have the strtoumax function. */ #undef HAVE_STRTOUMAX X /* Define if you have the usleep function. */ #undef HAVE_USLEEP X /* Define if you have the header file. */ #undef HAVE_ARGZ_H X /* Define if you have the header file. */ #undef HAVE_DIRENT_H X /* Define if you have the header file. */ #undef HAVE_FCNTL_H X /* Define if you have the header file. */ #undef HAVE_LIMITS_H X /* Define if you have the header file. */ #undef HAVE_LINUX_FD_H X /* Define if you have the header file. */ #undef HAVE_LOCALE_H X /* Define if you have the header file. */ #undef HAVE_MALLOC_H X /* Define if you have the header file. */ #undef HAVE_MEMORY_H X /* Define if you have the header file. */ #undef HAVE_NDIR_H X /* Define if you have the header file. */ #undef HAVE_NET_ERRNO_H X /* Define if you have the header file. */ #undef HAVE_NETDB_H X /* Define if you have the header file. */ #undef HAVE_NL_TYPES_H X /* Define if you have the header file. */ #undef HAVE_POLL_H X /* Define if you have the header file. */ #undef HAVE_SGTTY_H X /* Define if you have the header file. */ #undef HAVE_STDLIB_H X /* Define if you have the header file. */ #undef HAVE_STRING_H X /* Define if you have the header file. */ #undef HAVE_STROPTS_H X /* Define if you have the header file. */ #undef HAVE_SYS_BUF_H X /* Define if you have the header file. */ #undef HAVE_SYS_DEVICE_H X /* Define if you have the header file. */ #undef HAVE_SYS_DIR_H X /* Define if you have the header file. */ #undef HAVE_SYS_GENTAPE_H X /* Define if you have the header file. */ #undef HAVE_SYS_INET_H X /* Define if you have the header file. */ #undef HAVE_SYS_IO_TRIOCTL_H X /* Define if you have the header file. */ #undef HAVE_SYS_IOCCOM_H X /* Define if you have the header file. */ #undef HAVE_SYS_MTIO_H X /* Define if you have the header file. */ #undef HAVE_SYS_NDIR_H X /* Define if you have the header file. */ #undef HAVE_SYS_PARAM_H X /* Define if you have the header file. */ #undef HAVE_SYS_TAPE_H X /* Define if you have the header file. */ #undef HAVE_SYS_TIME_H X /* Define if you have the header file. */ #undef HAVE_SYS_TIMEB_H X /* Define if you have the header file. */ #undef HAVE_SYS_TPRINTF_H X /* Define if you have the header file. */ #undef HAVE_SYS_WAIT_H X /* Define if you have the header file. */ #undef HAVE_UNISTD_H X /* Define if you have the i library (-li). */ #undef HAVE_LIBI X /* Define if you have the intl library (-lintl). */ #undef HAVE_LIBINTL X /* Define if you have the nsl library (-lnsl). */ #undef HAVE_LIBNSL X /* Define if you have the socket library (-lsocket). */ #undef HAVE_LIBSOCKET X /* Name of package */ #undef PACKAGE X /* Version number of package */ #undef VERSION X /* Number of bits in a file offset, on hosts where this is settable. X case in X # HP-UX 10.20 and later X hpux10.2-90-9* | hpux11-9* | hpux2-90-9*) X ac_cv_sys_file_offset_bits=64 ;; X esac */ #undef _FILE_OFFSET_BITS X /* Define to make fseeko etc. visible, on some hosts. */ #undef _LARGEFILE_SOURCE X /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES X /* Define if compiler has function prototypes */ #undef PROTOTYPES X /* Define if exists, doesn't clash with , X and declares uintmax_t. */ #undef HAVE_INTTYPES_H X /* Define if there is a member named d_ino in the struct describing X directory headers. */ #undef D_INO_IN_DIRENT X /* Define if you have the unsigned long long type. */ #undef HAVE_UNSIGNED_LONG_LONG X /* Define to `unsigned long' or `unsigned long long' X if doesn't define. */ #undef uintmax_t X /* Define if the malloc check has been performed. */ #undef HAVE_DONE_WORKING_MALLOC_CHECK X /* Define to rpl_malloc if the replacement function should be used. */ #undef malloc X /* Define to rpl_mktime if the replacement function should be used. */ #undef mktime X /* Define if the realloc check has been performed. */ #undef HAVE_DONE_WORKING_REALLOC_CHECK X /* Define to rpl_realloc if the replacement function should be used. */ #undef realloc X /* Define if using the dmalloc debugging malloc package */ #undef WITH_DMALLOC X /* Define to 1 if you have the stpcpy function. */ #undef HAVE_STPCPY X /* Define if your locale.h file contains LC_MESSAGES. */ #undef HAVE_LC_MESSAGES X /* Define to 1 if NLS is requested. */ #undef ENABLE_NLS X /* Define to 1 if you have gettext and don't want to use GNU gettext. */ #undef HAVE_GETTEXT X /* Define as 1 if you have catgets and don't want to use GNU gettext. */ #undef HAVE_CATGETS X SHAR_EOF $shar_touch -am 0702194299 'tar-1.13/config.h.in' && chmod 0664 'tar-1.13/config.h.in' || $echo 'restore of' 'tar-1.13/config.h.in' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/config.h.in:' 'MD5 check failed' 65df91fe74e14bcf9a1737d8e6eed51b tar-1.13/config.h.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/config.h.in'`" test 11992 -eq "$shar_count" || $echo 'tar-1.13/config.h.in:' 'original size' '11992,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/config.sub ============== if test -f 'tar-1.13/config.sub' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/config.sub' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/config.sub' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/config.sub' && #! /bin/sh # Configuration validation subroutine script, version 1.1. # Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc. # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file 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 of the License, or # (at your option) any later version. # # This program 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 program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. X # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. X # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. X # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. X # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. X if [ x$1 = x ] then X echo Configuration name missing. 1>&2 X echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 X echo "or $0 ALIAS" 1>&2 X echo where ALIAS is a recognized configuration type. 1>&2 X exit 1 fi X # First pass through any local machine types. case $1 in X *local*) X echo $1 X exit 0 X ;; X *) X ;; esac X # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in X linux-gnu*) X os=-$maybe_os X basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` X ;; X *) X basic_machine=`echo $1 | sed 's/-[^-]*$//'` X if [ $basic_machine != $1 ] X then os=`echo $1 | sed 's/.*-/-/'` X else os=; fi X ;; esac X ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in X -sun*os*) X # Prevent following clause from handling this invalid input. X ;; X -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ X -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ X -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ X -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ X -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ X -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ X -apple) X os= X basic_machine=$1 X ;; X -hiux*) X os=-hiuxwe2 X ;; X -sco5) X os=sco3.2v5 X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` X ;; X -sco4) X os=-sco3.2v4 X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` X ;; X -sco3.2.[4-9]*) X os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` X ;; X -sco3.2v[4-9]*) X # Don't forget version if it is 3.2v4 or newer. X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` X ;; X -sco*) X os=-sco3.2v2 X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` X ;; X -isc) X os=-isc2.2 X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` X ;; X -clix*) X basic_machine=clipper-intergraph X ;; X -isc*) X basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` X ;; X -lynx*) X os=-lynxos X ;; X -ptx*) X basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` X ;; X -windowsnt*) X os=`echo $os | sed -e 's/windowsnt/winnt/'` X ;; X -psos*) X os=-psos X ;; esac X # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in X # Recognize the basic CPU types without company name. X # Some are omitted here because they have special meanings below. X tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ X | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ X | 580 | i960 | h8300 \ X | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w \ X | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \ X | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \ X | 1750a | dsp16xx | pdp11 | mips64 | mipsel | mips64el \ X | mips64orion | mips64orionel | mipstx39 | mipstx39el \ X | sparc | sparclet | sparclite | sparc64 | v850) X basic_machine=$basic_machine-unknown X ;; X # We use `pc' rather than `unknown' X # because (1) that's what they normally are, and X # (2) the word "unknown" tends to confuse beginning users. X i[34567]86) X basic_machine=$basic_machine-pc X ;; X # Object if more than one company name word. X *-*-*) X echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 X exit 1 X ;; X # Recognize the basic CPU types with company name. X vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \ X | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ X | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ X | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \ X | xmp-* | ymp-* \ X | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ X | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67] \ X | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ X | clipper-* | orion-* \ X | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ X | sparc64-* | mips64-* | mipsel-* \ X | mips64el-* | mips64orion-* | mips64orionel-* \ X | mipstx39-* | mipstx39el-* \ X | f301-* | armv*-*) X ;; X # Recognize the various machine names and aliases which stand X # for a CPU type and a company and sometimes even an OS. X 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) X basic_machine=m68000-att X ;; X 3b*) X basic_machine=we32k-att X ;; X alliant | fx80) X basic_machine=fx80-alliant X ;; X altos | altos3068) X basic_machine=m68k-altos X ;; X am29k) X basic_machine=a29k-none X os=-bsd X ;; X amdahl) X basic_machine=580-amdahl X os=-sysv X ;; X amiga | amiga-*) X basic_machine=m68k-cbm X ;; X amigaos | amigados) X basic_machine=m68k-cbm X os=-amigaos X ;; X amigaunix | amix) X basic_machine=m68k-cbm X os=-sysv4 X ;; X apollo68) X basic_machine=m68k-apollo X os=-sysv X ;; X aux) X basic_machine=m68k-apple X os=-aux X ;; X balance) X basic_machine=ns32k-sequent X os=-dynix X ;; X convex-c1) X basic_machine=c1-convex X os=-bsd X ;; X convex-c2) X basic_machine=c2-convex X os=-bsd X ;; X convex-c32) X basic_machine=c32-convex X os=-bsd X ;; X convex-c34) X basic_machine=c34-convex X os=-bsd X ;; X convex-c38) X basic_machine=c38-convex X os=-bsd X ;; X cray | ymp) X basic_machine=ymp-cray X os=-unicos X ;; X cray2) X basic_machine=cray2-cray X os=-unicos X ;; X [ctj]90-cray) X basic_machine=c90-cray X os=-unicos X ;; X crds | unos) X basic_machine=m68k-crds X ;; X da30 | da30-*) X basic_machine=m68k-da30 X ;; X decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) X basic_machine=mips-dec X ;; X delta | 3300 | motorola-3300 | motorola-delta \ X | 3300-motorola | delta-motorola) X basic_machine=m68k-motorola X ;; X delta88) X basic_machine=m88k-motorola X os=-sysv3 X ;; X dpx20 | dpx20-*) X basic_machine=rs6000-bull X os=-bosx X ;; X dpx2* | dpx2*-bull) X basic_machine=m68k-bull X os=-sysv3 X ;; X ebmon29k) X basic_machine=a29k-amd X os=-ebmon X ;; X elxsi) X basic_machine=elxsi-elxsi X os=-bsd X ;; X encore | umax | mmax) X basic_machine=ns32k-encore X ;; X fx2800) X basic_machine=i860-alliant X ;; X genix) X basic_machine=ns32k-ns X ;; X gmicro) X basic_machine=tron-gmicro X os=-sysv X ;; X h3050r* | hiux*) X basic_machine=hppa1.1-hitachi X os=-hiuxwe2 X ;; X h8300hms) X basic_machine=h8300-hitachi X os=-hms X ;; X harris) X basic_machine=m88k-harris X os=-sysv3 X ;; X hp300-*) X basic_machine=m68k-hp X ;; X hp300bsd) X basic_machine=m68k-hp X os=-bsd X ;; X hp300hpux) X basic_machine=m68k-hp X os=-hpux X ;; X hp9k2[0-9][0-9] | hp9k31[0-9]) X basic_machine=m68000-hp X ;; X hp9k3[2-9][0-9]) X basic_machine=m68k-hp X ;; X hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) X basic_machine=hppa1.1-hp X ;; X hp9k8[0-9][0-9] | hp8[0-9][0-9]) X basic_machine=hppa1.0-hp X ;; X hppa-next) X os=-nextstep3 X ;; X hp3k9[0-9][0-9] | hp9[0-9][0-9]) X basic_machine=hppa1.0-hp X os=-mpeix X ;; X hp3k9[0-9][0-9] | hp9[0-9][0-9]) X basic_machine=hppa1.0-hp X os=-mpeix X ;; X i370-ibm* | ibm*) X basic_machine=i370-ibm X os=-mvs X ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? X i[34567]86v32) X basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` X os=-sysv32 X ;; X i[34567]86v4*) X basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` X os=-sysv4 X ;; X i[34567]86v) X basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` X os=-sysv X ;; X i[34567]86sol2) X basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` X os=-solaris2 X ;; X iris | iris4d) X basic_machine=mips-sgi X case $os in X -irix*) X ;; X *) X os=-irix4 X ;; X esac X ;; X isi68 | isi) X basic_machine=m68k-isi X os=-sysv X ;; X m88k-omron*) X basic_machine=m88k-omron X ;; X magnum | m3230) X basic_machine=mips-mips X os=-sysv X ;; X merlin) X basic_machine=ns32k-utek X os=-sysv X ;; X miniframe) X basic_machine=m68000-convergent X ;; X mipsel*-linux*) X basic_machine=mipsel-unknown X os=-linux-gnu X ;; X mips*-linux*) X basic_machine=mips-unknown X os=-linux-gnu X ;; X mips3*-*) X basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` X ;; X mips3*) X basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown X ;; X ncr3000) X basic_machine=i486-ncr X os=-sysv4 X ;; X netwinder) X basic_machine=armv4l-corel X os=-linux X ;; X news | news700 | news800 | news900) X basic_machine=m68k-sony X os=-newsos X ;; X news1000) X basic_machine=m68030-sony X os=-newsos X ;; X news-3600 | risc-news) X basic_machine=mips-sony X os=-newsos X ;; X next | m*-next ) X basic_machine=m68k-next X case $os in X -nextstep* ) X ;; X -ns2*) X os=-nextstep2 X ;; X *) X os=-nextstep3 X ;; X esac X ;; X nh3000) X basic_machine=m68k-harris X os=-cxux X ;; X nh[45]000) X basic_machine=m88k-harris X os=-cxux X ;; X nindy960) X basic_machine=i960-intel X os=-nindy X ;; X np1) X basic_machine=np1-gould X ;; X pa-hitachi) X basic_machine=hppa1.1-hitachi X os=-hiuxwe2 X ;; X paragon) X basic_machine=i860-intel X os=-osf X ;; X pbd) X basic_machine=sparc-tti X ;; X pbb) X basic_machine=m68k-tti X ;; X pc532 | pc532-*) X basic_machine=ns32k-pc532 X ;; X pentium | p5 | k5 | k6 | nexen) X basic_machine=i586-pc X ;; X pentiumpro | p6 | 6x86) X basic_machine=i686-pc X ;; X pentiumii | pentium2) X basic_machine=i786-pc X ;; X pentium-* | p5-* | k5-* | k6-* | nexen-*) X basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` X ;; X pentiumpro-* | p6-* | 6x86-*) X basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` X ;; X pentiumii-* | pentium2-*) X basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` X ;; X pn) X basic_machine=pn-gould X ;; X power) basic_machine=rs6000-ibm X ;; X ppc) basic_machine=powerpc-unknown X ;; X ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` X ;; X ppcle | powerpclittle | ppc-le | powerpc-little) X basic_machine=powerpcle-unknown X ;; X ppcle-* | powerpclittle-*) X basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` X ;; X ps2) X basic_machine=i386-ibm X ;; X rm[46]00) X basic_machine=mips-siemens X ;; X rtpc | rtpc-*) X basic_machine=romp-ibm X ;; X sequent) X basic_machine=i386-sequent X ;; X sh) X basic_machine=sh-hitachi X os=-hms X ;; X sps7) X basic_machine=m68k-bull X os=-sysv2 X ;; X spur) X basic_machine=spur-unknown X ;; X sun2) X basic_machine=m68000-sun X ;; X sun2os3) X basic_machine=m68000-sun X os=-sunos3 X ;; X sun2os4) X basic_machine=m68000-sun X os=-sunos4 X ;; X sun3os3) X basic_machine=m68k-sun X os=-sunos3 X ;; X sun3os4) X basic_machine=m68k-sun X os=-sunos4 X ;; X sun4os3) X basic_machine=sparc-sun X os=-sunos3 X ;; X sun4os4) X basic_machine=sparc-sun X os=-sunos4 X ;; X sun4sol2) X basic_machine=sparc-sun X os=-solaris2 X ;; X sun3 | sun3-*) X basic_machine=m68k-sun X ;; X sun4) X basic_machine=sparc-sun X ;; X sun386 | sun386i | roadrunner) X basic_machine=i386-sun X ;; X symmetry) X basic_machine=i386-sequent X os=-dynix X ;; X tx39) X basic_machine=mipstx39-unknown X ;; X tx39el) X basic_machine=mipstx39el-unknown X ;; X tower | tower-32) X basic_machine=m68k-ncr X ;; X udi29k) X basic_machine=a29k-amd X os=-udi X ;; X ultra3) X basic_machine=a29k-nyu X os=-sym1 X ;; X vaxv) X basic_machine=vax-dec X os=-sysv X ;; X vms) X basic_machine=vax-dec X os=-vms X ;; X vpp*|vx|vx-*) X basic_machine=f301-fujitsu X ;; X vxworks960) X basic_machine=i960-wrs X os=-vxworks X ;; X vxworks68) X basic_machine=m68k-wrs X os=-vxworks X ;; X vxworks29k) X basic_machine=a29k-wrs X os=-vxworks X ;; X xmp) X basic_machine=xmp-cray X os=-unicos X ;; X xps | xps100) X basic_machine=xps100-honeywell X ;; X *mint | *MiNT) X basic_machine=m68k-atari X os=-mint X ;; X none) X basic_machine=none-none X os=-none X ;; X # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. X mips) X if [ x$os = x-linux-gnu ]; then X basic_machine=mips-unknown X else X basic_machine=mips-mips X fi X ;; X romp) X basic_machine=romp-ibm X ;; X rs6000) X basic_machine=rs6000-ibm X ;; X vax) X basic_machine=vax-dec X ;; X pdp11) X basic_machine=pdp11-dec X ;; X we32k) X basic_machine=we32k-att X ;; X sparc) X basic_machine=sparc-sun X ;; X cydra) X basic_machine=cydra-cydrome X ;; X orion) X basic_machine=orion-highlevel X ;; X orion105) X basic_machine=clipper-highlevel X ;; X *) X echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 X exit 1 X ;; esac X # Here we canonicalize certain aliases for manufacturers. case $basic_machine in X *-digital*) X basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` X ;; X *-commodore*) X basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` X ;; X *) X ;; esac X # Decode manufacturer-specific aliases for certain operating systems. X if [ x"$os" != x"" ] then case $os in X # First match some system type aliases X # that might get confused with valid system types. X # -solaris* is a basic system type, with this one exception. X -solaris1 | -solaris1.*) X os=`echo $os | sed -e 's|solaris1|sunos4|'` X ;; X -solaris) X os=-solaris2 X ;; X -svr4*) X os=-sysv4 X ;; X -unixware*) X os=-sysv4.2uw X ;; X -gnu/linux*) X os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` X ;; X # First accept the basic system types. X # The portable systems comes first. X # Each alternative MUST END IN A *, to match a version number. X # -sysv* is not here because it comes later, after sysvr4. X -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ X | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ X | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ X | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ X | -aos* \ X | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ X | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ X | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ X | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ X | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ X | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ X | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ X | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -rhapsody* \ X | -openstep* | -mpeix* | -oskit*) X # Remember, each alternative MUST END IN *, to match a version number. X ;; X -linux*) X os=`echo $os | sed -e 's|linux|linux-gnu|'` X ;; X -sunos5*) X os=`echo $os | sed -e 's|sunos5|solaris2|'` X ;; X -sunos6*) X os=`echo $os | sed -e 's|sunos6|solaris3|'` X ;; X -osfrose*) X os=-osfrose X ;; X -osf*) X os=-osf X ;; X -utek*) X os=-bsd X ;; X -dynix*) X os=-bsd X ;; X -acis*) X os=-aos X ;; X -ctix* | -uts*) X os=-sysv X ;; X -ns2 ) X os=-nextstep2 X ;; X # Preserve the version number of sinix5. X -sinix5.*) X os=`echo $os | sed -e 's|sinix|sysv|'` X ;; X -sinix*) X os=-sysv4 X ;; X -triton*) X os=-sysv3 X ;; X -oss*) X os=-sysv3 X ;; X -svr4) X os=-sysv4 X ;; X -svr3) X os=-sysv3 X ;; X -sysvr4) X os=-sysv4 X ;; X # This must come after -sysvr4. X -sysv*) X ;; X -xenix) X os=-xenix X ;; X -*mint | -*MiNT) X os=-mint X ;; X -none) X ;; X *) X # Get rid of the `-' at the beginning of $os. X os=`echo $os | sed 's/[^-]*-//'` X echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 X exit 1 X ;; esac else X # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. X # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. X case $basic_machine in X *-acorn) X os=-riscix1.2 X ;; X arm*-corel) X os=-linux X ;; X arm*-semi) X os=-aout X ;; X pdp11-*) X os=-none X ;; X *-dec | vax-*) X os=-ultrix4.2 X ;; X m68*-apollo) X os=-domain X ;; X i386-sun) X os=-sunos4.0.2 X ;; X m68000-sun) X os=-sunos3 X # This also exists in the configure program, but was not the X # default. X # os=-sunos4 X ;; X *-tti) # must be before sparc entry or we get the wrong os. X os=-sysv3 X ;; X sparc-* | *-sun) X os=-sunos4.1.1 X ;; X *-be) X os=-beos X ;; X *-ibm) X os=-aix X ;; X *-hp) X os=-hpux X ;; X *-hitachi) X os=-hiux X ;; X i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) X os=-sysv X ;; X *-cbm) X os=-amigaos X ;; X *-dg) X os=-dgux X ;; X *-dolphin) X os=-sysv3 X ;; X m68k-ccur) X os=-rtu X ;; X m88k-omron*) X os=-luna X ;; X *-next ) X os=-nextstep X ;; X *-sequent) X os=-ptx X ;; X *-crds) X os=-unos X ;; X *-ns) X os=-genix X ;; X i370-*) X os=-mvs X ;; X *-next) X os=-nextstep3 X ;; X *-gould) X os=-sysv X ;; X *-highlevel) X os=-bsd X ;; X *-encore) X os=-bsd X ;; X *-sgi) X os=-irix X ;; X *-siemens) X os=-sysv4 X ;; X *-masscomp) X os=-rtu X ;; X f301-fujitsu) X os=-uxpv X ;; X *-atari*) X os=-mint X ;; X *) X os=-none X ;; esac fi X # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in X *-unknown) X case $os in X -riscix*) X vendor=acorn X ;; X -sunos*) X vendor=sun X ;; X -aix*) X vendor=ibm X ;; X -hpux*) X vendor=hp X ;; X -mpeix*) X vendor=hp X ;; X -mpeix*) X vendor=hp X ;; X -hiux*) X vendor=hitachi X ;; X -unos*) X vendor=crds X ;; X -dgux*) X vendor=dg X ;; X -luna*) X vendor=omron X ;; X -genix*) X vendor=ns X ;; X -mvs*) X vendor=ibm X ;; X -ptx*) X vendor=sequent X ;; X -vxsim* | -vxworks*) X vendor=wrs X ;; X -aux*) X vendor=apple X ;; X -*mint | -*MiNT) X vendor=atari X ;; X esac X basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` X ;; esac X echo $basic_machine$os SHAR_EOF $shar_touch -am 0420192299 'tar-1.13/config.sub' && chmod 0444 'tar-1.13/config.sub' || $echo 'restore of' 'tar-1.13/config.sub' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/config.sub:' 'MD5 check failed' 4b07b1f3926ad7c54599dcdd64d0a8aa tar-1.13/config.sub SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/config.sub'`" test 20453 -eq "$shar_count" || $echo 'tar-1.13/config.sub:' 'original size' '20453,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/configure ============== if test -f 'tar-1.13/configure' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/configure' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/configure' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/configure' && #! /bin/sh X # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. X # Defaults: ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_help="$ac_help X --disable-largefile omit support for large files" ac_help="$ac_help X --with-dmalloc use dmalloc, as in X ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz" ac_help="$ac_help X --disable-nls do not use Native Language Support" ac_help="$ac_help X --with-included-gettext use the GNU gettext library included here" ac_help="$ac_help X --with-catgets use catgets functions if available" X # Initialize some variables set by options. # The variables have the same names as the options, with # dashes changed to underlines. build=NONE cache_file=./config.cache exec_prefix=NONE host=NONE no_create= nonopt=NONE no_recursion= prefix=NONE 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' mandir='${prefix}/man' X # Initialize some other variables. subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. ac_max_here_lines=12 X ac_prev= for ac_option do X X # If the previous option needs an argument, assign it. X if test -n "$ac_prev"; then X eval "$ac_prev=\$ac_option" X ac_prev= X continue X fi X X case "$ac_option" in X -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; X *) ac_optarg= ;; X esac X X # Accept the important Cygnus configure options, so we can diagnose typos. X X case "$ac_option" in X X -bindir | --bindir | --bindi | --bind | --bin | --bi) X ac_prev=bindir ;; X -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) X bindir="$ac_optarg" ;; X X -build | --build | --buil | --bui | --bu) X ac_prev=build ;; X -build=* | --build=* | --buil=* | --bui=* | --bu=*) X build="$ac_optarg" ;; X X -cache-file | --cache-file | --cache-fil | --cache-fi \ X | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) X ac_prev=cache_file ;; X -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ X | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) X cache_file="$ac_optarg" ;; X X -datadir | --datadir | --datadi | --datad | --data | --dat | --da) X ac_prev=datadir ;; X -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ X | --da=*) X datadir="$ac_optarg" ;; X X -disable-* | --disable-*) X ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` X # Reject names that are not valid shell variable names. X if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then X { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } X fi X ac_feature=`echo $ac_feature| sed 's/-/_/g'` X eval "enable_${ac_feature}=no" ;; X X -enable-* | --enable-*) X ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` X # Reject names that are not valid shell variable names. X if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then X { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } X fi X ac_feature=`echo $ac_feature| sed 's/-/_/g'` X case "$ac_option" in X *=*) ;; X *) ac_optarg=yes ;; X esac X eval "enable_${ac_feature}='$ac_optarg'" ;; X X -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ X | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ X | --exec | --exe | --ex) X ac_prev=exec_prefix ;; X -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ X | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ X | --exec=* | --exe=* | --ex=*) X exec_prefix="$ac_optarg" ;; X X -gas | --gas | --ga | --g) X # Obsolete; use --with-gas. X with_gas=yes ;; X X -help | --help | --hel | --he) X # Omit some internal or obsolete options to make the list less imposing. X # This message is too long to be a string in the A/UX 3.1 sh. X cat << EOF Usage: configure [options] [host] Options: [defaults in brackets after descriptions] Configuration: X --cache-file=FILE cache test results in FILE X --help print this message X --no-create do not create output files X --quiet, --silent do not print \`checking...' messages X --version print the version of autoconf that created configure Directory and file names: X --prefix=PREFIX install architecture-independent files in PREFIX X [$ac_default_prefix] X --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX X [same as prefix] X --bindir=DIR user executables in DIR [EPREFIX/bin] X --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] X --libexecdir=DIR program executables in DIR [EPREFIX/libexec] X --datadir=DIR read-only architecture-independent data in DIR X [PREFIX/share] X --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] X --sharedstatedir=DIR modifiable architecture-independent data in DIR X [PREFIX/com] X --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] X --libdir=DIR object code libraries in DIR [EPREFIX/lib] X --includedir=DIR C header files in DIR [PREFIX/include] X --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] X --infodir=DIR info documentation in DIR [PREFIX/info] X --mandir=DIR man documentation in DIR [PREFIX/man] X --srcdir=DIR find the sources in DIR [configure dir or ..] X --program-prefix=PREFIX prepend PREFIX to installed program names X --program-suffix=SUFFIX append SUFFIX to installed program names X --program-transform-name=PROGRAM X run sed PROGRAM on installed program names EOF X cat << EOF Host type: X --build=BUILD configure for building on BUILD [BUILD=HOST] X --host=HOST configure for HOST [guessed] X --target=TARGET configure for TARGET [TARGET=HOST] Features and packages: X --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) X --enable-FEATURE[=ARG] include FEATURE [ARG=yes] X --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] X --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) X --x-includes=DIR X include files are in DIR X --x-libraries=DIR X library files are in DIR EOF X if test -n "$ac_help"; then X echo "--enable and --with options recognized:$ac_help" X fi X exit 0 ;; X X -host | --host | --hos | --ho) X ac_prev=host ;; X -host=* | --host=* | --hos=* | --ho=*) X host="$ac_optarg" ;; X X -includedir | --includedir | --includedi | --included | --include \ X | --includ | --inclu | --incl | --inc) X ac_prev=includedir ;; X -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ X | --includ=* | --inclu=* | --incl=* | --inc=*) X includedir="$ac_optarg" ;; X X -infodir | --infodir | --infodi | --infod | --info | --inf) X ac_prev=infodir ;; X -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) X infodir="$ac_optarg" ;; X X -libdir | --libdir | --libdi | --libd) X ac_prev=libdir ;; X -libdir=* | --libdir=* | --libdi=* | --libd=*) X libdir="$ac_optarg" ;; X X -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ X | --libexe | --libex | --libe) X ac_prev=libexecdir ;; X -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ X | --libexe=* | --libex=* | --libe=*) X libexecdir="$ac_optarg" ;; X X -localstatedir | --localstatedir | --localstatedi | --localstated \ X | --localstate | --localstat | --localsta | --localst \ X | --locals | --local | --loca | --loc | --lo) X ac_prev=localstatedir ;; X -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ X | --localstate=* | --localstat=* | --localsta=* | --localst=* \ X | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) X localstatedir="$ac_optarg" ;; X X -mandir | --mandir | --mandi | --mand | --man | --ma | --m) X ac_prev=mandir ;; X -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) X mandir="$ac_optarg" ;; X X -nfp | --nfp | --nf) X # Obsolete; use --without-fp. X with_fp=no ;; X X -no-create | --no-create | --no-creat | --no-crea | --no-cre \ X | --no-cr | --no-c) X no_create=yes ;; X X -no-recursion | --no-recursion | --no-recursio | --no-recursi \ X | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) X no_recursion=yes ;; X X -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ X | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ X | --oldin | --oldi | --old | --ol | --o) X ac_prev=oldincludedir ;; X -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ X | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ X | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) X oldincludedir="$ac_optarg" ;; X X -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) X ac_prev=prefix ;; X -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) X prefix="$ac_optarg" ;; X X -program-prefix | --program-prefix | --program-prefi | --program-pref \ X | --program-pre | --program-pr | --program-p) X ac_prev=program_prefix ;; X -program-prefix=* | --program-prefix=* | --program-prefi=* \ X | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) X program_prefix="$ac_optarg" ;; X X -program-suffix | --program-suffix | --program-suffi | --program-suff \ X | --program-suf | --program-su | --program-s) X ac_prev=program_suffix ;; X -program-suffix=* | --program-suffix=* | --program-suffi=* \ X | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) X program_suffix="$ac_optarg" ;; X X -program-transform-name | --program-transform-name \ X | --program-transform-nam | --program-transform-na \ X | --program-transform-n | --program-transform- \ X | --program-transform | --program-transfor \ X | --program-transfo | --program-transf \ X | --program-trans | --program-tran \ X | --progr-tra | --program-tr | --program-t) X ac_prev=program_transform_name ;; X -program-transform-name=* | --program-transform-name=* \ X | --program-transform-nam=* | --program-transform-na=* \ X | --program-transform-n=* | --program-transform-=* \ X | --program-transform=* | --program-transfor=* \ X | --program-transfo=* | --program-transf=* \ X | --program-trans=* | --program-tran=* \ X | --progr-tra=* | --program-tr=* | --program-t=*) X program_transform_name="$ac_optarg" ;; X X -q | -quiet | --quiet | --quie | --qui | --qu | --q \ X | -silent | --silent | --silen | --sile | --sil) X silent=yes ;; X X -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) X ac_prev=sbindir ;; X -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ X | --sbi=* | --sb=*) X sbindir="$ac_optarg" ;; X X -sharedstatedir | --sharedstatedir | --sharedstatedi \ X | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ X | --sharedst | --shareds | --shared | --share | --shar \ X | --sha | --sh) X ac_prev=sharedstatedir ;; X -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ X | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ X | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ X | --sha=* | --sh=*) X sharedstatedir="$ac_optarg" ;; X X -site | --site | --sit) X ac_prev=site ;; X -site=* | --site=* | --sit=*) X site="$ac_optarg" ;; X X -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) X ac_prev=srcdir ;; X -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) X srcdir="$ac_optarg" ;; X X -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ X | --syscon | --sysco | --sysc | --sys | --sy) X ac_prev=sysconfdir ;; X -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ X | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) X sysconfdir="$ac_optarg" ;; X X -target | --target | --targe | --targ | --tar | --ta | --t) X ac_prev=target ;; X -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) X target="$ac_optarg" ;; X X -v | -verbose | --verbose | --verbos | --verbo | --verb) X verbose=yes ;; X X -version | --version | --versio | --versi | --vers) X echo "configure generated by autoconf version 2.13" X exit 0 ;; X X -with-* | --with-*) X ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` X # Reject names that are not valid shell variable names. X if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then X { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } X fi X ac_package=`echo $ac_package| sed 's/-/_/g'` X case "$ac_option" in X *=*) ;; X *) ac_optarg=yes ;; X esac X eval "with_${ac_package}='$ac_optarg'" ;; X X -without-* | --without-*) X ac_package=`echo $ac_option|sed -e 's/-*without-//'` X # Reject names that are not valid shell variable names. X if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then X { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } X fi X ac_package=`echo $ac_package| sed 's/-/_/g'` X eval "with_${ac_package}=no" ;; X X --x) X # Obsolete; use --with-x. X with_x=yes ;; X X -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ X | --x-incl | --x-inc | --x-in | --x-i) X ac_prev=x_includes ;; X -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ X | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) X x_includes="$ac_optarg" ;; X X -x-libraries | --x-libraries | --x-librarie | --x-librari \ X | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) X ac_prev=x_libraries ;; X -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ X | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) X x_libraries="$ac_optarg" ;; X X -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } X ;; X X *) X if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then X echo "configure: warning: $ac_option: invalid host type" 1>&2 X fi X if test "x$nonopt" != xNONE; then X { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } X fi X nonopt="$ac_option" X ;; X X esac done X if test -n "$ac_prev"; then X { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } fi X trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 X # File descriptor usage: # 0 standard input # 1 file creation # 2 errors and warnings # 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 X exec 6>/dev/null else X exec 6>&1 fi exec 5>./config.log X echo "\ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. " 1>&5 X # Strip out --no-create and --no-recursion so they do not pile up. # Also quote any args containing shell metacharacters. ac_configure_args= for ac_arg do X case "$ac_arg" in X -no-create | --no-create | --no-creat | --no-crea | --no-cre \ X | --no-cr | --no-c) ;; X -no-recursion | --no-recursion | --no-recursio | --no-recursi \ X | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; X *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) X ac_configure_args="$ac_configure_args '$ac_arg'" ;; X *) ac_configure_args="$ac_configure_args $ac_arg" ;; X esac done X # NLS nuisances. # Only set these to C if already set. These must not be set unconditionally # because not all systems understand e.g. LANG=C (notably SCO). # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! # Non-C LC_CTYPE values break the ctype check. if test "${LANG+set}" = set; then LANG=C; export LANG; fi if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi X # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo > confdefs.h X # A filename unique to this package, relative to the directory that # configure is in, which we can look for to find out if srcdir is correct. ac_unique_file=src/tar.c X # Find the source files, if location was not specified. if test -z "$srcdir"; then X ac_srcdir_defaulted=yes X # Try the directory containing this script, then its parent. X ac_prog=$0 X ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` X test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. X srcdir=$ac_confdir X if test ! -r $srcdir/$ac_unique_file; then X srcdir=.. X fi else X ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then X if test "$ac_srcdir_defaulted" = yes; then X { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } X else X { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } X fi fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` X # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then X if test "x$prefix" != xNONE; then X CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" X else X CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" X fi fi for ac_site_file in $CONFIG_SITE; do X if test -r "$ac_site_file"; then X echo "loading site script $ac_site_file" X . "$ac_site_file" X fi done X if test -r "$cache_file"; then X echo "loading cache $cache_file" X . $cache_file else X echo "creating cache $cache_file" X > $cache_file fi X ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross X ac_exeext= ac_objext=o if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then X # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. X if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then X ac_n= ac_c=' ' ac_t=' ' X else X ac_n=-n ac_c= ac_t= X fi else X ac_n= ac_c='\c' ac_t= fi X X X X X X ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do X if test -f $ac_dir/install-sh; then X ac_aux_dir=$ac_dir X ac_install_sh="$ac_aux_dir/install-sh -c" X break X elif test -f $ac_dir/install.sh; then X ac_aux_dir=$ac_dir X ac_install_sh="$ac_aux_dir/install.sh -c" X break X fi done if test -z "$ac_aux_dir"; then X { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } fi ac_config_guess=$ac_aux_dir/config.guess ac_config_sub=$ac_aux_dir/config.sub ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. X X # Make sure we can run config.sub. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi X echo $ac_n "checking host system type""... $ac_c" 1>&6 echo "configure:566: checking host system type" >&5 X host_alias=$host case "$host_alias" in NONE) X case $nonopt in X NONE) X if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : X else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } X fi ;; X *) host_alias=$nonopt ;; X esac ;; esac X host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 X # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # 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>&6 echo "configure:598: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" X for ac_dir in $PATH; do X # Account for people who put trailing slashes in PATH elements. X case "$ac_dir/" in X /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; X *) X # OSF1 and SCO ODT 3.0 have their own names for install. X # Don't use installbsd from OSF since it installs stuff as root X # by default. X for ac_prog in ginstall scoinst install; do X if test -f $ac_dir/$ac_prog; then X if test $ac_prog = install && X grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then X # AIX install. It has an incompatible calling convention. X : X else X ac_cv_path_install="$ac_dir/$ac_prog -c" X break 2 X fi X fi X done X ;; X esac X done X IFS="$ac_save_IFS" X fi X if test "${ac_cv_path_install+set}" = set; then X INSTALL="$ac_cv_path_install" X else X # As a last resort, use the slow shell script. We don't cache a X # path for INSTALL within a source directory, because that will X # break other packages using the cache if that directory is X # removed, or if the path is relative. X INSTALL="$ac_install_sh" X fi fi echo "$ac_t""$INSTALL" 1>&6 X # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' X test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' X test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' X echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 echo "configure:651: checking whether build environment is sane" >&5 # Just in case sleep 1 echo timestamp > conftestfile # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( X set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` X if test "$*" = "X"; then X # -L didn't work. X set X `ls -t $srcdir/configure conftestfile` X fi X if test "$*" != "X $srcdir/configure conftestfile" \ X && test "$*" != "X conftestfile $srcdir/configure"; then X X # If neither matched, then we have a broken ls. This can happen X # if, for instance, CONFIG_SHELL is bash and it inherits a X # broken ls alias from the environment. This has actually X # happened. Such a system could not be considered "sane". X { echo "configure: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" 1>&2; exit 1; } X fi X X test "$2" = conftestfile X ) then X # Ok. X : else X { echo "configure: error: newly created file is older than distributed files! Check your system clock" 1>&2; exit 1; } fi rm -f conftest* echo "$ac_t""yes" 1>&6 if test "$program_transform_name" = s,x,x,; then X program_transform_name= else X # Double any \ or $. echo might interpret backslashes. X cat <<\EOF_SED > conftestsed s,\\,\\\\,g; s,\$,$$,g EOF_SED X program_transform_name="`echo $program_transform_name|sed -f conftestsed`" X rm -f conftestsed fi test "$program_prefix" != NONE && X program_transform_name="s,^,${program_prefix},; $program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && X program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" X # sed with no file args requires a program. test "$program_transform_name" = "" && program_transform_name="s,x,x," X echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 echo "configure:708: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftestmake <<\EOF all: X @echo 'ac_maketemp="${MAKE}"' EOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then X eval ac_cv_prog_make_${ac_make}_set=yes else X eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftestmake fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then X echo "$ac_t""yes" 1>&6 X SET_MAKE= else X echo "$ac_t""no" 1>&6 X SET_MAKE="MAKE=${MAKE-make}" fi X X PACKAGE=tar X VERSION=1.13 X if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then X { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } fi cat >> confdefs.h <> confdefs.h <&6 echo "configure:754: checking for working aclocal" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (aclocal --version) < /dev/null > /dev/null 2>&1; then X ACLOCAL=aclocal X echo "$ac_t""found" 1>&6 else X ACLOCAL="$missing_dir/missing aclocal" X echo "$ac_t""missing" 1>&6 fi X echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 echo "configure:767: checking for working autoconf" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (autoconf --version) < /dev/null > /dev/null 2>&1; then X AUTOCONF=autoconf X echo "$ac_t""found" 1>&6 else X AUTOCONF="$missing_dir/missing autoconf" X echo "$ac_t""missing" 1>&6 fi X echo $ac_n "checking for working automake""... $ac_c" 1>&6 echo "configure:780: checking for working automake" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (automake --version) < /dev/null > /dev/null 2>&1; then X AUTOMAKE=automake X echo "$ac_t""found" 1>&6 else X AUTOMAKE="$missing_dir/missing automake" X echo "$ac_t""missing" 1>&6 fi X echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 echo "configure:793: checking for working autoheader" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (autoheader --version) < /dev/null > /dev/null 2>&1; then X AUTOHEADER=autoheader X echo "$ac_t""found" 1>&6 else X AUTOHEADER="$missing_dir/missing autoheader" X echo "$ac_t""missing" 1>&6 fi X echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 echo "configure:806: checking for working makeinfo" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then X MAKEINFO=makeinfo X echo "$ac_t""found" 1>&6 else X MAKEINFO="$missing_dir/missing makeinfo" X echo "$ac_t""missing" 1>&6 fi X X cat >> confdefs.h <<\EOF #define _GNU_SOURCE 1 EOF X ALL_LINGUAS="cs de es fr it ko nl no pl pt ru sl sv" X # 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>&6 echo "configure:828: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test -n "$CC"; then X ac_cv_prog_CC="$CC" # Let the user override the test. else X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_prog_CC="gcc" X break X fi X done X IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then X echo "$ac_t""$CC" 1>&6 else X echo "$ac_t""no" 1>&6 fi X if test -z "$CC"; then X # 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 echo "configure:858: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test -n "$CC"; then X ac_cv_prog_CC="$CC" # Let the user override the test. else X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_prog_rejected=no X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then X ac_prog_rejected=yes X continue X fi X ac_cv_prog_CC="cc" X break X fi X done X IFS="$ac_save_ifs" if test $ac_prog_rejected = yes; then X # We found a bogon in the path, so make sure we never use it. X set dummy $ac_cv_prog_CC X shift X if test $# -gt 0; then X # We chose a different compiler from the bogus one. X # However, it has the same basename, so the bogon will be chosen X # first if we set CC to just the basename; use the full file name. X shift X set dummy "$ac_dir/$ac_word" "$@" X shift X ac_cv_prog_CC="$@" X fi fi fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then X echo "$ac_t""$CC" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X if test -z "$CC"; then X case "`uname -s`" in X *win32* | *WIN32*) X # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:909: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test -n "$CC"; then X ac_cv_prog_CC="$CC" # Let the user override the test. else X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_prog_CC="cl" X break X fi X done X IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then X echo "$ac_t""$CC" 1>&6 else X echo "$ac_t""no" 1>&6 fi X ;; X esac X fi X test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } fi X echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 echo "configure:941: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 X ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross X cat > conftest.$ac_ext << EOF X #line 952 "configure" #include "confdefs.h" X main(){return(0);} EOF if { (eval echo configure:957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X ac_cv_prog_cc_works=yes X # If we can't run a trivial program, we are probably using a cross compiler. X if (./conftest; exit) 2>/dev/null; then X ac_cv_prog_cc_cross=no X else X ac_cv_prog_cc_cross=yes X fi else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X ac_cv_prog_cc_works=no fi rm -fr conftest* ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross X echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 if test $ac_cv_prog_cc_works = no; then X { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 echo "configure:983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross X echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 echo "configure:988: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then X ac_cv_prog_gcc=yes else X ac_cv_prog_gcc=no fi fi X echo "$ac_t""$ac_cv_prog_gcc" 1>&6 X if test $ac_cv_prog_gcc = yes; then X GCC=yes else X GCC= fi X ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 echo "configure:1016: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then X ac_cv_prog_cc_g=yes else X ac_cv_prog_cc_g=no fi rm -f conftest* X fi X echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 if test "$ac_test_CFLAGS" = set; then X CFLAGS="$ac_save_CFLAGS" elif test $ac_cv_prog_cc_g = yes; then X if test "$GCC" = yes; then X CFLAGS="-g -O2" X else X CFLAGS="-g" X fi else X if test "$GCC" = yes; then X CFLAGS="-O2" X else X CFLAGS= X fi fi X echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 echo "configure:1048: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then X CPP= fi if test -z "$CPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X # This must be in double quotes, not single quotes, because CPP may get X # substituted into the Makefile and "${CC-cc}" will confuse make. X CPP="${CC-cc} -E" X # On the NeXT, cc -E runs the code through the compiler's parser, X # not just through cpp. X cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X : else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X CPP="${CC-cc} -E -traditional-cpp" X cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X : else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X CPP="${CC-cc} -nologo -E" X cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X : else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X CPP=/lib/cpp fi rm -f conftest* fi rm -f conftest* fi rm -f conftest* X ac_cv_prog_CPP="$CPP" fi X CPP="$ac_cv_prog_CPP" else X ac_cv_prog_CPP="$CPP" fi echo "$ac_t""$CPP" 1>&6 X if test $ac_cv_prog_gcc = yes; then X echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 echo "configure:1129: checking whether ${CC-cc} needs -traditional" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_pattern="Autoconf.*'x'" X cat > conftest.$ac_ext < Autoconf TIOCGETP EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "$ac_pattern" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_prog_gcc_traditional=yes else X rm -rf conftest* X ac_cv_prog_gcc_traditional=no fi rm -f conftest* X X X if test $ac_cv_prog_gcc_traditional = no; then X cat > conftest.$ac_ext < Autoconf TCGETA EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "$ac_pattern" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_prog_gcc_traditional=yes fi rm -f conftest* X X fi fi X echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 X if test $ac_cv_prog_gcc_traditional = yes; then X CC="$CC -traditional" X fi fi X echo $ac_n "checking for AIX""... $ac_c" 1>&6 echo "configure:1175: checking for AIX" >&5 cat > conftest.$ac_ext <&5 | X egrep "yes" >/dev/null 2>&1; then X rm -rf conftest* X echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF #define _ALL_SOURCE 1 EOF X else X rm -rf conftest* X echo "$ac_t""no" 1>&6 fi rm -f conftest* X X ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 echo "configure:1200: checking for minix/config.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X MINIX=yes else X echo "$ac_t""no" 1>&6 MINIX= fi X if test "$MINIX" = yes; then X cat >> confdefs.h <<\EOF #define _POSIX_SOURCE 1 EOF X X cat >> confdefs.h <<\EOF #define _POSIX_1_SOURCE 2 EOF X X cat >> confdefs.h <<\EOF #define _MINIX 1 EOF X fi X echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 echo "configure:1248: checking for Cygwin environment" >&5 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_cygwin=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_cygwin=no fi rm -f conftest* rm -f conftest* fi X echo "$ac_t""$ac_cv_cygwin" 1>&6 CYGWIN= test "$ac_cv_cygwin" = yes && CYGWIN=yes echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 echo "configure:1281: checking for mingw32 environment" >&5 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_mingw32=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_mingw32=no fi rm -f conftest* rm -f conftest* fi X echo "$ac_t""$ac_cv_mingw32" 1>&6 MINGW32= test "$ac_cv_mingw32" = yes && MINGW32=yes X X echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 echo "configure:1312: checking for executable suffix" >&5 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test "$CYGWIN" = yes || test "$MINGW32" = yes; then X ac_cv_exeext=.exe else X rm -f conftest* X echo 'int main () { return 0; }' > conftest.$ac_ext X ac_cv_exeext= X if { (eval echo configure:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then X for file in conftest.*; do X case $file in X *.c | *.o | *.obj) ;; X *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; X esac X done X else X { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } X fi X rm -f conftest* X test x"${ac_cv_exeext}" = x && ac_cv_exeext=no fi fi X EXEEXT="" test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} echo "$ac_t""${ac_cv_exeext}" 1>&6 ac_exeext=$EXEEXT X # 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>&6 echo "configure:1345: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test -n "$RANLIB"; then X ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_prog_RANLIB="ranlib" X break X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" fi fi RANLIB="$ac_cv_prog_RANLIB" if test -n "$RANLIB"; then X echo "$ac_t""$RANLIB" 1>&6 else X echo "$ac_t""no" 1>&6 fi X 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>&6 echo "configure:1377: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test -n "$YACC"; then X ac_cv_prog_YACC="$YACC" # Let the user override the test. else X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_prog_YACC="$ac_prog" X break X fi X done X IFS="$ac_save_ifs" fi fi YACC="$ac_cv_prog_YACC" if test -n "$YACC"; then X echo "$ac_t""$YACC" 1>&6 else X echo "$ac_t""no" 1>&6 fi X test -n "$YACC" && break done test -n "$YACC" || YACC="yacc" X echo $ac_n "checking build system type""... $ac_c" 1>&6 echo "configure:1408: checking build system type" >&5 X build_alias=$build case "$build_alias" in NONE) X case $nonopt in X NONE) build_alias=$host_alias ;; X *) build_alias=$nonopt ;; X esac ;; esac X build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$build" 1>&6 X if test $host != $build; then X ac_tool_prefix=${host_alias}- else X ac_tool_prefix= fi X X X # Check whether --enable-largefile or --disable-largefile was given. if test "${enable_largefile+set}" = set; then X enableval="$enable_largefile" X : fi X X if test "$enable_largefile" != no; then X # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args. set dummy ${ac_tool_prefix}getconf; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1442: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_GETCONF'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test -n "$GETCONF"; then X ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test. else X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_prog_GETCONF="${ac_tool_prefix}getconf" X break X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf" fi fi GETCONF="$ac_cv_prog_GETCONF" if test -n "$GETCONF"; then X echo "$ac_t""$GETCONF" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X X X echo $ac_n "checking for CFLAGS value to request large file support""... $ac_c" 1>&6 echo "configure:1472: checking for CFLAGS value to request large file support" >&5 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CFLAGS'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || { X ac_cv_sys_largefile_CFLAGS=no X case "$host_os" in X # IRIX 6.2 and later require cc -n32. X irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*) X if test "$GCC" != yes; then X ac_cv_sys_largefile_CFLAGS=-n32 X fi X ac_save_CC="$CC" X CC="$CC $ac_cv_sys_largefile_CFLAGS" X cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X : else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_sys_largefile_CFLAGS=no fi rm -f conftest* X CC="$ac_save_CC" X esac X } fi X echo "$ac_t""$ac_cv_sys_largefile_CFLAGS" 1>&6 X echo $ac_n "checking for LDFLAGS value to request large file support""... $ac_c" 1>&6 echo "configure:1510: checking for LDFLAGS value to request large file support" >&5 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LDFLAGS'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || { X ac_cv_sys_largefile_LDFLAGS=no X X } fi X echo "$ac_t""$ac_cv_sys_largefile_LDFLAGS" 1>&6 X echo $ac_n "checking for LIBS value to request large file support""... $ac_c" 1>&6 echo "configure:1522: checking for LIBS value to request large file support" >&5 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LIBS'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || { X ac_cv_sys_largefile_LIBS=no X X } fi X echo "$ac_t""$ac_cv_sys_largefile_LIBS" 1>&6 X X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X no) ;; X -D_FILE_OFFSET_BITS=*) ;; X -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;; X -D_LARGE_FILES | -D_LARGE_FILES=*) ;; X -D?* | -I?*) X case "$ac_flag" in X no) ;; X ?*) X case "$CPPFLAGS" in X '') CPPFLAGS="$ac_flag" ;; X *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;; X esac ;; X esac ;; X *) X case "$ac_flag" in X no) ;; X ?*) X case "$CFLAGS" in X '') CFLAGS="$ac_flag" ;; X *) CFLAGS=$CFLAGS' '"$ac_flag" ;; X esac ;; X esac ;; X esac X done X case "$ac_cv_sys_largefile_LDFLAGS" in X no) ;; X ?*) X case "$LDFLAGS" in X '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;; X *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;; X esac ;; X esac X case "$ac_cv_sys_largefile_LIBS" in X no) ;; X ?*) X case "$LIBS" in X '') LIBS="$ac_cv_sys_largefile_LIBS" ;; X *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;; X esac ;; X esac X echo $ac_n "checking for _FILE_OFFSET_BITS""... $ac_c" 1>&6 echo "configure:1577: checking for _FILE_OFFSET_BITS" >&5 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_cv_sys_file_offset_bits=no X X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X -D_FILE_OFFSET_BITS) X ac_cv_sys_file_offset_bits=1 ;; X -D_FILE_OFFSET_BITS=*) X ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; X esac X done X fi X echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 X if test "$ac_cv_sys_file_offset_bits" != no; then X cat >> confdefs.h <&6 echo "configure:1602: checking for _LARGEFILE_SOURCE" >&5 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_cv_sys_largefile_source=no X case "$host_os" in X # HP-UX 10.20 and later X hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) X ac_cv_sys_largefile_source=1 ;; X esac X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X -D_LARGEFILE_SOURCE) X ac_cv_sys_largefile_source=1 ;; X -D_LARGEFILE_SOURCE=*) X ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; X esac X done X fi X echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6 X if test "$ac_cv_sys_largefile_source" != no; then X cat >> confdefs.h <&6 echo "configure:1631: checking for _LARGE_FILES" >&5 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_cv_sys_large_files=no X case "$host_os" in X # AIX 4.2 and later X aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*) X ac_cv_sys_large_files=1 ;; X esac X for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do X case "$ac_flag" in X -D_LARGE_FILES) X ac_cv_sys_large_files=1 ;; X -D_LARGE_FILES=*) X ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; X esac X done X fi X echo "$ac_t""$ac_cv_sys_large_files" 1>&6 X if test "$ac_cv_sys_large_files" != no; then X cat >> confdefs.h <&6 echo "configure:1663: checking for strerror in -lcposix" >&5 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_save_LIBS="$LIBS" LIBS="-lcposix $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" X fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X LIBS="$LIBS -lcposix" else X echo "$ac_t""no" 1>&6 fi X X X X X X echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 echo "configure:1708: checking for ${CC-cc} option to accept ANSI C" >&5 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X am_cv_prog_cc_stdc=no ac_save_CC="$CC" # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do X CC="$ac_save_CC $ac_arg" X cat > conftest.$ac_ext < #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) X char **p; X int i; { X return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { X char *s; X va_list v; X va_start (v,p); X s = g (p, va_arg (v,int)); X va_end (v); X return s; } int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; X int main() { X return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; X ; return 0; } EOF if { (eval echo configure:1761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X am_cv_prog_cc_stdc="$ac_arg"; break else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 fi rm -f conftest* done CC="$ac_save_CC" X fi X if test -z "$am_cv_prog_cc_stdc"; then X echo "$ac_t""none needed" 1>&6 else X echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6 fi case "x$am_cv_prog_cc_stdc" in X x|xno) ;; X *) CC="$CC $am_cv_prog_cc_stdc" ;; esac X X X echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 echo "configure:1787: checking for function prototypes" >&5 if test "$am_cv_prog_cc_stdc" != no; then X echo "$ac_t""yes" 1>&6 X cat >> confdefs.h <<\EOF #define PROTOTYPES 1 EOF X X U= ANSI2KNR= else X echo "$ac_t""no" 1>&6 X U=_ ANSI2KNR=./ansi2knr X # Ensure some checks needed by ansi2knr itself. X echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 echo "configure:1800: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include #include #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X ac_cv_header_stdc=yes else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_header_stdc=no fi rm -f conftest* X if test $ac_cv_header_stdc = yes; then X # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "memchr" >/dev/null 2>&1; then X : else X rm -rf conftest* X ac_cv_header_stdc=no fi rm -f conftest* X fi X if test $ac_cv_header_stdc = yes; then X # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "free" >/dev/null 2>&1; then X : else X rm -rf conftest* X ac_cv_header_stdc=no fi rm -f conftest* X fi X if test $ac_cv_header_stdc = yes; then X # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then X : else X cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } X EOF if { (eval echo configure:1880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X : else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X ac_cv_header_stdc=no fi rm -fr conftest* fi X fi fi X echo "$ac_t""$ac_cv_header_stdc" 1>&6 if test $ac_cv_header_stdc = yes; then X cat >> confdefs.h <<\EOF #define STDC_HEADERS 1 EOF X fi X X for ac_hdr in string.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:1907: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` X cat >> confdefs.h <&6 fi done X fi X echo $ac_n "checking for working const""... $ac_c" 1>&6 echo "configure:1946: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext <j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ X const int foo = 10; } X ; return 0; } EOF if { (eval echo configure:2000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_c_const=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_c_const=no fi rm -f conftest* fi X echo "$ac_t""$ac_cv_c_const" 1>&6 if test $ac_cv_c_const = no; then X cat >> confdefs.h <<\EOF #define const EOF X fi X echo $ac_n "checking for inline""... $ac_c" 1>&6 echo "configure:2021: checking for inline" >&5 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do X cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_c_inline=$ac_kw; break else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 fi rm -f conftest* done X fi X echo "$ac_t""$ac_cv_c_inline" 1>&6 case "$ac_cv_c_inline" in X inline | yes) ;; X no) cat >> confdefs.h <<\EOF #define inline EOF X ;; X *) cat >> confdefs.h <&6 echo "configure:2061: checking size of unsigned long" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test "$cross_compiling" = yes; then X ac_cv_sizeof_unsigned_long=4 else X cat > conftest.$ac_ext < main() { X FILE *f=fopen("conftestval", "w"); X if (!f) exit(1); X fprintf(f, "%d\n", sizeof(unsigned long)); X exit(0); } EOF if { (eval echo configure:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X ac_cv_sizeof_unsigned_long=`cat conftestval` else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X ac_cv_sizeof_unsigned_long=0 fi rm -fr conftest* fi X fi echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6 cat >> confdefs.h <&6 echo "configure:2100: checking size of long long" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test "$cross_compiling" = yes; then X ac_cv_sizeof_long_long=0 else X cat > conftest.$ac_ext < main() { X FILE *f=fopen("conftestval", "w"); X if (!f) exit(1); X fprintf(f, "%d\n", sizeof(long long)); X exit(0); } EOF if { (eval echo configure:2119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X ac_cv_sizeof_long_long=`cat conftestval` else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X ac_cv_sizeof_long_long=0 fi rm -fr conftest* fi X fi echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 cat >> confdefs.h <&6 echo "configure:2147: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` X cat >> confdefs.h <&6 fi done X X X X echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 echo "configure:2186: checking for inttypes.h" >&5 if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include int main() { uintmax_t i = (uintmax_t) -1; ; return 0; } EOF if { (eval echo configure:2199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X jm_ac_cv_header_inttypes_h=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X jm_ac_cv_header_inttypes_h=no fi rm -f conftest* fi X echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6 X if test $jm_ac_cv_header_inttypes_h = yes; then X cat >> confdefs.h < seems to be # broken just require something like -D_XXX_SOURCE, where XXX might # be POSIX, POSIX_C, ALL, HPUX or whatever, depending on the machine. X echo $ac_n "checking for utime.h""... $ac_c" 1>&6 echo "configure:2225: checking for utime.h" >&5 if eval "test \"`echo '$''{'tar_cv_header_utime_h'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include int main() { struct utimbuf foo ; return 0; } EOF if { (eval echo configure:2239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X tar_cv_header_utime_h=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X tar_cv_header_utime_h=no fi rm -f conftest* fi X echo "$ac_t""$tar_cv_header_utime_h" 1>&6 test $tar_cv_header_utime_h = yes && cat >> confdefs.h <<\EOF #define HAVE_UTIME_H 1 EOF X X if test $ac_cv_header_sys_mtio_h = yes; then X echo $ac_n "checking for remote tape header files""... $ac_c" 1>&6 echo "configure:2259: checking for remote tape header files" >&5 if eval "test \"`echo '$''{'tar_cv_header_rmt'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #endif #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X tar_cv_header_rmt=yes else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X tar_cv_header_rmt=no fi rm -f conftest* fi X echo "$ac_t""$tar_cv_header_rmt" 1>&6 X test $tar_cv_header_rmt = yes && RMT=rmt X fi X echo $ac_n "checking for getgrgid declaration""... $ac_c" 1>&6 echo "configure:2294: checking for getgrgid declaration" >&5 if eval "test \"`echo '$''{'tar_cv_header_getgrgid'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "getgrgid" >/dev/null 2>&1; then X rm -rf conftest* X tar_cv_header_getgrgid=yes else X rm -rf conftest* X tar_cv_header_getgrgid=no fi rm -f conftest* X fi X echo "$ac_t""$tar_cv_header_getgrgid" 1>&6 test $tar_cv_header_getgrgid = yes && cat >> confdefs.h <<\EOF #define HAVE_GETGRGID 1 EOF X X echo $ac_n "checking for getpwuid declaration""... $ac_c" 1>&6 echo "configure:2322: checking for getpwuid declaration" >&5 if eval "test \"`echo '$''{'tar_cv_header_getpwuid'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "getpwuid" >/dev/null 2>&1; then X rm -rf conftest* X tar_cv_header_getpwuid=yes else X rm -rf conftest* X tar_cv_header_getpwuid=no fi rm -f conftest* X fi X echo "$ac_t""$tar_cv_header_getpwuid" 1>&6 test $tar_cv_header_getpwuid = yes && cat >> confdefs.h <<\EOF #define HAVE_GETPWUID 1 EOF X X echo $ac_n "checking which ioctl field to test for reversed bytes""... $ac_c" 1>&6 echo "configure:2350: checking which ioctl field to test for reversed bytes" >&5 if eval "test \"`echo '$''{'tar_cv_header_mtio_check_field'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "mt_model" >/dev/null 2>&1; then X rm -rf conftest* X tar_cv_header_mtio_check_field=mt_model else X rm -rf conftest* X tar_cv_header_mtio_check_field=mt_type fi rm -f conftest* X fi X echo "$ac_t""$tar_cv_header_mtio_check_field" 1>&6 cat >> confdefs.h <&6 echo "configure:2382: checking for $ac_hdr that defines DIR" >&5 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include <$ac_hdr> int main() { DIR *dirp = 0; ; return 0; } EOF if { (eval echo configure:2395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X eval "ac_cv_header_dirent_$ac_safe=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_dirent_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` X cat >> confdefs.h <&6 fi done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 echo "configure:2420: checking for opendir in -ldir" >&5 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_save_LIBS="$LIBS" LIBS="-ldir $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" X fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X LIBS="$LIBS -ldir" else X echo "$ac_t""no" 1>&6 fi X else echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 echo "configure:2461: checking for opendir in -lx" >&5 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_save_LIBS="$LIBS" LIBS="-lx $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" X fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X LIBS="$LIBS -lx" else X echo "$ac_t""no" 1>&6 fi X fi X echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6 echo "configure:2503: checking whether sys/types.h defines makedev" >&5 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < int main() { return makedev(0, 0); ; return 0; } EOF if { (eval echo configure:2515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X ac_cv_header_sys_types_h_makedev=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_header_sys_types_h_makedev=no fi rm -f conftest* X fi X echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6 X if test $ac_cv_header_sys_types_h_makedev = no; then ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6 echo "configure:2533: checking for sys/mkdev.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X cat >> confdefs.h <<\EOF #define MAJOR_IN_MKDEV 1 EOF X else X echo "$ac_t""no" 1>&6 fi X X X if test $ac_cv_header_sys_mkdev_h = no; then ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6 echo "configure:2571: checking for sys/sysmacros.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X cat >> confdefs.h <<\EOF #define MAJOR_IN_SYSMACROS 1 EOF X else X echo "$ac_t""no" 1>&6 fi X X fi fi X echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 echo "configure:2609: checking whether stat file-mode macros are broken" >&5 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include X #if defined(S_ISBLK) && defined(S_IFDIR) # if S_ISBLK (S_IFDIR) You lose. # endif #endif X #if defined(S_ISBLK) && defined(S_IFCHR) # if S_ISBLK (S_IFCHR) You lose. # endif #endif X #if defined(S_ISLNK) && defined(S_IFREG) # if S_ISLNK (S_IFREG) You lose. # endif #endif X #if defined(S_ISSOCK) && defined(S_IFREG) # if S_ISSOCK (S_IFREG) You lose. # endif #endif X EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "You lose" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_header_stat_broken=yes else X rm -rf conftest* X ac_cv_header_stat_broken=no fi rm -f conftest* X fi X echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 if test $ac_cv_header_stat_broken = yes; then X cat >> confdefs.h <<\EOF #define STAT_MACROS_BROKEN 1 EOF X fi X echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 echo "configure:2665: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include #include #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X ac_cv_header_stdc=yes else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_header_stdc=no fi rm -f conftest* X if test $ac_cv_header_stdc = yes; then X # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "memchr" >/dev/null 2>&1; then X : else X rm -rf conftest* X ac_cv_header_stdc=no fi rm -f conftest* X fi X if test $ac_cv_header_stdc = yes; then X # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "free" >/dev/null 2>&1; then X : else X rm -rf conftest* X ac_cv_header_stdc=no fi rm -f conftest* X fi X if test $ac_cv_header_stdc = yes; then X # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then X : else X cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } X EOF if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X : else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X ac_cv_header_stdc=no fi rm -fr conftest* fi X fi fi X echo "$ac_t""$ac_cv_header_stdc" 1>&6 if test $ac_cv_header_stdc = yes; then X cat >> confdefs.h <<\EOF #define STDC_HEADERS 1 EOF X fi X echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 echo "configure:2769: checking whether time.h and sys/time.h may both be included" >&5 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include #include int main() { struct tm *tp; ; return 0; } EOF if { (eval echo configure:2783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_header_time=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_header_time=no fi rm -f conftest* fi X echo "$ac_t""$ac_cv_header_time" 1>&6 if test $ac_cv_header_time = yes; then X cat >> confdefs.h <<\EOF #define TIME_WITH_SYS_TIME 1 EOF X fi X echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 echo "configure:2804: checking for st_blksize in struct stat" >&5 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include int main() { struct stat s; s.st_blksize; ; return 0; } EOF if { (eval echo configure:2817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_struct_st_blksize=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_struct_st_blksize=no fi rm -f conftest* fi X echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 if test $ac_cv_struct_st_blksize = yes; then X cat >> confdefs.h <<\EOF #define HAVE_ST_BLKSIZE 1 EOF X fi X echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 echo "configure:2838: checking for st_blocks in struct stat" >&5 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include int main() { struct stat s; s.st_blocks; ; return 0; } EOF if { (eval echo configure:2851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_struct_st_blocks=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_struct_st_blocks=no fi rm -f conftest* fi X echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 if test $ac_cv_struct_st_blocks = yes; then X cat >> confdefs.h <<\EOF #define HAVE_ST_BLOCKS 1 EOF X else X LIBOBJS="$LIBOBJS fileblocks.${ac_objext}" fi X X echo $ac_n "checking for d_ino member in directory struct""... $ac_c" 1>&6 echo "configure:2874: checking for d_ino member in directory struct" >&5 if eval "test \"`echo '$''{'jm_cv_struct_dirent_d_ino'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #ifdef HAVE_DIRENT_H # include #else /* not HAVE_DIRENT_H */ # define dirent direct # ifdef HAVE_SYS_NDIR_H # include # endif /* HAVE_SYS_NDIR_H */ # ifdef HAVE_SYS_DIR_H # include # endif /* HAVE_SYS_DIR_H */ # ifdef HAVE_NDIR_H # include # endif /* HAVE_NDIR_H */ #endif /* HAVE_DIRENT_H */ X int main() { struct dirent dp; dp.d_ino = 0; ; return 0; } EOF if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X jm_cv_struct_dirent_d_ino=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X jm_cv_struct_dirent_d_ino=no fi rm -f conftest* X X fi X echo "$ac_t""$jm_cv_struct_dirent_d_ino" 1>&6 X if test $jm_cv_struct_dirent_d_ino = yes; then X cat >> confdefs.h <<\EOF #define D_INO_IN_DIRENT 1 EOF X X fi X X echo $ac_n "checking for st_fstype string in struct stat""... $ac_c" 1>&6 echo "configure:2926: checking for st_fstype string in struct stat" >&5 if eval "test \"`echo '$''{'diff_cv_st_fstype_string'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include int main() { struct stat s; s.st_fstype[0] = 'x'; ; return 0; } EOF if { (eval echo configure:2939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X diff_cv_st_fstype_string=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X diff_cv_st_fstype_string=no fi rm -f conftest* fi X echo "$ac_t""$diff_cv_st_fstype_string" 1>&6 if test $diff_cv_st_fstype_string = yes; then X cat >> confdefs.h <<\EOF #define HAVE_ST_FSTYPE_STRING 1 EOF X fi X echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 echo "configure:2960: checking return type of signal handlers" >&5 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include #ifdef signal #undef signal #endif #ifdef __cplusplus extern "C" void (*signal (int, void (*)(int)))(int); #else void (*signal ()) (); #endif X int main() { int i; ; return 0; } EOF if { (eval echo configure:2982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_type_signal=void else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_type_signal=int fi rm -f conftest* fi X echo "$ac_t""$ac_cv_type_signal" 1>&6 cat >> confdefs.h <&6 echo "configure:3001: checking for mode_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_mode_t=yes else X rm -rf conftest* X ac_cv_type_mode_t=no fi rm -f conftest* X fi echo "$ac_t""$ac_cv_type_mode_t" 1>&6 if test $ac_cv_type_mode_t = no; then X cat >> confdefs.h <<\EOF #define mode_t int EOF X fi X echo $ac_n "checking for pid_t""... $ac_c" 1>&6 echo "configure:3034: checking for pid_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_pid_t=yes else X rm -rf conftest* X ac_cv_type_pid_t=no fi rm -f conftest* X fi echo "$ac_t""$ac_cv_type_pid_t" 1>&6 if test $ac_cv_type_pid_t = no; then X cat >> confdefs.h <<\EOF #define pid_t int EOF X fi X echo $ac_n "checking for off_t""... $ac_c" 1>&6 echo "configure:3067: checking for off_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_off_t=yes else X rm -rf conftest* X ac_cv_type_off_t=no fi rm -f conftest* X fi echo "$ac_t""$ac_cv_type_off_t" 1>&6 if test $ac_cv_type_off_t = no; then X cat >> confdefs.h <<\EOF #define off_t long EOF X fi X echo $ac_n "checking for size_t""... $ac_c" 1>&6 echo "configure:3100: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_size_t=yes else X rm -rf conftest* X ac_cv_type_size_t=no fi rm -f conftest* X fi echo "$ac_t""$ac_cv_type_size_t" 1>&6 if test $ac_cv_type_size_t = no; then X cat >> confdefs.h <<\EOF #define size_t unsigned EOF X fi X echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 echo "configure:3133: checking for uid_t in sys/types.h" >&5 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "uid_t" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_uid_t=yes else X rm -rf conftest* X ac_cv_type_uid_t=no fi rm -f conftest* X fi X echo "$ac_t""$ac_cv_type_uid_t" 1>&6 if test $ac_cv_type_uid_t = no; then X cat >> confdefs.h <<\EOF #define uid_t int EOF X X cat >> confdefs.h <<\EOF #define gid_t int EOF X fi X echo $ac_n "checking for daddr_t""... $ac_c" 1>&6 echo "configure:3167: checking for daddr_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_daddr_t=yes else X rm -rf conftest* X ac_cv_type_daddr_t=no fi rm -f conftest* X fi echo "$ac_t""$ac_cv_type_daddr_t" 1>&6 if test $ac_cv_type_daddr_t = no; then X cat >> confdefs.h <<\EOF #define daddr_t long EOF X fi X echo $ac_n "checking for major_t""... $ac_c" 1>&6 echo "configure:3200: checking for major_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_major_t=yes else X rm -rf conftest* X ac_cv_type_major_t=no fi rm -f conftest* X fi echo "$ac_t""$ac_cv_type_major_t" 1>&6 if test $ac_cv_type_major_t = no; then X cat >> confdefs.h <<\EOF #define major_t int EOF X fi X echo $ac_n "checking for minor_t""... $ac_c" 1>&6 echo "configure:3233: checking for minor_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_minor_t=yes else X rm -rf conftest* X ac_cv_type_minor_t=no fi rm -f conftest* X fi echo "$ac_t""$ac_cv_type_minor_t" 1>&6 if test $ac_cv_type_minor_t = no; then X cat >> confdefs.h <<\EOF #define minor_t int EOF X fi X echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 echo "configure:3266: checking for ssize_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | X egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_type_ssize_t=yes else X rm -rf conftest* X ac_cv_type_ssize_t=no fi rm -f conftest* X fi echo "$ac_t""$ac_cv_type_ssize_t" 1>&6 if test $ac_cv_type_ssize_t = no; then X cat >> confdefs.h <<\EOF #define ssize_t int EOF X fi X X X echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6 echo "configure:3300: checking for unsigned long long" >&5 if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X ac_cv_type_unsigned_long_long=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_type_unsigned_long_long=no fi rm -f conftest* fi X echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6 X if test $ac_cv_type_unsigned_long_long = yes; then X cat >> confdefs.h <<\EOF #define HAVE_UNSIGNED_LONG_LONG 1 EOF X X fi X X X X if test $jm_ac_cv_header_inttypes_h = no; then X X test $ac_cv_type_unsigned_long_long = yes \ X && ac_type='unsigned long long' \ X || ac_type='unsigned long' X cat >> confdefs.h <&6 echo "configure:3352: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` X cat >> confdefs.h <&6 fi done X X for ac_func in strtoumax do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:3391: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:3419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" fi done X X X X case "$ac_cv_type_unsigned_long_long,$ac_cv_func_strtoumax" in X yes,no) X for ac_func in strtoull do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:3451: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" fi done X X X ;; X esac X X X for ac_func in fsync ftime getcwd isascii mkfifo nap napms poll \ select strerror strstr usleep do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:3514: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:3542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 fi done X X echo $ac_n "checking for mknod""... $ac_c" 1>&6 echo "configure:3568: checking for mknod" >&5 if eval "test \"`echo '$''{'tar_cv_func_mknod'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #include int main() { mknod (0, 0, 0) ; return 0; } EOF if { (eval echo configure:3582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X tar_cv_func_mknod=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X tar_cv_func_mknod=no fi rm -f conftest* fi X echo "$ac_t""$tar_cv_func_mknod" 1>&6 test $tar_cv_func_mknod = yes && cat >> confdefs.h <<\EOF #define HAVE_MKNOD 1 EOF X X # Whenever both -lsocket and -lnsl are needed, it seems to be always the # case that gethostbyname requires -lnsl. So, check -lnsl first, for it # to be in LIBS before the setsockopt checks are performed. *However*, # on SINIX-N 5.43, this is false, and gethostent seems to be a better # candidate. So, let's use it below instead of gethostbyname, and see. X echo $ac_n "checking for gethostent""... $ac_c" 1>&6 echo "configure:3607: checking for gethostent" >&5 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char gethostent(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_gethostent) || defined (__stub___gethostent) choke me #else gethostent(); #endif X ; return 0; } EOF if { (eval echo configure:3635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_gethostent=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_gethostent=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'gethostent`\" = yes"; then X echo "$ac_t""yes" 1>&6 X : else X echo "$ac_t""no" 1>&6 fi X if test $ac_cv_func_gethostent = no; then X echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6 echo "configure:3656: checking for gethostent in -lnsl" >&5 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" X fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ X -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` X cat >> confdefs.h <&6 fi X fi echo $ac_n "checking for setsockopt""... $ac_c" 1>&6 echo "configure:3704: checking for setsockopt" >&5 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char setsockopt(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_setsockopt) || defined (__stub___setsockopt) choke me #else setsockopt(); #endif X ; return 0; } EOF if { (eval echo configure:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_setsockopt=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_setsockopt=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then X echo "$ac_t""yes" 1>&6 X : else X echo "$ac_t""no" 1>&6 fi X if test $ac_cv_func_setsockopt = no; then X echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6 echo "configure:3753: checking for setsockopt in -lsocket" >&5 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_save_LIBS="$LIBS" LIBS="-lsocket $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" X fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ X -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` X cat >> confdefs.h <&6 fi X fi X # 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>&6 echo "configure:3804: checking for working alloca.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < int main() { char *p = alloca(2 * sizeof(int)); ; return 0; } EOF if { (eval echo configure:3816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X ac_cv_header_alloca_h=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_header_alloca_h=no fi rm -f conftest* fi X echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 if test $ac_cv_header_alloca_h = yes; then X cat >> confdefs.h <<\EOF #define HAVE_ALLOCA_H 1 EOF X fi X echo $ac_n "checking for alloca""... $ac_c" 1>&6 echo "configure:3837: checking for alloca" >&5 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < # define alloca _alloca # else # if HAVE_ALLOCA_H # include # else # ifdef _AIX X #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ char *alloca (); # endif # endif # endif # endif #endif X int main() { char *p = (char *) alloca(1); ; return 0; } EOF if { (eval echo configure:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X ac_cv_func_alloca_works=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X ac_cv_func_alloca_works=no fi rm -f conftest* fi X echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 if test $ac_cv_func_alloca_works = yes; then X cat >> confdefs.h <<\EOF #define HAVE_ALLOCA 1 EOF X fi X if test $ac_cv_func_alloca_works = no; then X # The SVR3 libPW and SVR4 libucb both contain incompatible functions X # that cause trouble. Some versions do not even contain alloca or X # contain a buggy version. If you still want to use their alloca, X # use ar to extract alloca.o from them instead of compiling alloca.c. X ALLOCA=alloca.${ac_objext} X cat >> confdefs.h <<\EOF #define C_ALLOCA 1 EOF X X echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 echo "configure:3902: checking whether alloca needs Cray hooks" >&5 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext <&5 | X egrep "webecray" >/dev/null 2>&1; then X rm -rf conftest* X ac_cv_os_cray=yes else X rm -rf conftest* X ac_cv_os_cray=no fi rm -f conftest* X fi X echo "$ac_t""$ac_cv_os_cray" 1>&6 if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do X echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:3932: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:3960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X cat >> confdefs.h <&6 fi X done fi X echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 echo "configure:3987: checking stack direction for C alloca" >&5 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test "$cross_compiling" = yes; then X ac_cv_c_stack_direction=0 else X cat > conftest.$ac_ext < addr) ? 1 : -1; } main () { X exit (find_stack_direction() < 0); } EOF if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X ac_cv_c_stack_direction=1 else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X ac_cv_c_stack_direction=-1 fi rm -fr conftest* fi X fi X echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 cat >> confdefs.h <&6 echo "configure:4036: checking for working fnmatch" >&5 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X # Some versions of Solaris or SCO have a broken fnmatch function. # So we run a test program. If we are cross-compiling, take no chance. # Thanks to John Oleynick and Franc,ois Pinard for this test. if test "$cross_compiling" = yes; then X ac_cv_func_fnmatch_works=no else X cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X ac_cv_func_fnmatch_works=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X ac_cv_func_fnmatch_works=no fi rm -fr conftest* fi X fi X echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6 if test $ac_cv_func_fnmatch_works = yes; then X cat >> confdefs.h <<\EOF #define HAVE_FNMATCH 1 EOF X fi X test $ac_cv_func_fnmatch_works = yes || LIBOBJS="$LIBOBJS fnmatch.o" echo $ac_n "checking for vprintf""... $ac_c" 1>&6 echo "configure:4075: checking for vprintf" >&5 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char vprintf(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_vprintf) || defined (__stub___vprintf) choke me #else vprintf(); #endif X ; return 0; } EOF if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_vprintf=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_vprintf=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then X echo "$ac_t""yes" 1>&6 X cat >> confdefs.h <<\EOF #define HAVE_VPRINTF 1 EOF X else X echo "$ac_t""no" 1>&6 fi X if test "$ac_cv_func_vprintf" != yes; then echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 echo "configure:4127: checking for _doprnt" >&5 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char _doprnt(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub__doprnt) || defined (__stub____doprnt) choke me #else _doprnt(); #endif X ; return 0; } EOF if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func__doprnt=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func__doprnt=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then X echo "$ac_t""yes" 1>&6 X cat >> confdefs.h <<\EOF #define HAVE_DOPRNT 1 EOF X else X echo "$ac_t""no" 1>&6 fi X fi X for ac_func in execlp ftruncate lchown memset mkdir rename rmdir \ X strtol strtoul do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:4183: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" fi done X X X X cat >> confdefs.h <&6 echo "configure:4244: checking for working malloc" >&5 if eval "test \"`echo '$''{'jm_cv_func_working_malloc'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test "$cross_compiling" = yes; then X jm_cv_func_working_malloc=no else X cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X jm_cv_func_working_malloc=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X jm_cv_func_working_malloc=no fi rm -fr conftest* fi X X fi X echo "$ac_t""$jm_cv_func_working_malloc" 1>&6 X if test $jm_cv_func_working_malloc = no; then X X LIBOBJS="$LIBOBJS malloc.$ac_objext" X cat >> confdefs.h <&6 echo "configure:4292: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:4302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` X cat >> confdefs.h <&6 fi done X for ac_func in alarm do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:4331: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 fi done X echo $ac_n "checking for working mktime""... $ac_c" 1>&6 echo "configure:4384: checking for working mktime" >&5 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test "$cross_compiling" = yes; then X ac_cv_func_working_mktime=no else X cat > conftest.$ac_ext < # include X #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif X #if HAVE_UNISTD_H # include #endif X #if !HAVE_ALARM # define alarm(X) /* empty */ #endif X /* Work around redefinition to rpl_putenv by other config tests. */ #undef putenv X static time_t time_t_max; X /* Values we'll use to set the TZ environment variable. */ static const char *const tz_strings[] = { X (const char *) 0, "TZ=GMT0", "TZ=JST-9", X "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" }; #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) X /* Fail if mktime fails to convert a date in the spring-forward gap. X Based on a problem report from Andreas Jaeger. */ static void spring_forward_gap () { X /* glibc (up to about 1998-10-07) failed this test) */ X struct tm tm; X X /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" X instead of "TZ=America/Vancouver" in order to detect the bug even X on systems that don't support the Olson extension, or don't have the X full zoneinfo tables installed. */ X putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); X X tm.tm_year = 98; X tm.tm_mon = 3; X tm.tm_mday = 5; X tm.tm_hour = 2; X tm.tm_min = 0; X tm.tm_sec = 0; X tm.tm_isdst = -1; X if (mktime (&tm) == (time_t)-1) X exit (1); } X static void mktime_test (now) X time_t now; { X struct tm *lt; X if ((lt = localtime (&now)) && mktime (lt) != now) X exit (1); X now = time_t_max - now; X if ((lt = localtime (&now)) && mktime (lt) != now) X exit (1); } X static void irix_6_4_bug () { X /* Based on code from Ariel Faigon. */ X struct tm tm; X tm.tm_year = 96; X tm.tm_mon = 3; X tm.tm_mday = 0; X tm.tm_hour = 0; X tm.tm_min = 0; X tm.tm_sec = 0; X tm.tm_isdst = -1; X mktime (&tm); X if (tm.tm_mon != 2 || tm.tm_mday != 31) X exit (1); } X static void bigtime_test (j) X int j; { X struct tm tm; X time_t now; X tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; X now = mktime (&tm); X if (now != (time_t) -1) X { X struct tm *lt = localtime (&now); X if (! (lt X && lt->tm_year == tm.tm_year X && lt->tm_mon == tm.tm_mon X && lt->tm_mday == tm.tm_mday X && lt->tm_hour == tm.tm_hour X && lt->tm_min == tm.tm_min X && lt->tm_sec == tm.tm_sec X && lt->tm_yday == tm.tm_yday X && lt->tm_wday == tm.tm_wday X && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) X == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) X exit (1); X } } X int main () { X time_t t, delta; X int i, j; X X /* This test makes some buggy mktime implementations loop. X Give up after 60 seconds; a mktime slower than that X isn't worth using anyway. */ X alarm (60); X X for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) X continue; X time_t_max--; X delta = time_t_max / 997; /* a suitable prime number */ X for (i = 0; i < N_STRINGS; i++) X { X if (tz_strings[i]) X putenv (tz_strings[i]); X X for (t = 0; t <= time_t_max - delta; t += delta) X mktime_test (t); X mktime_test ((time_t) 60 * 60); X mktime_test ((time_t) 60 * 60 * 24); X X for (j = 1; 0 < j; j *= 2) X bigtime_test (j); X bigtime_test (j - 1); X } X irix_6_4_bug (); X spring_forward_gap (); X exit (0); } X EOF if { (eval echo configure:4542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X ac_cv_func_working_mktime=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X ac_cv_func_working_mktime=no fi rm -fr conftest* fi X fi X echo "$ac_t""$ac_cv_func_working_mktime" 1>&6 if test $ac_cv_func_working_mktime = no; then X LIBOBJS="$LIBOBJS mktime.${ac_objext}" fi X X X for ac_func in localtime_r do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:4565: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 fi done X X X if test $ac_cv_func_working_mktime = no; then X cat >> confdefs.h <> confdefs.h <&6 echo "configure:4632: checking for working realloc" >&5 if eval "test \"`echo '$''{'jm_cv_func_working_realloc'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test "$cross_compiling" = yes; then X jm_cv_func_working_realloc=no else X cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X jm_cv_func_working_realloc=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X jm_cv_func_working_realloc=no fi rm -fr conftest* fi X X fi X echo "$ac_t""$jm_cv_func_working_realloc" 1>&6 X if test $jm_cv_func_working_realloc = no; then X X LIBOBJS="$LIBOBJS realloc.$ac_objext" X cat >> confdefs.h <&6 echo "configure:4682: checking for 3-argument open" >&5 if eval "test \"`echo '$''{'tar_cv_func_open3'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #else # include #endif int main() { int x = O_RDONLY ; return 0; } EOF if { (eval echo configure:4699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X tar_cv_func_open3=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X tar_cv_func_open3=no fi rm -f conftest* fi X echo "$ac_t""$tar_cv_func_open3" 1>&6 if test $tar_cv_func_open3 = no; then X cat >> confdefs.h <<\EOF #define EMUL_OPEN3 1 EOF X fi X # `union wait' is preferrably avoided. We merely assume below # that if `int pid;' fails, `union wait pid;' would have worked. # Directly trying `union wait pid;' is seeking for trouble, as # some POSIX systems are offering compatibility hacks generating # ugly diagnostics. Also, on some systems, WEXITSTATUS exists, # but fails when called on `union wait' variables. X echo $ac_n "checking for union wait""... $ac_c" 1>&6 echo "configure:4727: checking for union wait" >&5 if eval "test \"`echo '$''{'tar_cv_header_union_wait'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < #if HAVE_SYS_WAIT_H # include #endif int main() { int status; int pid; pid = wait (&status); ; return 0; } EOF if { (eval echo configure:4743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then X rm -rf conftest* X tar_cv_header_union_wait=no else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X tar_cv_header_union_wait=yes fi rm -f conftest* fi X echo "$ac_t""$tar_cv_header_union_wait" 1>&6 test $tar_cv_header_union_wait = yes && cat >> confdefs.h <<\EOF #define HAVE_UNION_WAIT 1 EOF X X echo $ac_n "checking for remote shell""... $ac_c" 1>&6 echo "configure:4762: checking for remote shell" >&5 if eval "test \"`echo '$''{'tar_cv_path_RSH'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test -n "$RSH"; then X tar_cv_path_RSH=$RSH X else X tar_cv_path_RSH=no X for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \ X /usr/bin/nsh /usr/bin/rcmd X do X if test -f $ac_file; then X tar_cv_path_RSH=$ac_file X break X fi X done X fi fi X echo "$ac_t""$tar_cv_path_RSH" 1>&6 if test $tar_cv_path_RSH = no; then X for ac_hdr in netdb.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:4787: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:4797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` X cat >> confdefs.h <&6 fi done X else X cat >> confdefs.h <&6 echo "configure:4831: checking for default archive" >&5 X if test -z "$DEFAULT_ARCHIVE"; then X DEFAULT_ARCHIVE=- else X if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then X echo "configure: warning: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" 1>&2 X fi X # FIXME: Look for DEFTAPE in . X # FIXME: Let DEVICE_PREFIX be configured from the environment. X # FIXME: Rearrange, here. X case $DEFAULT_ARCHIVE in X *[0-7][lmh]) X device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/[0-7][lmh]$//'` X cat >> confdefs.h <> confdefs.h <<\EOF #define DENSITY_LETTER 1 EOF X X ;; X *[0-7]) X device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/[0-7]$//'` X cat >> confdefs.h <> confdefs.h <&6 X echo $ac_n "checking for default blocking""... $ac_c" 1>&6 echo "configure:4870: checking for default blocking" >&5 DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20} cat >> confdefs.h <&6 X echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6 echo "configure:4879: checking if malloc debugging is wanted" >&5 # Check whether --with-dmalloc or --without-dmalloc was given. if test "${with_dmalloc+set}" = set; then X withval="$with_dmalloc" X if test "$withval" = yes; then X echo "$ac_t""yes" 1>&6 X cat >> confdefs.h <<\EOF #define WITH_DMALLOC 1 EOF X X LIBS="$LIBS -ldmalloc" X LDFLAGS="$LDFLAGS -g" else X echo "$ac_t""no" 1>&6 fi else X echo "$ac_t""no" 1>&6 fi X X X for ac_hdr in unistd.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:4904: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:4914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` X cat >> confdefs.h <&6 fi done X for ac_func in getpagesize do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:4943: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:4971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 fi done X echo $ac_n "checking for working mmap""... $ac_c" 1>&6 echo "configure:4996: checking for working mmap" >&5 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X if test "$cross_compiling" = yes; then X ac_cv_func_mmap_fixed_mapped=no else X cat > conftest.$ac_ext < #include #include X /* This mess was copied from the GNU getpagesize.h. */ #ifndef HAVE_GETPAGESIZE # ifdef HAVE_UNISTD_H # include # endif X /* Assume that all systems that can run configure have sys/param.h. */ # ifndef HAVE_SYS_PARAM_H # define HAVE_SYS_PARAM_H 1 # endif X # ifdef _SC_PAGESIZE # define getpagesize() sysconf(_SC_PAGESIZE) # else /* no _SC_PAGESIZE */ # ifdef HAVE_SYS_PARAM_H # include # ifdef EXEC_PAGESIZE # define getpagesize() EXEC_PAGESIZE # else /* no EXEC_PAGESIZE */ # ifdef NBPG # define getpagesize() NBPG * CLSIZE # ifndef CLSIZE # define CLSIZE 1 # endif /* no CLSIZE */ # else /* no NBPG */ # ifdef NBPC # define getpagesize() NBPC # else /* no NBPC */ # ifdef PAGESIZE # define getpagesize() PAGESIZE # endif /* PAGESIZE */ # endif /* no NBPC */ # endif /* no NBPG */ # endif /* no EXEC_PAGESIZE */ # else /* no HAVE_SYS_PARAM_H */ # define getpagesize() 8192 /* punt totally */ # endif /* no HAVE_SYS_PARAM_H */ # endif /* no _SC_PAGESIZE */ X #endif /* no HAVE_GETPAGESIZE */ X #ifdef __cplusplus extern "C" { void *malloc(unsigned); } #else char *malloc(); #endif X int main() { X char *data, *data2, *data3; X int i, pagesize; X int fd; X X pagesize = getpagesize(); X X /* X * First, make a file with some known garbage in it. X */ X data = malloc(pagesize); X if (!data) X exit(1); X for (i = 0; i < pagesize; ++i) X *(data + i) = rand(); X umask(0); X fd = creat("conftestmmap", 0600); X if (fd < 0) X exit(1); X if (write(fd, data, pagesize) != pagesize) X exit(1); X close(fd); X X /* X * Next, try to mmap the file at a fixed address which X * already has something else allocated at it. If we can, X * also make sure that we see the same garbage. X */ X fd = open("conftestmmap", O_RDWR); X if (fd < 0) X exit(1); X data2 = malloc(2 * pagesize); X if (!data2) X exit(1); X data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); X if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, X MAP_PRIVATE | MAP_FIXED, fd, 0L)) X exit(1); X for (i = 0; i < pagesize; ++i) X if (*(data + i) != *(data2 + i)) X exit(1); X X /* X * Finally, make sure that changes to the mapped area X * do not percolate back to the file as seen by read(). X * (This is a bug on some variants of i386 svr4.0.) X */ X for (i = 0; i < pagesize; ++i) X *(data2 + i) = *(data2 + i) + 1; X data3 = malloc(pagesize); X if (!data3) X exit(1); X if (read(fd, data3, pagesize) != pagesize) X exit(1); X for (i = 0; i < pagesize; ++i) X if (*(data + i) != *(data3 + i)) X exit(1); X close(fd); X unlink("conftestmmap"); X exit(0); } X EOF if { (eval echo configure:5144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then X ac_cv_func_mmap_fixed_mapped=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -fr conftest* X ac_cv_func_mmap_fixed_mapped=no fi rm -fr conftest* fi X fi X echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 if test $ac_cv_func_mmap_fixed_mapped = yes; then X cat >> confdefs.h <<\EOF #define HAVE_MMAP 1 EOF X fi X X X for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ unistd.h sys/param.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:5172: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:5182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` X cat >> confdefs.h <&6 fi done X X for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ strdup __argz_count __argz_stringify __argz_next do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:5212: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 fi done X X X if test "${ac_cv_func_stpcpy+set}" != "set"; then X for ac_func in stpcpy do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:5269: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:5297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 fi done X X fi X if test "${ac_cv_func_stpcpy}" = "yes"; then X cat >> confdefs.h <<\EOF #define HAVE_STPCPY 1 EOF X X fi X X if test $ac_cv_header_locale_h = yes; then X echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 echo "configure:5331: checking for LC_MESSAGES" >&5 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < int main() { return LC_MESSAGES ; return 0; } EOF if { (eval echo configure:5343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X am_cv_val_LC_MESSAGES=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X am_cv_val_LC_MESSAGES=no fi rm -f conftest* fi X echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 X if test $am_cv_val_LC_MESSAGES = yes; then X cat >> confdefs.h <<\EOF #define HAVE_LC_MESSAGES 1 EOF X X fi X fi X echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 echo "configure:5364: checking whether NLS is requested" >&5 X # Check whether --enable-nls or --disable-nls was given. if test "${enable_nls+set}" = set; then X enableval="$enable_nls" X USE_NLS=$enableval else X USE_NLS=yes fi X X echo "$ac_t""$USE_NLS" 1>&6 X X X USE_INCLUDED_LIBINTL=no X X if test "$USE_NLS" = "yes"; then X cat >> confdefs.h <<\EOF #define ENABLE_NLS 1 EOF X X echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 echo "configure:5384: checking whether included gettext is requested" >&5 X # Check whether --with-included-gettext or --without-included-gettext was given. if test "${with_included_gettext+set}" = set; then X withval="$with_included_gettext" X nls_cv_force_use_gnu_gettext=$withval else X nls_cv_force_use_gnu_gettext=no fi X X echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 X X nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" X if test "$nls_cv_force_use_gnu_gettext" != "yes"; then X nls_cv_header_intl= X nls_cv_header_libgt= X CATOBJEXT=NONE X X ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 echo "configure:5403: checking for libintl.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:5413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 echo "configure:5430: checking for gettext in libc" >&5 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < int main() { return (int) gettext ("") ; return 0; } EOF if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X gt_cv_func_gettext_libc=yes else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X gt_cv_func_gettext_libc=no fi rm -f conftest* fi X echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 X X if test "$gt_cv_func_gettext_libc" != "yes"; then X echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 echo "configure:5458: checking for bindtextdomain in -lintl" >&5 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" X fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 echo "configure:5493: checking for gettext in -lintl" >&5 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" X fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ X -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` X cat >> confdefs.h <&6 fi X else X echo "$ac_t""no" 1>&6 fi X X fi X X if test "$gt_cv_func_gettext_libc" = "yes" \ X || test "$ac_cv_lib_intl_gettext" = "yes"; then X cat >> confdefs.h <<\EOF #define HAVE_GETTEXT 1 EOF X X # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5554: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$MSGFMT" in X /*) X ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then X ac_cv_path_MSGFMT="$ac_dir/$ac_word" X break X fi X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" X ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test -n "$MSGFMT"; then X echo "$ac_t""$MSGFMT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X if test "$MSGFMT" != "no"; then X for ac_func in dcgettext do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:5588: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char $ac_func(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif X ; return 0; } EOF if { (eval echo configure:5616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_$ac_func=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` X cat >> confdefs.h <&6 fi done X X # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5643: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$GMSGFMT" in X /*) X ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. X ;; X ?:/*) X ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_path_GMSGFMT="$ac_dir/$ac_word" X break X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" X ;; esac fi GMSGFMT="$ac_cv_path_GMSGFMT" if test -n "$GMSGFMT"; then X echo "$ac_t""$GMSGFMT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5679: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$XGETTEXT" in X /*) X ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then X ac_cv_path_XGETTEXT="$ac_dir/$ac_word" X break X fi X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" X ;; esac fi XXGETTEXT="$ac_cv_path_XGETTEXT" if test -n "$XGETTEXT"; then X echo "$ac_t""$XGETTEXT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X CATOBJEXT=.gmo X DATADIRNAME=share else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X CATOBJEXT=.mo X DATADIRNAME=lib fi rm -f conftest* X INSTOBJEXT=.mo X fi X fi X else X echo "$ac_t""no" 1>&6 fi X X X if test "$CATOBJEXT" = "NONE"; then X echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 echo "configure:5742: checking whether catgets can be used" >&5 X # Check whether --with-catgets or --without-catgets was given. if test "${with_catgets+set}" = set; then X withval="$with_catgets" X nls_cv_use_catgets=$withval else X nls_cv_use_catgets=no fi X X echo "$ac_t""$nls_cv_use_catgets" 1>&6 X X if test "$nls_cv_use_catgets" = "yes"; then X echo $ac_n "checking for main in -li""... $ac_c" 1>&6 echo "configure:5755: checking for main in -li" >&5 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X ac_save_LIBS="$LIBS" LIBS="-li $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" X fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ X -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` X cat >> confdefs.h <&6 fi X X echo $ac_n "checking for catgets""... $ac_c" 1>&6 echo "configure:5798: checking for catgets" >&5 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ char catgets(); X int main() { X /* The GNU C library defines this for functions which it implements X to always fail with ENOSYS. Some functions are actually named X something starting with __ and the normal name is an alias. */ #if defined (__stub_catgets) || defined (__stub___catgets) choke me #else catgets(); #endif X ; return 0; } EOF if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X rm -rf conftest* X eval "ac_cv_func_catgets=yes" else X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_func_catgets=no" fi rm -f conftest* fi X if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then X echo "$ac_t""yes" 1>&6 X cat >> confdefs.h <<\EOF #define HAVE_CATGETS 1 EOF X X INTLOBJS="\$(CATOBJS)" X # Extract the first word of "gencat", so it can be a program name with args. set dummy gencat; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5848: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$GENCAT" in X /*) X ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. X ;; X ?:/*) X ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_path_GENCAT="$ac_dir/$ac_word" X break X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" X ;; esac fi GENCAT="$ac_cv_path_GENCAT" if test -n "$GENCAT"; then X echo "$ac_t""$GENCAT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X if test "$GENCAT" != "no"; then X # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5884: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$GMSGFMT" in X /*) X ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. X ;; X ?:/*) X ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_path_GMSGFMT="$ac_dir/$ac_word" X break X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" X ;; esac fi GMSGFMT="$ac_cv_path_GMSGFMT" if test -n "$GMSGFMT"; then X echo "$ac_t""$GMSGFMT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X if test "$GMSGFMT" = "no"; then X # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5921: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$GMSGFMT" in X /*) X ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then X ac_cv_path_GMSGFMT="$ac_dir/$ac_word" X break X fi X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" X ;; esac fi GMSGFMT="$ac_cv_path_GMSGFMT" if test -n "$GMSGFMT"; then X echo "$ac_t""$GMSGFMT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X fi X # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:5956: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$XGETTEXT" in X /*) X ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then X ac_cv_path_XGETTEXT="$ac_dir/$ac_word" X break X fi X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" X ;; esac fi XXGETTEXT="$ac_cv_path_XGETTEXT" if test -n "$XGETTEXT"; then X echo "$ac_t""$XGETTEXT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X USE_INCLUDED_LIBINTL=yes X CATOBJEXT=.cat X INSTOBJEXT=.cat X DATADIRNAME=lib X INTLDEPS='$(top_builddir)/intl/libintl.a' X INTLLIBS=$INTLDEPS X LIBS=`echo $LIBS | sed -e 's/-lintl//'` X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi else X echo "$ac_t""no" 1>&6 fi X X fi X fi X X if test "$CATOBJEXT" = "NONE"; then X nls_cv_use_gnu_gettext=yes X fi X fi X X if test "$nls_cv_use_gnu_gettext" = "yes"; then X INTLOBJS="\$(GETTOBJS)" X # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:6014: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$MSGFMT" in X /*) X ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then X ac_cv_path_MSGFMT="$ac_dir/$ac_word" X break X fi X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" X ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test -n "$MSGFMT"; then X echo "$ac_t""$MSGFMT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:6048: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$GMSGFMT" in X /*) X ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. X ;; X ?:/*) X ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" X ac_dummy="$PATH" X for ac_dir in $ac_dummy; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_path_GMSGFMT="$ac_dir/$ac_word" X break X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" X ;; esac fi GMSGFMT="$ac_cv_path_GMSGFMT" if test -n "$GMSGFMT"; then X echo "$ac_t""$GMSGFMT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:6084: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X case "$XGETTEXT" in X /*) X ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then X ac_cv_path_XGETTEXT="$ac_dir/$ac_word" X break X fi X fi X done X IFS="$ac_save_ifs" X test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" X ;; esac fi XXGETTEXT="$ac_cv_path_XGETTEXT" if test -n "$XGETTEXT"; then X echo "$ac_t""$XGETTEXT" 1>&6 else X echo "$ac_t""no" 1>&6 fi X X X USE_INCLUDED_LIBINTL=yes X CATOBJEXT=.gmo X INSTOBJEXT=.mo X DATADIRNAME=share X INTLDEPS='$(top_builddir)/intl/libintl.a' X INTLLIBS=$INTLDEPS X LIBS=`echo $LIBS | sed -e 's/-lintl//'` X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi X X if test "$XGETTEXT" != ":"; then X if $XGETTEXT --omit-header /dev/null 2> /dev/null; then X : ; X else X echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 X XGETTEXT=":" X fi X fi X X # We need to process the po/ directory. X POSUB=po X else X DATADIRNAME=share X nls_cv_header_intl=intl/libintl.h X nls_cv_header_libgt=intl/libgettext.h X fi X if test -z "$nls_cv_header_intl"; then X # Clean out junk possibly left behind by a previous configuration. X rm -f intl/libintl.h X fi X X X X X # If this is used in GNU gettext we have to set USE_NLS to `yes' X # because some of the sources are only built for this goal. X if test "$PACKAGE" = gettext; then X USE_NLS=yes X USE_INCLUDED_LIBINTL=yes X fi X X for lang in $ALL_LINGUAS; do X GMOFILES="$GMOFILES $lang.gmo" X POFILES="$POFILES $lang.po" X done X X X X X X X X X X X X X X X if test "x$CATOBJEXT" != "x"; then X if test "x$ALL_LINGUAS" = "x"; then X LINGUAS= X else X echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 echo "configure:6181: checking for catalogs to be installed" >&5 X NEW_LINGUAS= X for lang in ${LINGUAS=$ALL_LINGUAS}; do X case "$ALL_LINGUAS" in X *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; X esac X done X LINGUAS=$NEW_LINGUAS X echo "$ac_t""$LINGUAS" 1>&6 X fi X X if test -n "$LINGUAS"; then X for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done X fi X fi X X if test $ac_cv_header_locale_h = yes; then X INCLUDE_LOCALE_H="#include " X else X INCLUDE_LOCALE_H="\ /* The system does not provide the header . Take care yourself. */" X fi X X X test -d intl || mkdir intl X if test "$CATOBJEXT" = ".cat"; then X ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 echo "configure:6209: checking for linux/version.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 else X cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:6219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" else X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X msgformat=linux else X echo "$ac_t""no" 1>&6 msgformat=xopen fi X X X sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed X fi X sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ X $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed X X if test "$PACKAGE" = "gettext"; then X GT_NO="#NO#" X GT_YES= X else X GT_NO= X GT_YES="#YES#" X fi X X X X MKINSTALLDIRS= X if test -n "$ac_aux_dir"; then X MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" X fi X if test -z "$MKINSTALLDIRS"; then X MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" X fi X X X l= X X X test -d po || mkdir po X case "$srcdir" in X .) X posrcprefix="../" ;; X /* | [A-Za-z]:*) X posrcprefix="$srcdir/" ;; X *) X posrcprefix="../$srcdir/" ;; X esac X rm -f po/POTFILES X sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ X < $srcdir/po/POTFILES.in > po/POTFILES X X # This no-op line works around a bug in automake 1.4: # it doesn't recognize the assignment to LIBOBJS # in m4/malloc.m4 and m4/realloc.m4. : LIBOBJS="$LIBOBJS malloc.o realloc.o" X # This is necessary so that .o files in LIBOBJS are also built via # the ANSI2KNR-filtering rules. LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'` X trap '' 1 2 15 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. # If it contains results you don't want to keep, you may remove or edit it. # # By default, configure uses ./config.cache as the cache file, # creating it if it does not exist already. You can give configure # the --cache-file=FILE option to use a different cache file; that is # what configure does when it calls configure scripts in # subdirectories, so they share the cache. # Giving --cache-file=/dev/null disables caching, for debugging configure. # config.status only pays attention to the cache file if you give it the # --recheck option to rerun configure. # EOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # 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 | X case `(ac_space=' '; set | grep ac_space) 2>&1` in X *ac_space=\ *) X # `set' does not quote correctly, so add quotes (double-quote substitution X # turns \\\\ into \\, and sed turns \\ into \). X sed -n \ X -e "s/'/'\\\\''/g" \ X -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" X ;; X *) X # `set' quotes correctly as required by POSIX, so do not add quotes. X sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' X ;; X esac >> confcache if cmp -s $cache_file confcache; then X : else X if test -w $cache_file; then X echo "updating cache $cache_file" X cat confcache > $cache_file X else X echo "not updating unwritable cache $cache_file" X fi fi rm -f confcache X trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 X test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' X # Any assignment to VPATH causes Sun make to only execute # the first set of double-colon rules, so remove it if not needed. # If there is a colon in the path, we need to keep it. if test "x$srcdir" = x.; then X ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' fi X trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 X DEFS=-DHAVE_CONFIG_H X # Without the "./", some shells look in PATH for config.status. : ${CONFIG_STATUS=./config.status} X echo creating $CONFIG_STATUS rm -f $CONFIG_STATUS cat > $CONFIG_STATUS </dev/null | sed 1q`: # # $0 $ac_configure_args # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. X ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" for ac_option do X case "\$ac_option" in X -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) X echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" X exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; X -version | --version | --versio | --versi | --vers | --ver | --ve | --v) X echo "$CONFIG_STATUS generated by autoconf version 2.13" X exit 0 ;; X -help | --help | --hel | --he | --h) X echo "\$ac_cs_usage"; exit 0 ;; X *) echo "\$ac_cs_usage"; exit 1 ;; X esac done X ac_given_srcdir=$srcdir ac_given_INSTALL="$INSTALL" X trap 'rm -fr `echo "Makefile doc/Makefile intl/Makefile lib/Makefile \ m4/Makefile po/Makefile.in \ scripts/Makefile src/Makefile tests/Makefile tests/preset config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF $ac_vpsub $extrasub s%@SHELL@%$SHELL%g s%@CFLAGS@%$CFLAGS%g s%@CPPFLAGS@%$CPPFLAGS%g s%@CXXFLAGS@%$CXXFLAGS%g s%@FFLAGS@%$FFLAGS%g s%@DEFS@%$DEFS%g s%@LDFLAGS@%$LDFLAGS%g 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%@mandir@%$mandir%g s%@host@%$host%g s%@host_alias@%$host_alias%g s%@host_cpu@%$host_cpu%g s%@host_vendor@%$host_vendor%g s%@host_os@%$host_os%g s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g s%@INSTALL_DATA@%$INSTALL_DATA%g s%@PACKAGE@%$PACKAGE%g s%@VERSION@%$VERSION%g s%@ACLOCAL@%$ACLOCAL%g s%@AUTOCONF@%$AUTOCONF%g s%@AUTOMAKE@%$AUTOMAKE%g s%@AUTOHEADER@%$AUTOHEADER%g s%@MAKEINFO@%$MAKEINFO%g s%@SET_MAKE@%$SET_MAKE%g s%@CC@%$CC%g s%@CPP@%$CPP%g s%@EXEEXT@%$EXEEXT%g s%@RANLIB@%$RANLIB%g s%@YACC@%$YACC%g s%@build@%$build%g s%@build_alias@%$build_alias%g s%@build_cpu@%$build_cpu%g s%@build_vendor@%$build_vendor%g s%@build_os@%$build_os%g s%@GETCONF@%$GETCONF%g s%@U@%$U%g s%@ANSI2KNR@%$ANSI2KNR%g s%@RMT@%$RMT%g s%@LIBOBJS@%$LIBOBJS%g s%@ALLOCA@%$ALLOCA%g s%@USE_NLS@%$USE_NLS%g s%@MSGFMT@%$MSGFMT%g s%@GMSGFMT@%$GMSGFMT%g s%@XGETTEXT@%$XGETTEXT%g s%@GENCAT@%$GENCAT%g s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g s%@CATALOGS@%$CATALOGS%g s%@CATOBJEXT@%$CATOBJEXT%g s%@DATADIRNAME@%$DATADIRNAME%g s%@GMOFILES@%$GMOFILES%g s%@INSTOBJEXT@%$INSTOBJEXT%g s%@INTLDEPS@%$INTLDEPS%g s%@INTLLIBS@%$INTLLIBS%g s%@INTLOBJS@%$INTLOBJS%g s%@POFILES@%$POFILES%g s%@POSUB@%$POSUB%g s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g s%@GT_NO@%$GT_NO%g s%@GT_YES@%$GT_YES%g s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g s%@l@%$l%g X CEOF EOF X cat >> $CONFIG_STATUS <<\EOF X # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. ac_file=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_cmds # Line after last line for current file. ac_more_lines=: ac_sed_cmds="" while $ac_more_lines; do X if test $ac_beg -gt 1; then X sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file X else X sed "${ac_end}q" conftest.subs > conftest.s$ac_file X fi X if test ! -s conftest.s$ac_file; then X ac_more_lines=false X rm -f conftest.s$ac_file X else X if test -z "$ac_sed_cmds"; then X ac_sed_cmds="sed -f conftest.s$ac_file" X else X ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" X fi X ac_file=`expr $ac_file + 1` X ac_beg=$ac_end X ac_end=`expr $ac_end + $ac_max_sed_cmds` X fi done if test -z "$ac_sed_cmds"; then X ac_sed_cmds=cat fi EOF X cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then X # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". X case "$ac_file" in X *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` X ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; X *) ac_file_in="${ac_file}.in" ;; X esac X X # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. X X # Remove last slash and all that follows it. Not all systems have dirname. X ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` X if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then X # The file is in a subdirectory. X test ! -d "$ac_dir" && mkdir "$ac_dir" X ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" X # A "../" for each directory in $ac_dir_suffix. X ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` X else X ac_dir_suffix= ac_dots= X fi X X case "$ac_given_srcdir" in X .) srcdir=. X if test -z "$ac_dots"; then top_srcdir=. X else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; X /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; X *) # Relative path. X srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" X top_srcdir="$ac_dots$ac_given_srcdir" ;; X esac X X case "$ac_given_INSTALL" in X [/$]*) INSTALL="$ac_given_INSTALL" ;; X *) INSTALL="$ac_dots$ac_given_INSTALL" ;; X esac X X echo creating "$ac_file" X rm -f "$ac_file" X configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." X case "$ac_file" in X *Makefile*) ac_comsub="1i\\ # $configure_input" ;; X *) ac_comsub= ;; X esac X X ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` X sed -e "$ac_comsub s%@configure_input@%$configure_input%g s%@srcdir@%$srcdir%g s%@top_srcdir@%$top_srcdir%g s%@INSTALL@%$INSTALL%g " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file fi; done rm -f conftest.s* X # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' ac_dC='\3' ac_dD='%g' # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='\([ ]\)%\1#\2define\3' ac_uC=' ' ac_uD='\4%g' # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_eB='$%\1#\2define\3' ac_eC=' ' ac_eD='%g' X if test "${CONFIG_HEADERS+set}" != set; then EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF fi for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then X # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". X case "$ac_file" in X *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` X ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; X *) ac_file_in="${ac_file}.in" ;; X esac X X echo creating $ac_file X X rm -f conftest.frag conftest.in conftest.out X ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` X cat $ac_file_inputs > conftest.in X EOF X # 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 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%ac_d%ac_u%gp s%ac_u%ac_e%gp EOF sed -n -f conftest.hdr confdefs.h > conftest.vals rm -f conftest.hdr X # This sed command replaces #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. cat >> conftest.vals <<\EOF s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% EOF X # Break up conftest.vals because some shells have a limit on # the size of here documents, and old seds have small limits too. X rm -f conftest.tail while : do X ac_lines=`grep -c . conftest.vals` X # grep -c gives empty output for an empty file on some AIX systems. X if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi X # Write a limited-size here document to conftest.frag. X echo ' cat > conftest.frag <> $CONFIG_STATUS X sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS X echo 'CEOF X sed -f conftest.frag conftest.in > conftest.out X rm -f conftest.in X mv conftest.out conftest.in ' >> $CONFIG_STATUS X sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail X rm -f conftest.vals X mv conftest.tail conftest.vals done rm -f conftest.vals X cat >> $CONFIG_STATUS <<\EOF X rm -f conftest.frag conftest.h X echo "/* $ac_file. Generated automatically by configure. */" > conftest.h X cat conftest.in >> conftest.h X rm -f conftest.in X if cmp -s $ac_file conftest.h 2>/dev/null; then X echo "$ac_file is unchanged" X rm -f conftest.h X else X # Remove last slash and all that follows it. Not all systems have dirname. X ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` X if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then X # The file is in a subdirectory. X test ! -d "$ac_dir" && mkdir "$ac_dir" X fi X rm -f $ac_file X mv conftest.h $ac_file X fi fi; done X EOF X cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF srcdir=$ac_given_srcdir while test -n "$ac_sources"; do X set $ac_dests; ac_dest=$1; shift; ac_dests=$* X set $ac_sources; ac_source=$1; shift; ac_sources=$* X X echo "linking $srcdir/$ac_source to $ac_dest" X X if test ! -r $srcdir/$ac_source; then X { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } X fi X rm -f $ac_dest X X # Make relative symlinks. X # Remove last slash and all that follows it. Not all systems have dirname. X ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` X if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then X # The dest file is in a subdirectory. X test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" X ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" X # A "../" for each directory in $ac_dest_dir_suffix. X ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` X else X ac_dest_dir_suffix= ac_dots= X fi X X case "$srcdir" in X [/$]*) ac_rel_source="$srcdir/$ac_source" ;; X *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; X esac X X # Make a symlink if possible; otherwise try a hard link. X if ln -s $ac_rel_source $ac_dest 2>/dev/null || X ln $srcdir/$ac_source $ac_dest; then : X else X { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } X fi done EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h case "$CONFIG_FILES" in *po/Makefile.in*) X sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile X esac X Xexit 0 EOF chmod +x $CONFIG_STATUS rm -fr confdefs* $ac_clean_files test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 X SHAR_EOF $shar_touch -am 0707012599 'tar-1.13/configure' && chmod 0775 'tar-1.13/configure' || $echo 'restore of' 'tar-1.13/configure' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/configure:' 'MD5 check failed' 51358e2f0487f98a62da3e5afe696daf tar-1.13/configure SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/configure'`" test 187588 -eq "$shar_count" || $echo 'tar-1.13/configure:' 'original size' '187588,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/configure.in ============== if test -f 'tar-1.13/configure.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/configure.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/configure.in' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/configure.in' && # Configure template for GNU tar. # Copyright 1991, 94, 95, 96, 97, 98, 1999 Free Software Foundation, Inc. X # This program 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. X # This program 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. X # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. X AC_INIT(src/tar.c) AM_CONFIG_HEADER(config.h) AC_PREREQ(2.12) AC_CANONICAL_HOST AM_INIT_AUTOMAKE(tar, 1.13) AC_DEFINE(_GNU_SOURCE) ALL_LINGUAS="cs de es fr it ko nl no pl pt ru sl sv" X AC_PROG_CC AC_PROG_GCC_TRADITIONAL AC_AIX AC_MINIX AC_EXEEXT AC_PROG_RANLIB AC_PROG_YACC AC_SYS_LARGEFILE AC_ISC_POSIX AM_C_PROTOTYPES AC_C_CONST AC_C_INLINE AC_CHECK_SIZEOF(unsigned long, 4) AC_CHECK_SIZEOF(long long, 0) X AC_CHECK_HEADERS(fcntl.h limits.h linux/fd.h memory.h net/errno.h poll.h \ sgtty.h string.h stropts.h \ sys/buf.h sys/device.h sys/gentape.h sys/inet.h sys/io/trioctl.h sys/ioccom.h \ sys/mtio.h sys/param.h sys/tprintf.h sys/tape.h sys/time.h sys/timeb.h \ sys/wait.h unistd.h) X jm_AC_HEADER_INTTYPES_H X # It seems that that many machines where seems to be # broken just require something like -D_XXX_SOURCE, where XXX might # be POSIX, POSIX_C, ALL, HPUX or whatever, depending on the machine. X AC_CACHE_CHECK(for utime.h, tar_cv_header_utime_h, X [AC_TRY_COMPILE([ #include #include ], [struct utimbuf foo], X tar_cv_header_utime_h=yes, tar_cv_header_utime_h=no)]) test $tar_cv_header_utime_h = yes && AC_DEFINE(HAVE_UTIME_H) X if test $ac_cv_header_sys_mtio_h = yes; then X AC_CACHE_CHECK(for remote tape header files, tar_cv_header_rmt, X [AC_TRY_CPP([ #if HAVE_SGTTY_H # include #endif #include ], X tar_cv_header_rmt=yes, tar_cv_header_rmt=no)]) X test $tar_cv_header_rmt = yes && RMT=rmt X AC_SUBST(RMT) fi X AC_CACHE_CHECK(for getgrgid declaration, tar_cv_header_getgrgid, X [AC_EGREP_HEADER(getgrgid, grp.h, X tar_cv_header_getgrgid=yes, tar_cv_header_getgrgid=no)]) test $tar_cv_header_getgrgid = yes && AC_DEFINE(HAVE_GETGRGID) X AC_CACHE_CHECK(for getpwuid declaration, tar_cv_header_getpwuid, X [AC_EGREP_HEADER(getpwuid, pwd.h, X tar_cv_header_getpwuid=yes, tar_cv_header_getpwuid=no)]) test $tar_cv_header_getpwuid = yes && AC_DEFINE(HAVE_GETPWUID) X AC_CACHE_CHECK(which ioctl field to test for reversed bytes, X tar_cv_header_mtio_check_field, X [AC_EGREP_HEADER(mt_model, sys/mtio.h, X tar_cv_header_mtio_check_field=mt_model, X tar_cv_header_mtio_check_field=mt_type)]) AC_DEFINE_UNQUOTED(MTIO_CHECK_FIELD, $tar_cv_header_mtio_check_field) X AC_HEADER_DIRENT AC_HEADER_MAJOR AC_HEADER_STAT AC_HEADER_STDC AC_HEADER_TIME AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_BLOCKS jm_STRUCT_DIRENT_D_INO AC_MSG_CHECKING([for st_fstype string in struct stat]) AC_CACHE_VAL(diff_cv_st_fstype_string, X [AC_TRY_COMPILE([#include #include ], [struct stat s; s.st_fstype[0] = 'x';], X diff_cv_st_fstype_string=yes, X diff_cv_st_fstype_string=no)]) AC_MSG_RESULT($diff_cv_st_fstype_string) if test $diff_cv_st_fstype_string = yes; then X AC_DEFINE(HAVE_ST_FSTYPE_STRING) fi X AC_TYPE_SIGNAL AC_TYPE_MODE_T AC_TYPE_PID_T AC_TYPE_OFF_T AC_TYPE_SIZE_T AC_TYPE_UID_T AC_CHECK_TYPE(daddr_t, long) AC_CHECK_TYPE(major_t, int) AC_CHECK_TYPE(minor_t, int) AC_CHECK_TYPE(ssize_t, int) jm_AC_TYPE_UINTMAX_T jm_AC_PREREQ_XSTRTOUMAX X AC_CHECK_FUNCS(fsync ftime getcwd isascii mkfifo nap napms poll \ select strerror strstr usleep) X AC_CACHE_CHECK(for mknod, tar_cv_func_mknod, X [AC_TRY_LINK([ #include #include ], X [mknod (0, 0, 0)], X tar_cv_func_mknod=yes, tar_cv_func_mknod=no)]) test $tar_cv_func_mknod = yes && AC_DEFINE(HAVE_MKNOD) X # Whenever both -lsocket and -lnsl are needed, it seems to be always the # case that gethostbyname requires -lnsl. So, check -lnsl first, for it # to be in LIBS before the setsockopt checks are performed. *However*, # on SINIX-N 5.43, this is false, and gethostent seems to be a better # candidate. So, let's use it below instead of gethostbyname, and see. X AC_CHECK_FUNC(gethostent) if test $ac_cv_func_gethostent = no; then X AC_CHECK_LIB(nsl, gethostent) fi AC_CHECK_FUNC(setsockopt) if test $ac_cv_func_setsockopt = no; then X AC_CHECK_LIB(socket, setsockopt) fi X AC_FUNC_ALLOCA AC_FUNC_FNMATCH test $ac_cv_func_fnmatch_works = yes || LIBOBJS="$LIBOBJS fnmatch.o" AC_FUNC_VPRINTF AC_REPLACE_FUNCS(execlp ftruncate lchown memset mkdir rename rmdir \ X strtol strtoul) jm_FUNC_MALLOC jm_FUNC_MKTIME jm_FUNC_REALLOC test "$ac_cv_func_strstr" = yes || LIBOBJS="$LIBOBJS strstr.o" X # The 3-argument open happens to go along with the O_* defines, which # are easier to check for. X AC_CACHE_CHECK(for 3-argument open, tar_cv_func_open3, X [AC_TRY_COMPILE([ #if HAVE_FCNTL_H # include #else # include #endif], X [int x = O_RDONLY], X tar_cv_func_open3=yes, tar_cv_func_open3=no)]) if test $tar_cv_func_open3 = no; then X AC_DEFINE(EMUL_OPEN3) fi X # `union wait' is preferrably avoided. We merely assume below # that if `int pid;' fails, `union wait pid;' would have worked. # Directly trying `union wait pid;' is seeking for trouble, as # some POSIX systems are offering compatibility hacks generating # ugly diagnostics. Also, on some systems, WEXITSTATUS exists, # but fails when called on `union wait' variables. X AC_CACHE_CHECK(for union wait, tar_cv_header_union_wait, X [AC_TRY_COMPILE([ #include #if HAVE_SYS_WAIT_H # include #endif], X [int status; int pid; pid = wait (&status);], X tar_cv_header_union_wait=no, tar_cv_header_union_wait=yes)]) test $tar_cv_header_union_wait = yes && AC_DEFINE(HAVE_UNION_WAIT) X AC_CACHE_CHECK(for remote shell, tar_cv_path_RSH, X [if test -n "$RSH"; then X tar_cv_path_RSH=$RSH X else X tar_cv_path_RSH=no X for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \ X /usr/bin/nsh /usr/bin/rcmd X do X if test -f $ac_file; then X tar_cv_path_RSH=$ac_file X break X fi X done X fi]) if test $tar_cv_path_RSH = no; then X AC_CHECK_HEADERS(netdb.h) else X AC_DEFINE_UNQUOTED(REMOTE_SHELL, "$tar_cv_path_RSH") fi X AC_MSG_CHECKING(for default archive) X if test -z "$DEFAULT_ARCHIVE"; then X DEFAULT_ARCHIVE=- else X if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then X AC_MSG_WARN(DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system) X fi X # FIXME: Look for DEFTAPE in . X # FIXME: Let DEVICE_PREFIX be configured from the environment. X # FIXME: Rearrange, here. X case $DEFAULT_ARCHIVE in changequote(, )dnl X *[0-7][lmh]) X device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/[0-7][lmh]$//'` changequote([, ])dnl X AC_DEFINE_UNQUOTED(DEVICE_PREFIX, "$device_prefix") X AC_DEFINE(DENSITY_LETTER) X ;; changequote(, )dnl X *[0-7]) X device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/[0-7]$//'` changequote([, ])dnl X AC_DEFINE_UNQUOTED(DEVICE_PREFIX, "$device_prefix") X ;; X esac fi AC_DEFINE_UNQUOTED(DEFAULT_ARCHIVE, "$DEFAULT_ARCHIVE") AC_MSG_RESULT($DEFAULT_ARCHIVE) X AC_MSG_CHECKING(for default blocking) DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20} AC_DEFINE_UNQUOTED(DEFAULT_BLOCKING, $DEFAULT_BLOCKING) AC_MSG_RESULT($DEFAULT_BLOCKING) X AM_WITH_DMALLOC X AM_GNU_GETTEXT X # This no-op line works around a bug in automake 1.4: # it doesn't recognize the assignment to LIBOBJS # in m4/malloc.m4 and m4/realloc.m4. : LIBOBJS="$LIBOBJS malloc.o realloc.o" X # This is necessary so that .o files in LIBOBJS are also built via # the ANSI2KNR-filtering rules. LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'` X AC_OUTPUT([Makefile doc/Makefile intl/Makefile lib/Makefile \ m4/Makefile po/Makefile.in \ scripts/Makefile src/Makefile tests/Makefile tests/preset]) SHAR_EOF $shar_touch -am 0707012499 'tar-1.13/configure.in' && chmod 0444 'tar-1.13/configure.in' || $echo 'restore of' 'tar-1.13/configure.in' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/configure.in:' 'MD5 check failed' a8d5f367a4c67d210c819b64be6b3258 tar-1.13/configure.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/configure.in'`" test 8182 -eq "$shar_count" || $echo 'tar-1.13/configure.in:' 'original size' '8182,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/install-sh ============== if test -f 'tar-1.13/install-sh' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/install-sh' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/install-sh' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/install-sh' && #!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5 (mit/util/scripts/install.sh). # # Copyright 1991 by the Massachusetts Institute of Technology # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that # the above copyright notice appear in all copies and that both that # copyright notice and this permission notice appear in supporting # documentation, and that the name of M.I.T. not be used in advertising or # publicity pertaining to distribution of the software without specific, # written prior permission. M.I.T. makes no representations about the # suitability of this software for any purpose. It is provided "as is" # without express or implied warranty. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. It can only install one file at a time, a restriction # shared with many OS's install programs. X X # set DOITPROG to echo to test this script X # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" X X # put in absolute paths if you don't have them in your path; or use env. vars. X mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" X transformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" X while [ x"$1" != x ]; do X case $1 in X -c) instcmd="$cpprog" X shift X continue;; X X -d) dir_arg=true X shift X continue;; X X -m) chmodcmd="$chmodprog $2" X shift X shift X continue;; X X -o) chowncmd="$chownprog $2" X shift X shift X continue;; X X -g) chgrpcmd="$chgrpprog $2" X shift X shift X continue;; X X -s) stripcmd="$stripprog" X shift X continue;; X X -t=*) transformarg=`echo $1 | sed 's/-t=//'` X shift X continue;; X X -b=*) transformbasename=`echo $1 | sed 's/-b=//'` X shift X continue;; X X *) if [ x"$src" = x ] X then X src=$1 X else X # this colon is to work around a 386BSD /bin/sh bug X : X dst=$1 X fi X shift X continue;; X esac done X if [ x"$src" = x ] then X echo "install: no input file specified" X exit 1 else X true fi X if [ x"$dir_arg" != x ]; then X dst=$src X src="" X X if [ -d $dst ]; then X instcmd=: X chmodcmd="" X else X instcmd=$mkdirprog X fi else X # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. X X if [ -f $src -o -d $src ] X then X true X else X echo "install: $src does not exist" X exit 1 X fi X X if [ x"$dst" = x ] X then X echo "install: no destination specified" X exit 1 X else X true X fi X # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic X X if [ -d $dst ] X then X dst="$dst"/`basename $src` X else X true X fi fi X ## this sed command emulates the dirname command dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` X # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script X # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' X ' IFS="${IFS-${defaultIFS}}" X oIFS="${IFS}" # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` IFS="${oIFS}" X pathcomp='' X while [ $# -ne 0 ] ; do X pathcomp="${pathcomp}${1}" X shift X X if [ ! -d "${pathcomp}" ] ; X then X $mkdirprog "${pathcomp}" X else X true X fi X X pathcomp="${pathcomp}/" done fi X if [ x"$dir_arg" != x ] then X $doit $instcmd $dst && X X if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && X if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && X if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && X if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi else X # If we're going to rename the final executable, determine the name now. X X if [ x"$transformarg" = x ] X then X dstfile=`basename $dst` X else X dstfile=`basename $dst $transformbasename | X sed $transformarg`$transformbasename X fi X # don't allow the sed command to completely eliminate the filename X X if [ x"$dstfile" = x ] X then X dstfile=`basename $dst` X else X true X fi X # Make a temp file name in the proper directory. X X dsttmp=$dstdir/#inst.$$# X # Move or copy the file name to the temp name X X $doit $instcmd $src $dsttmp && X X trap "rm -f ${dsttmp}" 0 && X # and set any options; do chmod last to preserve setuid bits X # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $instcmd $src $dsttmp" command. X X if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && X if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && X if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && X if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && X # Now rename the file to the real destination. X X $doit $rmcmd -f $dstdir/$dstfile && X $doit $mvcmd $dsttmp $dstdir/$dstfile X fi && X X Xexit 0 SHAR_EOF $shar_touch -am 0302054499 'tar-1.13/install-sh' && chmod 0555 'tar-1.13/install-sh' || $echo 'restore of' 'tar-1.13/install-sh' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/install-sh:' 'MD5 check failed' 18d5e01e93fd52b4b765c92095c42b01 tar-1.13/install-sh SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/install-sh'`" test 5603 -eq "$shar_count" || $echo 'tar-1.13/install-sh:' 'original size' '5603,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/missing ============== if test -f 'tar-1.13/missing' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/missing' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/missing' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/missing' && #! /bin/sh # Common stub for a few missing GNU programs while installing. # Copyright (C) 1996, 1997 Free Software Foundation, Inc. # Franc,ois Pinard , 1996. X # This program 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. X # This program 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. X # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. X if test $# -eq 0; then X echo 1>&2 "Try \`$0 --help' for more information" X exit 1 fi X case "$1" in X X -h|--h|--he|--hel|--help) X echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... X Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. X Options: X -h, --help display this help and exit X -v, --version output version information and exit X Supported PROGRAM values: X aclocal touch file \`aclocal.m4' X autoconf touch file \`configure' X autoheader touch file \`config.h.in' X automake touch all \`Makefile.in' files X bison create \`y.tab.[ch]', if possible, from existing .[ch] X flex create \`lex.yy.c', if possible, from existing .c X lex create \`lex.yy.c', if possible, from existing .c X makeinfo touch the output file X yacc create \`y.tab.[ch]', if possible, from existing .[ch]" X ;; X X -v|--v|--ve|--ver|--vers|--versi|--versio|--version) X echo "missing - GNU libit 0.0" X ;; X X -*) X echo 1>&2 "$0: Unknown \`$1' option" X echo 1>&2 "Try \`$0 --help' for more information" X exit 1 X ;; X X aclocal) X echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if X you modified \`acinclude.m4' or \`configure.in'. You might want X to install the \`Automake' and \`Perl' packages. Grab them from X any GNU archive site." X touch aclocal.m4 X ;; X X autoconf) X echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if X you modified \`configure.in'. You might want to install the X \`Autoconf' and \`GNU m4' packages. Grab them from any GNU X archive site." X touch configure X ;; X X autoheader) X echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if X you modified \`acconfig.h' or \`configure.in'. You might want X to install the \`Autoconf' and \`GNU m4' packages. Grab them X from any GNU archive site." X files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER([^):]*:\([^)]*\)).*/\1/p' configure.in` X if test -z "$files"; then X files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^):]*\)).*/\1/p' configure.in` X test -z "$files" || files="$files.in" X else X files=`echo "$files" | sed -e 's/:/ /g'` X fi X test -z "$files" && files="config.h.in" X touch $files X ;; X X automake) X echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if X you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'. X You might want to install the \`Automake' and \`Perl' packages. X Grab them from any GNU archive site." X find . -type f -name Makefile.am -print \ X | sed 's/^\(.*\).am$/touch \1.in/' \ X | sh X ;; X X bison|yacc) X echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if X you modified a \`.y' file. You may need the \`Bison' package X in order for those modifications to take effect. You can get X \`Bison' from any GNU archive site." X rm -f y.tab.c y.tab.h X if [ $# -ne 1 ]; then X eval LASTARG="\${$#}" X case "$LASTARG" in X *.y) X SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` X if [ -f "$SRCFILE" ]; then X cp "$SRCFILE" y.tab.c X fi X SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` X if [ -f "$SRCFILE" ]; then X cp "$SRCFILE" y.tab.h X fi X ;; X esac X fi X if [ ! -f y.tab.h ]; then X echo >y.tab.h X fi X if [ ! -f y.tab.c ]; then X echo 'main() { return 0; }' >y.tab.c X fi X ;; X X lex|flex) X echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if X you modified a \`.l' file. You may need the \`Flex' package X in order for those modifications to take effect. You can get X \`Flex' from any GNU archive site." X rm -f lex.yy.c X if [ $# -ne 1 ]; then X eval LASTARG="\${$#}" X case "$LASTARG" in X *.l) X SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` X if [ -f "$SRCFILE" ]; then X cp "$SRCFILE" lex.yy.c X fi X ;; X esac X fi X if [ ! -f lex.yy.c ]; then X echo 'main() { return 0; }' >lex.yy.c X fi X ;; X X makeinfo) X echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if X you modified a \`.texi' or \`.texinfo' file, or any other file X indirectly affecting the aspect of the manual. The spurious X call might also be the consequence of using a buggy \`make' (AIX, X DU, IRIX). You might want to install the \`Texinfo' package or X the \`GNU make' package. Grab either from any GNU archive site." X file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` X if test -z "$file"; then X file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` X file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` X fi X touch $file X ;; X X *) X echo 1>&2 "\ WARNING: \`$1' is needed, and you do not seem to have it handy on your X system. You might have modified some files without having the X proper tools for further handling them. Check the \`README' file, X it often tells you about the needed prerequirements for installing X this package. You may also peek at any GNU archive site, in case X some other package would contain this missing \`$1' program." X exit 1 X ;; esac X Xexit 0 SHAR_EOF $shar_touch -am 0112215099 'tar-1.13/missing' && chmod 0555 'tar-1.13/missing' || $echo 'restore of' 'tar-1.13/missing' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/missing:' 'MD5 check failed' fef7dcbb4fbdb713bd60f665e8ae67a2 tar-1.13/missing SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/missing'`" test 6274 -eq "$shar_count" || $echo 'tar-1.13/missing:' 'original size' '6274,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/mkinstalldirs ============== if test -f 'tar-1.13/mkinstalldirs' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/mkinstalldirs' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/mkinstalldirs' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/mkinstalldirs' && #! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Public domain X # $Id: mkinstalldirs,v 1.13 1999/01/05 03:18:55 bje Exp $ X errstatus=0 X for file do X set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` X shift X X pathcomp= X for d X do X pathcomp="$pathcomp$d" X case "$pathcomp" in X -* ) pathcomp=./$pathcomp ;; X esac X X if test ! -d "$pathcomp"; then X echo "mkdir $pathcomp" X X mkdir "$pathcomp" || lasterr=$? X X if test ! -d "$pathcomp"; then X errstatus=$lasterr X fi X fi X X pathcomp="$pathcomp/" X done done X exit $errstatus X # mkinstalldirs ends here SHAR_EOF $shar_touch -am 0114115599 'tar-1.13/mkinstalldirs' && chmod 0555 'tar-1.13/mkinstalldirs' || $echo 'restore of' 'tar-1.13/mkinstalldirs' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/mkinstalldirs:' 'MD5 check failed' d69600ffc4dd42fc930f4494b93f97ed tar-1.13/mkinstalldirs SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/mkinstalldirs'`" test 722 -eq "$shar_count" || $echo 'tar-1.13/mkinstalldirs:' 'original size' '722,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/PORTS ============== if test -f 'tar-1.13/PORTS' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/PORTS' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/PORTS' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/PORTS' && * Ports of GNU tar and other micro-tars -*- outline -*- X X Please write tar-bugs@gnu.org if you are aware of various ports X of GNU tar to non-Unix systems not listed here, or for corrections. X Please provide the goal system, a complete and stable URL, the maintainer X name and address, the tar version used as a base, and your comments. X X.* Amiga X X. + ftp://ftp.wustl.edu/systems/amiga/aminet/util/arc/GNUtar-1.11.8.lha X maintained by Enrico Forestieri X Based on tar 1.11.8. X X. + ftp://ftp.ninemoons.com/pub/ade/current/amiga-bin/tar-1.11.8-bin.lha X maintained by the ADE group X Based on tar 1.11.8, needs ixemul.library. X X. + ftp://ftp.wustl.edu/systems/amiga/aminet/util/arc/gnutar.lha X maintained by X X.* DEC alpha (NT) X X. + ftp://ftp.cdrom.com/.20/windows/archiver/tar.zip X maintained by Drew Bliss & Geoff Voelker X X.* DEC VAX (VMS) X X. + http://www.lp.se/free/vmstar/ X maintained by Richard Levitte X This is not GNU tar, but a separate implementation. X X. + maintained by William Bader X For V4.7. Based on an old PDtar. Requires compatible shared libraries X to run V5 or V6 executables. X X.* IBM/PC (DV/X) X X. + ftp://qdeck.com/ (?) X maintained by David Ronis X For Desqview/X. Everything works besides compression. Copy of hacked X sources available, some of DV/X's programmer's library also needed. X X.* IBM/PC (MSDOS) X X. + http://www.simtel.net/simtel.net/ X http://www.leo.org/pub/comp/platforms/pc/gnuish (Germany) X ftp://ftp.simtel.net/simtelnet/gnu X ftp://ftp.leo.org/pub/comp/platforms/pc/gnuish X maintained by Darrel Hankerson X You get many GNU tools, not only `tar'. The GNUish project is described X in `gnuish_t.htm'. X X. + The DJGPP development tools also include some `tar' utilities. X X. + ftp://ftp.mcs.com/mcsnet.users/les/dos-gnutar/ X maintained by Leslie Mikesell X Based on tar 1.11.2. Support for SCSI (via ASPI) and network (rsh over X packet driver). No support for win95 long file names. X X. + ftp://ftp.wu-wien.ac.at:pub/src/PCmisc/aspi-tar/* X maintained by Christoph Splittgerber X Based on tar 1.10. Support for SCSI (via ASPI). X X. + ftp://wuarchive (?) X Several DOS version based on PDtar. John Gilmore says X he has copies of several vintages saved. X X. + ftp://ftp.cdrom.com/.14/languages/ada/toolkit/msdos/gtar/gtar.exe X ftp://ftp.cdrom.com/.14/languages/ada/toolkit/msdos/gtar/gtar.taz X ftp://ftp.cdrom.com/.14/languages/ada/toolkit/msdos/gtar/gtar.zip X X. + ftp://ftp.cdrom.com/.4/os2/archiver/tar.zip X Based on PDtar. X X. + ftp://ftp.cdrom.com/.20/windows/archiver/tar.zip X maintained by Drew Bliss & Geoff Voelker X GNU tar for NT (intel and Alpha platforms). X X. + ftp://garbo.uwasa.fi/pc/unix/untgz095.zip X maintained by Tillmann Steinbrecher X The `untgz' program is a fast .tar or .tar.gz (.tgz) extractor. X X. + http://people.darmstadt.netsurf.de/tst/tar.htm X maintained by Tillmann Steinbrecher X This is not a `tar' port, but an index of them. X X.* IBM/PC (OS/2) X X. + http://www.leo.org/pub/comp/os/os2/leo/gnu/archiver/gtar254.zip X http://www.leo.org/pub/comp/os/os2/leo/gnu/archiver/gtak254.zip X maintained by Andreas Kaiser X Version 2.54. Based on tar 1.10. The second archive contains SCSI X drivers (DAT streamers notably) and rmt-type programs. X X. + ftp://garbo.uwasa.fi/pc/unix/untgz095.zip X maintained by Tillmann Steinbrecher X The `untgz' program is a fast .tar or .tar.gz (.tgz) extractor. X X.* IBM/PC (Win32: Windows 95, NT 3.5 or NT 4.0) X X. + ftp://ftp.cygnus.com:~ftp/pub/sac/win32/usersrc/* X maintained by Cygnus X GNU-Win32 B17.1 distribution. Download all files, `cat' them together, X and `untar' the result. You get many GNU tools, not only `tar'. X Based on tar 1.11.2. X X. + ftp://ftp.cdrom.com/.20/windows/archiver/tar.zip X maintained by Drew Bliss & Geoff Voelker X GNU tar for NT (intel and Alpha platforms). X X. + ftp://garbo.uwasa.fi/pc/unix/untgz095.zip X maintained by Tillmann Steinbrecher X The `untgz' program is a fast .tar or .tar.gz (.tgz) extractor. X X.* IBM/PC (Windows 3.1) X X. + ftp://ftp.mcs.com/mcsnet.users/les/win-gnutar/ X maintained by Leslie Mikesell X Support for network (rsh over winsock). No support for win95 long X file names. X X. + ftp://ftp.gamesdomain.ru/.1/os/windows/programr/tar.zip X Based on GNU tar 1.11.2. X X.* Macintosh X X. + There is a tar in Stuffit Expander which is available many places and X comes with MacOS. It creates some spurious files but works on average. X X. + There is an excellent GNU tar bundled in Tenon MachTen, but it does not X seem to be available separately. SHAR_EOF $shar_touch -am 0701224199 'tar-1.13/PORTS' && chmod 0444 'tar-1.13/PORTS' || $echo 'restore of' 'tar-1.13/PORTS' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/PORTS:' 'MD5 check failed' b72f02452a42d4094679a9c136815e60 tar-1.13/PORTS SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/PORTS'`" test 5015 -eq "$shar_count" || $echo 'tar-1.13/PORTS:' 'original size' '5015,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/rebox.el ============== if test -f 'tar-1.13/rebox.el' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/rebox.el' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/rebox.el' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/rebox.el M.SL[($AA;F1L:6YG(&]F(&-O;6UE;G0@8F]X97,N"@H[.SL@0V]P>7)I9VAT M("A#*2`Q.3DQ+"`Y,BP@.3,L(#DT+"`Y-2P@.38L(#DW($9R964@4V]F='=A M2!T:&4*.SL[($9R M964@4V]F='=A2!O9@H[ M.SL@34520TA!3E1!0DE,2519(&]R($9)5$Y%4U,@1D]2($$@4$%25$E#54Q! M4B!055)03U-%+B`@4V5E('1H92!'3E4@1V5N97)A;`H[.SL@4'5B;&EC($QI M8V5N2!H86YD(BX@(%1H:7,@ M1TY5($5M86-S"CL[.R!,25-0(&-O9&4@96%S97,@;7D@;&EF92!O;B!T:&ES M(&%N9"!)(&9I;F0@:70@9F%I"UC;VUM96YT(&1I2!R969I;&QS M('1H92!T97AT+"!T:&5N(&%D:G5S=',@=&AE(&-O;6UE;G0*.SL[(&)O>"!S M='EL92X@(%1H92!F=6YC=&EO;B!R96)O>"UR96=I;VX@9&]E&5D(&-O;6UE;G0N("!.=6UE&5S(&%R90H[ M.SL@=7-E9"!T;R!A9&0@;W(@6QE("AL86YG=6%G92P@<75A;&ET>2!O<@H[.SL@='EP92DL(&]R('1O('!R M979E;G0@2!B92!U6QE+B`@02!S='EL92!I7!E"CL[.R`H=&AE('5N:71S(&1I9VET*2X)02!Z97)O(&]R(&YE M9V%T:79E(&9L86<@=F%L=64@8VAA;F=E6QE('1O(&ET'0L"CL[.R!U6QE(&EN=&5R86-T M:79E;'DN"@H[.SL@0F]X(&QA;F=U86=E(&ES(&%S"!Q=6%L:71Y(&EN9&EC871E2!B;WAE2!T;R!S=6=G97-T(')O=6YD960@8V]R;F5R2!B;WAE2!U"!S=7)R;W5N9&EN9W,N("!%>'!E"!T>7!E('9A M;'5E&5S(&9O2!F;W(@=&AE(&QE9G0@86YD(')I9VAT M(&)U="!N;W0@9F]R('1O<"!O2!S:6YG;&4@ M;&EN960@8F]X97,@9F]R('=H:6-H(&)O>&EN9R!I&5S('=H:6-H M(&ES(&QI:V4@='EP92`R(&)U="!M;W)E(&)O;&0L"CL[.R!O2!D;W5B;&4@;&EN960@8F]X97,@=VAI8V@@:7,@;&EK92!T>7!E(#,@ M8G5T(&UO6QE(#$Q,2!D96QE=&5S(&$@8F]X+@H[ M.SL@5&AE(&EN:71I86P@9&5F875L="!S='EL92!I"UD969A=6QT+7-T>6QE(#`@(BI0"!C;VUM96YT"!L86YG=6%G92!I"UH96QP+7-T M"!Q=6%L:71Y+W=I9'1H(&ES(#$P M+7-I;7!L92P@,C`M"UH M96QP+7-T2`H<75A;&ET>2D*("`H8V]N9"`H*#T@ M<75A;&ET>2`P*2`B9&5F875L="!Q=6%L:71Y(BD*"2@H/2!Q=6%L:71Y(%)% M0D]87U%504Q)5%E?4TE-4$Q%7T].12D@(G-Q=6%R92!O7!E*0H@("AC;VYD("@H/2!T>7!E M(#`I(")D969A=6QT('1Y<&4B*0H)*"@]('1Y<&4@4D5"3UA?5%E015]/4$5. M*2`B;W!E;F5D(&)O>"(I"@DH*#T@='EP92!214)/6%]465!%7TA!3$9?4TE. M1TQ%*2`B:&%L9B!N;W)M86PB*0H)*"@]('1Y<&4@4D5"3UA?5%E015]324Y' M3$4I(")F=6QL(&YO7!E(%)%0D]87U194$5?1$]5 M0DQ%*2`B9G5L;"!B;VQD(BD*"2AT("(\56YK;F]W;B!4>7!E/B(I*2D*"BAD M969C;VYS="!214)/6%]-05A?3$%.1U5!1T4@-BD**&1E9F-O;G-T(%)%0D]8 M7TU!6%]154%,2519(#0I"BAD969C;VYS="!214)/6%]-05A?5%E012`U*0H* M.SL[(%)E<75E6QE(&EN=&5R86-T:79E;'DL('5S:6YG('1H M92!M:6YI8G5F9F5R+@H**&1E9G5N(')E8F]X+6%S:RUF;W(M2!T>7!E*0H@("`@*'=H:6QE M("AN;W0@;&%N9W5A9V4I"B`@("`@("AM97-S86=E(%)%0D]87TA%3%!?1D]2 M7TQ!3D=504=%*0H@("`@("`H2`_,"DI*2D* M("`@("AW:&EL92`H;F]T('%U86QI='DI"B`@("`@("AM97-S86=E(%)%0D]8 M7TA%3%!?1D]27U%504Q)5%DI"B`@("`@("AS971Q(&ME>2`H2`_,"D@*#P](&ME>2`H*R`_,"!2 M14)/6%]-05A?455!3$E462DI*0H)("`H2`_ M,"DI*2D*("`@("AW:&EL92`H;F]T('1Y<&4I"B`@("`@("AM97-S86=E(%)% M0D]87TA%3%!?1D]27U194$4I"B`@("`@("AS971Q(&ME>2`H2`_,"D@*#P](&ME>2`H*R`_,"!2 M14)/6%]-05A?5%E012DI*0H)("`H7!E("@M(&ME>2`_,"DI*2D* M("`@("@K("@J(#$P,"!L86YG=6%G92D@*"H@,3`@<75A;&ET>2D@='EP92DI M*0H*.SL[(%=R:71E('-O;64@5$585"!F;VQL;W=E9"!B>2!A;B!E9&ET960@ M4U193$4@=F%L=64@:6YT;R!T:&4@;6EN:6)U9F9E"US:&]W+7-T>6QE("AT97AT('-T>6QE*0H@("AM97-S86=E"B`@("AC;VYC M870@=&5X="`H9F]R;6%T("(@*"4P,V0I(B!S='EL92D*"2`@("(Z("(@*')E M8F]X+6AE;'`M"UH96QP+7-T2`H*B`H)2`H+R!S='EL92`Q,"D@,3`I(#$P*2D*"2`@("(L("(@*')E8F]X M+6AE;'`M7!E("@E('-T>6QE(#$P*2DI*2D*"CL[.R!6 M86QI9&%T92!&3$%'(&%N9"!U2!E"!S='EL92!A;F0* M.SL[(')E='5R;B!N:6PN"@HH9&5F=6X@"!S='EL92!I9B!R97%U97-T960N"@H@("AI9B`H86YD("AN=6UB97)P(&9L M86"UD969A=6QT+7-T>6QE"@D)("`H*R`H*B`H+R!F;&%G(#$P M,"D@,3`P*0H)"2`@("`@*"4@"UD969A=6QT+7-T>6QE"@D)("`H*R`H*B`H+R!R96)O>"UD M969A=6QT+7-T>6QE(#$P,"D@,3`P*0H)"2`@("`@*"H@*"4@*"\@9FQA9R`Q M,"D@,3`I(#$P*0H)"2`@("`@*"4@0H[.SL@'`@=&\@;6%T8V@@=&AE('-T87)T(&]R(&5N M9"!O9B!A(&-O;6UE;G0@9F]R('-O;64*.SL[($Q!3D=504=%+"!L96%V:6YG M('1H92!C;VUM96YT(&UA6R!<=%TJ7%PH+R\K7%PI(BD*"2@H/2!L86YG=6%G92!214)/ M6%],04Y'54%'15]!5TLI(")>6R!<=%TJ7%PH(RM<7"DB*0H)*"@](&QA;F=U M86=E(%)%0D]87TQ!3D=504=%7TQ)4U`I(")>6R!<=%TJ7%PH.RM<7"DB*0H) M*"@](&QA;F=U86=E(%)%0D]87TQ!3D=504=%7U1%6"D@(EY;(%QT72I<7"@E M*UQ<*2(I*2D*"BAD969U;B!R96)O>"UR96=E>'`M96YD("AL86YG=6%G92D* M("`H8V]N9"`H*#T@;&%N9W5A9V4@,"D@(EQ<*%Q<*B]<7'PO+RM<7'PC*UQ< M?#LK7%Q\)2M<7"E;(%QT72HD(BD*"2@H/2!L86YG=6%G92!214)/6%],04Y' M54%'15].3TY%*2`B7%PH7%PI)"(I"@DH*#T@;&%N9W5A9V4@4D5"3UA?3$%. M1U5!1T5?0RD@(EQ<*%Q<*B]<7"E;(%QT72HD(BD*"2@H/2!L86YG=6%G92!2 M14)/6%],04Y'54%'15]#*RLI(")<7"@O+RM<7"E;(%QT72HD(BD*"2@H/2!L M86YG=6%G92!214)/6%],04Y'54%'15]!5TLI(")<7"@C*UQ<*5L@7'1=*B0B M*0H)*"@](&QA;F=U86=E(%)%0D]87TQ!3D=504=%7TQ)4U`I(")<7"@[*UQ< M*5L@7'1=*B0B*0H)*"@](&QA;F=U86=E(%)%0D]87TQ!3D=504=%7U1%6"D@ M(EQ<*"4K7%PI6R!<=%TJ)"(I*2D*"CL[.R!">2!L;V]K:6YG(&%T('1H92!T M97AT('-T87)T:6YG(&%T('1H92!C=7)S;W(@<&]S:71I;VXL(&=U97-S('1H M90H[.SL@;&%N9W5A9V4@:6X@=7-E+"!A;F0@"UR96=E>'`M'0@869T97(@96YD(&]F(&-O;6UE;G0B*2DI*0H@("`@("`H M96YD+6]F+6QI;F4I"B`@("`@("AI9B`H96]B<"D*"2`@*&EN2!T;R!E>'1E;F0@=&AE(&-O;6UE;G0@8FQO8VL@ M8F%C:W=A"UR96=E>'`M"UR96=E>'`M2!T>7!E*0H@ M("AR96)O>"US:&]W+7-T>6QE(")3='EL92(@*"L@;&%N9W5A9V4@<75A;&ET M>2!T>7!E*2D*"B`@*&QE="`H'@I"@H@("`@.SL@+2!D96-I9&4@=&AE(&5L96UE;G1S M(&]F('1H92!B;W@@8F5I;F<@<')O9'5C960*"B`@("`H8V]N9"`H*#T@;&%N M9W5A9V4@4D5"3UA?3$%.1U5!1T5?3D].12D*"2`@(#L[("T@<&QA;FEF>2!A M(&-O;6UE;G0@9F]R(&YO(&QA;F=U86=E(&EN('!A2!214)/6%]154%,25197U-)35!,15]/3D4I"@D) M("`[.R`M('!L86YI9GD@82!S:6UP;&4@8F]X"@H)"2`@*&-O;F0@*"@]('1Y M<&4@4D5"3UA?5%E015]/4$5.*0H)"0D@*'-E='$@;G<@(B(I("AS971Q('-W M("(B*0H)"0D@*'-E='$@=W<@(B(I("AS971Q(&5E("(B*2D*"0D)*"@]('1Y M<&4@4D5"3UA?5%E015](04Q&7U-)3D=,12D*"0D)("AS971Q(&YW("(B*0H) M"0D@*'-E='$@=W<@(GP@(BD@("`@("`@("`@("`@("AS971Q(&5E("(@?"(I M"@D)"2`H7!E(%)%0D]87U194$5?4TE.1TQ%*0H)"0D@*'-E='$@ M;G<@(BLM(BD@*'-E='$@;FX@/RTI("AS971Q(&YE("(M*R(I"@D)"2`H2!214)/6%]154%,25197U)/54Y$ M141?5$A2144I*0H)"2`@.SL@+2!P;&%N:69Y(&$@7!E(%)% M0D]87U194$5?2$%,1E]324Y'3$4I"@D)"2`H7!E(%)%0D]87U194$5?1$]5 M0DQ%*0H)"0D@*'-E='$@;G<@(B\J("(I("AS971Q(&YN(#\]*2`H2!214)/ M6%]154%,25197U)/54Y$141?5$A2144I*0H)"2`@.SL@+2!P;&%N:69Y(&$@ M7!E(%)%0D]87U194$5?2$%, M1E]324Y'3$4I"@D)("`H"DI"@D)("`H M2`Q,"DI M('@I*0H)"2`@*'-E='$@;G<@(B(I"@D)("`H"D@*'-E='$@ M"D@*'-E='$@'@I*0H)"2`H*#T@='EP92!214)/6%]465!%7T1/ M54),12D*"0D@("AS971Q(&5E("AC;VYC870@(B`B('AX*2D*"0D@("AS971Q M('AX("AM86ME+7-T2`Q,"DI('@I*0H)"2`@ M*'-E='$@;G<@>'@I("AS971Q(&YN('@I("AS971Q(&YE('AX*0H)"2`@*'-E M='$@'@I("AS971Q('-S('@I("AS971Q('-E('AX*2DI*2D*"B`@("`[ M.R`M('!O"DI*2D*"B`@("`H6QE(&-O;6UE;G0*"@D@("AS:VEP M+6-H87)S+69O6QE"!I M;B!T:&4@;F%R"UG=65S7!E M(#`I*0H*("`@("AU;G1A8FEF>2`H<&]I;G0M;6EN*2`H<&]I;G0M;6%X*2D* M"B`@("`[.R!296UO=F4@86QL('1H92!C;VUM96YT(&UA'0@2!T;R!T:&4*("`@(#L[(&QE9G0@9F]R M(&EN0H@("`@ M.SL@:6X@455!3$E462!A;F0@:71S('1Y<&4@:6X@5%E012X@("A,04Y'54%' M12!I&5S+@H@("`@("`[.R!&25A-13H@4F5C;V=N M:7IE(')E86QL>2!A;&P@8V%S97,@;V8@='EP92!A;F0@<75A;&ET>2X*"B`@ M("`@(#L[("T@"UR96=E>'`M96YD(&QA;F=U86=E*2!N:6P@="D*"2`@*')E<&QA8V4M M;6%T8V@@(B(@="!T*2DI"@H@("`@("`H:68@*#T@;&%N9W5A9V4@4D5"3UA? M3$%.1U5!1T5?0RD*"2`@*'!R;V=N"@D@("`@*&=O=&\M8VAA7%PH("I<7"E\7%PJ7%PH+BI<7"E<7"I\("HD M(B!N:6P@="D*"2`@("`@("AS971Q('%U86QI='D@4D5"3UA?455!3$E465]3 M5$%24D5$7T9/55(I"@D@("`@("`H7!E(%)%0D]87U194$5?1$]5 M0DQ%*0H)("`@("`@*')E<&QA8V4M;6%T8V@@(EQ<,2`@7%PR(B!T*2D*"@D@ M("`@*&=O=&\M8VAA7%PH("I<7"E<7"I<7"@N*EQ<*5Q<*B`J)"(@;FEL M('0I"@D@("`@("`H7%PH("I<7"E\7%PH+BI<7"E\("HD(B!N:6P@="D*"2`@("`@ M("AS971Q('%U86QI='D@4D5"3UA?455!3$E465]23U5.1$5$7U173RD*"2`@ M("`@("AR97!L86-E+6UA=&-H(")<7#$@7%PR(B!T*2D*"@D@("`@*&=O=&\M M8VAA"DI"B`@("`@("AP7!E(%)%0D]87U194$5?3U!%3BD*"0DH M7!E(%)%0D]87U194$5?2$%,1E]324Y'3$4I*0H)("`@("AR97!L M86-E+6UA=&-H("(B('0@="DI"@DH:68@*&QO;VMI;F"DI"B`@("`@("AS:VEP+6-H87)S M+6)A8VMW87)D(")<;B(I"B`@("`@("AI9B`H;&]O:VEN9RUA="`B7&Y<;BLB M*0H)("`H"D*"0D)("`H+2!P"UD969A=6QT M+7-T>6QE(#$P*2DI"@D@("@H>F5R;W`@='EP92D*"2`@("AS971Q('1Y<&4@ M,2DI*0H*("`@(#L[(%!O2!W86YT('1O(&MN;W<@86)O=70@=&AI6QE(BDI"@H@("`@*'-E='$@8RUM;V1E+71A M87)N82US='EL92!T*0H@("`@*'-E='$@8RUI;F1E;G0M;&5V96P@-"D*("`@ M("AS971Q(&,M8V]N=&EN=65D+7-T871E;65N="UO9F9S970@-"D*("`@("AS M971Q(&,M8G)A8V4M;V9F7,M:6YD96YT('0I"B`@("`H"UD969A M=6QT+7-T>6QE"@D@("@K(%)%0D]87U%504Q)5%E?4TE-4$Q%7T].12!214)/ M6%]465!%7TA!3$9?4TE.1TQ%*2D*("`@("AM97-S86=E(")#(&UO9&4Z(%1A M87)N82!S='EL92(I*2D*"CL[.R!296)O>"!T:&4@8W5R"UA6QE*2DI"B`@*&EF("AR96)O>"UV86QI9&%T92UF;&%G(&9L86"UF:6YD+6%N9"UN ?87)R;W&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/rebox.el:' 'MD5 check failed' d07a11e64f0e84d0438f690ce6fba566 tar-1.13/rebox.el SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/rebox.el'`" test 30361 -eq "$shar_count" || $echo 'tar-1.13/rebox.el:' 'original size' '30361,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/ChangeLog ============== if test ! -d 'tar-1.13/doc'; then $echo 'x -' 'creating directory' 'tar-1.13/doc' mkdir 'tar-1.13/doc' fi if test -f 'tar-1.13/doc/ChangeLog' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/ChangeLog' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/ChangeLog' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 tar-1.13/doc/ChangeLog M,3DY-RTP-"TR,R`@1G)A;N=O:7,@4&EN87)D("`\<&EN87)D0&ER;RYU;6]N M=')E86PN8V$^"@H)*B!296QE87-E(#$N,3(N"@H)*B!-86ME9FEL92YA;2`H M15A44D%?1$E35"DZ(%)E;6]V92!T87(M;65W+G1E>&D@9F]R('1H92!R96QE M87-E+@H)*'1A&DN"@HQ.3DW+3`S M+3$V("!&2!O;B`M22!T;PH)"P@ M;F]W('1H870@075T;VUA:V4*"6AA;F1L97,@:70@875T;VUA=&EC86QL>2X* M"C$Y.38M,#&EN9F\N=&5X+"!U;G1I;"!!=71O;6%K90H) M9&]E2!* M;VYA=&AA;B!4:&]R;F)U2!#97-A M2!D M;V5S(&YO="!S:&%D;W<@=&AE(')E86P@;VYE+@H)*'1A&EN9F\N=&5X(&ES(&9O=6YD+"!A'!A;F0@=&%R+G1E>&EN9F\N"@HQ.3DU+3`V+3`W("!&&DN"@HQ.3DT+3$Q+3`W("!&&-L96%N*3H@1&5L971E9"P@;65R9V5D(&EN=&\@;6]S=&QY8VQE M86XN"@DH36%K969I;&4I.B!(879E("XO8V]N9FEG+G-T871U2!O;FQY+@H*,3DY-"TP."TR,2`@1G)A;N=O:7,@ M4&EN87)D("`\<&EN87)D0&ER;RYU;6]N=')E86PN8V$^"@H)*B!-86ME9FEL M92YI;CH@0V]R&DZ($YE=R!F:6QE+@H)*B!-86ME9FEL M92YI;CH@1&ES=')I8G5T92!I="X*"C$Y.30M,#@M,3<@($9R86[G;VES(%!I M;F%R9"`@/'!I;F%R9$!I&EN9F\N=&5X.B!.97&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/ChangeLog:' 'MD5 check failed' ba54d457c84c6dcb5edcb2ff87531d8d tar-1.13/doc/ChangeLog SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/ChangeLog'`" test 5297 -eq "$shar_count" || $echo 'tar-1.13/doc/ChangeLog:' 'original size' '5297,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/Makefile.am ============== if test -f 'tar-1.13/doc/Makefile.am' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/Makefile.am' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/Makefile.am' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/doc/Makefile.am' && # Makefile for GNU tar documentation. # Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. X # This program 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. X # This program 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. X # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. X AUTOMAKE_OPTIONS = gnits info_TEXINFOS = tar.texi X EXTRA_DIST = convtexi.pl getdate.texi header.texi X CLEANFILES = tmp-* X # The rendering level is anyone of PUBLISH, DISTRIB or PROOF. # Just call `make dvi RENDITION=PROOF' if you want PROOF rendition. RENDITION = DISTRIB X tar.info: tar.texi getdate.texi header.texi version.texi X @echo "WARNING: \`makeinfo' will not preprocess Texinfo input properly" X @echo " for expanding Texinfo macros, if it comes from a" X @echo " Texinfo distribution which is earlier than version 3.7." X cd $(srcdir) && $(MAKEINFO) -D$(RENDITION) tar.texi X tar.dvi: tar.texi getdate.texi header.texi version.texi X @echo "WARNING: \`makeinfo' will not preprocess Texinfo input properly" X @echo " for expanding Texinfo macros, if it comes from a" X @echo " Texinfo distribution which is earlier than version 3.7." X $(MAKEINFO) -D$(RENDITION) -Etmp-tar.tmp -otmp-tar.info \ X -I$(srcdir) tar.texi X rm -f tmp-tar.sed tmp-tar.info* X test $(RENDITION) = DISTRIB \ X || echo >>tmp-tar.sed 's/^@set DISTRIB/@set $(RENDITION)/' X test $(RENDITION) = PUBLISH \ X || echo >>tmp-tar.sed '/^@smallbook/d' X sed -f tmp-tar.sed tmp-tar.tmp > tmp-tar.texi X rm -f tmp-tar.sed tmp-tar.tmp X TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) tmp-tar.texi X mv tmp-tar.dvi $@ X header.texi: $(top_srcdir)/src/tar.h X sed -n '/Archive Format/,/End of Format/p' $(top_srcdir)/src/tar.h \ X | expand | sed 's/\([{}]\)/@\1/g' > $(srcdir)/header.texi SHAR_EOF $shar_touch -am 0424170897 'tar-1.13/doc/Makefile.am' && chmod 0444 'tar-1.13/doc/Makefile.am' || $echo 'restore of' 'tar-1.13/doc/Makefile.am' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/Makefile.am:' 'MD5 check failed' 2bc8ae7677881048600e5f0a7492f090 tar-1.13/doc/Makefile.am SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/Makefile.am'`" test 2268 -eq "$shar_count" || $echo 'tar-1.13/doc/Makefile.am:' 'original size' '2268,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/Makefile.in ============== if test -f 'tar-1.13/doc/Makefile.in' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/Makefile.in' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/Makefile.in' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/doc/Makefile.in' && # Makefile.in generated automatically by automake 1.4 from Makefile.am X # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. X # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. X # Makefile for GNU tar documentation. # Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. X # This program 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. X # This program 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. X # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. X X SHELL = @SHELL@ X srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ X bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = @mandir@ includedir = @includedir@ oldincludedir = /usr/include X DESTDIR = X pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ X top_builddir = .. X ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ X INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ transform = @program_transform_name@ X NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_alias = @host_alias@ host_triplet = @host@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CPP = @CPP@ DATADIRNAME = @DATADIRNAME@ EXEEXT = @EXEEXT@ GENCAT = @GENCAT@ GETCONF = @GETCONF@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GT_NO = @GT_NO@ GT_YES = @GT_YES@ INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@ INSTOBJEXT = @INSTOBJEXT@ INTLDEPS = @INTLDEPS@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ LIBOBJS = @LIBOBJS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ PACKAGE = @PACKAGE@ POFILES = @POFILES@ POSUB = @POSUB@ RANLIB = @RANLIB@ RMT = @RMT@ U = @U@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ YACC = @YACC@ l = @l@ X AUTOMAKE_OPTIONS = gnits info_TEXINFOS = tar.texi X EXTRA_DIST = convtexi.pl getdate.texi header.texi X CLEANFILES = tmp-* X # The rendering level is anyone of PUBLISH, DISTRIB or PROOF. # Just call `make dvi RENDITION=PROOF' if you want PROOF rendition. RENDITION = DISTRIB mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = TEXI2DVI = texi2dvi INFO_DEPS = tar.info DVIS = tar.dvi TEXINFOS = tar.texi DIST_COMMON = ChangeLog Makefile.am Makefile.in mdate-sh stamp-vti \ texinfo.tex version.texi X X DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) X TAR = gtar GZIP_ENV = --best all: all-redirect X.SUFFIXES: X.SUFFIXES: .dvi .info .ps .texi .texinfo .txi $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) X cd $(top_srcdir) && $(AUTOMAKE) --gnits --include-deps doc/Makefile X Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status X cd $(top_builddir) \ X && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status X X $(srcdir)/version.texi: stamp-vti X @: X $(srcdir)/stamp-vti: tar.texi $(top_srcdir)/configure.in X @echo "@set UPDATED `$(SHELL) $(srcdir)/mdate-sh $(srcdir)/tar.texi`" > vti.tmp X @echo "@set EDITION $(VERSION)" >> vti.tmp X @echo "@set VERSION $(VERSION)" >> vti.tmp X @cmp -s vti.tmp $(srcdir)/version.texi \ X || (echo "Updating $(srcdir)/version.texi"; \ X cp vti.tmp $(srcdir)/version.texi) X -@rm -f vti.tmp X @cp $(srcdir)/version.texi $@ X mostlyclean-vti: X -rm -f vti.tmp X clean-vti: X distclean-vti: X maintainer-clean-vti: X -rm -f $(srcdir)/stamp-vti $(srcdir)/version.texi X tar.info: tar.texi version.texi tar.dvi: tar.texi version.texi X X DVIPS = dvips X X.texi.info: X @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] X cd $(srcdir) \ X && $(MAKEINFO) `echo $< | sed 's,.*/,,'` X X.texi.dvi: X TEXINPUTS=.:$$TEXINPUTS \ X MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< X X.texi: X @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] X cd $(srcdir) \ X && $(MAKEINFO) `echo $< | sed 's,.*/,,'` X X.texinfo.info: X @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] X cd $(srcdir) \ X && $(MAKEINFO) `echo $< | sed 's,.*/,,'` X X.texinfo: X @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] X cd $(srcdir) \ X && $(MAKEINFO) `echo $< | sed 's,.*/,,'` X X.texinfo.dvi: X TEXINPUTS=.:$$TEXINPUTS \ X MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< X X.txi.info: X @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] X cd $(srcdir) \ X && $(MAKEINFO) `echo $< | sed 's,.*/,,'` X X.txi.dvi: X TEXINPUTS=.:$$TEXINPUTS \ X MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< X X.txi: X @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] X cd $(srcdir) \ X && $(MAKEINFO) `echo $< | sed 's,.*/,,'` X.dvi.ps: X $(DVIPS) $< -o $@ X install-info-am: $(INFO_DEPS) X @$(NORMAL_INSTALL) X $(mkinstalldirs) $(DESTDIR)$(infodir) X @list='$(INFO_DEPS)'; \ X for file in $$list; do \ X d=$(srcdir); \ X for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \ X if test -f $$d/$$ifile; then \ X echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \ X $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \ X else : ; fi; \ X done; \ X done X @$(POST_INSTALL) X @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ X list='$(INFO_DEPS)'; \ X for file in $$list; do \ X echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\ X install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\ X done; \ X else : ; fi X uninstall-info: X $(PRE_UNINSTALL) X @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ X ii=yes; \ X else ii=; fi; \ X list='$(INFO_DEPS)'; \ X for file in $$list; do \ X test -z "$ii" \ X || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \ X done X @$(NORMAL_UNINSTALL) X list='$(INFO_DEPS)'; \ X for file in $$list; do \ X (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \ X done X dist-info: $(INFO_DEPS) X list='$(INFO_DEPS)'; \ X for base in $$list; do \ X d=$(srcdir); \ X for file in `cd $$d && eval echo $$base*`; do \ X test -f $(distdir)/$$file \ X || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ X || cp -p $$d/$$file $(distdir)/$$file; \ X done; \ X done X mostlyclean-aminfo: X -rm -f tar.aux tar.cp tar.cps tar.dvi tar.fn tar.fns tar.ky tar.kys \ X tar.ps tar.log tar.pg tar.toc tar.tp tar.tps tar.vr tar.vrs \ X tar.op tar.tr tar.cv tar.cn X clean-aminfo: X distclean-aminfo: X maintainer-clean-aminfo: X cd $(srcdir) && for i in $(INFO_DEPS); do \ X rm -f $$i; \ X if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \ X rm -f $$i-[0-9]*; \ X fi; \ X done tags: TAGS TAGS: X X distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) X subdir = doc X distdir: $(DISTFILES) X @for file in $(DISTFILES); do \ X d=$(srcdir); \ X if test -d $$d/$$file; then \ X cp -pr $$/$$file $(distdir)/$$file; \ X else \ X test -f $(distdir)/$$file \ X || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ X || cp -p $$d/$$file $(distdir)/$$file || :; \ X fi; \ X done X $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info info-am: $(INFO_DEPS) info: info-am dvi-am: $(DVIS) dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-exec: install-exec-am X install-data-am: install-info-am install-data: install-data-am X install-am: all-am X @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-info uninstall: uninstall-am all-am: Makefile $(INFO_DEPS) all-redirect: all-am install-strip: X $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install installdirs: X $(mkinstalldirs) $(DESTDIR)$(infodir) X X mostlyclean-generic: X clean-generic: X -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) X distclean-generic: X -rm -f Makefile $(CONFIG_CLEAN_FILES) X -rm -f config.cache config.log stamp-h stamp-h[0-9]* X maintainer-clean-generic: mostlyclean-am: mostlyclean-vti mostlyclean-aminfo mostlyclean-generic X mostlyclean: mostlyclean-am X clean-am: clean-vti clean-aminfo clean-generic mostlyclean-am X clean: clean-am X distclean-am: distclean-vti distclean-aminfo distclean-generic clean-am X distclean: distclean-am X maintainer-clean-am: maintainer-clean-vti maintainer-clean-aminfo \ X maintainer-clean-generic distclean-am X @echo "This command is intended for maintainers to use;" X @echo "it deletes files that may require special tools to rebuild." X maintainer-clean: maintainer-clean-am X X.PHONY: mostlyclean-vti distclean-vti clean-vti maintainer-clean-vti \ install-info-am uninstall-info mostlyclean-aminfo distclean-aminfo \ clean-aminfo maintainer-clean-aminfo tags distdir info-am info dvi-am \ dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean X X tar.info: tar.texi getdate.texi header.texi version.texi X @echo "WARNING: \`makeinfo' will not preprocess Texinfo input properly" X @echo " for expanding Texinfo macros, if it comes from a" X @echo " Texinfo distribution which is earlier than version 3.7." X cd $(srcdir) && $(MAKEINFO) -D$(RENDITION) tar.texi X tar.dvi: tar.texi getdate.texi header.texi version.texi X @echo "WARNING: \`makeinfo' will not preprocess Texinfo input properly" X @echo " for expanding Texinfo macros, if it comes from a" X @echo " Texinfo distribution which is earlier than version 3.7." X $(MAKEINFO) -D$(RENDITION) -Etmp-tar.tmp -otmp-tar.info \ X -I$(srcdir) tar.texi X rm -f tmp-tar.sed tmp-tar.info* X test $(RENDITION) = DISTRIB \ X || echo >>tmp-tar.sed 's/^@set DISTRIB/@set $(RENDITION)/' X test $(RENDITION) = PUBLISH \ X || echo >>tmp-tar.sed '/^@smallbook/d' X sed -f tmp-tar.sed tmp-tar.tmp > tmp-tar.texi X rm -f tmp-tar.sed tmp-tar.tmp X TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) tmp-tar.texi X mv tmp-tar.dvi $@ X header.texi: $(top_srcdir)/src/tar.h X sed -n '/Archive Format/,/End of Format/p' $(top_srcdir)/src/tar.h \ X | expand | sed 's/\([{}]\)/@\1/g' > $(srcdir)/header.texi X # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. X.NOEXPORT: SHAR_EOF $shar_touch -am 0707012599 'tar-1.13/doc/Makefile.in' && chmod 0664 'tar-1.13/doc/Makefile.in' || $echo 'restore of' 'tar-1.13/doc/Makefile.in' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/Makefile.in:' 'MD5 check failed' ae137786a2a34a4dcf07f1d250f94318 tar-1.13/doc/Makefile.in SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/Makefile.in'`" test 11443 -eq "$shar_count" || $echo 'tar-1.13/doc/Makefile.in:' 'original size' '11443,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/mdate-sh ============== if test -f 'tar-1.13/doc/mdate-sh' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/mdate-sh' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/mdate-sh' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/doc/mdate-sh' && #!/bin/sh # Get modification time of a file or directory and pretty-print it. # Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. # written by Ulrich Drepper , June 1995 # # This program 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 program 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 program; if not, write to the Free Software Foundation, # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. X # Prevent date giving response in another language. LANG=C export LANG LC_ALL=C export LC_ALL LC_TIME=C export LC_TIME X # Get the extended ls output of the file or directory. # On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below. if ls -L /dev/null 1>/dev/null 2>&1; then X set - x`ls -L -l -d $1` else X set - x`ls -l -d $1` fi # The month is at least the fourth argument # (3 shifts here, the next inside the loop). shift shift shift X # Find the month. Next argument is day, followed by the year or time. month= until test $month do X shift X case $1 in X Jan) month=January; nummonth=1;; X Feb) month=February; nummonth=2;; X Mar) month=March; nummonth=3;; X Apr) month=April; nummonth=4;; X May) month=May; nummonth=5;; X Jun) month=June; nummonth=6;; X Jul) month=July; nummonth=7;; X Aug) month=August; nummonth=8;; X Sep) month=September; nummonth=9;; X Oct) month=October; nummonth=10;; X Nov) month=November; nummonth=11;; X Dec) month=December; nummonth=12;; X esac done X day=$2 X # Here we have to deal with the problem that the ls output gives either # the time of day or the year. case $3 in X *:*) set `date`; eval year=\$$# X case $2 in X Jan) nummonthtod=1;; X Feb) nummonthtod=2;; X Mar) nummonthtod=3;; X Apr) nummonthtod=4;; X May) nummonthtod=5;; X Jun) nummonthtod=6;; X Jul) nummonthtod=7;; X Aug) nummonthtod=8;; X Sep) nummonthtod=9;; X Oct) nummonthtod=10;; X Nov) nummonthtod=11;; X Dec) nummonthtod=12;; X esac X # For the first six month of the year the time notation can also X # be used for files modified in the last year. X if (expr $nummonth \> $nummonthtod) > /dev/null; X then X year=`expr $year - 1` X fi;; X *) year=$3;; esac X # The result. echo $day $month $year SHAR_EOF $shar_touch -am 0412153597 'tar-1.13/doc/mdate-sh' && chmod 0555 'tar-1.13/doc/mdate-sh' || $echo 'restore of' 'tar-1.13/doc/mdate-sh' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/mdate-sh:' 'MD5 check failed' 6e1ee45d6d5e2fc2cb985e1b933318b6 tar-1.13/doc/mdate-sh SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/mdate-sh'`" test 2679 -eq "$shar_count" || $echo 'tar-1.13/doc/mdate-sh:' 'original size' '2679,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/stamp-vti ============== if test -f 'tar-1.13/doc/stamp-vti' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/stamp-vti' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/stamp-vti' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/doc/stamp-vti' && @set UPDATED 16 June 1999 @set EDITION 1.13 @set VERSION 1.13 SHAR_EOF $shar_touch -am 0707012599 'tar-1.13/doc/stamp-vti' && chmod 0664 'tar-1.13/doc/stamp-vti' || $echo 'restore of' 'tar-1.13/doc/stamp-vti' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/stamp-vti:' 'MD5 check failed' 716d2198e7725f86474e5ce0e934a35f tar-1.13/doc/stamp-vti SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/stamp-vti'`" test 62 -eq "$shar_count" || $echo 'tar-1.13/doc/stamp-vti:' 'original size' '62,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/texinfo.tex ============== if test -f 'tar-1.13/doc/texinfo.tex' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/texinfo.tex' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/texinfo.tex' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/doc/texinfo.tex' && % texinfo.tex -- TeX macros to handle Texinfo files. % % Load plain if necessary, i.e., if running under initex. \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi % \def\texinfoversion{1999-04-25.15}% % % Copyright (C) 1985, 86, 88, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99 % Free Software Foundation, Inc. % % This texinfo.tex file 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 texinfo.tex file 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 texinfo.tex file; see the file COPYING. If not, write % to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, % Boston, MA 02111-1307, USA. % % In other words, you are welcome to use, share and improve this program. % You are forbidden to forbid anyone else to use, share and improve % what you give them. Help stamp out software-hoarding! % % Please try the latest version of texinfo.tex before submitting bug % reports; you can get the latest version from: % ftp://ftp.gnu.org/pub/gnu/texinfo.tex % (and all GNU mirrors, see http://www.gnu.org/order/ftp.html) % ftp://tug.org/tex/texinfo.tex % ftp://ctan.org/macros/texinfo/texinfo.tex % (and all CTAN mirrors, finger ctan@ctan.org for a list). % /home/gd/gnu/doc/texinfo.tex on the GNU machines. % The texinfo.tex in any given Texinfo distribution could well be out % of date, so if that's what you're using, please check. % There is a small home page for Texinfo at http://texinfo.org/. % % Send bug reports to bug-texinfo@gnu.org. Please include including a % complete document in each bug report with which we can reproduce the % problem. Patches are, of course, greatly appreciated. % % To process a Texinfo manual with TeX, it's most reliable to use the % texi2dvi shell script that comes with the distribution. For a simple % manual foo.texi, however, you can get away with this: % tex foo.texi % texindex foo.?? % tex foo.texi % tex foo.texi % dvips foo.dvi -o # or whatever, to process the dvi file; this makes foo.ps. % The extra runs of TeX get the cross-reference information correct. % Sometimes one run after texindex suffices, and sometimes you need more % than two; texi2dvi does it as many times as necessary. % % It is possible to adapt texinfo.tex for other languages. You can get % the existing language-specific files from ftp://ftp.gnu.org/gnu/texinfo/. X \message{Loading texinfo [version \texinfoversion]:} X % If in a .fmt file, print the version number % and turn on active characters that we couldn't do earlier because % they might have appeared in the input file name. \everyjob{\message{[Texinfo version \texinfoversion]}% X \catcode`+=\active \catcode`\_=\active} X % Save some parts of plain tex whose names we will redefine. \let\ptexb=\b \let\ptexbullet=\bullet \let\ptexc=\c \let\ptexcomma=\, \let\ptexdot=\. \let\ptexdots=\dots \let\ptexend=\end \let\ptexequiv=\equiv \let\ptexexclam=\! \let\ptexi=\i \let\ptexlbrace=\{ \let\ptexrbrace=\} \let\ptexstar=\* \let\ptext=\t X % We never want plain's outer \+ definition in Texinfo. % For @tex, we can use \tabalign. \let\+ = \relax X % Get ready for pdf. \newif\ifpdf \ifx\pdfoutput\undefined\else X \input pdfcolor X \pdfoutput=1 X \pdftrue \fi X \message{Basics,} \chardef\other=12 X % If this character appears in an error message or help string, it % starts a new line in the output. \newlinechar = `^^J X % Set up fixed words for English if not already set. \ifx\putwordAppendix\undefined \gdef\putwordAppendix{Appendix}\fi \ifx\putwordChapter\undefined \gdef\putwordChapter{Chapter}\fi \ifx\putwordfile\undefined \gdef\putwordfile{file}\fi \ifx\putwordin\undefined \gdef\putwordin{in}\fi \ifx\putwordIndexIsEmpty\undefined \gdef\putwordIndexIsEmpty{(Index is empty)}\fi \ifx\putwordIndexNonexistent\undefined \gdef\putwordIndexNonexistent{(Index is nonexistent)}\fi \ifx\putwordInfo\undefined \gdef\putwordInfo{Info}\fi \ifx\putwordInstanceVariableof\undefined \gdef\putwordInstanceVariableof{Instance Variable of}\fi \ifx\putwordMethodon\undefined \gdef\putwordMethodon{Method on}\fi \ifx\putwordNoTitle\undefined \gdef\putwordNoTitle{No Title}\fi \ifx\putwordof\undefined \gdef\putwordof{of}\fi \ifx\putwordon\undefined \gdef\putwordon{on}\fi \ifx\putwordpage\undefined \gdef\putwordpage{page}\fi \ifx\putwordsection\undefined \gdef\putwordsection{section}\fi \ifx\putwordSection\undefined \gdef\putwordSection{Section}\fi \ifx\putwordsee\undefined \gdef\putwordsee{see}\fi \ifx\putwordSee\undefined \gdef\putwordSee{See}\fi \ifx\putwordShortTOC\undefined \gdef\putwordShortTOC{Short Contents}\fi \ifx\putwordTOC\undefined \gdef\putwordTOC{Table of Contents}\fi % \ifx\putwordMJan\undefined \gdef\putwordMJan{January}\fi \ifx\putwordMFeb\undefined \gdef\putwordMFeb{February}\fi \ifx\putwordMMar\undefined \gdef\putwordMMar{March}\fi \ifx\putwordMApr\undefined \gdef\putwordMApr{April}\fi \ifx\putwordMMay\undefined \gdef\putwordMMay{May}\fi \ifx\putwordMJun\undefined \gdef\putwordMJun{June}\fi \ifx\putwordMJul\undefined \gdef\putwordMJul{July}\fi \ifx\putwordMAug\undefined \gdef\putwordMAug{August}\fi \ifx\putwordMSep\undefined \gdef\putwordMSep{September}\fi \ifx\putwordMOct\undefined \gdef\putwordMOct{October}\fi \ifx\putwordMNov\undefined \gdef\putwordMNov{November}\fi \ifx\putwordMDec\undefined \gdef\putwordMDec{December}\fi % \ifx\putwordDefmac\undefined \gdef\putwordDefmac{Macro}\fi \ifx\putwordDefspec\undefined \gdef\putwordDefspec{Special Form}\fi \ifx\putwordDefvar\undefined \gdef\putwordDefvar{Variable}\fi \ifx\putwordDefopt\undefined \gdef\putwordDefopt{User Option}\fi \ifx\putwordDeftypevar\undefined\gdef\putwordDeftypevar{Variable}\fi \ifx\putwordDeffunc\undefined \gdef\putwordDeffunc{Function}\fi \ifx\putwordDeftypefun\undefined\gdef\putwordDeftypefun{Function}\fi X % Ignore a token. % \def\gobble#1{} X \hyphenation{ap-pen-dix} \hyphenation{mini-buf-fer mini-buf-fers} \hyphenation{eshell} \hyphenation{white-space} X % Margin to add to right of even pages, to left of odd pages. \newdimen \bindingoffset \newdimen \normaloffset \newdimen\pagewidth \newdimen\pageheight X % Sometimes it is convenient to have everything in the transcript file % and nothing on the terminal. We don't just call \tracingall here, % since that produces some useless output on the terminal. % \def\gloggingall{\begingroup \globaldefs = 1 \loggingall \endgroup}% \ifx\eTeXversion\undefined \def\loggingall{\tracingcommands2 \tracingstats2 X \tracingpages1 \tracingoutput1 \tracinglostchars1 X \tracingmacros2 \tracingparagraphs1 \tracingrestores1 X \showboxbreadth\maxdimen\showboxdepth\maxdimen }% \else \def\loggingall{\tracingcommands3 \tracingstats2 X \tracingpages1 \tracingoutput1 \tracinglostchars1 X \tracingmacros2 \tracingparagraphs1 \tracingrestores1 X \tracingscantokens1 \tracingassigns1 \tracingifs1 X \tracinggroups1 \tracingnesting2 X \showboxbreadth\maxdimen\showboxdepth\maxdimen }% \fi X % For @cropmarks command. % Do @cropmarks to get crop marks. % \newif\ifcropmarks \let\cropmarks = \cropmarkstrue % % Dimensions to add cropmarks at corners. % Added by P. A. MacKay, 12 Nov. 1986 % \newdimen\outerhsize \newdimen\outervsize % set by the paper size routines \newdimen\cornerlong \cornerlong=1pc \newdimen\cornerthick \cornerthick=.3pt \newdimen\topandbottommargin \topandbottommargin=.75in X % Main output routine. \chardef\PAGE = 255 \output = {\onepageout{\pagecontents\PAGE}} X \newbox\headlinebox \newbox\footlinebox X % \onepageout takes a vbox as an argument. Note that \pagecontents % does insertions, but you have to call it yourself. \def\onepageout#1{% X \ifcropmarks \hoffset=0pt \else \hoffset=\normaloffset \fi X % X \ifodd\pageno \advance\hoffset by \bindingoffset X \else \advance\hoffset by -\bindingoffset\fi X % X % Do this outside of the \shipout so @code etc. will be expanded in X % the headline as they should be, not taken literally (outputting ''code). X \setbox\headlinebox = \vbox{\let\hsize=\pagewidth \makeheadline}% X \setbox\footlinebox = \vbox{\let\hsize=\pagewidth \makefootline}% X % X {% X % Have to do this stuff outside the \shipout because we want it to X % take effect in \write's, yet the group defined by the \vbox ends X % before the \shipout runs. X % X \escapechar = `\\ % use backslash in output files. X \indexdummies % don't expand commands in the output. X \normalturnoffactive % \ in index entries must not stay \, e.g., if X % the page break happens to be in the middle of an example. X \shipout\vbox{% X \ifcropmarks \vbox to \outervsize\bgroup X \hsize = \outerhsize X \vskip-\topandbottommargin X \vtop to0pt{% X \line{\ewtop\hfil\ewtop}% X \nointerlineskip X \line{% X \vbox{\moveleft\cornerthick\nstop}% X \hfill X \vbox{\moveright\cornerthick\nstop}% X }% X \vss}% X \vskip\topandbottommargin X \line\bgroup X \hfil % center the page within the outer (page) hsize. X \ifodd\pageno\hskip\bindingoffset\fi X \vbox\bgroup X \fi X % X \unvbox\headlinebox X \pagebody{#1}% X \ifdim\ht\footlinebox > 0pt X % Only leave this space if the footline is nonempty. X % (We lessened \vsize for it in \oddfootingxxx.) X % The \baselineskip=24pt in plain's \makefootline has no effect. X \vskip 2\baselineskip X \unvbox\footlinebox X \fi X % X \ifpdf\pdfmkdest{\the\pageno}\fi X % X \ifcropmarks X \egroup % end of \vbox\bgroup X \hfil\egroup % end of (centering) \line\bgroup X \vskip\topandbottommargin plus1fill minus1fill X \boxmaxdepth = \cornerthick X \vbox to0pt{\vss X \line{% X \vbox{\moveleft\cornerthick\nsbot}% X \hfill X \vbox{\moveright\cornerthick\nsbot}% X }% X \nointerlineskip X \line{\ewbot\hfil\ewbot}% X }% X \egroup % \vbox from first cropmarks clause X \fi X }% end of \shipout\vbox X }% end of group with \turnoffactive X \advancepageno X \ifnum\outputpenalty>-20000 \else\dosupereject\fi } X \newinsert\margin \dimen\margin=\maxdimen X \def\pagebody#1{\vbox to\pageheight{\boxmaxdepth=\maxdepth #1}} {\catcode`\@ =11 \gdef\pagecontents#1{\ifvoid\topins\else\unvbox\topins\fi % marginal hacks, juha@viisa.uucp (Juha Takala) \ifvoid\margin\else % marginal info is present X \rlap{\kern\hsize\vbox to\z@{\kern1pt\box\margin \vss}}\fi \dimen@=\dp#1 \unvbox#1 \ifvoid\footins\else\vskip\skip\footins\footnoterule \unvbox\footins\fi \ifr@ggedbottom \kern-\dimen@ \vfil \fi} } X % Here are the rules for the cropmarks. Note that they are % offset so that the space between them is truly \outerhsize or \outervsize % (P. A. MacKay, 12 November, 1986) % \def\ewtop{\vrule height\cornerthick depth0pt width\cornerlong} \def\nstop{\vbox X {\hrule height\cornerthick depth\cornerlong width\cornerthick}} \def\ewbot{\vrule height0pt depth\cornerthick width\cornerlong} \def\nsbot{\vbox X {\hrule height\cornerlong depth\cornerthick width\cornerthick}} X % Parse an argument, then pass it to #1. The argument is the rest of % the input line (except we remove a trailing comment). #1 should be a % macro which expects an ordinary undelimited TeX argument. % \def\parsearg#1{% X \let\next = #1% X \begingroup X \obeylines X \futurelet\temp\parseargx } X % If the next token is an obeyed space (from an @example environment or % the like), remove it and recurse. Otherwise, we're done. \def\parseargx{% X % \obeyedspace is defined far below, after the definition of \sepspaces. X \ifx\obeyedspace\temp X \expandafter\parseargdiscardspace X \else X \expandafter\parseargline X \fi } X % Remove a single space (as the delimiter token to the macro call). {\obeyspaces % X \gdef\parseargdiscardspace {\futurelet\temp\parseargx}} X {\obeylines % X \gdef\parseargline#1^^M{% X \endgroup % End of the group started in \parsearg. X % X % First remove any @c comment, then any @comment. X % Result of each macro is put in \toks0. X \argremovec #1\c\relax % X \expandafter\argremovecomment \the\toks0 \comment\relax % X % X % Call the caller's macro, saved as \next in \parsearg. X \expandafter\next\expandafter{\the\toks0}% X }% } X % Since all \c{,omment} does is throw away the argument, we can let TeX % do that for us. The \relax here is matched by the \relax in the call % in \parseargline; it could be more or less anything, its purpose is % just to delimit the argument to the \c. \def\argremovec#1\c#2\relax{\toks0 = {#1}} \def\argremovecomment#1\comment#2\relax{\toks0 = {#1}} X % \argremovec{,omment} might leave us with trailing spaces, though; e.g., % @end itemize @c foo % will have two active spaces as part of the argument with the % `itemize'. Here we remove all active spaces from #1, and assign the % result to \toks0. % % This loses if there are any *other* active characters besides spaces % in the argument -- _ ^ +, for example -- since they get expanded. % Fortunately, Texinfo does not define any such commands. (If it ever % does, the catcode of the characters in questionwill have to be changed % here.) But this means we cannot call \removeactivespaces as part of % \argremovec{,omment}, since @c uses \parsearg, and thus the argument % that \parsearg gets might well have any character at all in it. % \def\removeactivespaces#1{% X \begingroup X \ignoreactivespaces X \edef\temp{#1}% X \global\toks0 = \expandafter{\temp}% X \endgroup } X % Change the active space to expand to nothing. % \begingroup X \obeyspaces X \gdef\ignoreactivespaces{\obeyspaces\let =\empty} \endgroup X X \def\flushcr{\ifx\par\lisppar \def\next##1{}\else \let\next=\relax \fi \next} X %% These are used to keep @begin/@end levels from running away %% Call \inENV within environments (after a \begingroup) \newif\ifENV \ENVfalse \def\inENV{\ifENV\relax\else\ENVtrue\fi} \def\ENVcheck{% \ifENV\errmessage{Still within an environment; press RETURN to continue} \endgroup\fi} % This is not perfect, but it should reduce lossage X % @begin foo is the same as @foo, for now. \newhelp\EMsimple{Press RETURN to continue.} X \outer\def\begin{\parsearg\beginxxx} X \def\beginxxx #1{% \expandafter\ifx\csname #1\endcsname\relax {\errhelp=\EMsimple \errmessage{Undefined command @begin #1}}\else \csname #1\endcsname\fi} X % @end foo executes the definition of \Efoo. % \def\end{\parsearg\endxxx} \def\endxxx #1{% X \removeactivespaces{#1}% X \edef\endthing{\the\toks0}% X % X \expandafter\ifx\csname E\endthing\endcsname\relax X \expandafter\ifx\csname \endthing\endcsname\relax X % There's no \foo, i.e., no ``environment'' foo. X \errhelp = \EMsimple X \errmessage{Undefined command `@end \endthing'}% X \else X \unmatchedenderror\endthing X \fi X \else X % Everything's ok; the right environment has been started. X \csname E\endthing\endcsname X \fi } X % There is an environment #1, but it hasn't been started. Give an error. % \def\unmatchedenderror#1{% X \errhelp = \EMsimple X \errmessage{This `@end #1' doesn't have a matching `@#1'}% } X % Define the control sequence \E#1 to give an unmatched @end error. % \def\defineunmatchedend#1{% X \expandafter\def\csname E#1\endcsname{\unmatchedenderror{#1}}% } X X % Single-spacing is done by various environments (specifically, in % \nonfillstart and \quotations). \newskip\singlespaceskip \singlespaceskip = 12.5pt \def\singlespace{% X % Why was this kern here? It messes up equalizing space above and below X % environments. --karl, 6may93 X %{\advance \baselineskip by -\singlespaceskip X %\kern \baselineskip}% X \setleading \singlespaceskip } X %% Simple single-character @ commands X % @@ prints an @ % Kludge this until the fonts are right (grr). \def\@{{\tt\char64}} X % This is turned off because it was never documented % and you can use @w{...} around a quote to suppress ligatures. %% Define @` and @' to be the same as ` and ' %% but suppressing ligatures. %\def\`{{`}} %\def\'{{'}} X % Used to generate quoted braces. \def\mylbrace {{\tt\char123}} \def\myrbrace {{\tt\char125}} \let\{=\mylbrace \let\}=\myrbrace \begingroup X % Definitions to produce actual \{ & \} command in an index. X \catcode`\{ = 12 \catcode`\} = 12 X \catcode`\[ = 1 \catcode`\] = 2 X \catcode`\@ = 0 \catcode`\\ = 12 X @gdef@lbracecmd[\{]% X @gdef@rbracecmd[\}]% @endgroup X % Accents: @, @dotaccent @ringaccent @ubaraccent @udotaccent % Others are defined by plain TeX: @` @' @" @^ @~ @= @v @H. \let\, = \c \let\dotaccent = \. \def\ringaccent#1{{\accent23 #1}} \let\tieaccent = \t \let\ubaraccent = \b \let\udotaccent = \d X % Other special characters: @questiondown @exclamdown % Plain TeX defines: @AA @AE @O @OE @L (and lowercase versions) @ss. \def\questiondown{?`} \def\exclamdown{!`} X % Dotless i and dotless j, used for accents. \def\imacro{i} \def\jmacro{j} \def\dotless#1{% X \def\temp{#1}% X \ifx\temp\imacro \ptexi X \else\ifx\temp\jmacro \j X \else \errmessage{@dotless can be used only with i or j}% X \fi\fi } X % Be sure we're in horizontal mode when doing a tie, since we make space % equivalent to this in @example-like environments. Otherwise, a space % at the beginning of a line will start with \penalty -- and % since \penalty is valid in vertical mode, we'd end up putting the % penalty on the vertical list instead of in the new paragraph. {\catcode`@ = 11 X % Avoid using \@M directly, because that causes trouble X % if the definition is written into an index file. X \global\let\tiepenalty = \@M X \gdef\tie{\leavevmode\penalty\tiepenalty\ } } X % @: forces normal size whitespace following. \def\:{\spacefactor=1000 } X % @* forces a line break. \def\*{\hfil\break\hbox{}\ignorespaces} X % @. is an end-of-sentence period. \def\.{.\spacefactor=3000 } X % @! is an end-of-sentence bang. \def\!{!\spacefactor=3000 } X % @? is an end-of-sentence query. \def\?{?\spacefactor=3000 } X % @w prevents a word break. Without the \leavevmode, @w at the % beginning of a paragraph, when TeX is still in vertical mode, would % produce a whole line of output instead of starting the paragraph. \def\w#1{\leavevmode\hbox{#1}} X % @group ... @end group forces ... to be all on one page, by enclosing % it in a TeX vbox. We use \vtop instead of \vbox to construct the box % to keep its height that of a normal line. According to the rules for % \topskip (p.114 of the TeXbook), the glue inserted is % max (\topskip - \ht (first item), 0). If that height is large, % therefore, no glue is inserted, and the space between the headline and % the text is small, which looks bad. % \def\group{\begingroup X \ifnum\catcode13=\active \else X \errhelp = \groupinvalidhelp X \errmessage{@group invalid in context where filling is enabled}% X \fi X % X % The \vtop we start below produces a box with normal height and large X % depth; thus, TeX puts \baselineskip glue before it, and (when the X % next line of text is done) \lineskip glue after it. (See p.82 of X % the TeXbook.) Thus, space below is not quite equal to space X % above. But it's pretty close. X \def\Egroup{% X \egroup % End the \vtop. X \endgroup % End the \group. X }% X % X \vtop\bgroup X % We have to put a strut on the last line in case the @group is in X % the midst of an example, rather than completely enclosing it. X % Otherwise, the interline space between the last line of the group X % and the first line afterwards is too small. But we can't put the X % strut in \Egroup, since there it would be on a line by itself. X % Hence this just inserts a strut at the beginning of each line. X \everypar = {\strut}% X % X % Since we have a strut on every line, we don't need any of TeX's X % normal interline spacing. X \offinterlineskip X % X % OK, but now we have to do something about blank X % lines in the input in @example-like environments, which normally X % just turn into \lisppar, which will insert no space now that we've X % turned off the interline space. Simplest is to make them be an X % empty paragraph. X \ifx\par\lisppar X \edef\par{\leavevmode \par}% X % X % Reset ^^M's definition to new definition of \par. X \obeylines X \fi X % X % Do @comment since we are called inside an environment such as X % @example, where each end-of-line in the input causes an X % end-of-line in the output. We don't want the end-of-line after X % the `@group' to put extra space in the output. Since @group X % should appear on a line by itself (according to the Texinfo X % manual), we don't worry about eating any user text. X \comment } % % TeX puts in an \escapechar (i.e., `@') at the beginning of the help % message, so this ends up printing `@group can only ...'. % \newhelp\groupinvalidhelp{% group can only be used in environments such as @example,^^J% where each line of input produces a line of output.} X % @need space-in-mils % forces a page break if there is not space-in-mils remaining. X \newdimen\mil \mil=0.001in X \def\need{\parsearg\needx} X % Old definition--didn't work. %\def\needx #1{\par % %% This method tries to make TeX break the page naturally %% if the depth of the box does not fit. %{\baselineskip=0pt% %\vtop to #1\mil{\vfil}\kern -#1\mil\nobreak %\prevdepth=-1000pt %}} X \def\needx#1{% X % Go into vertical mode, so we don't make a big box in the middle of a X % paragraph. X \par X % X % Don't add any leading before our big empty box, but allow a page X % break, since the best break might be right here. X \allowbreak X \nointerlineskip X \vtop to #1\mil{\vfil}% X % X % TeX does not even consider page breaks if a penalty added to the X % main vertical list is 10000 or more. But in order to see if the X % empty box we just added fits on the page, we must make it consider X % page breaks. On the other hand, we don't want to actually break the X % page after the empty box. So we use a penalty of 9999. X % X % There is an extremely small chance that TeX will actually break the X % page at this \penalty, if there are no other feasible breakpoints in X % sight. (If the user is using lots of big @group commands, which X % almost-but-not-quite fill up a page, TeX will have a hard time doing X % good page breaking, for example.) However, I could not construct an X % example where a page broke at this \penalty; if it happens in a real X % document, then we can reconsider our strategy. X \penalty9999 X % X % Back up by the size of the box, whether we did a page break or not. X \kern -#1\mil X % X % Do not allow a page break right after this kern. X \nobreak } X % @br forces paragraph break X \let\br = \par X % @dots{} output an ellipsis using the current font. % We do .5em per period so that it has the same spacing in a typewriter % font as three actual period characters. % \def\dots{% X \leavevmode X \hbox to 1.5em{% X \hskip 0pt plus 0.25fil minus 0.25fil X .\hss.\hss.% X \hskip 0pt plus 0.5fil minus 0.5fil X }% } X % @enddots{} is an end-of-sentence ellipsis. % \def\enddots{% X \leavevmode X \hbox to 2em{% X \hskip 0pt plus 0.25fil minus 0.25fil X .\hss.\hss.\hss.% X \hskip 0pt plus 0.5fil minus 0.5fil X }% X \spacefactor=3000 } X X % @page forces the start of a new page % \def\page{\par\vfill\supereject} X % @exdent text.... % outputs text on separate line in roman font, starting at standard page margin X % This records the amount of indent in the innermost environment. % That's how much \exdent should take out. \newskip\exdentamount X % This defn is used inside fill environments such as @defun. \def\exdent{\parsearg\exdentyyy} \def\exdentyyy #1{{\hfil\break\hbox{\kern -\exdentamount{\rm#1}}\hfil\break}} X % This defn is used inside nofill environments such as @example. \def\nofillexdent{\parsearg\nofillexdentyyy} \def\nofillexdentyyy #1{{\advance \leftskip by -\exdentamount \leftline{\hskip\leftskip{\rm#1}}}} X % @inmargin{TEXT} puts TEXT in the margin next to the current paragraph. X \def\inmargin#1{% \strut\vadjust{\nobreak\kern-\strutdepth X \vtop to \strutdepth{\baselineskip\strutdepth\vss X \llap{\rightskip=\inmarginspacing \vbox{\noindent #1}}\null}}} \newskip\inmarginspacing \inmarginspacing=1cm \def\strutdepth{\dp\strutbox} X %\hbox{{\rm#1}}\hfil\break}} X % @include file insert text of that file as input. % Allow normal characters that we make active in the argument (a file name). \def\include{\begingroup X \catcode`\\=12 X \catcode`~=12 X \catcode`^=12 X \catcode`_=12 X \catcode`|=12 X \catcode`<=12 X \catcode`>=12 X \catcode`+=12 X \parsearg\includezzz} % Restore active chars for included file. \def\includezzz#1{\endgroup\begingroup X % Read the included file in a group so nested @include's work. X \def\thisfile{#1}% X \input\thisfile \endgroup} X \def\thisfile{} X % @center line outputs that line, centered X \def\center{\parsearg\centerzzz} \def\centerzzz #1{{\advance\hsize by -\leftskip \advance\hsize by -\rightskip \centerline{#1}}} X % @sp n outputs n lines of vertical space X \def\sp{\parsearg\spxxx} \def\spxxx #1{\vskip #1\baselineskip} X % @comment ...line which is ignored... % @c is the same as @comment % @ignore ... @end ignore is another way to write a comment X \def\comment{\begingroup \catcode`\^^M=\other% \catcode`\@=\other \catcode`\{=\other \catcode`\}=\other% \commentxxx} {\catcode`\^^M=\other \gdef\commentxxx#1^^M{\endgroup}} X \let\c=\comment X % @paragraphindent NCHARS % We'll use ems for NCHARS, close enough. % We cannot implement @paragraphindent asis, though. % \def\asisword{asis} % no translation, these are keywords \def\noneword{none} % \def\paragraphindent{\parsearg\doparagraphindent} \def\doparagraphindent#1{% X \def\temp{#1}% X \ifx\temp\asisword X \else X \ifx\temp\noneword X \defaultparindent = 0pt X \else X \defaultparindent = #1em X \fi X \fi X \parindent = \defaultparindent } X % @exampleindent NCHARS % We'll use ems for NCHARS like @paragraphindent. % It seems @exampleindent asis isn't necessary, but % I preserve it to make it similar to @paragraphindent. \def\exampleindent{\parsearg\doexampleindent} \def\doexampleindent#1{% X \def\temp{#1}% X \ifx\temp\asisword X \else X \ifx\temp\noneword X \lispnarrowing = 0pt X \else X \lispnarrowing = #1em X \fi X \fi } X % @asis just yields its argument. Used with @table, for example. % \def\asis#1{#1} X % @math means output in math mode. % We don't use $'s directly in the definition of \math because control % sequences like \math are expanded when the toc file is written. Then, % we read the toc file back, the $'s will be normal characters (as they % should be, according to the definition of Texinfo). So we must use a % control sequence to switch into and out of math mode. % % This isn't quite enough for @math to work properly in indices, but it % seems unlikely it will ever be needed there. % \let\implicitmath = $ \def\math#1{\implicitmath #1\implicitmath} X % @bullet and @minus need the same treatment as @math, just above. \def\bullet{\implicitmath\ptexbullet\implicitmath} \def\minus{\implicitmath-\implicitmath} X % @refill is a no-op. \let\refill=\relax X % If working on a large document in chapters, it is convenient to % be able to disable indexing, cross-referencing, and contents, for test runs. % This is done with @novalidate (before @setfilename). % \newif\iflinks \linkstrue % by default we want the aux files. \let\novalidate = \linksfalse X % @setfilename is done at the beginning of every texinfo file. % So open here the files we need to have open while reading the input. % This makes it possible to make a .fmt file for texinfo. \def\setfilename{% X \iflinks X \readauxfile X \fi % \openindices needs to do some work in any case. X \openindices X \fixbackslash % Turn off hack to swallow `\input texinfo'. X \global\let\setfilename=\comment % Ignore extra @setfilename cmds. X % X % If texinfo.cnf is present on the system, read it. X % Useful for site-wide @afourpaper, etc. X % Just to be on the safe side, close the input stream before the \input. X \openin 1 texinfo.cnf X \ifeof1 \let\temp=\relax \else \def\temp{\input texinfo.cnf }\fi X \closein1 X \temp X % X \comment % Ignore the actual filename. } X % Called from \setfilename. % \def\openindices{% X \newindex{cp}% X \newcodeindex{fn}% X \newcodeindex{vr}% X \newcodeindex{tp}% X \newcodeindex{ky}% X \newcodeindex{pg}% } X % @bye. \outer\def\bye{\pagealignmacro\tracingstats=1\ptexend} X X \message{pdf,} % adobe `portable' document format X \newcount\tempnum \newcount\lnkcount \newtoks\filename \newcount\filenamelength \newcount\pgn X \ifpdf \def\pdfmkdest#1{\pdfdest name{#1@} xyz} \def\pdfmkpgn#1{#1@} X % Adding outlines to PDF; macros for calculating structure of outlines % come from Petr Olsak \def\expnumber#1{\expandafter\ifx\csname#1\endcsname\relax 0% X \else \csname#1\endcsname \fi} \def\advancenumber#1{\tempnum=\expnumber{#1}\relax X \advance\tempnum by1 X \expandafter\xdef\csname#1\endcsname{\the\tempnum}} \def\pdfmakeoutlines{{% X \openin 1 \jobname.toc X \ifeof 1\else\bgroup X \closein 1 X \def\code##1{##1} X \def\file##1{##1} X \def\TeX##1{TeX} X \def\tt{} X \def\char{char} X \def\samp##1{##1} X \def\kbd##1{##1} X \def\key##1{##1} X \def\rawbackslashxx{\string\\} X \def\chapentry ##1##2##3{} X \def\unnumbchapentry ##1##2{} X \def\secentry ##1##2##3##4{\advancenumber{chap##2}} X \def\unnumbsecentry ##1##2{} X \def\subsecentry ##1##2##3##4##5{\advancenumber{sec##2.##3}} X \def\unnumbsubsecentry ##1##2{} X \def\subsubsecentry ##1##2##3##4##5##6{\advancenumber{subsec##2.##3.##4}} X \def\unnumbsubsubsecentry ##1##2{} X \input \jobname.toc X \def\chapentry ##1##2##3{% X \pdfoutline goto name{\pdfmkpgn{##3}}count-\expnumber{chap##2}{##1}} X \def\unnumbchapentry ##1##2{% X \pdfoutline goto name{\pdfmkpgn{##2}}{##1}} X \def\secentry ##1##2##3##4{% X \pdfoutline goto name{\pdfmkpgn{##4}}count-\expnumber{sec##2.##3}{##1}} X \def\unnumbsecentry ##1##2{% X \pdfoutline goto name{\pdfmkpgn{##2}}{##1}} X \def\subsecentry ##1##2##3##4##5{% X \pdfoutline goto name{\pdfmkpgn{##5}}count-\expnumber{subsec##2.##3.##4}{##1}} X \def\unnumbsubsecentry ##1##2{% X \pdfoutline goto name{\pdfmkpgn{##2}}{##1}} X \def\subsubsecentry ##1##2##3##4##5##6{% X \pdfoutline goto name{\pdfmkpgn{##6}}{##1}} X \def\unnumbsubsubsecentry ##1##2{% X \pdfoutline goto name{\pdfmkpgn{##2}}{##1}} X \input \jobname.toc X \egroup\fi }} \pdfmakeoutlines X \def\makelinks #1,{% X \def\params{#1}\def\E{END}% X \ifx\params\E X \let\nextmakelinks=\relax X \else X \let\nextmakelinks=\makelinks X \ifnum\lnkcount>0,\fi X \picknum{#1}% X \Blue\pdfannotlink attr{/Border [0 0 0]} X goto name{\pdfmkpgn{\the\pgn}}% X #1% X \advance\lnkcount by 1% X \Black\pdfendlink X \fi X \nextmakelinks } X \def\picknum#1{\expandafter\pn#1} \def\pn#1{% X \def\p{#1}% X \ifx\p\lbrace X \let\nextpn=\ppn X \else X \let\nextpn=\ppnn X \def\first{#1} X \fi X \nextpn } \def\ppn#1{\pgn=#1\gobble} \def\ppnn{\pgn=\first} \def\pdfmklnk#1{\lnkcount=0\makelinks #1,END,} X \def\addtokens#1#2{\edef\addtoks{\noexpand#1={\the#1#2}}\addtoks} \def\skipspaces#1{\def\PP{#1}\def\D{|}% X \ifx\PP\D\let\nextsp\relax X \else\let\nextsp\skipspaces X \ifx\p\space\else\addtokens{\filename}{\PP}% X \advance\filenamelength by 1 X \fi X \fi X \nextsp} \def\getfilename#1{\filenamelength=0\expandafter\skipspaces#1|\relax} X \def\pdflink#1{% X \leavevmode\Red X \begingroup X \normalturnoffactive\def\@{@}% X \pdfannotlink X attr{/Border [0 0 0]}% X user{/Subtype /Link /A << /S /URI /URI (#1) >>}% X \endgroup } X \else \let\pdflink = \gobble \fi % end \ifpdf X \message{fonts,} % Font-change commands. X % Texinfo sort of supports the sans serif font style, which plain TeX does not. % So we set up a \sf analogous to plain's \rm, etc. \newfam\sffam \def\sf{\fam=\sffam \tensf} \let\li = \sf % Sometimes we call it \li, not \sf. X % We don't need math for this one. \def\ttsl{\tenttsl} X % Use Computer Modern fonts at \magstephalf (11pt). \newcount\mainmagstep \mainmagstep=\magstephalf X % Set the font macro #1 to the font named #2, adding on the % specified font prefix (normally `cm'). % #3 is the font's design size, #4 is a scale factor \def\setfont#1#2#3#4{\font#1=\fontprefix#2#3 scaled #4} X % Use cm as the default font prefix. % To specify the font prefix, you must define \fontprefix % before you read in texinfo.tex. \ifx\fontprefix\undefined \def\fontprefix{cm} \fi % Support font families that don't use the same naming scheme as CM. \def\rmshape{r} \def\rmbshape{bx} %where the normal face is bold \def\bfshape{b} \def\bxshape{bx} \def\ttshape{tt} \def\ttbshape{tt} \def\ttslshape{sltt} \def\itshape{ti} \def\itbshape{bxti} \def\slshape{sl} \def\slbshape{bxsl} \def\sfshape{ss} \def\sfbshape{ss} \def\scshape{csc} \def\scbshape{csc} X \ifx\bigger\relax \let\mainmagstep=\magstep1 \setfont\textrm\rmshape{12}{1000} \setfont\texttt\ttshape{12}{1000} \else \setfont\textrm\rmshape{10}{\mainmagstep} \setfont\texttt\ttshape{10}{\mainmagstep} \fi % Instead of cmb10, you many want to use cmbx10. % cmbx10 is a prettier font on its own, but cmb10 % looks better when embedded in a line with cmr10. \setfont\textbf\bfshape{10}{\mainmagstep} \setfont\textit\itshape{10}{\mainmagstep} \setfont\textsl\slshape{10}{\mainmagstep} \setfont\textsf\sfshape{10}{\mainmagstep} \setfont\textsc\scshape{10}{\mainmagstep} \setfont\textttsl\ttslshape{10}{\mainmagstep} \font\texti=cmmi10 scaled \mainmagstep \font\textsy=cmsy10 scaled \mainmagstep X % A few fonts for @defun, etc. \setfont\defbf\bxshape{10}{\magstep1} %was 1314 \setfont\deftt\ttshape{10}{\magstep1} \def\df{\let\tentt=\deftt \let\tenbf = \defbf \bf} X % Fonts for indices and small examples (9pt). % We actually use the slanted font rather than the italic, % because texinfo normally uses the slanted fonts for that. % Do not make many font distinctions in general in the index, since they % aren't very useful. \setfont\ninett\ttshape{9}{1000} \setfont\ninettsl\ttslshape{10}{900} \setfont\indrm\rmshape{9}{1000} \setfont\indit\itshape{9}{1000} \setfont\indsl\slshape{9}{1000} \let\indtt=\ninett \let\indttsl=\ninettsl \let\indsf=\indrm \let\indbf=\indrm \setfont\indsc\scshape{10}{900} \font\indi=cmmi9 \font\indsy=cmsy9 X % Fonts for title page: \setfont\titlerm\rmbshape{12}{\magstep3} \setfont\titleit\itbshape{10}{\magstep4} \setfont\titlesl\slbshape{10}{\magstep4} \setfont\titlett\ttbshape{12}{\magstep3} \setfont\titlettsl\ttslshape{10}{\magstep4} \setfont\titlesf\sfbshape{17}{\magstep1} \let\titlebf=\titlerm \setfont\titlesc\scbshape{10}{\magstep4} \font\titlei=cmmi12 scaled \magstep3 \font\titlesy=cmsy10 scaled \magstep4 \def\authorrm{\secrm} X % Chapter (and unnumbered) fonts (17.28pt). \setfont\chaprm\rmbshape{12}{\magstep2} \setfont\chapit\itbshape{10}{\magstep3} \setfont\chapsl\slbshape{10}{\magstep3} \setfont\chaptt\ttbshape{12}{\magstep2} \setfont\chapttsl\ttslshape{10}{\magstep3} \setfont\chapsf\sfbshape{17}{1000} \let\chapbf=\chaprm \setfont\chapsc\scbshape{10}{\magstep3} \font\chapi=cmmi12 scaled \magstep2 \font\chapsy=cmsy10 scaled \magstep3 X % Section fonts (14.4pt). \setfont\secrm\rmbshape{12}{\magstep1} \setfont\secit\itbshape{10}{\magstep2} \setfont\secsl\slbshape{10}{\magstep2} \setfont\sectt\ttbshape{12}{\magstep1} \setfont\secttsl\ttslshape{10}{\magstep2} \setfont\secsf\sfbshape{12}{\magstep1} \let\secbf\secrm \setfont\secsc\scbshape{10}{\magstep2} \font\seci=cmmi12 scaled \magstep1 \font\secsy=cmsy10 scaled \magstep2 X % \setfont\ssecrm\bxshape{10}{\magstep1} % This size an font looked bad. % \setfont\ssecit\itshape{10}{\magstep1} % The letters were too crowded. % \setfont\ssecsl\slshape{10}{\magstep1} % \setfont\ssectt\ttshape{10}{\magstep1} % \setfont\ssecsf\sfshape{10}{\magstep1} X %\setfont\ssecrm\bfshape{10}{1315} % Note the use of cmb rather than cmbx. %\setfont\ssecit\itshape{10}{1315} % Also, the size is a little larger than %\setfont\ssecsl\slshape{10}{1315} % being scaled magstep1. %\setfont\ssectt\ttshape{10}{1315} %\setfont\ssecsf\sfshape{10}{1315} X %\let\ssecbf=\ssecrm X % Subsection fonts (13.15pt). \setfont\ssecrm\rmbshape{12}{\magstephalf} \setfont\ssecit\itbshape{10}{1315} \setfont\ssecsl\slbshape{10}{1315} \setfont\ssectt\ttbshape{12}{\magstephalf} \setfont\ssecttsl\ttslshape{10}{1315} \setfont\ssecsf\sfbshape{12}{\magstephalf} \let\ssecbf\ssecrm \setfont\ssecsc\scbshape{10}{\magstep1} \font\sseci=cmmi12 scaled \magstephalf \font\ssecsy=cmsy10 scaled 1315 % The smallcaps and symbol fonts should actually be scaled \magstep1.5, % but that is not a standard magnification. X % In order for the font changes to affect most math symbols and letters, % we have to define the \textfont of the standard families. Since % texinfo doesn't allow for producing subscripts and superscripts, we % don't bother to reset \scriptfont and \scriptscriptfont (which would % also require loading a lot more fonts). % \def\resetmathfonts{% X \textfont0 = \tenrm \textfont1 = \teni \textfont2 = \tensy X \textfont\itfam = \tenit \textfont\slfam = \tensl \textfont\bffam = \tenbf X \textfont\ttfam = \tentt \textfont\sffam = \tensf } X X % The font-changing commands redefine the meanings of \tenSTYLE, instead % of just \STYLE. We do this so that font changes will continue to work % in math mode, where it is the current \fam that is relevant in most % cases, not the current font. Plain TeX does \def\bf{\fam=\bffam % \tenbf}, for example. By redefining \tenbf, we obviate the need to % redefine \bf itself. \def\textfonts{% X \let\tenrm=\textrm \let\tenit=\textit \let\tensl=\textsl X \let\tenbf=\textbf \let\tentt=\texttt \let\smallcaps=\textsc X \let\tensf=\textsf \let\teni=\texti \let\tensy=\textsy \let\tenttsl=\textttsl X \resetmathfonts} \def\titlefonts{% X \let\tenrm=\titlerm \let\tenit=\titleit \let\tensl=\titlesl X \let\tenbf=\titlebf \let\tentt=\titlett \let\smallcaps=\titlesc X \let\tensf=\titlesf \let\teni=\titlei \let\tensy=\titlesy X \let\tenttsl=\titlettsl X \resetmathfonts \setleading{25pt}} \def\titlefont#1{{\titlefonts\rm #1}} \def\chapfonts{% X \let\tenrm=\chaprm \let\tenit=\chapit \let\tensl=\chapsl X \let\tenbf=\chapbf \let\tentt=\chaptt \let\smallcaps=\chapsc X \let\tensf=\chapsf \let\teni=\chapi \let\tensy=\chapsy \let\tenttsl=\chapttsl X \resetmathfonts \setleading{19pt}} \def\secfonts{% X \let\tenrm=\secrm \let\tenit=\secit \let\tensl=\secsl X \let\tenbf=\secbf \let\tentt=\sectt \let\smallcaps=\secsc X \let\tensf=\secsf \let\teni=\seci \let\tensy=\secsy \let\tenttsl=\secttsl X \resetmathfonts \setleading{16pt}} \def\subsecfonts{% X \let\tenrm=\ssecrm \let\tenit=\ssecit \let\tensl=\ssecsl X \let\tenbf=\ssecbf \let\tentt=\ssectt \let\smallcaps=\ssecsc X \let\tensf=\ssecsf \let\teni=\sseci \let\tensy=\ssecsy \let\tenttsl=\ssecttsl X \resetmathfonts \setleading{15pt}} \let\subsubsecfonts = \subsecfonts % Maybe make sssec fonts scaled magstephalf? \def\indexfonts{% X \let\tenrm=\indrm \let\tenit=\indit \let\tensl=\indsl X \let\tenbf=\indbf \let\tentt=\indtt \let\smallcaps=\indsc X \let\tensf=\indsf \let\teni=\indi \let\tensy=\indsy \let\tenttsl=\indttsl X \resetmathfonts \setleading{12pt}} X % Set up the default fonts, so we can use them for creating boxes. % \textfonts X % Define these so they can be easily changed for other fonts. \def\angleleft{$\langle$} \def\angleright{$\rangle$} X % Count depth in font-changes, for error checks \newcount\fontdepth \fontdepth=0 X % Fonts for short table of contents. \setfont\shortcontrm\rmshape{12}{1000} \setfont\shortcontbf\bxshape{12}{1000} \setfont\shortcontsl\slshape{12}{1000} X %% Add scribe-like font environments, plus @l for inline lisp (usually sans %% serif) and @ii for TeX italic X % \smartitalic{ARG} outputs arg in italics, followed by an italic correction % unless the following character is such as not to need one. \def\smartitalicx{\ifx\next,\else\ifx\next-\else\ifx\next.\else\/\fi\fi\fi} \def\smartslanted#1{{\sl #1}\futurelet\next\smartitalicx} \def\smartitalic#1{{\it #1}\futurelet\next\smartitalicx} X \let\i=\smartitalic \let\var=\smartslanted \let\dfn=\smartslanted \let\emph=\smartitalic \let\cite=\smartslanted X \def\b#1{{\bf #1}} \let\strong=\b X % We can't just use \exhyphenpenalty, because that only has effect at % the end of a paragraph. Restore normal hyphenation at the end of the % group within which \nohyphenation is presumably called. % \def\nohyphenation{\hyphenchar\font = -1 \aftergroup\restorehyphenation} \def\restorehyphenation{\hyphenchar\font = `- } X \def\t#1{% X {\tt \rawbackslash \frenchspacing #1}% X \null } \let\ttfont=\t \def\samp#1{`\tclose{#1}'\null} \setfont\smallrm\rmshape{8}{1000} \font\smallsy=cmsy9 \def\key#1{{\smallrm\textfont2=\smallsy \leavevmode\hbox{% X \raise0.4pt\hbox{\angleleft}\kern-.08em\vtop{% X \vbox{\hrule\kern-0.4pt X \hbox{\raise0.4pt\hbox{\vphantom{\angleleft}}#1}}% X \kern-0.4pt\hrule}% X \kern-.06em\raise0.4pt\hbox{\angleright}}}} % The old definition, with no lozenge: %\def\key #1{{\ttsl \nohyphenation \uppercase{#1}}\null} \def\ctrl #1{{\tt \rawbackslash \hat}#1} X % @file, @option are the same as @samp. \let\file=\samp \let\option=\samp X % @code is a modification of @t, % which makes spaces the same size as normal in the surrounding text. \def\tclose#1{% X {% X % Change normal interword space to be same as for the current font. X \spaceskip = \fontdimen2\font X % X % Switch to typewriter. X \tt X % X % But `\ ' produces the large typewriter interword space. X \def\ {{\spaceskip = 0pt{} }}% X % X % Turn off hyphenation. X \nohyphenation X % X \rawbackslash X \frenchspacing X #1% X }% X \null } X % We *must* turn on hyphenation at `-' and `_' in \code. % Otherwise, it is too hard to avoid overfull hboxes % in the Emacs manual, the Library manual, etc. X % Unfortunately, TeX uses one parameter (\hyphenchar) to control % both hyphenation at - and hyphenation within words. % We must therefore turn them both off (\tclose does that) % and arrange explicitly to hyphenate at a dash. % -- rms. { X \catcode`\-=\active X \catcode`\_=\active X % X \global\def\code{\begingroup X \catcode`\-=\active \let-\codedash X \catcode`\_=\active \let_\codeunder X \codex X } X % X % If we end up with any active - characters when handling the index, X % just treat them as a normal -. X \global\def\indexbreaks{\catcode`\-=\active \let-\realdash} } X \def\realdash{-} \def\codedash{-\discretionary{}{}{}} \def\codeunder{\ifusingtt{\normalunderscore\discretionary{}{}{}}{\_}} \def\codex #1{\tclose{#1}\endgroup} X %\let\exp=\tclose %Was temporary X % @kbd is like @code, except that if the argument is just one @key command, % then @kbd has no effect. X % @kbdinputstyle -- arg is `distinct' (@kbd uses slanted tty font always), % `example' (@kbd uses ttsl only inside of @example and friends), % or `code' (@kbd uses normal tty font always). \def\kbdinputstyle{\parsearg\kbdinputstylexxx} \def\kbdinputstylexxx#1{% X \def\arg{#1}% X \ifx\arg\worddistinct X \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\ttsl}% X \else\ifx\arg\wordexample X \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\tt}% X \else\ifx\arg\wordcode X \gdef\kbdexamplefont{\tt}\gdef\kbdfont{\tt}% X \fi\fi\fi } \def\worddistinct{distinct} \def\wordexample{example} \def\wordcode{code} X % Default is kbdinputdistinct. (Too much of a hassle to call the macro, % the catcodes are wrong for parsearg to work.) \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\ttsl} X \def\xkey{\key} \def\kbdfoo#1#2#3\par{\def\one{#1}\def\three{#3}\def\threex{??}% \ifx\one\xkey\ifx\threex\three \key{#2}% \else{\tclose{\kbdfont\look}}\fi \else{\tclose{\kbdfont\look}}\fi} X % For @url, @env, @command quotes seem unnecessary, so use \code. \let\url=\code \let\env=\code \let\command=\code X % @uref (abbreviation for `urlref') takes an optional (comma-separated) % second argument specifying the text to display and an optional third % arg as text to display instead of (rather than in addition to) the url % itself. First (mandatory) arg is the url. Perhaps eventually put in % a hypertex \special here. % \def\uref#1{\douref #1,,,\finish} \def\douref#1,#2,#3,#4\finish{% X \pdflink{#1}% X \setbox0 = \hbox{\ignorespaces #3}% X \ifdim\wd0 > 0pt X \unhbox0 % third arg given, show only that X \else X \setbox0 = \hbox{\ignorespaces #2}% X \ifdim\wd0 > 0pt X \ifpdf X \unhbox0\ (\code{#1})% DVI: 2nd arg given, show both it and url X \else X \unhbox0 % PDF: 2nd arg given, show only it X \fi X \else X \code{#1}% only url given, so show it X \fi X \fi X % X \ifpdf X \Black\pdfendlink X \fi } X % rms does not like angle brackets --karl, 17may97. % So now @email is just like @uref, unless we are pdf. % %\def\email#1{\angleleft{\tt #1}\angleright} \ifpdf X \def\email#1{\doemail#1,,\finish} X \def\doemail#1,#2,#3\finish{% X \pdflink{mailto:#1}% X \setbox0 = \hbox{\ignorespaces #2}% X \ifdim\wd0>0pt\unhbox0\else\code{#1}\fi X \Black\pdfendlink X } \else X \let\email=\uref \fi X % Check if we are currently using a typewriter font. Since all the % Computer Modern typewriter fonts have zero interword stretch (and % shrink), and it is reasonable to expect all typewriter fonts to have % this property, we can check that font parameter. % \def\ifmonospace{\ifdim\fontdimen3\font=0pt } X % Typeset a dimension, e.g., `in' or `pt'. The only reason for the % argument is to make the input look right: @dmn{pt} instead of @dmn{}pt. % \def\dmn#1{\thinspace #1} X \def\kbd#1{\def\look{#1}\expandafter\kbdfoo\look??\par} X % @l was never documented to mean ``switch to the Lisp font'', % and it is not used as such in any manual I can find. We need it for % Polish suppressed-l. --karl, 22sep96. %\def\l#1{{\li #1}\null} X % Explicit font changes: @r, @sc, undocumented @ii. \def\r#1{{\rm #1}} % roman font \def\sc#1{{\smallcaps#1}} % smallcaps font \def\ii#1{{\it #1}} % italic font X % @acronym downcases the argument and prints in smallcaps. \def\acronym#1{{\smallcaps \lowercase{#1}}} X % @pounds{} is a sterling sign. \def\pounds{{\it\$}} X X \message{page headings,} X \newskip\titlepagetopglue \titlepagetopglue = 1.5in \newskip\titlepagebottomglue \titlepagebottomglue = 2pc X % First the title page. Must do @settitle before @titlepage. \newif\ifseenauthor \newif\iffinishedtitlepage X % Do an implicit @contents or @shortcontents after @end titlepage if the % user says @setcontentsaftertitlepage or @setshortcontentsaftertitlepage. % \newif\ifsetcontentsaftertitlepage X \let\setcontentsaftertitlepage = \setcontentsaftertitlepagetrue \newif\ifsetshortcontentsaftertitlepage X \let\setshortcontentsaftertitlepage = \setshortcontentsaftertitlepagetrue X \def\shorttitlepage{\parsearg\shorttitlepagezzz} \def\shorttitlepagezzz #1{\begingroup\hbox{}\vskip 1.5in \chaprm \centerline{#1}% X \endgroup\page\hbox{}\page} X \def\titlepage{\begingroup \parindent=0pt \textfonts X \let\subtitlerm=\tenrm X \def\subtitlefont{\subtitlerm \normalbaselineskip = 13pt \normalbaselines}% X % X \def\authorfont{\authorrm \normalbaselineskip = 16pt \normalbaselines}% X % X % Leave some space at the very top of the page. X \vglue\titlepagetopglue X % X % Now you can print the title using @title. X \def\title{\parsearg\titlezzz}% X \def\titlezzz##1{\leftline{\titlefonts\rm ##1} X % print a rule at the page bottom also. X \finishedtitlepagefalse X \vskip4pt \hrule height 4pt width \hsize \vskip4pt}% X % No rule at page bottom unless we print one at the top with @title. X \finishedtitlepagetrue X % X % Now you can put text using @subtitle. X \def\subtitle{\parsearg\subtitlezzz}% X \def\subtitlezzz##1{{\subtitlefont \rightline{##1}}}% X % X % @author should come last, but may come many times. X \def\author{\parsearg\authorzzz}% X \def\authorzzz##1{\ifseenauthor\else\vskip 0pt plus 1filll\seenauthortrue\fi X {\authorfont \leftline{##1}}}% X % X % Most title ``pages'' are actually two pages long, with space X % at the top of the second. We don't want the ragged left on the second. X \let\oldpage = \page X \def\page{% X \iffinishedtitlepage\else X \finishtitlepage X \fi X \oldpage X \let\page = \oldpage X \hbox{}}% % \def\page{\oldpage \hbox{}} } X \def\Etitlepage{% X \iffinishedtitlepage\else X \finishtitlepage X \fi X % It is important to do the page break before ending the group, X % because the headline and footline are only empty inside the group. X % If we use the new definition of \page, we always get a blank page X % after the title page, which we certainly don't want. X \oldpage X \endgroup X % X % If they want short, they certainly want long too. X \ifsetshortcontentsaftertitlepage X \shortcontents X \contents X \global\let\shortcontents = \relax X \global\let\contents = \relax X \fi X % X \ifsetcontentsaftertitlepage X \contents X \global\let\contents = \relax X \global\let\shortcontents = \relax X \fi X % X \HEADINGSon } X \def\finishtitlepage{% X \vskip4pt \hrule height 2pt width \hsize X \vskip\titlepagebottomglue X \finishedtitlepagetrue } X %%% Set up page headings and footings. X \let\thispage=\folio X \newtoks\evenheadline % headline on even pages \newtoks\oddheadline % headline on odd pages \newtoks\evenfootline % footline on even pages \newtoks\oddfootline % footline on odd pages X % Now make Tex use those variables \headline={{\textfonts\rm \ifodd\pageno \the\oddheadline X \else \the\evenheadline \fi}} \footline={{\textfonts\rm \ifodd\pageno \the\oddfootline X \else \the\evenfootline \fi}\HEADINGShook} \let\HEADINGShook=\relax X % Commands to set those variables. % For example, this is what @headings on does % @evenheading @thistitle|@thispage|@thischapter % @oddheading @thischapter|@thispage|@thistitle % @evenfooting @thisfile|| % @oddfooting ||@thisfile X \def\evenheading{\parsearg\evenheadingxxx} \def\oddheading{\parsearg\oddheadingxxx} \def\everyheading{\parsearg\everyheadingxxx} X \def\evenfooting{\parsearg\evenfootingxxx} \def\oddfooting{\parsearg\oddfootingxxx} \def\everyfooting{\parsearg\everyfootingxxx} X {\catcode`\@=0 % X \gdef\evenheadingxxx #1{\evenheadingyyy #1@|@|@|@|\finish} \gdef\evenheadingyyy #1@|#2@|#3@|#4\finish{% \global\evenheadline={\rlap{\centerline{#2}}\line{#1\hfil#3}}} X \gdef\oddheadingxxx #1{\oddheadingyyy #1@|@|@|@|\finish} \gdef\oddheadingyyy #1@|#2@|#3@|#4\finish{% \global\oddheadline={\rlap{\centerline{#2}}\line{#1\hfil#3}}} X \gdef\everyheadingxxx#1{\oddheadingxxx{#1}\evenheadingxxx{#1}}% X \gdef\evenfootingxxx #1{\evenfootingyyy #1@|@|@|@|\finish} \gdef\evenfootingyyy #1@|#2@|#3@|#4\finish{% \global\evenfootline={\rlap{\centerline{#2}}\line{#1\hfil#3}}} X \gdef\oddfootingxxx #1{\oddfootingyyy #1@|@|@|@|\finish} \gdef\oddfootingyyy #1@|#2@|#3@|#4\finish{% X \global\oddfootline = {\rlap{\centerline{#2}}\line{#1\hfil#3}}% X % X % Leave some space for the footline. Hopefully ok to assume X % @evenfooting will not be used by itself. X \global\advance\pageheight by -\baselineskip X \global\advance\vsize by -\baselineskip } X \gdef\everyfootingxxx#1{\oddfootingxxx{#1}\evenfootingxxx{#1}} % }% unbind the catcode of @. X % @headings double turns headings on for double-sided printing. % @headings single turns headings on for single-sided printing. % @headings off turns them off. % @headings on same as @headings double, retained for compatibility. % @headings after turns on double-sided headings after this page. % @headings doubleafter turns on double-sided headings after this page. % @headings singleafter turns on single-sided headings after this page. % By default, they are off at the start of a document, % and turned `on' after @end titlepage. X \def\headings #1 {\csname HEADINGS#1\endcsname} X \def\HEADINGSoff{ \global\evenheadline={\hfil} \global\evenfootline={\hfil} \global\oddheadline={\hfil} \global\oddfootline={\hfil}} \HEADINGSoff % When we turn headings on, set the page number to 1. % For double-sided printing, put current file name in lower left corner, % chapter name on inside top of right hand pages, document % title on inside top of left hand pages, and page numbers on outside top % edge of all pages. \def\HEADINGSdouble{ \global\pageno=1 \global\evenfootline={\hfil} \global\oddfootline={\hfil} \global\evenheadline={\line{\folio\hfil\thistitle}} \global\oddheadline={\line{\thischapter\hfil\folio}} \global\let\contentsalignmacro = \chapoddpage } \let\contentsalignmacro = \chappager X % For single-sided printing, chapter title goes across top left of page, % page number on top right. \def\HEADINGSsingle{ \global\pageno=1 \global\evenfootline={\hfil} \global\oddfootline={\hfil} \global\evenheadline={\line{\thischapter\hfil\folio}} \global\oddheadline={\line{\thischapter\hfil\folio}} \global\let\contentsalignmacro = \chappager } \def\HEADINGSon{\HEADINGSdouble} X \def\HEADINGSafter{\let\HEADINGShook=\HEADINGSdoublex} \let\HEADINGSdoubleafter=\HEADINGSafter \def\HEADINGSdoublex{% \global\evenfootline={\hfil} \global\oddfootline={\hfil} \global\evenheadline={\line{\folio\hfil\thistitle}} \global\oddheadline={\line{\thischapter\hfil\folio}} \global\let\contentsalignmacro = \chapoddpage } X \def\HEADINGSsingleafter{\let\HEADINGShook=\HEADINGSsinglex} \def\HEADINGSsinglex{% \global\evenfootline={\hfil} \global\oddfootline={\hfil} \global\evenheadline={\line{\thischapter\hfil\folio}} \global\oddheadline={\line{\thischapter\hfil\folio}} \global\let\contentsalignmacro = \chappager } X % Subroutines used in generating headings % Produces Day Month Year style of output. \def\today{% X \number\day\space X \ifcase\month X \or\putwordMJan\or\putwordMFeb\or\putwordMMar\or\putwordMApr X \or\putwordMMay\or\putwordMJun\or\putwordMJul\or\putwordMAug X \or\putwordMSep\or\putwordMOct\or\putwordMNov\or\putwordMDec X \fi X \space\number\year} X % @settitle line... specifies the title of the document, for headings. % It generates no output of its own. \def\thistitle{\putwordNoTitle} \def\settitle{\parsearg\settitlezzz} \def\settitlezzz #1{\gdef\thistitle{#1}} X X \message{tables,} % Tables -- @table, @ftable, @vtable, @item(x), @kitem(x), @xitem(x). X % default indentation of table text \newdimen\tableindent \tableindent=.8in % default indentation of @itemize and @enumerate text \newdimen\itemindent \itemindent=.3in % margin between end of table item and start of table text. \newdimen\itemmargin \itemmargin=.1in X % used internally for \itemindent minus \itemmargin \newdimen\itemmax X % Note @table, @vtable, and @vtable define @item, @itemx, etc., with % these defs. % They also define \itemindex % to index the item name in whatever manner is desired (perhaps none). X \newif\ifitemxneedsnegativevskip X \def\itemxpar{\par\ifitemxneedsnegativevskip\nobreak\vskip-\parskip\nobreak\fi} X \def\internalBitem{\smallbreak \parsearg\itemzzz} \def\internalBitemx{\itemxpar \parsearg\itemzzz} X \def\internalBxitem "#1"{\def\xitemsubtopix{#1} \smallbreak \parsearg\xitemzzz} \def\internalBxitemx "#1"{\def\xitemsubtopix{#1} \itemxpar \parsearg\xitemzzz} X \def\internalBkitem{\smallbreak \parsearg\kitemzzz} \def\internalBkitemx{\itemxpar \parsearg\kitemzzz} X \def\kitemzzz #1{\dosubind {kw}{\code{#1}}{for {\bf \lastfunction}}% X \itemzzz {#1}} X \def\xitemzzz #1{\dosubind {kw}{\code{#1}}{for {\bf \xitemsubtopic}}% X \itemzzz {#1}} X \def\itemzzz #1{\begingroup % X \advance\hsize by -\rightskip X \advance\hsize by -\tableindent X \setbox0=\hbox{\itemfont{#1}}% X \itemindex{#1}% X \nobreak % This prevents a break before @itemx. X % X % If the item text does not fit in the space we have, put it on a line X % by itself, and do not allow a page break either before or after that X % line. We do not start a paragraph here because then if the next X % command is, e.g., @kindex, the whatsit would get put into the X % horizontal list on a line by itself, resulting in extra blank space. X \ifdim \wd0>\itemmax X % X % Make this a paragraph so we get the \parskip glue and wrapping, X % but leave it ragged-right. X \begingroup X \advance\leftskip by-\tableindent X \advance\hsize by\tableindent X \advance\rightskip by0pt plus1fil X \leavevmode\unhbox0\par X \endgroup X % X % We're going to be starting a paragraph, but we don't want the X % \parskip glue -- logically it's part of the @item we just started. X \nobreak \vskip-\parskip X % X % Stop a page break at the \parskip glue coming up. Unfortunately X % we can't prevent a possible page break at the following X % \baselineskip glue. X \nobreak X \endgroup X \itemxneedsnegativevskipfalse X \else X % The item text fits into the space. Start a paragraph, so that the X % following text (if any) will end up on the same line. X \noindent X % Do this with kerns and \unhbox so that if there is a footnote in X % the item text, it can migrate to the main vertical list and X % eventually be printed. X \nobreak\kern-\tableindent X \dimen0 = \itemmax \advance\dimen0 by \itemmargin \advance\dimen0 by -\wd0 X \unhbox0 X \nobreak\kern\dimen0 X \endgroup X \itemxneedsnegativevskiptrue X \fi } X \def\item{\errmessage{@item while not in a table}} \def\itemx{\errmessage{@itemx while not in a table}} \def\kitem{\errmessage{@kitem while not in a table}} \def\kitemx{\errmessage{@kitemx while not in a table}} \def\xitem{\errmessage{@xitem while not in a table}} \def\xitemx{\errmessage{@xitemx while not in a table}} X % Contains a kludge to get @end[description] to work. \def\description{\tablez{\dontindex}{1}{}{}{}{}} X % @table, @ftable, @vtable. \def\table{\begingroup\inENV\obeylines\obeyspaces\tablex} {\obeylines\obeyspaces% \gdef\tablex #1^^M{% \tabley\dontindex#1 \endtabley}} X \def\ftable{\begingroup\inENV\obeylines\obeyspaces\ftablex} {\obeylines\obeyspaces% \gdef\ftablex #1^^M{% \tabley\fnitemindex#1 \endtabley \def\Eftable{\endgraf\afterenvbreak\endgroup}% \let\Etable=\relax}} X \def\vtable{\begingroup\inENV\obeylines\obeyspaces\vtablex} {\obeylines\obeyspaces% \gdef\vtablex #1^^M{% \tabley\vritemindex#1 \endtabley \def\Evtable{\endgraf\afterenvbreak\endgroup}% \let\Etable=\relax}} X \def\dontindex #1{} \def\fnitemindex #1{\doind {fn}{\code{#1}}}% \def\vritemindex #1{\doind {vr}{\code{#1}}}% X {\obeyspaces % \gdef\tabley#1#2 #3 #4 #5 #6 #7\endtabley{\endgroup% \tablez{#1}{#2}{#3}{#4}{#5}{#6}}} X \def\tablez #1#2#3#4#5#6{% \aboveenvbreak % \begingroup % \def\Edescription{\Etable}% Necessary kludge. \let\itemindex=#1% \ifnum 0#3>0 \advance \leftskip by #3\mil \fi % \ifnum 0#4>0 \tableindent=#4\mil \fi % \ifnum 0#5>0 \advance \rightskip by #5\mil \fi % \def\itemfont{#2}% \itemmax=\tableindent % \advance \itemmax by -\itemmargin % \advance \leftskip by \tableindent % \exdentamount=\tableindent \parindent = 0pt \parskip = \smallskipamount \ifdim \parskip=0pt \parskip=2pt \fi% \def\Etable{\endgraf\afterenvbreak\endgroup}% \let\item = \internalBitem % \let\itemx = \internalBitemx % \let\kitem = \internalBkitem % \let\kitemx = \internalBkitemx % \let\xitem = \internalBxitem % \let\xitemx = \internalBxitemx % } X % This is the counter used by @enumerate, which is really @itemize X \newcount \itemno X \def\itemize{\parsearg\itemizezzz} X \def\itemizezzz #1{% X \begingroup % ended by the @end itemize X \itemizey {#1}{\Eitemize} } X \def\itemizey #1#2{% \aboveenvbreak % \itemmax=\itemindent % \advance \itemmax by -\itemmargin % \advance \leftskip by \itemindent % \exdentamount=\itemindent \parindent = 0pt % \parskip = \smallskipamount % \ifdim \parskip=0pt \parskip=2pt \fi% \def#2{\endgraf\afterenvbreak\endgroup}% \def\itemcontents{#1}% \let\item=\itemizeitem} X % Set sfcode to normal for the chars that usually have another value. % These are `.?!:;,' \def\frenchspacing{\sfcode46=1000 \sfcode63=1000 \sfcode33=1000 X \sfcode58=1000 \sfcode59=1000 \sfcode44=1000 } X % \splitoff TOKENS\endmark defines \first to be the first token in % TOKENS, and \rest to be the remainder. % \def\splitoff#1#2\endmark{\def\first{#1}\def\rest{#2}}% X % Allow an optional argument of an uppercase letter, lowercase letter, % or number, to specify the first label in the enumerated list. No % argument is the same as `1'. % \def\enumerate{\parsearg\enumeratezzz} \def\enumeratezzz #1{\enumeratey #1 \endenumeratey} \def\enumeratey #1 #2\endenumeratey{% X \begingroup % ended by the @end enumerate X % X % If we were given no argument, pretend we were given `1'. X \def\thearg{#1}% X \ifx\thearg\empty \def\thearg{1}\fi X % X % Detect if the argument is a single token. If so, it might be a X % letter. Otherwise, the only valid thing it can be is a number. X % (We will always have one token, because of the test we just made. X % This is a good thing, since \splitoff doesn't work given nothing at X % all -- the first parameter is undelimited.) X \expandafter\splitoff\thearg\endmark X \ifx\rest\empty X % Only one token in the argument. It could still be anything. X % A ``lowercase letter'' is one whose \lccode is nonzero. X % An ``uppercase letter'' is one whose \lccode is both nonzero, and X % not equal to itself. X % Otherwise, we assume it's a number. X % X % We need the \relax at the end of the \ifnum lines to stop TeX from X % continuing to look for a . X % X \ifnum\lccode\expandafter`\thearg=0\relax X \numericenumerate % a number (we hope) X \else X % It's a letter. X \ifnum\lccode\expandafter`\thearg=\expandafter`\thearg\relax X \lowercaseenumerate % lowercase letter X \else X \uppercaseenumerate % uppercase letter X \fi X \fi X \else X % Multiple tokens in the argument. We hope it's a number. X \numericenumerate X \fi } X % An @enumerate whose labels are integers. The starting integer is % given in \thearg. % \def\numericenumerate{% X \itemno = \thearg X \startenumeration{\the\itemno}% } X % The starting (lowercase) letter is in \thearg. \def\lowercaseenumerate{% X \itemno = \expandafter`\thearg X \startenumeration{% X % Be sure we're not beyond the end of the alphabet. X \ifnum\itemno=0 X \errmessage{No more lowercase letters in @enumerate; get a bigger X alphabet}% X \fi X \char\lccode\itemno X }% } X % The starting (uppercase) letter is in \thearg. \def\uppercaseenumerate{% X \itemno = \expandafter`\thearg X \startenumeration{% X % Be sure we're not beyond the end of the alphabet. X \ifnum\itemno=0 X \errmessage{No more uppercase letters in @enumerate; get a bigger X alphabet} X \fi X \char\uccode\itemno X }% } X % Call itemizey, adding a period to the first argument and supplying the % common last two arguments. Also subtract one from the initial value in % \itemno, since @item increments \itemno. % \def\startenumeration#1{% X \advance\itemno by -1 X \itemizey{#1.}\Eenumerate\flushcr } X % @alphaenumerate and @capsenumerate are abbreviations for giving an arg % to @enumerate. % \def\alphaenumerate{\enumerate{a}} \def\capsenumerate{\enumerate{A}} \def\Ealphaenumerate{\Eenumerate} \def\Ecapsenumerate{\Eenumerate} X % Definition of @item while inside @itemize. X \def\itemizeitem{% \advance\itemno by 1 {\let\par=\endgraf \smallbreak}% \ifhmode \errmessage{In hmode at itemizeitem}\fi {\parskip=0in \hskip 0pt \hbox to 0pt{\hss \itemcontents\hskip \itemmargin}% \vadjust{\penalty 1200}}% \flushcr} X % @multitable macros % Amy Hendrickson, 8/18/94, 3/6/96 % % @multitable ... @end multitable will make as many columns as desired. % Contents of each column will wrap at width given in preamble. Width % can be specified either with sample text given in a template line, % or in percent of \hsize, the current width of text on page. X % Table can continue over pages but will only break between lines. X % To make preamble: % % Either define widths of columns in terms of percent of \hsize: % @multitable @columnfractions .25 .3 .45 % @item ... % % Numbers following @columnfractions are the percent of the total % current hsize to be used for each column. You may use as many % columns as desired. X X % Or use a template: % @multitable {Column 1 template} {Column 2 template} {Column 3 template} % @item ... % using the widest term desired in each column. % % For those who want to use more than one line's worth of words in % the preamble, break the line within one argument and it % will parse correctly, i.e., % % @multitable {Column 1 template} {Column 2 template} {Column 3 % template} % Not: % @multitable {Column 1 template} {Column 2 template} % {Column 3 template} X % Each new table line starts with @item, each subsequent new column % starts with @tab. Empty columns may be produced by supplying @tab's % with nothing between them for as many times as empty columns are needed, % ie, @tab@tab@tab will produce two empty columns. X % @item, @tab, @multitable or @end multitable do not need to be on their % own lines, but it will not hurt if they are. X % Sample multitable: X % @multitable {Column 1 template} {Column 2 template} {Column 3 template} % @item first col stuff @tab second col stuff @tab third col % @item % first col stuff % @tab % second col stuff % @tab % third col % @item first col stuff @tab second col stuff % @tab Many paragraphs of text may be used in any column. % % They will wrap at the width determined by the template. % @item@tab@tab This will be in third column. % @end multitable X % Default dimensions may be reset by user. % @multitableparskip is vertical space between paragraphs in table. % @multitableparindent is paragraph indent in table. % @multitablecolmargin is horizontal space to be left between columns. % @multitablelinespace is space to leave between table items, baseline % to baseline. % 0pt means it depends on current normal line spacing. % \newskip\multitableparskip \newskip\multitableparindent \newdimen\multitablecolspace \newskip\multitablelinespace \multitableparskip=0pt \multitableparindent=6pt \multitablecolspace=12pt \multitablelinespace=0pt X % Macros used to set up halign preamble: % \let\endsetuptable\relax \def\xendsetuptable{\endsetuptable} \let\columnfractions\relax \def\xcolumnfractions{\columnfractions} \newif\ifsetpercent X % #1 is the part of the @columnfraction before the decimal point, which % is presumably either 0 or the empty string (but we don't check, we % just throw it away). #2 is the decimal part, which we use as the % percent of \hsize for this column. \def\pickupwholefraction#1.#2 {% X \global\advance\colcount by 1 X \expandafter\xdef\csname col\the\colcount\endcsname{.#2\hsize}% X \setuptable } X \newcount\colcount \def\setuptable#1{% X \def\firstarg{#1}% X \ifx\firstarg\xendsetuptable X \let\go = \relax X \else X \ifx\firstarg\xcolumnfractions X \global\setpercenttrue X \else X \ifsetpercent X \let\go\pickupwholefraction X \else X \global\advance\colcount by 1 X \setbox0=\hbox{#1\unskip }% Add a normal word space as a separator; X % typically that is always in the input, anyway. X \expandafter\xdef\csname col\the\colcount\endcsname{\the\wd0}% X \fi X \fi X \ifx\go\pickupwholefraction X % Put the argument back for the \pickupwholefraction call, so X % we'll always have a period there to be parsed. X \def\go{\pickupwholefraction#1}% X \else X \let\go = \setuptable X \fi% X \fi X \go } X % This used to have \hskip1sp. But then the space in a template line is % not enough. That is bad. So let's go back to just & until we % encounter the problem it was intended to solve again. % --karl, nathan@acm.org, 20apr99. \def\tab{&} X % @multitable ... @end multitable definitions: % \def\multitable{\parsearg\dotable} \def\dotable#1{\bgroup X \vskip\parskip X \let\item\crcr X \tolerance=9500 X \hbadness=9500 X \setmultitablespacing X \parskip=\multitableparskip X \parindent=\multitableparindent X \overfullrule=0pt X \global\colcount=0 X \def\Emultitable{\global\setpercentfalse\cr\egroup\egroup}% X % X % To parse everything between @multitable and @item: X \setuptable#1 \endsetuptable X % X % \everycr will reset column counter, \colcount, at the end of X % each line. Every column entry will cause \colcount to advance by one. X % The table preamble X % looks at the current \colcount to find the correct column width. X \everycr{\noalign{% X % X % \filbreak%% keeps underfull box messages off when table breaks over pages. X % Maybe so, but it also creates really weird page breaks when the table X % breaks over pages. Wouldn't \vfil be better? Wait until the problem X % manifests itself, so it can be fixed for real --karl. X \global\colcount=0\relax}}% X % X % This preamble sets up a generic column definition, which will X % be used as many times as user calls for columns. X % \vtop will set a single line and will also let text wrap and X % continue for many paragraphs if desired. X \halign\bgroup&\global\advance\colcount by 1\relax X \multistrut\vtop{\hsize=\expandafter\csname col\the\colcount\endcsname X % X % In order to keep entries from bumping into each other X % we will add a \leftskip of \multitablecolspace to all columns after X % the first one. X % X % If a template has been used, we will add \multitablecolspace X % to the width of each template entry. X % X % If the user has set preamble in terms of percent of \hsize we will X % use that dimension as the width of the column, and the \leftskip X % will keep entries from bumping into each other. Table will start at X % left margin and final column will justify at right margin. X % X % Make sure we don't inherit \rightskip from the outer environment. X \rightskip=0pt X \ifnum\colcount=1 X % The first column will be indented with the surrounding text. X \advance\hsize by\leftskip X \else X \ifsetpercent \else X % If user has not set preamble in terms of percent of \hsize X % we will advance \hsize by \multitablecolspace. X \advance\hsize by \multitablecolspace X \fi X % In either case we will make \leftskip=\multitablecolspace: X \leftskip=\multitablecolspace X \fi X % Ignoring space at the beginning and end avoids an occasional spurious X % blank line, when TeX decides to break the line at the space before the X % box from the multistrut, so the strut ends up on a line by itself. X % For example: X % @multitable @columnfractions .11 .89 X % @item @code{#} X % @tab Legal holiday which is valid in major parts of the whole country. X % Is automatically provided with highlighting sequences respectively marking X % characters. X \noindent\ignorespaces##\unskip\multistrut}\cr } X \def\setmultitablespacing{% test to see if user has set \multitablelinespace. % If so, do nothing. If not, give it an appropriate dimension based on % current baselineskip. \ifdim\multitablelinespace=0pt %% strut to put in table in case some entry doesn't have descenders, %% to keep lines equally spaced \let\multistrut = \strut %% Test to see if parskip is larger than space between lines of %% table. If not, do nothing. %% If so, set to same dimension as multitablelinespace. \else \gdef\multistrut{\vrule height\multitablelinespace depth\dp0 width0pt\relax} \fi \ifdim\multitableparskip>\multitablelinespace \global\multitableparskip=\multitablelinespace \global\advance\multitableparskip-7pt %% to keep parskip somewhat smaller X %% than skip between lines in the table. \fi% \ifdim\multitableparskip=0pt \global\multitableparskip=\multitablelinespace \global\advance\multitableparskip-7pt %% to keep parskip somewhat smaller X %% than skip between lines in the table. \fi} X X \message{conditionals,} % Prevent errors for section commands. % Used in @ignore and in failing conditionals. \def\ignoresections{% X \let\chapter=\relax X \let\unnumbered=\relax X \let\top=\relax X \let\unnumberedsec=\relax X \let\unnumberedsection=\relax X \let\unnumberedsubsec=\relax X \let\unnumberedsubsection=\relax X \let\unnumberedsubsubsec=\relax X \let\unnumberedsubsubsection=\relax X \let\section=\relax X \let\subsec=\relax X \let\subsubsec=\relax X \let\subsection=\relax X \let\subsubsection=\relax X \let\appendix=\relax X \let\appendixsec=\relax X \let\appendixsection=\relax X \let\appendixsubsec=\relax X \let\appendixsubsection=\relax X \let\appendixsubsubsec=\relax X \let\appendixsubsubsection=\relax X \let\contents=\relax X \let\smallbook=\relax X \let\titlepage=\relax } X % Used in nested conditionals, where we have to parse the Texinfo source % and so want to turn off most commands, in case they are used % incorrectly. % \def\ignoremorecommands{% X \let\defcodeindex = \relax X \let\defcv = \relax X \let\deffn = \relax X \let\deffnx = \relax X \let\defindex = \relax X \let\defivar = \relax X \let\defmac = \relax X \let\defmethod = \relax X \let\defop = \relax X \let\defopt = \relax X \let\defspec = \relax X \let\deftp = \relax X \let\deftypefn = \relax X \let\deftypefun = \relax X \let\deftypeivar = \relax X \let\deftypevar = \relax X \let\deftypevr = \relax X \let\defun = \relax X \let\defvar = \relax X \let\defvr = \relax X \let\ref = \relax X \let\xref = \relax X \let\printindex = \relax X \let\pxref = \relax X \let\settitle = \relax X \let\setchapternewpage = \relax X \let\setchapterstyle = \relax X \let\everyheading = \relax X \let\evenheading = \relax X \let\oddheading = \relax X \let\everyfooting = \relax X \let\evenfooting = \relax X \let\oddfooting = \relax X \let\headings = \relax X \let\include = \relax X \let\lowersections = \relax X \let\down = \relax X \let\raisesections = \relax X \let\up = \relax X \let\set = \relax X \let\clear = \relax X \let\item = \relax } X % Ignore @ignore ... @end ignore. % \def\ignore{\doignore{ignore}} X % Ignore @ifinfo, @ifhtml, @ifnottex, @html, @menu, and @direntry text. % \def\ifinfo{\doignore{ifinfo}} \def\ifhtml{\doignore{ifhtml}} \def\ifnottex{\doignore{ifnottex}} \def\html{\doignore{html}} \def\menu{\doignore{menu}} \def\direntry{\doignore{direntry}} X % @dircategory CATEGORY -- specify a category of the dir file % which this file should belong to. Ignore this in TeX. \let\dircategory = \comment X % Ignore text until a line `@end #1'. % \def\doignore#1{\begingroup X % Don't complain about control sequences we have declared \outer. X \ignoresections X % X % Define a command to swallow text until we reach `@end #1'. X % This @ is a catcode 12 token (that is the normal catcode of @ in X % this texinfo.tex file). We change the catcode of @ below to match. X \long\def\doignoretext##1@end #1{\enddoignore}% X % X % Make sure that spaces turn into tokens that match what \doignoretext wants. X \catcode32 = 10 X % X % Ignore braces, too, so mismatched braces don't cause trouble. X \catcode`\{ = 9 X \catcode`\} = 9 X % X % We must not have @c interpreted as a control sequence. X \catcode`\@ = 12 X % X % Make the letter c a comment character so that the rest of the line X % will be ignored. This way, the document can have (for example) X % @c @end ifinfo X % and the @end ifinfo will be properly ignored. X % (We've just changed @ to catcode 12.) X \catcode`\c = 14 X % X % And now expand that command. X \doignoretext } X % What we do to finish off ignored text. % \def\enddoignore{\endgroup\ignorespaces}% X \newif\ifwarnedobs\warnedobsfalse \def\obstexwarn{% X \ifwarnedobs\relax\else X % We need to warn folks that they may have trouble with TeX 3.0. X % This uses \immediate\write16 rather than \message to get newlines. X \immediate\write16{} X \immediate\write16{WARNING: for users of Unix TeX 3.0!} X \immediate\write16{This manual trips a bug in TeX version 3.0 (tex hangs).} X \immediate\write16{If you are running another version of TeX, relax.} X \immediate\write16{If you are running Unix TeX 3.0, kill this TeX process.} X \immediate\write16{ Then upgrade your TeX installation if you can.} X \immediate\write16{ (See ftp://ftp.gnu.org/pub/gnu/TeX.README.)} X \immediate\write16{If you are stuck with version 3.0, run the} X \immediate\write16{ script ``tex3patch'' from the Texinfo distribution} X \immediate\write16{ to use a workaround.} X \immediate\write16{} X \global\warnedobstrue X \fi } X % **In TeX 3.0, setting text in \nullfont hangs tex. For a % workaround (which requires the file ``dummy.tfm'' to be installed), % uncomment the following line: %%%%%\font\nullfont=dummy\let\obstexwarn=\relax X % Ignore text, except that we keep track of conditional commands for % purposes of nesting, up to an `@end #1' command. % \def\nestedignore#1{% X \obstexwarn X % We must actually expand the ignored text to look for the @end X % command, so that nested ignore constructs work. Thus, we put the X % text into a \vbox and then do nothing with the result. To minimize X % the change of memory overflow, we follow the approach outlined on X % page 401 of the TeXbook: make the current font be a dummy font. X % X \setbox0 = \vbox\bgroup X % Don't complain about control sequences we have declared \outer. X \ignoresections X % X % Define `@end #1' to end the box, which will in turn undefine the X % @end command again. X \expandafter\def\csname E#1\endcsname{\egroup\ignorespaces}% X % X % We are going to be parsing Texinfo commands. Most cause no X % trouble when they are used incorrectly, but some commands do X % complicated argument parsing or otherwise get confused, so we X % undefine them. X % X % We can't do anything about stray @-signs, unfortunately; X % they'll produce `undefined control sequence' errors. X \ignoremorecommands X % X % Set the current font to be \nullfont, a TeX primitive, and define X % all the font commands to also use \nullfont. We don't use X % dummy.tfm, as suggested in the TeXbook, because not all sites X % might have that installed. Therefore, math mode will still X % produce output, but that should be an extremely small amount of X % stuff compared to the main input. X % X \nullfont X \let\tenrm = \nullfont \let\tenit = \nullfont \let\tensl = \nullfont X \let\tenbf = \nullfont \let\tentt = \nullfont \let\smallcaps = \nullfont X \let\tensf = \nullfont X % Similarly for index fonts (mostly for their use in X % smallexample) X \let\indrm = \nullfont \let\indit = \nullfont \let\indsl = \nullfont X \let\indbf = \nullfont \let\indtt = \nullfont \let\indsc = \nullfont X \let\indsf = \nullfont X % X % Don't complain when characters are missing from the fonts. X \tracinglostchars = 0 X % X % Don't bother to do space factor calculations. X \frenchspacing X % X % Don't report underfull hboxes. X \hbadness = 10000 X % X % Do minimal line-breaking. X \pretolerance = 10000 X % X % Do not execute instructions in @tex X \def\tex{\doignore{tex}}% X % Do not execute macro definitions. X % `c' is a comment character, so the word `macro' will get cut off. X \def\macro{\doignore{ma}}% } X % @set VAR sets the variable VAR to an empty value. % @set VAR REST-OF-LINE sets VAR to the value REST-OF-LINE. % % Since we want to separate VAR from REST-OF-LINE (which might be % empty), we can't just use \parsearg; we have to insert a space of our % own to delimit the rest of the line, and then take it out again if we % didn't need it. Make sure the catcode of space is correct to avoid % losing inside @example, for instance. % \def\set{\begingroup\catcode` =10 X \catcode`\-=12 \catcode`\_=12 % Allow - and _ in VAR. X \parsearg\setxxx} \def\setxxx#1{\setyyy#1 \endsetyyy} \def\setyyy#1 #2\endsetyyy{% X \def\temp{#2}% X \ifx\temp\empty \global\expandafter\let\csname SET#1\endcsname = \empty X \else \setzzz{#1}#2\endsetzzz % Remove the trailing space \setxxx inserted. X \fi X \endgroup } % Can't use \xdef to pre-expand #2 and save some time, since \temp or % \next or other control sequences that we've defined might get us into % an infinite loop. Consider `@set foo @cite{bar}'. \def\setzzz#1#2 \endsetzzz{\expandafter\gdef\csname SET#1\endcsname{#2}} X % @clear VAR clears (i.e., unsets) the variable VAR. % \def\clear{\parsearg\clearxxx} \def\clearxxx#1{\global\expandafter\let\csname SET#1\endcsname=\relax} X % @value{foo} gets the text saved in variable foo. { X \catcode`\_ = \active X % X % We might end up with active _ or - characters in the argument if X % we're called from @code, as @code{@value{foo-bar_}}. So \let any X % such active characters to their normal equivalents. X \gdef\value{\begingroup X \catcode`\-=12 \catcode`\_=12 X \indexbreaks \let_\normalunderscore X \valuexxx} } \def\valuexxx#1{\expandablevalue{#1}\endgroup} X % We have this subroutine so that we can handle at least some @value's % properly in indexes (we \let\value to this in \indexdummies). Ones % whose names contain - or _ still won't work, but we can't do anything % about that. The command has to be fully expandable, since the result % winds up in the index file. This means that if the variable's value % contains other Texinfo commands, it's almost certain it will fail % (although perhaps we could fix that with sufficient work to do a % one-level expansion on the result, instead of complete). % \def\expandablevalue#1{% X \expandafter\ifx\csname SET#1\endcsname\relax X {[No value for ``#1'']}% X \else X \csname SET#1\endcsname X \fi } X % @ifset VAR ... @end ifset reads the `...' iff VAR has been defined % with @set. % \def\ifset{\parsearg\ifsetxxx} \def\ifsetxxx #1{% X \expandafter\ifx\csname SET#1\endcsname\relax X \expandafter\ifsetfail X \else X \expandafter\ifsetsucceed X \fi } \def\ifsetsucceed{\conditionalsucceed{ifset}} \def\ifsetfail{\nestedignore{ifset}} \defineunmatchedend{ifset} X % @ifclear VAR ... @end ifclear reads the `...' iff VAR has never been % defined with @set, or has been undefined with @clear. % \def\ifclear{\parsearg\ifclearxxx} \def\ifclearxxx #1{% X \expandafter\ifx\csname SET#1\endcsname\relax X \expandafter\ifclearsucceed X \else X \expandafter\ifclearfail X \fi } \def\ifclearsucceed{\conditionalsucceed{ifclear}} \def\ifclearfail{\nestedignore{ifclear}} \defineunmatchedend{ifclear} X % @iftex, @ifnothtml, @ifnotinfo always succeed; we read the text % following, through the first @end iftex (etc.). Make `@end iftex' % (etc.) valid only after an @iftex. % \def\iftex{\conditionalsucceed{iftex}} \def\ifnothtml{\conditionalsucceed{ifnothtml}} \def\ifnotinfo{\conditionalsucceed{ifnotinfo}} \defineunmatchedend{iftex} \defineunmatchedend{ifnothtml} \defineunmatchedend{ifnotinfo} X % We can't just want to start a group at @iftex (for example) and end it % at @end iftex, since then @set commands inside the conditional have no % effect (they'd get reverted at the end of the group). So we must % define \Eiftex to redefine itself to be its previous value. (We can't % just define it to fail again with an ``unmatched end'' error, since % the @ifset might be nested.) % \def\conditionalsucceed#1{% X \edef\temp{% X % Remember the current value of \E#1. X \let\nece{prevE#1} = \nece{E#1}% X % X % At the `@end #1', redefine \E#1 to be its previous value. X \def\nece{E#1}{\let\nece{E#1} = \nece{prevE#1}}% X }% X \temp } X % We need to expand lots of \csname's, but we don't want to expand the % control sequences after we've constructed them. % \def\nece#1{\expandafter\noexpand\csname#1\endcsname} X % @defininfoenclose. \let\definfoenclose=\comment X X \message{indexing,} % Index generation facilities X % Define \newwrite to be identical to plain tex's \newwrite % except not \outer, so it can be used within \newindex. {\catcode`\@=11 \gdef\newwrite{\alloc@7\write\chardef\sixt@@n}} X % \newindex {foo} defines an index named foo. % It automatically defines \fooindex such that % \fooindex ...rest of line... puts an entry in the index foo. % It also defines \fooindfile to be the number of the output channel for % the file that accumulates this index. The file's extension is foo. % The name of an index should be no more than 2 characters long % for the sake of vms. % \def\newindex#1{% X \iflinks X \expandafter\newwrite \csname#1indfile\endcsname X \openout \csname#1indfile\endcsname \jobname.#1 % Open the file X \fi X \expandafter\xdef\csname#1index\endcsname{% % Define @#1index X \noexpand\doindex{#1}} } X % @defindex foo == \newindex{foo} X \def\defindex{\parsearg\newindex} X % Define @defcodeindex, like @defindex except put all entries in @code. X \def\newcodeindex#1{% X \iflinks X \expandafter\newwrite \csname#1indfile\endcsname X \openout \csname#1indfile\endcsname \jobname.#1 X \fi X \expandafter\xdef\csname#1index\endcsname{% X \noexpand\docodeindex{#1}} } X \def\defcodeindex{\parsearg\newcodeindex} X % @synindex foo bar makes index foo feed into index bar. % Do this instead of @defindex foo if you don't want it as a separate index. % The \closeout helps reduce unnecessary open files; the limit on the % Acorn RISC OS is a mere 16 files. \def\synindex#1 #2 {% X \expandafter\let\expandafter\synindexfoo\expandafter=\csname#2indfile\endcsname X \expandafter\closeout\csname#1indfile\endcsname X \expandafter\let\csname#1indfile\endcsname=\synindexfoo X \expandafter\xdef\csname#1index\endcsname{% define \xxxindex X \noexpand\doindex{#2}}% } X % @syncodeindex foo bar similar, but put all entries made for index foo % inside @code. \def\syncodeindex#1 #2 {% X \expandafter\let\expandafter\synindexfoo\expandafter=\csname#2indfile\endcsname X \expandafter\closeout\csname#1indfile\endcsname X \expandafter\let\csname#1indfile\endcsname=\synindexfoo X \expandafter\xdef\csname#1index\endcsname{% define \xxxindex X \noexpand\docodeindex{#2}}% } X % Define \doindex, the driver for all \fooindex macros. % Argument #1 is generated by the calling \fooindex macro, % and it is "foo", the name of the index. X % \doindex just uses \parsearg; it calls \doind for the actual work. % This is because \doind is more useful to call from other macros. X % There is also \dosubind {index}{topic}{subtopic} % which makes an entry in a two-level index such as the operation index. X \def\doindex#1{\edef\indexname{#1}\parsearg\singleindexer} \def\singleindexer #1{\doind{\indexname}{#1}} X % like the previous two, but they put @code around the argument. \def\docodeindex#1{\edef\indexname{#1}\parsearg\singlecodeindexer} \def\singlecodeindexer #1{\doind{\indexname}{\code{#1}}} X \def\indexdummies{% \def\ { }% % Take care of the plain tex accent commands. \def\"{\realbackslash "}% \def\`{\realbackslash `}% \def\'{\realbackslash '}% \def\^{\realbackslash ^}% \def\~{\realbackslash ~}% \def\={\realbackslash =}% \def\b{\realbackslash b}% \def\c{\realbackslash c}% \def\d{\realbackslash d}% \def\u{\realbackslash u}% \def\v{\realbackslash v}% \def\H{\realbackslash H}% % Take care of the plain tex special European modified letters. \def\oe{\realbackslash oe}% \def\ae{\realbackslash ae}% \def\aa{\realbackslash aa}% \def\OE{\realbackslash OE}% \def\AE{\realbackslash AE}% \def\AA{\realbackslash AA}% \def\o{\realbackslash o}% \def\O{\realbackslash O}% \def\l{\realbackslash l}% \def\L{\realbackslash L}% \def\ss{\realbackslash ss}% % Take care of texinfo commands likely to appear in an index entry. % (Must be a way to avoid doing expansion at all, and thus not have to % laboriously list every single command here.) \def\@{@}% will be @@ when we switch to @ as escape char. % Need these in case \tex is in effect and \{ is a \delimiter again. % But can't use \lbracecmd and \rbracecmd because texindex assumes % braces and backslashes are used only as delimiters. \let\{ = \mylbrace \let\} = \myrbrace \def\_{{\realbackslash _}}% \def\w{\realbackslash w }% \def\bf{\realbackslash bf }% %\def\rm{\realbackslash rm }% \def\sl{\realbackslash sl }% \def\sf{\realbackslash sf}% \def\tt{\realbackslash tt}% \def\gtr{\realbackslash gtr}% \def\less{\realbackslash less}% \def\hat{\realbackslash hat}% \def\TeX{\realbackslash TeX}% \def\dots{\realbackslash dots }% \def\result{\realbackslash result}% \def\equiv{\realbackslash equiv}% \def\expansion{\realbackslash expansion}% \def\print{\realbackslash print}% \def\error{\realbackslash error}% \def\point{\realbackslash point}% \def\copyright{\realbackslash copyright}% \def\tclose##1{\realbackslash tclose {##1}}% \def\code##1{\realbackslash code {##1}}% \def\uref##1{\realbackslash uref {##1}}% \def\url##1{\realbackslash url {##1}}% \def\env##1{\realbackslash env {##1}}% \def\command##1{\realbackslash command {##1}}% \def\option##1{\realbackslash option {##1}}% \def\dotless##1{\realbackslash dotless {##1}}% \def\samp##1{\realbackslash samp {##1}}% \def\,##1{\realbackslash ,{##1}}% \def\t##1{\realbackslash t {##1}}% \def\r##1{\realbackslash r {##1}}% \def\i##1{\realbackslash i {##1}}% \def\b##1{\realbackslash b {##1}}% \def\sc##1{\realbackslash sc {##1}}% \def\cite##1{\realbackslash cite {##1}}% \def\key##1{\realbackslash key {##1}}% \def\file##1{\realbackslash file {##1}}% \def\var##1{\realbackslash var {##1}}% \def\kbd##1{\realbackslash kbd {##1}}% \def\dfn##1{\realbackslash dfn {##1}}% \def\emph##1{\realbackslash emph {##1}}% \def\acronym##1{\realbackslash acronym {##1}}% % % Handle some cases of @value -- where the variable name does not % contain - or _, and the value does not contain any % (non-fully-expandable) commands. \let\value = \expandablevalue % \unsepspaces % Turn off macro expansion \turnoffmacros } X % If an index command is used in an @example environment, any spaces % therein should become regular spaces in the raw index file, not the % expansion of \tie (\\leavevmode \penalty \@M \ ). {\obeyspaces X \gdef\unsepspaces{\obeyspaces\let =\space}} X % \indexnofonts no-ops all font-change commands. % This is used when outputting the strings to sort the index by. \def\indexdummyfont#1{#1} \def\indexdummytex{TeX} \def\indexdummydots{...} X \def\indexnofonts{% % Just ignore accents. \let\,=\indexdummyfont \let\"=\indexdummyfont \let\`=\indexdummyfont \let\'=\indexdummyfont \let\^=\indexdummyfont \let\~=\indexdummyfont \let\==\indexdummyfont \let\b=\indexdummyfont \let\c=\indexdummyfont \let\d=\indexdummyfont \let\u=\indexdummyfont \let\v=\indexdummyfont \let\H=\indexdummyfont \let\dotless=\indexdummyfont % Take care of the plain tex special European modified letters. \def\oe{oe}% \def\ae{ae}% \def\aa{aa}% \def\OE{OE}% \def\AE{AE}% \def\AA{AA}% \def\o{o}% \def\O{O}% \def\l{l}% \def\L{L}% \def\ss{ss}% \let\w=\indexdummyfont \let\t=\indexdummyfont \let\r=\indexdummyfont \let\i=\indexdummyfont \let\b=\indexdummyfont \let\emph=\indexdummyfont \let\strong=\indexdummyfont \let\cite=\indexdummyfont \let\sc=\indexdummyfont %Don't no-op \tt, since it isn't a user-level command % and is used in the definitions of the active chars like <, >, |... %\let\tt=\indexdummyfont \let\tclose=\indexdummyfont \let\code=\indexdummyfont \let\url=\indexdummyfont \let\uref=\indexdummyfont \let\env=\indexdummyfont \let\command=\indexdummyfont \let\option=\indexdummyfont \let\file=\indexdummyfont \let\samp=\indexdummyfont \let\kbd=\indexdummyfont \let\key=\indexdummyfont \let\var=\indexdummyfont \let\TeX=\indexdummytex \let\dots=\indexdummydots \def\@{@}% } X % To define \realbackslash, we must make \ not be an escape. % We must first make another character (@) an escape % so we do not become unable to do a definition. X {\catcode`\@=0 \catcode`\\=\other X @gdef@realbackslash{\}} X \let\indexbackslash=0 %overridden during \printindex. \let\SETmarginindex=\relax % put index entries in margin (undocumented)? X % For \ifx comparisons. \def\emptymacro{\empty} X % Most index entries go through here, but \dosubind is the general case. % \def\doind#1#2{\dosubind{#1}{#2}\empty} X % Workhorse for all \fooindexes. % #1 is name of index, #2 is stuff to put there, #3 is subentry -- % \empty if called from \doind, as we usually are. The main exception % is with defuns, which call us directly. % \def\dosubind#1#2#3{% X % Put the index entry in the margin if desired. X \ifx\SETmarginindex\relax\else X \insert\margin{\hbox{\vrule height8pt depth3pt width0pt #2}}% X \fi X {% X \count255=\lastpenalty X {% X \indexdummies % Must do this here, since \bf, etc expand at this stage X \escapechar=`\\ X {% X \let\folio = 0% We will expand all macros now EXCEPT \folio. X \def\rawbackslashxx{\indexbackslash}% \indexbackslash isn't defined now X % so it will be output as is; and it will print as backslash. X % X \def\thirdarg{#3}% X % X % If third arg is present, precede it with space in sort key. X \ifx\thirdarg\emptymacro X \let\subentry = \empty X \else X \def\subentry{ #3}% X \fi X % X % First process the index entry with all font commands turned X % off to get the string to sort by. X {\indexnofonts \xdef\indexsorttmp{#2\subentry}}% X % X % Now the real index entry with the fonts. X \toks0 = {#2}% X % X % If third (subentry) arg is present, add it to the index X % string. And include a space. X \ifx\thirdarg\emptymacro \else X \toks0 = \expandafter{\the\toks0 \space #3}% X \fi X % X % Set up the complete index entry, with both the sort key X % and the original text, including any font commands. We write X % three arguments to \entry to the .?? file, texindex reduces to X % two when writing the .??s sorted result. X \edef\temp{% X \write\csname#1indfile\endcsname{% X \realbackslash entry{\indexsorttmp}{\folio}{\the\toks0}}% X }% X % X % If a skip is the last thing on the list now, preserve it X % by backing up by \lastskip, doing the \write, then inserting X % the skip again. Otherwise, the whatsit generated by the X % \write will make \lastskip zero. The result is that sequences X % like this: X % @end defun X % @tindex whatever X % @defun ... X % will have extra space inserted, because the \medbreak in the X % start of the @defun won't see the skip inserted by the @end of X % the previous defun. X % X % But don't do any of this if we're not in vertical mode. We X % don't want to do a \vskip and prematurely end a paragraph. X % X % Avoid page breaks due to these extra skips, too. X % X \iflinks X \ifvmode X \skip0 = \lastskip X \ifdim\lastskip = 0pt \else \nobreak\vskip-\lastskip \fi X \fi X % X \temp % do the write X % X % X \ifvmode \ifdim\skip0 = 0pt \else \nobreak\vskip\skip0 \fi \fi X \fi X }% X }% X \penalty\count255 X }% } X % The index entry written in the file actually looks like % \entry {sortstring}{page}{topic} % or % \entry {sortstring}{page}{topic}{subtopic} % The texindex program reads in these files and writes files % containing these kinds of lines: % \initial {c} % before the first topic whose initial is c % \entry {topic}{pagelist} % for a topic that is used without subtopics % \primary {topic} % for the beginning of a topic that is used with subtopics % \secondary {subtopic}{pagelist} % for each subtopic. X % Define the user-accessible indexing commands % @findex, @vindex, @kindex, @cindex. X \def\findex {\fnindex} \def\kindex {\kyindex} \def\cindex {\cpindex} \def\vindex {\vrindex} \def\tindex {\tpindex} \def\pindex {\pgindex} X \def\cindexsub {\begingroup\obeylines\cindexsub} {\obeylines % \gdef\cindexsub "#1" #2^^M{\endgroup % \dosubind{cp}{#2}{#1}}} X % Define the macros used in formatting output of the sorted index material. X % @printindex causes a particular index (the ??s file) to get printed. % It does not print any chapter heading (usually an @unnumbered). % \def\printindex{\parsearg\doprintindex} \def\doprintindex#1{\begingroup X \dobreak \chapheadingskip{10000}% X % X \indexfonts \rm X \tolerance = 9500 X \indexbreaks X % X % See if the index file exists and is nonempty. X % Change catcode of @ here so that if the index file contains X % \initial {@} X % as its first line, TeX doesn't complain about mismatched braces X % (because it thinks @} is a control sequence). X \catcode`\@ = 11 X \openin 1 \jobname.#1s X \ifeof 1 X % \enddoublecolumns gets confused if there is no text in the index, X % and it loses the chapter title and the aux file entries for the X % index. The easiest way to prevent this problem is to make sure X % there is some text. X \putwordIndexNonexistent X \else X % X % If the index file exists but is empty, then \openin leaves \ifeof X % false. We have to make TeX try to read something from the file, so X % it can discover if there is anything in it. X \read 1 to \temp X \ifeof 1 X \putwordIndexIsEmpty X \else X % Index files are almost Texinfo source, but we use \ as the escape X % character. It would be better to use @, but that's too big a change X % to make right now. X \def\indexbackslash{\rawbackslashxx}% X \catcode`\\ = 0 X \escapechar = `\\ X \begindoublecolumns X \input \jobname.#1s X \enddoublecolumns X \fi X \fi X \closein 1 \endgroup} X % These macros are used by the sorted index file itself. % Change them to control the appearance of the index. X \def\initial#1{{% X % Some minor font changes for the special characters. X \let\tentt=\sectt \let\tt=\sectt \let\sf=\sectt X % X % Remove any glue we may have, we'll be inserting our own. X \removelastskip X % X % We like breaks before the index initials, so insert a bonus. X \penalty -300 X % X % Typeset the initial. Making this add up to a whole number of X % baselineskips increases the chance of the dots lining up from column X % to column. It still won't often be perfect, because of the stretch X % we need before each entry, but it's better. X % X % No shrink because it confuses \balancecolumns. X \vskip 1.67\baselineskip plus .5\baselineskip X \leftline{\secbf #1}% X \vskip .33\baselineskip plus .1\baselineskip X % X % Do our best not to break after the initial. X \nobreak }} X % This typesets a paragraph consisting of #1, dot leaders, and then #2 % flush to the right margin. It is used for index and table of contents % entries. The paragraph is indented by \leftskip. % \def\entry#1#2{\begingroup X % X % Start a new paragraph if necessary, so our assignments below can't X % affect previous text. X \par X % X % Do not fill out the last line with white space. X \parfillskip = 0in X % X % No extra space above this paragraph. X \parskip = 0in X % X % Do not prefer a separate line ending with a hyphen to fewer lines. X \finalhyphendemerits = 0 X % X % \hangindent is only relevant when the entry text and page number X % don't both fit on one line. In that case, bob suggests starting the X % dots pretty far over on the line. Unfortunately, a large X % indentation looks wrong when the entry text itself is broken across X % lines. So we use a small indentation and put up with long leaders. X % X % \hangafter is reset to 1 (which is the value we want) at the start X % of each paragraph, so we need not do anything with that. X \hangindent = 2em X % X % When the entry text needs to be broken, just fill out the first line X % with blank space. X \rightskip = 0pt plus1fil X % X % A bit of stretch before each entry for the benefit of balancing columns. X \vskip 0pt plus1pt X % X % Start a ``paragraph'' for the index entry so the line breaking X % parameters we've set above will have an effect. X \noindent X % X % Insert the text of the index entry. TeX will do line-breaking on it. X #1% X % The following is kludged to not output a line of dots in the index if X % there are no page numbers. The next person who breaks this will be X % cursed by a Unix daemon. X \def\tempa{{\rm }}% X \def\tempb{#2}% X \edef\tempc{\tempa}% X \edef\tempd{\tempb}% X \ifx\tempc\tempd\ \else% X % X % If we must, put the page number on a line of its own, and fill out X % this line with blank space. (The \hfil is overwhelmed with the X % fill leaders glue in \indexdotfill if the page number does fit.) X \hfil\penalty50 X \null\nobreak\indexdotfill % Have leaders before the page number. X % X % The `\ ' here is removed by the implicit \unskip that TeX does as X % part of (the primitive) \par. Without it, a spurious underfull X % \hbox ensues. X \ #2% The page number ends the paragraph. X \fi% X \par \endgroup} X % Like \dotfill except takes at least 1 em. \def\indexdotfill{\cleaders X \hbox{$\mathsurround=0pt \mkern1.5mu ${\it .}$ \mkern1.5mu$}\hskip 1em plus 1fill} X \def\primary #1{\line{#1\hfil}} X \newskip\secondaryindent \secondaryindent=0.5cm X \def\secondary #1#2{ {\parfillskip=0in \parskip=0in \hangindent =1in \hangafter=1 \noindent\hskip\secondaryindent\hbox{#1}\indexdotfill #2\par }} X % Define two-column mode, which we use to typeset indexes. % Adapted from the TeXbook, page 416, which is to say, % the manmac.tex format used to print the TeXbook itself. \catcode`\@=11 X \newbox\partialpage \newdimen\doublecolumnhsize X \def\begindoublecolumns{\begingroup % ended by \enddoublecolumns X % Grab any single-column material above us. X \output = {% X % X % Here is a possibility not foreseen in manmac: if we accumulate a X % whole lot of material, we might end up calling this \output X % routine twice in a row (see the doublecol-lose test, which is X % essentially a couple of indexes with @setchapternewpage off). In X % that case we just ship out what is in \partialpage with the normal X % output routine. Generally, \partialpage will be empty when this X % runs and this will be a no-op. See the indexspread.tex test case. X \ifvoid\partialpage \else X \onepageout{\pagecontents\partialpage}% X \fi X % X \global\setbox\partialpage = \vbox{% X % Unvbox the main output page. X \unvbox\PAGE X \kern-\topskip \kern\baselineskip X }% X }% X \eject % run that output routine to set \partialpage X % X % Use the double-column output routine for subsequent pages. X \output = {\doublecolumnout}% X % X % Change the page size parameters. We could do this once outside this X % routine, in each of @smallbook, @afourpaper, and the default 8.5x11 X % format, but then we repeat the same computation. Repeating a couple X % of assignments once per index is clearly meaningless for the X % execution time, so we may as well do it in one place. X % X % First we halve the line length, less a little for the gutter between X % the columns. We compute the gutter based on the line length, so it X % changes automatically with the paper format. The magic constant X % below is chosen so that the gutter has the same value (well, +-<1pt) X % as it did when we hard-coded it. X % X % We put the result in a separate register, \doublecolumhsize, so we X % can restore it in \pagesofar, after \hsize itself has (potentially) X % been clobbered. X % X \doublecolumnhsize = \hsize X \advance\doublecolumnhsize by -.04154\hsize X \divide\doublecolumnhsize by 2 X \hsize = \doublecolumnhsize X % X % Double the \vsize as well. (We don't need a separate register here, X % since nobody clobbers \vsize.) X \advance\vsize by -\ht\partialpage X \vsize = 2\vsize } X % The double-column output routine for all double-column pages except % the last. % \def\doublecolumnout{% X \splittopskip=\topskip \splitmaxdepth=\maxdepth X % Get the available space for the double columns -- the normal X % (undoubled) page height minus any material left over from the X % previous page. X \dimen@ = \vsize X \divide\dimen@ by 2 X % X % box0 will be the left-hand column, box2 the right. X \setbox0=\vsplit255 to\dimen@ \setbox2=\vsplit255 to\dimen@ X \onepageout\pagesofar X \unvbox255 X \penalty\outputpenalty } \def\pagesofar{% X % Re-output the contents of the output page -- any previous material, X % followed by the two boxes we just split, in box0 and box2. X \unvbox\partialpage X % X \hsize = \doublecolumnhsize X \wd0=\hsize \wd2=\hsize X \hbox to\pagewidth{\box0\hfil\box2}% } \def\enddoublecolumns{% X \output = {% X % Split the last of the double-column material. Leave it on the X % current page, no automatic page break. X \balancecolumns X % X % If we end up splitting too much material for the current page, X % though, there will be another page break right after this \output X % invocation ends. Having called \balancecolumns once, we do not X % want to call it again. Therefore, reset \output to its normal X % definition right away. (We hope \balancecolumns will never be X % called on to balance too much material, but if it is, this makes X % the output somewhat more palatable.) X \global\output = {\onepageout{\pagecontents\PAGE}}% X }% X \eject X \endgroup % started in \begindoublecolumns X % X % \pagegoal was set to the doubled \vsize above, since we restarted X % the current page. We're now back to normal single-column X % typesetting, so reset \pagegoal to the normal \vsize (after the X % \endgroup where \vsize got restored). X \pagegoal = \vsize } \def\balancecolumns{% X % Called at the end of the double column material. X \setbox0 = \vbox{\unvbox255}% like \box255 but more efficient, see p.120. X \dimen@ = \ht0 X \advance\dimen@ by \topskip X \advance\dimen@ by-\baselineskip X \divide\dimen@ by 2 % target to split to X %debug\message{final 2-column material height=\the\ht0, target=\the\dimen@.}% X \splittopskip = \topskip X % Loop until we get a decent breakpoint. X {% X \vbadness = 10000 X \loop X \global\setbox3 = \copy0 X \global\setbox1 = \vsplit3 to \dimen@ X \ifdim\ht3>\dimen@ X \global\advance\dimen@ by 1pt X \repeat X }% X %debug\message{split to \the\dimen@, column heights: \the\ht1, \the\ht3.}% X \setbox0=\vbox to\dimen@{\unvbox1}% X \setbox2=\vbox to\dimen@{\unvbox3}% X % X \pagesofar } \catcode`\@ = \other X X \message{sectioning,} % Chapters, sections, etc. X \newcount\chapno \newcount\secno \secno=0 \newcount\subsecno \subsecno=0 \newcount\subsubsecno \subsubsecno=0 X % This counter is funny since it counts through charcodes of letters A, B, ... % The \the is necessary, despite appearances, because \appendixletter is % expanded while writing the .toc file. \char\appendixno is not % expandable, thus it is written literally, thus all appendixes come out % with the same letter (or @) in the toc without it. \newcount\appendixno \appendixno = `\@ \def\appendixletter{\char\the\appendixno} X % Each @chapter defines this as the name of the chapter. % page headings and footings can use it. @section does likewise. \def\thischapter{} \def\thissection{} X \newcount\absseclevel % used to calculate proper heading level \newcount\secbase\secbase=0 % @raise/lowersections modify this count X % @raisesections: treat @section as chapter, @subsection as section, etc. \def\raisesections{\global\advance\secbase by -1} \let\up=\raisesections % original BFox name X % @lowersections: treat @chapter as section, @section as subsection, etc. \def\lowersections{\global\advance\secbase by 1} \let\down=\lowersections % original BFox name X % Choose a numbered-heading macro % #1 is heading level if unmodified by @raisesections or @lowersections % #2 is text for heading \def\numhead#1#2{\absseclevel=\secbase\advance\absseclevel by #1 \ifcase\absseclevel X \chapterzzz{#2} \or X \seczzz{#2} \or X \numberedsubseczzz{#2} \or X \numberedsubsubseczzz{#2} \else X \ifnum \absseclevel<0 X \chapterzzz{#2} X \else X \numberedsubsubseczzz{#2} X \fi \fi } X % like \numhead, but chooses appendix heading levels \def\apphead#1#2{\absseclevel=\secbase\advance\absseclevel by #1 \ifcase\absseclevel X \appendixzzz{#2} \or X \appendixsectionzzz{#2} \or X \appendixsubseczzz{#2} \or X \appendixsubsubseczzz{#2} \else X \ifnum \absseclevel<0 X \appendixzzz{#2} X \else X \appendixsubsubseczzz{#2} X \fi \fi } X % like \numhead, but chooses numberless heading levels \def\unnmhead#1#2{\absseclevel=\secbase\advance\absseclevel by #1 \ifcase\absseclevel X \unnumberedzzz{#2} \or X \unnumberedseczzz{#2} \or X \unnumberedsubseczzz{#2} \or X \unnumberedsubsubseczzz{#2} \else X \ifnum \absseclevel<0 X \unnumberedzzz{#2} X \else X \unnumberedsubsubseczzz{#2} X \fi \fi } X % @chapter, @appendix, @unnumbered. \def\thischaptername{No Chapter Title} \outer\def\chapter{\parsearg\chapteryyy} \def\chapteryyy #1{\numhead0{#1}} % normally numhead0 calls chapterzzz \def\chapterzzz #1{% \secno=0 \subsecno=0 \subsubsecno=0 \global\advance \chapno by 1 \message{\putwordChapter\space \the\chapno}% \chapmacro {#1}{\the\chapno}% \gdef\thissection{#1}% \gdef\thischaptername{#1}% % We don't substitute the actual chapter name into \thischapter % because we don't want its macros evaluated now. \xdef\thischapter{\putwordChapter{} \the\chapno: \noexpand\thischaptername}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash chapentry{\the\toks0}% X {\the\chapno}}}% \temp \donoderef \global\let\section = \numberedsec \global\let\subsection = \numberedsubsec \global\let\subsubsection = \numberedsubsubsec } X \outer\def\appendix{\parsearg\appendixyyy} \def\appendixyyy #1{\apphead0{#1}} % normally apphead0 calls appendixzzz \def\appendixzzz #1{% \secno=0 \subsecno=0 \subsubsecno=0 \global\advance \appendixno by 1 \message{\putwordAppendix\space \appendixletter}% \chapmacro {#1}{\putwordAppendix{} \appendixletter}% \gdef\thissection{#1}% \gdef\thischaptername{#1}% \xdef\thischapter{\putwordAppendix{} \appendixletter: \noexpand\thischaptername}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash chapentry{\the\toks0}% X {\putwordAppendix{} \appendixletter}}}% \temp \appendixnoderef \global\let\section = \appendixsec \global\let\subsection = \appendixsubsec \global\let\subsubsection = \appendixsubsubsec } X % @centerchap is like @unnumbered, but the heading is centered. \outer\def\centerchap{\parsearg\centerchapyyy} \def\centerchapyyy #1{{\let\unnumbchapmacro=\centerchapmacro \unnumberedyyy{#1}}} X % @top is like @unnumbered. \outer\def\top{\parsearg\unnumberedyyy} X \outer\def\unnumbered{\parsearg\unnumberedyyy} \def\unnumberedyyy #1{\unnmhead0{#1}} % normally unnmhead0 calls unnumberedzzz \def\unnumberedzzz #1{% \secno=0 \subsecno=0 \subsubsecno=0 % % This used to be simply \message{#1}, but TeX fully expands the % argument to \message. Therefore, if #1 contained @-commands, TeX % expanded them. For example, in `@unnumbered The @cite{Book}', TeX % expanded @cite (which turns out to cause errors because \cite is meant % to be executed, not expanded). % % Anyway, we don't want the fully-expanded definition of @cite to appear % as a result of the \message, we just want `@cite' itself. We use % \the to achieve this: TeX expands \the only once, % simply yielding the contents of . (We also do this for % the toc entries.) \toks0 = {#1}\message{(\the\toks0)}% % \unnumbchapmacro {#1}% \gdef\thischapter{#1}\gdef\thissection{#1}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash unnumbchapentry{\the\toks0}}}% \temp \unnumbnoderef \global\let\section = \unnumberedsec \global\let\subsection = \unnumberedsubsec \global\let\subsubsection = \unnumberedsubsubsec } X % Sections. \outer\def\numberedsec{\parsearg\secyyy} \def\secyyy #1{\numhead1{#1}} % normally calls seczzz \def\seczzz #1{% \subsecno=0 \subsubsecno=0 \global\advance \secno by 1 % \gdef\thissection{#1}\secheading {#1}{\the\chapno}{\the\secno}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash secentry{\the\toks0}% X {\the\chapno}{\the\secno}}}% \temp \donoderef \nobreak } X \outer\def\appendixsection{\parsearg\appendixsecyyy} \outer\def\appendixsec{\parsearg\appendixsecyyy} \def\appendixsecyyy #1{\apphead1{#1}} % normally calls appendixsectionzzz \def\appendixsectionzzz #1{% \subsecno=0 \subsubsecno=0 \global\advance \secno by 1 % \gdef\thissection{#1}\secheading {#1}{\appendixletter}{\the\secno}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash secentry{\the\toks0}% X {\appendixletter}{\the\secno}}}% \temp \appendixnoderef \nobreak } X \outer\def\unnumberedsec{\parsearg\unnumberedsecyyy} \def\unnumberedsecyyy #1{\unnmhead1{#1}} % normally calls unnumberedseczzz \def\unnumberedseczzz #1{% \plainsecheading {#1}\gdef\thissection{#1}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash unnumbsecentry{\the\toks0}}}% \temp \unnumbnoderef \nobreak } X % Subsections. \outer\def\numberedsubsec{\parsearg\numberedsubsecyyy} \def\numberedsubsecyyy #1{\numhead2{#1}} % normally calls numberedsubseczzz \def\numberedsubseczzz #1{% \gdef\thissection{#1}\subsubsecno=0 \global\advance \subsecno by 1 % \subsecheading {#1}{\the\chapno}{\the\secno}{\the\subsecno}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash subsecentry{\the\toks0}% X {\the\chapno}{\the\secno}{\the\subsecno}}}% \temp \donoderef \nobreak } X \outer\def\appendixsubsec{\parsearg\appendixsubsecyyy} \def\appendixsubsecyyy #1{\apphead2{#1}} % normally calls appendixsubseczzz \def\appendixsubseczzz #1{% \gdef\thissection{#1}\subsubsecno=0 \global\advance \subsecno by 1 % \subsecheading {#1}{\appendixletter}{\the\secno}{\the\subsecno}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash subsecentry{\the\toks0}% X {\appendixletter}{\the\secno}{\the\subsecno}}}% \temp \appendixnoderef \nobreak } X \outer\def\unnumberedsubsec{\parsearg\unnumberedsubsecyyy} \def\unnumberedsubsecyyy #1{\unnmhead2{#1}} %normally calls unnumberedsubseczzz \def\unnumberedsubseczzz #1{% \plainsubsecheading {#1}\gdef\thissection{#1}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash unnumbsubsecentry% X {\the\toks0}}}% \temp \unnumbnoderef \nobreak } X % Subsubsections. \outer\def\numberedsubsubsec{\parsearg\numberedsubsubsecyyy} \def\numberedsubsubsecyyy #1{\numhead3{#1}} % normally numberedsubsubseczzz \def\numberedsubsubseczzz #1{% \gdef\thissection{#1}\global\advance \subsubsecno by 1 % \subsubsecheading {#1} X {\the\chapno}{\the\secno}{\the\subsecno}{\the\subsubsecno}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash subsubsecentry{\the\toks0}% X {\the\chapno}{\the\secno}{\the\subsecno}{\the\subsubsecno}}}% \temp \donoderef \nobreak } X \outer\def\appendixsubsubsec{\parsearg\appendixsubsubsecyyy} \def\appendixsubsubsecyyy #1{\apphead3{#1}} % normally appendixsubsubseczzz \def\appendixsubsubseczzz #1{% \gdef\thissection{#1}\global\advance \subsubsecno by 1 % \subsubsecheading {#1} X {\appendixletter}{\the\secno}{\the\subsecno}{\the\subsubsecno}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash subsubsecentry{\the\toks0}% X {\appendixletter}{\the\secno}{\the\subsecno}{\the\subsubsecno}}}% \temp \appendixnoderef \nobreak } X \outer\def\unnumberedsubsubsec{\parsearg\unnumberedsubsubsecyyy} \def\unnumberedsubsubsecyyy #1{\unnmhead3{#1}} %normally unnumberedsubsubseczzz \def\unnumberedsubsubseczzz #1{% \plainsubsubsecheading {#1}\gdef\thissection{#1}% \toks0 = {#1}% \edef\temp{\noexpand\writetocentry{\realbackslash unnumbsubsubsecentry% X {\the\toks0}}}% \temp \unnumbnoderef \nobreak } X % These are variants which are not "outer", so they can appear in @ifinfo. % Actually, they should now be obsolete; ordinary section commands should work. \def\infotop{\parsearg\unnumberedzzz} \def\infounnumbered{\parsearg\unnumberedzzz} \def\infounnumberedsec{\parsearg\unnumberedseczzz} \def\infounnumberedsubsec{\parsearg\unnumberedsubseczzz} \def\infounnumberedsubsubsec{\parsearg\unnumberedsubsubseczzz} X \def\infoappendix{\parsearg\appendixzzz} \def\infoappendixsec{\parsearg\appendixseczzz} \def\infoappendixsubsec{\parsearg\appendixsubseczzz} \def\infoappendixsubsubsec{\parsearg\appendixsubsubseczzz} X \def\infochapter{\parsearg\chapterzzz} \def\infosection{\parsearg\sectionzzz} \def\infosubsection{\parsearg\subsectionzzz} \def\infosubsubsection{\parsearg\subsubsectionzzz} X % These macros control what the section commands do, according % to what kind of chapter we are in (ordinary, appendix, or unnumbered). % Define them by default for a numbered chapter. \global\let\section = \numberedsec \global\let\subsection = \numberedsubsec \global\let\subsubsection = \numberedsubsubsec X % Define @majorheading, @heading and @subheading X % NOTE on use of \vbox for chapter headings, section headings, and such: % 1) We use \vbox rather than the earlier \line to permit % overlong headings to fold. % 2) \hyphenpenalty is set to 10000 because hyphenation in a % heading is obnoxious; this forbids it. % 3) Likewise, headings look best if no \parindent is used, and % if justification is not attempted. Hence \raggedright. X X \def\majorheading{\parsearg\majorheadingzzz} \def\majorheadingzzz #1{% {\advance\chapheadingskip by 10pt \chapbreak }% {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 X \parindent=0pt\raggedright X \rm #1\hfill}}\bigskip \par\penalty 200} X \def\chapheading{\parsearg\chapheadingzzz} \def\chapheadingzzz #1{\chapbreak % {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 X \parindent=0pt\raggedright X \rm #1\hfill}}\bigskip \par\penalty 200} X % @heading, @subheading, @subsubheading. \def\heading{\parsearg\plainsecheading} \def\subheading{\parsearg\plainsubsecheading} \def\subsubheading{\parsearg\plainsubsubsecheading} X % These macros generate a chapter, section, etc. heading only % (including whitespace, linebreaking, etc. around it), % given all the information in convenient, parsed form. X %%% Args are the skip and penalty (usually negative) \def\dobreak#1#2{\par\ifdim\lastskip<#1\removelastskip\penalty#2\vskip#1\fi} X \def\setchapterstyle #1 {\csname CHAPF#1\endcsname} X %%% Define plain chapter starts, and page on/off switching for it % Parameter controlling skip before chapter headings (if needed) X \newskip\chapheadingskip X \def\chapbreak{\dobreak \chapheadingskip {-4000}} \def\chappager{\par\vfill\supereject} \def\chapoddpage{\chappager \ifodd\pageno \else \hbox to 0pt{} \chappager\fi} X \def\setchapternewpage #1 {\csname CHAPPAG#1\endcsname} X \def\CHAPPAGoff{% \global\let\contentsalignmacro = \chappager \global\let\pchapsepmacro=\chapbreak \global\let\pagealignmacro=\chappager} X \def\CHAPPAGon{% \global\let\contentsalignmacro = \chappager \global\let\pchapsepmacro=\chappager \global\let\pagealignmacro=\chappager \global\def\HEADINGSon{\HEADINGSsingle}} X \def\CHAPPAGodd{ \global\let\contentsalignmacro = \chapoddpage \global\let\pchapsepmacro=\chapoddpage \global\let\pagealignmacro=\chapoddpage \global\def\HEADINGSon{\HEADINGSdouble}} X \CHAPPAGon X \def\CHAPFplain{ \global\let\chapmacro=\chfplain \global\let\unnumbchapmacro=\unnchfplain \global\let\centerchapmacro=\centerchfplain} X % Plain chapter opening. % #1 is the text, #2 the chapter number or empty if unnumbered. \def\chfplain#1#2{% X \pchapsepmacro X {% X \chapfonts \rm X \def\chapnum{#2}% X \setbox0 = \hbox{#2\ifx\chapnum\empty\else\enspace\fi}% X \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \raggedright X \hangindent = \wd0 \centerparametersmaybe X \unhbox0 #1\par}% X }% X \nobreak\bigskip % no page break after a chapter title X \nobreak } X % Plain opening for unnumbered. \def\unnchfplain#1{\chfplain{#1}{}} X % @centerchap -- centered and unnumbered. \let\centerparametersmaybe = \relax \def\centerchfplain#1{{% X \def\centerparametersmaybe{% X \advance\rightskip by 3\rightskip X \leftskip = \rightskip X \parfillskip = 0pt X }% X \chfplain{#1}{}% }} X \CHAPFplain % The default X \def\unnchfopen #1{% \chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 X \parindent=0pt\raggedright X \rm #1\hfill}}\bigskip \par\nobreak } X \def\chfopen #1#2{\chapoddpage {\chapfonts \vbox to 3in{\vfil \hbox to\hsize{\hfil #2} \hbox to\hsize{\hfil #1} \vfil}}% \par\penalty 5000 % } X \def\centerchfopen #1{% \chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 X \parindent=0pt X \hfill {\rm #1}\hfill}}\bigskip \par\nobreak } X \def\CHAPFopen{ \global\let\chapmacro=\chfopen \global\let\unnumbchapmacro=\unnchfopen \global\let\centerchapmacro=\centerchfopen} X X % Section titles. \newskip\secheadingskip \def\secheadingbreak{\dobreak \secheadingskip {-1000}} \def\secheading#1#2#3{\sectionheading{sec}{#2.#3}{#1}} \def\plainsecheading#1{\sectionheading{sec}{}{#1}} X % Subsection titles. \newskip \subsecheadingskip \def\subsecheadingbreak{\dobreak \subsecheadingskip {-500}} \def\subsecheading#1#2#3#4{\sectionheading{subsec}{#2.#3.#4}{#1}} \def\plainsubsecheading#1{\sectionheading{subsec}{}{#1}} X % Subsubsection titles. \let\subsubsecheadingskip = \subsecheadingskip \let\subsubsecheadingbreak = \subsecheadingbreak \def\subsubsecheading#1#2#3#4#5{\sectionheading{subsubsec}{#2.#3.#4.#5}{#1}} \def\plainsubsubsecheading#1{\sectionheading{subsubsec}{}{#1}} X X % Print any size section title. % % #1 is the section type (sec/subsec/subsubsec), #2 is the section % number (maybe empty), #3 the text. \def\sectionheading#1#2#3{% X {% X \expandafter\advance\csname #1headingskip\endcsname by \parskip X \csname #1headingbreak\endcsname X }% X {% X % Switch to the right set of fonts. X \csname #1fonts\endcsname \rm X % X % Only insert the separating space if we have a section number. X \def\secnum{#2}% X \setbox0 = \hbox{#2\ifx\secnum\empty\else\enspace\fi}% X % X \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \raggedright X \hangindent = \wd0 % zero if no section number X \unhbox0 #3}% X }% X \ifdim\parskip<10pt \nobreak\kern10pt\nobreak\kern-\parskip\fi \nobreak } X X \message{toc,} % Table of contents. \newwrite\tocfile X % Write an entry to the toc file, opening it if necessary. % Called from @chapter, etc. We supply {\folio} at the end of the % argument, which will end up as the last argument to the \...entry macro. % % We open the .toc file here instead of at @setfilename or any other % given time so that @contents can be put in the document anywhere. % \newif\iftocfileopened \def\writetocentry#1{% X \iftocfileopened\else X \immediate\openout\tocfile = \jobname.toc X \global\tocfileopenedtrue X \fi X \iflinks \write\tocfile{#1{\folio}}\fi } X \newskip\contentsrightmargin \contentsrightmargin=1in \newcount\savepageno \newcount\lastnegativepageno \lastnegativepageno = -1 X % Finish up the main text and prepare to read what we've written % to \tocfile. % \def\startcontents#1{% X % If @setchapternewpage on, and @headings double, the contents should X % start on an odd page, unlike chapters. Thus, we maintain X % \contentsalignmacro in parallel with \pagealignmacro. X % From: Torbjorn Granlund X \contentsalignmacro X \immediate\closeout\tocfile X % X % Don't need to put `Contents' or `Short Contents' in the headline. X % It is abundantly clear what they are. X \unnumbchapmacro{#1}\def\thischapter{}% X \savepageno = \pageno X \begingroup % Set up to handle contents files properly. X \catcode`\\=0 \catcode`\{=1 \catcode`\}=2 \catcode`\@=11 X % We can't do this, because then an actual ^ in a section X % title fails, e.g., @chapter ^ -- exponentiation. --karl, 9jul97. X %\catcode`\^=7 % to see ^^e4 as \"a etc. juha@piuha.ydi.vtt.fi X \raggedbottom % Worry more about breakpoints than the bottom. X \advance\hsize by -\contentsrightmargin % Don't use the full line length. X % X % Roman numerals for page numbers. X \ifnum \pageno>0 \pageno = \lastnegativepageno \fi } X X % Normal (long) toc. \def\contents{% X \startcontents{\putwordTOC}% X \openin 1 \jobname.toc X \ifeof 1 \else X \closein 1 X \input \jobname.toc X \fi X \vfill \eject X \contentsalignmacro % in case @setchapternewpage odd is in effect X \endgroup X \lastnegativepageno = \pageno X \pageno = \savepageno } X % And just the chapters. \def\summarycontents{% X \startcontents{\putwordShortTOC}% X % X \let\chapentry = \shortchapentry X \let\unnumbchapentry = \shortunnumberedentry X % We want a true roman here for the page numbers. X \secfonts X \let\rm=\shortcontrm \let\bf=\shortcontbf \let\sl=\shortcontsl X \rm X \hyphenpenalty = 10000 X \advance\baselineskip by 1pt % Open it up a little. X \def\secentry ##1##2##3##4{} X \def\unnumbsecentry ##1##2{} X \def\subsecentry ##1##2##3##4##5{} X \def\unnumbsubsecentry ##1##2{} X \def\subsubsecentry ##1##2##3##4##5##6{} X \def\unnumbsubsubsecentry ##1##2{} X \openin 1 \jobname.toc X \ifeof 1 \else X \closein 1 X \input \jobname.toc X \fi X \vfill \eject X \contentsalignmacro % in case @setchapternewpage odd is in effect X \endgroup X \lastnegativepageno = \pageno X \pageno = \savepageno } \let\shortcontents = \summarycontents X \ifpdf X \pdfcatalog{/PageMode /UseOutlines}% \fi X % These macros generate individual entries in the table of contents. % The first argument is the chapter or section name. % The last argument is the page number. % The arguments in between are the chapter number, section number, ... X % Chapter-level things, for both the long and short contents. \def\chapentry#1#2#3{\dochapentry{#2\labelspace#1}{#3}} X % See comments in \dochapentry re vbox and related settings \def\shortchapentry#1#2#3{% X \tocentry{\shortchaplabel{#2}\labelspace #1}{\doshortpageno{#3}}% } X % Typeset the label for a chapter or appendix for the short contents. % The arg is, e.g. `Appendix A' for an appendix, or `3' for a chapter. % We could simplify the code here by writing out an \appendixentry % command in the toc file for appendices, instead of using \chapentry % for both, but it doesn't seem worth it. \setbox0 = \hbox{\shortcontrm \putwordAppendix } \newdimen\shortappendixwidth \shortappendixwidth = \wd0 X \def\shortchaplabel#1{% X % We typeset #1 in a box of constant width, regardless of the text of X % #1, so the chapter titles will come out aligned. X \setbox0 = \hbox{#1}% X \dimen0 = \ifdim\wd0 > \shortappendixwidth \shortappendixwidth \else 0pt \fi X % X % This space should be plenty, since a single number is .5em, and the X % widest letter (M) is 1em, at least in the Computer Modern fonts. X % (This space doesn't include the extra space that gets added after X % the label; that gets put in by \shortchapentry above.) X \advance\dimen0 by 1.1em X \hbox to \dimen0{#1\hfil}% } X \def\unnumbchapentry#1#2{\dochapentry{#1}{#2}} \def\shortunnumberedentry#1#2{\tocentry{#1}{\doshortpageno{#2}}} X % Sections. \def\secentry#1#2#3#4{\dosecentry{#2.#3\labelspace#1}{#4}} \def\unnumbsecentry#1#2{\dosecentry{#1}{#2}} X % Subsections. \def\subsecentry#1#2#3#4#5{\dosubsecentry{#2.#3.#4\labelspace#1}{#5}} \def\unnumbsubsecentry#1#2{\dosubsecentry{#1}{#2}} X % And subsubsections. \def\subsubsecentry#1#2#3#4#5#6{% X \dosubsubsecentry{#2.#3.#4.#5\labelspace#1}{#6}} \def\unnumbsubsubsecentry#1#2{\dosubsubsecentry{#1}{#2}} X % This parameter controls the indentation of the various levels. \newdimen\tocindent \tocindent = 3pc X % Now for the actual typesetting. In all these, #1 is the text and #2 is the % page number. % % If the toc has to be broken over pages, we want it to be at chapters % if at all possible; hence the \penalty. \def\dochapentry#1#2{% X \penalty-300 \vskip1\baselineskip plus.33\baselineskip minus.25\baselineskip X \begingroup X \chapentryfonts X \tocentry{#1}{\dopageno{#2}}% X \endgroup X \nobreak\vskip .25\baselineskip plus.1\baselineskip } X \def\dosecentry#1#2{\begingroup X \secentryfonts \leftskip=\tocindent X \tocentry{#1}{\dopageno{#2}}% \endgroup} X \def\dosubsecentry#1#2{\begingroup X \subsecentryfonts \leftskip=2\tocindent X \tocentry{#1}{\dopageno{#2}}% \endgroup} X \def\dosubsubsecentry#1#2{\begingroup X \subsubsecentryfonts \leftskip=3\tocindent X \tocentry{#1}{\dopageno{#2}}% \endgroup} X % Final typesetting of a toc entry; we use the same \entry macro as for % the index entries, but we want to suppress hyphenation here. (We % can't do that in the \entry macro, since index entries might consist % of hyphenated-identifiers-that-do-not-fit-on-a-line-and-nothing-else.) \def\tocentry#1#2{\begingroup X \vskip 0pt plus1pt % allow a little stretch for the sake of nice page breaks X % Do not use \turnoffactive in these arguments. Since the toc is X % typeset in cmr, so characters such as _ would come out wrong; we X % have to do the usual translation tricks. X \entry{#1}{#2}% \endgroup} X % Space between chapter (or whatever) number and the title. \def\labelspace{\hskip1em \relax} X \def\dopageno#1{{\rm #1}} \def\doshortpageno#1{{\rm #1}} X \def\chapentryfonts{\secfonts \rm} \def\secentryfonts{\textfonts} \let\subsecentryfonts = \textfonts \let\subsubsecentryfonts = \textfonts X X \message{environments,} % @foo ... @end foo. X % Since these characters are used in examples, it should be an even number of % \tt widths. Each \tt character is 1en, so two makes it 1em. % Furthermore, these definitions must come after we define our fonts. \newbox\dblarrowbox \newbox\longdblarrowbox \newbox\pushcharbox \newbox\bullbox \newbox\equivbox \newbox\errorbox X %{\tentt %\global\setbox\dblarrowbox = \hbox to 1em{\hfil$\Rightarrow$\hfil} %\global\setbox\longdblarrowbox = \hbox to 1em{\hfil$\mapsto$\hfil} %\global\setbox\pushcharbox = \hbox to 1em{\hfil$\dashv$\hfil} %\global\setbox\equivbox = \hbox to 1em{\hfil$\ptexequiv$\hfil} % Adapted from the manmac format (p.420 of TeXbook) %\global\setbox\bullbox = \hbox to 1em{\kern.15em\vrule height .75ex width .85ex % depth .1ex\hfil} %} X % @point{}, @result{}, @expansion{}, @print{}, @equiv{}. \def\point{$\star$} \def\result{\leavevmode\raise.15ex\hbox to 1em{\hfil$\Rightarrow$\hfil}} \def\expansion{\leavevmode\raise.1ex\hbox to 1em{\hfil$\mapsto$\hfil}} \def\print{\leavevmode\lower.1ex\hbox to 1em{\hfil$\dashv$\hfil}} \def\equiv{\leavevmode\lower.1ex\hbox to 1em{\hfil$\ptexequiv$\hfil}} X % Adapted from the TeXbook's \boxit. {\tentt \global\dimen0 = 3em}% Width of the box. \dimen2 = .55pt % Thickness of rules % The text. (`r' is open on the right, `e' somewhat less so on the left.) \setbox0 = \hbox{\kern-.75pt \tensf error\kern-1.5pt} X \global\setbox\errorbox=\hbox to \dimen0{\hfil X \hsize = \dimen0 \advance\hsize by -5.8pt % Space to left+right. X \advance\hsize by -2\dimen2 % Rules. X \vbox{ X \hrule height\dimen2 X \hbox{\vrule width\dimen2 \kern3pt % Space to left of text. X \vtop{\kern2.4pt \box0 \kern2.4pt}% Space above/below. X \kern3pt\vrule width\dimen2}% Space to right. X \hrule height\dimen2} X \hfil} X % The @error{} command. \def\error{\leavevmode\lower.7ex\copy\errorbox} X % @tex ... @end tex escapes into raw Tex temporarily. % One exception: @ is still an escape character, so that @end tex works. % But \@ or @@ will get a plain tex @ character. X \def\tex{\begingroup X \catcode `\\=0 \catcode `\{=1 \catcode `\}=2 X \catcode `\$=3 \catcode `\&=4 \catcode `\#=6 X \catcode `\^=7 \catcode `\_=8 \catcode `\~=13 \let~=\tie X \catcode `\%=14 X \catcode 43=12 % plus X \catcode`\"=12 X \catcode`\==12 X \catcode`\|=12 X \catcode`\<=12 X \catcode`\>=12 X \escapechar=`\\ X % X \let\b=\ptexb X \let\bullet=\ptexbullet X \let\c=\ptexc X \let\,=\ptexcomma X \let\.=\ptexdot X \let\dots=\ptexdots X \let\equiv=\ptexequiv X \let\!=\ptexexclam X \let\i=\ptexi X \let\{=\ptexlbrace X \let\+=\tabalign X \let\}=\ptexrbrace X \let\*=\ptexstar X \let\t=\ptext X % X \def\endldots{\mathinner{\ldots\ldots\ldots\ldots}}% X \def\enddots{\relax\ifmmode\endldots\else$\mathsurround=0pt \endldots\,$\fi}% X \def\@{@}% \let\Etex=\endgroup} X % Define @lisp ... @endlisp. % @lisp does a \begingroup so it can rebind things, % including the definition of @endlisp (which normally is erroneous). X % Amount to narrow the margins by for @lisp. \newskip\lispnarrowing \lispnarrowing=0.4in X % This is the definition that ^^M gets inside @lisp, @example, and other % such environments. \null is better than a space, since it doesn't % have any width. \def\lisppar{\null\endgraf} X % Make each space character in the input produce a normal interword % space in the output. Don't allow a line break at this space, as this % is used only in environments like @example, where each line of input % should produce a line of output anyway. % {\obeyspaces % \gdef\sepspaces{\obeyspaces\let =\tie}} X % Define \obeyedspace to be our active space, whatever it is. This is % for use in \parsearg. {\sepspaces% \global\let\obeyedspace= } X % This space is always present above and below environments. \newskip\envskipamount \envskipamount = 0pt X % Make spacing and below environment symmetrical. We use \parskip here % to help in doing that, since in @example-like environments \parskip % is reset to zero; thus the \afterenvbreak inserts no space -- but the % start of the next paragraph will insert \parskip % \def\aboveenvbreak{{\advance\envskipamount by \parskip \endgraf \ifdim\lastskip<\envskipamount \removelastskip \penalty-50 \vskip\envskipamount \fi}} X \let\afterenvbreak = \aboveenvbreak X % \nonarrowing is a flag. If "set", @lisp etc don't narrow margins. \let\nonarrowing=\relax X % @cartouche ... @end cartouche: draw rectangle w/rounded corners around % environment contents. \font\circle=lcircle10 \newdimen\circthick \newdimen\cartouter\newdimen\cartinner \newskip\normbskip\newskip\normpskip\newskip\normlskip \circthick=\fontdimen8\circle % \def\ctl{{\circle\char'013\hskip -6pt}}% 6pt from pl file: 1/2charwidth \def\ctr{{\hskip 6pt\circle\char'010}} \def\cbl{{\circle\char'012\hskip -6pt}} \def\cbr{{\hskip 6pt\circle\char'011}} \def\carttop{\hbox to \cartouter{\hskip\lskip X \ctl\leaders\hrule height\circthick\hfil\ctr X \hskip\rskip}} \def\cartbot{\hbox to \cartouter{\hskip\lskip X \cbl\leaders\hrule height\circthick\hfil\cbr X \hskip\rskip}} % \newskip\lskip\newskip\rskip X \long\def\cartouche{% \begingroup X \lskip=\leftskip \rskip=\rightskip X \leftskip=0pt\rightskip=0pt %we want these *outside*. X \cartinner=\hsize \advance\cartinner by-\lskip X \advance\cartinner by-\rskip X \cartouter=\hsize X \advance\cartouter by 18.4pt % allow for 3pt kerns on either % side, and for 6pt waste from % each corner char, and rule thickness X \normbskip=\baselineskip \normpskip=\parskip \normlskip=\lineskip X % Flag to tell @lisp, etc., not to narrow margin. X \let\nonarrowing=\comment X \vbox\bgroup X \baselineskip=0pt\parskip=0pt\lineskip=0pt X \carttop X \hbox\bgroup X \hskip\lskip X \vrule\kern3pt X \vbox\bgroup X \hsize=\cartinner X \kern3pt X \begingroup X \baselineskip=\normbskip X \lineskip=\normlskip X \parskip=\normpskip X \vskip -\parskip \def\Ecartouche{% X \endgroup X \kern3pt X \egroup X \kern3pt\vrule X \hskip\rskip X \egroup X \cartbot X \egroup \endgroup }} X X % This macro is called at the beginning of all the @example variants, % inside a group. \def\nonfillstart{% X \aboveenvbreak X \inENV % This group ends at the end of the body X \hfuzz = 12pt % Don't be fussy X \sepspaces % Make spaces be word-separators rather than space tokens. X \singlespace X \let\par = \lisppar % don't ignore blank lines X \obeylines % each line of input is a line of output X \parskip = 0pt X \parindent = 0pt X \emergencystretch = 0pt % don't try to avoid overfull boxes X % @cartouche defines \nonarrowing to inhibit narrowing X % at next level down. X \ifx\nonarrowing\relax X \advance \leftskip by \lispnarrowing X \exdentamount=\lispnarrowing X \let\exdent=\nofillexdent X \let\nonarrowing=\relax X \fi } X % Define the \E... control sequence only if we are inside the particular % environment, so the error checking in \end will work. % % To end an @example-like environment, we first end the paragraph (via % \afterenvbreak's vertical glue), and then the group. That way we keep % the zero \parskip that the environments set -- \parskip glue will be % inserted at the beginning of the next paragraph in the document, after % the environment. % \def\nonfillfinish{\afterenvbreak\endgroup} X % @lisp: indented, narrowed, typewriter font. \def\lisp{\begingroup X \nonfillstart X \let\Elisp = \nonfillfinish X \tt X \let\kbdfont = \kbdexamplefont % Allow @kbd to do something special. X \gobble % eat return } X % @example: Same as @lisp. \def\example{\begingroup \def\Eexample{\nonfillfinish\endgroup}\lisp} X % @small... is usually equivalent to the non-small (@smallbook % redefines). We must call \example (or whatever) last in the % definition, since it reads the return following the @example (or % whatever) command. % % This actually allows (for example) @end display inside an % @smalldisplay. Too bad, but makeinfo will catch the error anyway. % \def\smalldisplay{\begingroup\def\Esmalldisplay{\nonfillfinish\endgroup}\display} \def\smallexample{\begingroup\def\Esmallexample{\nonfillfinish\endgroup}\lisp} \def\smallformat{\begingroup\def\Esmallformat{\nonfillfinish\endgroup}\format} \def\smalllisp{\begingroup\def\Esmalllisp{\nonfillfinish\endgroup}\lisp} X % Real @smallexample and @smalllisp (when @smallbook): use smaller fonts. % Originally contributed by Pavel@xerox. \def\smalllispx{\begingroup X \def\Esmalllisp{\nonfillfinish\endgroup}% X \def\Esmallexample{\nonfillfinish\endgroup}% X \indexfonts X \lisp } X % @display: same as @lisp except keep current font. % \def\display{\begingroup X \nonfillstart X \let\Edisplay = \nonfillfinish X \gobble } X % @smalldisplay (when @smallbook): @display plus smaller fonts. % \def\smalldisplayx{\begingroup X \def\Esmalldisplay{\nonfillfinish\endgroup}% X \indexfonts \rm X \display } X % @format: same as @display except don't narrow margins. % \def\format{\begingroup X \let\nonarrowing = t X \nonfillstart X \let\Eformat = \nonfillfinish X \gobble } X % @smallformat (when @smallbook): @format plus smaller fonts. % \def\smallformatx{\begingroup X \def\Esmallformat{\nonfillfinish\endgroup}% X \indexfonts \rm X \format } X % @flushleft (same as @format). % \def\flushleft{\begingroup \def\Eflushleft{\nonfillfinish\endgroup}\format} X % @flushright. % \def\flushright{\begingroup X \let\nonarrowing = t X \nonfillstart X \let\Eflushright = \nonfillfinish X \advance\leftskip by 0pt plus 1fill X \gobble } X % @quotation does normal linebreaking (hence we can't use \nonfillstart) % and narrows the margins. % \def\quotation{% X \begingroup\inENV %This group ends at the end of the @quotation body X {\parskip=0pt \aboveenvbreak}% because \aboveenvbreak inserts \parskip X \singlespace X \parindent=0pt X % We have retained a nonzero parskip for the environment, since we're X % doing normal filling. So to avoid extra space below the environment... X \def\Equotation{\parskip = 0pt \nonfillfinish}% X % X % @cartouche defines \nonarrowing to inhibit narrowing at next level down. X \ifx\nonarrowing\relax X \advance\leftskip by \lispnarrowing X \advance\rightskip by \lispnarrowing X \exdentamount = \lispnarrowing X \let\nonarrowing = \relax X \fi } X X \message{defuns,} % @defun etc. X % Allow user to change definition object font (\df) internally \def\setdeffont #1 {\csname DEF#1\endcsname} X \newskip\defbodyindent \defbodyindent=.4in \newskip\defargsindent \defargsindent=50pt \newskip\deftypemargin \deftypemargin=12pt \newskip\deflastargmargin \deflastargmargin=18pt X \newcount\parencount % define \functionparens, which makes ( and ) and & do special things. % \functionparens affects the group it is contained in. \def\activeparens{% \catcode`\(=\active \catcode`\)=\active \catcode`\&=\active \catcode`\[=\active \catcode`\]=\active} X % Make control sequences which act like normal parenthesis chars. \let\lparen = ( \let\rparen = ) X {\activeparens % Now, smart parens don't turn on until &foo (see \amprm) X % Be sure that we always have a definition for `(', etc. For example, % if the fn name has parens in it, \boldbrax will not be in effect yet, % so TeX would otherwise complain about undefined control sequence. \global\let(=\lparen \global\let)=\rparen \global\let[=\lbrack \global\let]=\rbrack X \gdef\functionparens{\boldbrax\let&=\amprm\parencount=0 } \gdef\boldbrax{\let(=\opnr\let)=\clnr\let[=\lbrb\let]=\rbrb} % This is used to turn on special parens % but make & act ordinary (given that it's active). \gdef\boldbraxnoamp{\let(=\opnr\let)=\clnr\let[=\lbrb\let]=\rbrb\let&=\ampnr} X % Definitions of (, ) and & used in args for functions. % This is the definition of ( outside of all parentheses. \gdef\oprm#1 {{\rm\char`\(}#1 \bf \let(=\opnested X \global\advance\parencount by 1 } % % This is the definition of ( when already inside a level of parens. \gdef\opnested{\char`\(\global\advance\parencount by 1 } % \gdef\clrm{% Print a paren in roman if it is taking us back to depth of 0. X % also in that case restore the outer-level definition of (. X \ifnum \parencount=1 {\rm \char `\)}\sl \let(=\oprm \else \char `\) \fi X \global\advance \parencount by -1 } % If we encounter &foo, then turn on ()-hacking afterwards \gdef\amprm#1 {{\rm\}\let(=\oprm \let)=\clrm\ } % \gdef\normalparens{\boldbrax\let&=\ampnr} } % End of definition inside \activeparens %% These parens (in \boldbrax) actually are a little bolder than the %% contained text. This is especially needed for [ and ] \def\opnr{{\sf\char`\(}\global\advance\parencount by 1 } \def\clnr{{\sf\char`\)}\global\advance\parencount by -1 } \let\ampnr = \& \def\lbrb{{\bf\char`\[}} \def\rbrb{{\bf\char`\]}} X % Active &'s sneak into the index arguments, so make sure it's defined. { X \catcode`& = 13 X \global\let& = \ampnr } X % First, defname, which formats the header line itself. % #1 should be the function name. % #2 should be the type of definition, such as "Function". X \def\defname #1#2{% % Get the values of \leftskip and \rightskip as they were % outside the @def... \dimen2=\leftskip \advance\dimen2 by -\defbodyindent \noindent \setbox0=\hbox{\hskip \deflastargmargin{\rm #2}\hskip \deftypemargin}% \dimen0=\hsize \advance \dimen0 by -\wd0 % compute size for first line \dimen1=\hsize \advance \dimen1 by -\defargsindent %size for continuations \parshape 2 0in \dimen0 \defargsindent \dimen1 % Now output arg 2 ("Function" or some such) % ending at \deftypemargin from the right margin, % but stuck inside a box of width 0 so it does not interfere with linebreaking {% Adjust \hsize to exclude the ambient margins, % so that \rightline will obey them. \advance \hsize by -\dimen2 \rlap{\rightline{{\rm #2}\hskip -1.25pc }}}% % Make all lines underfull and no complaints: \tolerance=10000 \hbadness=10000 \advance\leftskip by -\defbodyindent \exdentamount=\defbodyindent {\df #1}\enskip % Generate function name } X % Actually process the body of a definition % #1 should be the terminating control sequence, such as \Edefun. % #2 should be the "another name" control sequence, such as \defunx. % #3 should be the control sequence that actually processes the header, % such as \defunheader. X \def\defparsebody #1#2#3{\begingroup\inENV% Environment for definitionbody \medbreak % % Define the end token that this defining construct specifies % so that it will exit this group. \def#1{\endgraf\endgroup\medbreak}% \def#2{\begingroup\obeylines\activeparens\spacesplit#3}% \parindent=0in \advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup % \catcode 61=\active % 61 is `=' \obeylines\activeparens\spacesplit#3} X % #1 is the \E... control sequence to end the definition (which we define). % #2 is the \...x control sequence for consecutive fns (which we define). % #3 is the control sequence to call to resume processing. % #4, delimited by the space, is the class name. % \def\defmethparsebody#1#2#3#4 {\begingroup\inENV % \medbreak % % Define the end token that this defining construct specifies % so that it will exit this group. \def#1{\endgraf\endgroup\medbreak}% \def#2##1 {\begingroup\obeylines\activeparens\spacesplit{#3{##1}}}% \parindent=0in \advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup\obeylines\activeparens\spacesplit{#3{#4}}} X % @deftypemethod has an extra argument that nothing else does. Sigh. % #1 is the \E... control sequence to end the definition (which we define). % #2 is the \...x control sequence for consecutive fns (which we define). % #3 is the control sequence to call to resume processing. % #4, delimited by the space, is the class name. % #5 is the method's return type. % \def\deftypemethparsebody#1#2#3#4 #5 {\begingroup\inENV % \medbreak % % Define the end token that this defining construct specifies % so that it will exit this group. \def#1{\endgraf\endgroup\medbreak}% \def#2##1 ##2 {\begingroup\obeylines\activeparens\spacesplit{#3{##1}{##2}}}% \parindent=0in \advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup\obeylines\activeparens\spacesplit{#3{#4}{#5}}} X \def\defopparsebody #1#2#3#4#5 {\begingroup\inENV % \medbreak % % Define the end token that this defining construct specifies % so that it will exit this group. \def#1{\endgraf\endgroup\medbreak}% \def#2##1 ##2 {\def#4{##1}% \begingroup\obeylines\activeparens\spacesplit{#3{##2}}}% \parindent=0in \advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup\obeylines\activeparens\spacesplit{#3{#5}}} X % These parsing functions are similar to the preceding ones % except that they do not make parens into active characters. % These are used for "variables" since they have no arguments. X \def\defvarparsebody #1#2#3{\begingroup\inENV% Environment for definitionbody \medbreak % % Define the end token that this defining construct specifies % so that it will exit this group. \def#1{\endgraf\endgroup\medbreak}% \def#2{\begingroup\obeylines\spacesplit#3}% \parindent=0in \advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup % \catcode 61=\active % \obeylines\spacesplit#3} X % This is used for \def{tp,vr}parsebody. It could probably be used for % some of the others, too, with some judicious conditionals. % \def\parsebodycommon#1#2#3{% X \begingroup\inENV % X \medbreak % X % Define the end token that this defining construct specifies X % so that it will exit this group. X \def#1{\endgraf\endgroup\medbreak}% X \def#2##1 {\begingroup\obeylines\spacesplit{#3{##1}}}% X \parindent=0in X \advance\leftskip by \defbodyindent X \exdentamount=\defbodyindent X \begingroup\obeylines } X \def\defvrparsebody#1#2#3#4 {% X \parsebodycommon{#1}{#2}{#3}% X \spacesplit{#3{#4}}% } X % This loses on `@deftp {Data Type} {struct termios}' -- it thinks the % type is just `struct', because we lose the braces in `{struct % termios}' when \spacesplit reads its undelimited argument. Sigh. % \let\deftpparsebody=\defvrparsebody % % So, to get around this, we put \empty in with the type name. That % way, TeX won't find exactly `{...}' as an undelimited argument, and % won't strip off the braces. % \def\deftpparsebody #1#2#3#4 {% X \parsebodycommon{#1}{#2}{#3}% X \spacesplit{\parsetpheaderline{#3{#4}}}\empty } X % Fine, but then we have to eventually remove the \empty *and* the % braces (if any). That's what this does. % \def\removeemptybraces\empty#1\relax{#1} X % After \spacesplit has done its work, this is called -- #1 is the final % thing to call, #2 the type name (which starts with \empty), and #3 % (which might be empty) the arguments. % \def\parsetpheaderline#1#2#3{% X #1{\removeemptybraces#2\relax}{#3}% }% X \def\defopvarparsebody #1#2#3#4#5 {\begingroup\inENV % \medbreak % % Define the end token that this defining construct specifies % so that it will exit this group. \def#1{\endgraf\endgroup\medbreak}% \def#2##1 ##2 {\def#4{##1}% \begingroup\obeylines\spacesplit{#3{##2}}}% \parindent=0in \advance\leftskip by \defbodyindent \exdentamount=\defbodyindent \begingroup\obeylines\spacesplit{#3{#5}}} X % Split up #2 at the first space token. % call #1 with two arguments: % the first is all of #2 before the space token, % the second is all of #2 after that space token. % If #2 contains no space token, all of it is passed as the first arg % and the second is passed as empty. X {\obeylines \gdef\spacesplit#1#2^^M{\endgroup\spacesplitfoo{#1}#2 \relax\spacesplitfoo}% \long\gdef\spacesplitfoo#1#2 #3#4\spacesplitfoo{% \ifx\relax #3% #1{#2}{}\else #1{#2}{#3#4}\fi}} X % So much for the things common to all kinds of definitions. X % Define @defun. X % First, define the processing that is wanted for arguments of \defun % Use this to expand the args and terminate the paragraph they make up X \def\defunargs#1{\functionparens \sl % Expand, preventing hyphenation at `-' chars. % Note that groups don't affect changes in \hyphenchar. % Set the font temporarily and use \font in case \setfont made \tensl a macro. {\tensl\hyphenchar\font=0}% #1% {\tensl\hyphenchar\font=45}% \ifnum\parencount=0 \else \errmessage{Unbalanced parentheses in @def}\fi% \interlinepenalty=10000 \advance\rightskip by 0pt plus 1fil \endgraf\nobreak\vskip -\parskip\nobreak } X \def\deftypefunargs #1{% % Expand, preventing hyphenation at `-' chars. % Note that groups don't affect changes in \hyphenchar. % Use \boldbraxnoamp, not \functionparens, so that & is not special. \boldbraxnoamp \tclose{#1}% avoid \code because of side effects on active chars \interlinepenalty=10000 \advance\rightskip by 0pt plus 1fil \endgraf\nobreak\vskip -\parskip\nobreak } X % Do complete processing of one @defun or @defunx line already parsed. X % @deffn Command forward-char nchars X \def\deffn{\defmethparsebody\Edeffn\deffnx\deffnheader} X \def\deffnheader #1#2#3{\doind {fn}{\code{#2}}% \begingroup\defname {#2}{#1}\defunargs{#3}\endgroup % \catcode 61=\other % Turn off change made in \defparsebody } X % @defun == @deffn Function X \def\defun{\defparsebody\Edefun\defunx\defunheader} X \def\defunheader #1#2{\doind {fn}{\code{#1}}% Make entry in function index \begingroup\defname {#1}{\putwordDeffunc}% \defunargs {#2}\endgroup % \catcode 61=\other % Turn off change made in \defparsebody } X % @deftypefun int foobar (int @var{foo}, float @var{bar}) X \def\deftypefun{\defparsebody\Edeftypefun\deftypefunx\deftypefunheader} X % #1 is the data type. #2 is the name and args. \def\deftypefunheader #1#2{\deftypefunheaderx{#1}#2 \relax} % #1 is the data type, #2 the name, #3 the args. \def\deftypefunheaderx #1#2 #3\relax{% \doind {fn}{\code{#2}}% Make entry in function index \begingroup\defname {\defheaderxcond#1\relax$$$#2}{\putwordDeftypefun}% \deftypefunargs {#3}\endgroup % \catcode 61=\other % Turn off change made in \defparsebody } X % @deftypefn {Library Function} int foobar (int @var{foo}, float @var{bar}) X \def\deftypefn{\defmethparsebody\Edeftypefn\deftypefnx\deftypefnheader} X % \defheaderxcond#1\relax$$$ % puts #1 in @code, followed by a space, but does nothing if #1 is null. \def\defheaderxcond#1#2$$${\ifx#1\relax\else\code{#1#2} \fi} X % #1 is the classification. #2 is the data type. #3 is the name and args. \def\deftypefnheader #1#2#3{\deftypefnheaderx{#1}{#2}#3 \relax} % #1 is the classification, #2 the data type, #3 the name, #4 the args. \def\deftypefnheaderx #1#2#3 #4\relax{% \doind {fn}{\code{#3}}% Make entry in function index \begingroup \normalparens % notably, turn off `&' magic, which prevents % at least some C++ text from working \defname {\defheaderxcond#2\relax$$$#3}{#1}% \deftypefunargs {#4}\endgroup % \catcode 61=\other % Turn off change made in \defparsebody } X % @defmac == @deffn Macro X \def\defmac{\defparsebody\Edefmac\defmacx\defmacheader} X \def\defmacheader #1#2{\doind {fn}{\code{#1}}% Make entry in function index \begingroup\defname {#1}{\putwordDefmac}% \defunargs {#2}\endgroup % \catcode 61=\other % Turn off change made in \defparsebody } X % @defspec == @deffn Special Form X \def\defspec{\defparsebody\Edefspec\defspecx\defspecheader} X \def\defspecheader #1#2{\doind {fn}{\code{#1}}% Make entry in function index \begingroup\defname {#1}{\putwordDefspec}% \defunargs {#2}\endgroup % \catcode 61=\other % Turn off change made in \defparsebody } X % @defop CATEGORY CLASS OPERATION ARG... % \def\defop #1 {\def\defoptype{#1}% \defopparsebody\Edefop\defopx\defopheader\defoptype} % \def\defopheader #1#2#3{% \dosubind {fn}{\code{#2}}{\putwordon\ #1}% Make entry in function index \begingroup\defname {#2}{\defoptype\ \putwordon\ #1}% \defunargs {#3}\endgroup % } X % @deftypemethod CLASS RETURN-TYPE METHOD ARG... % \def\deftypemethod{% X \deftypemethparsebody\Edeftypemethod\deftypemethodx\deftypemethodheader} % % #1 is the class name, #2 the data type, #3 the method name, #4 the args. \def\deftypemethodheader#1#2#3#4{% X \dosubind{fn}{\code{#3}}{\putwordon\ \code{#1}}% entry in function index X \begingroup X \defname{\defheaderxcond#2\relax$$$#3}{\putwordMethodon\ \code{#1}}% X \deftypefunargs{#4}% X \endgroup } X % @deftypeivar CLASS TYPE VARNAME % \def\deftypeivar{% X \deftypemethparsebody\Edeftypeivar\deftypeivarx\deftypeivarheader} % % #1 is the class name, #2 the data type, #3 the variable name. \def\deftypeivarheader#1#2#3{% X \dosubind{vr}{\code{#3}}{\putwordof\ \code{#1}}% entry in variable index X \begingroup X \defname{#3}{\putwordInstanceVariableof\ \code{#1}}% X \defvarargs{#3}% X \endgroup } X % @defmethod == @defop Method % \def\defmethod{\defmethparsebody\Edefmethod\defmethodx\defmethodheader} % % #1 is the class name, #2 the method name, #3 the args. \def\defmethodheader#1#2#3{% X \dosubind{fn}{\code{#2}}{\putwordon\ \code{#1}}% entry in function index X \begingroup X \defname{#2}{\putwordMethodon\ \code{#1}}% X \defunargs{#3}% X \endgroup } X % @defcv {Class Option} foo-class foo-flag X \def\defcv #1 {\def\defcvtype{#1}% \defopvarparsebody\Edefcv\defcvx\defcvarheader\defcvtype} X \def\defcvarheader #1#2#3{% \dosubind {vr}{\code{#2}}{\putwordof\ #1}% Make entry in var index \begingroup\defname {#2}{\defcvtype\ \putwordof\ #1}% \defvarargs {#3}\endgroup % } X % @defivar CLASS VARNAME == @defcv {Instance Variable} CLASS VARNAME % \def\defivar{\defvrparsebody\Edefivar\defivarx\defivarheader} % \def\defivarheader#1#2#3{% X \dosubind {vr}{\code{#2}}{\putwordof\ #1}% entry in var index X \begingroup X \defname{#2}{\putwordInstanceVariableof\ #1}% X \defvarargs{#3}% X \endgroup } X % @defvar % First, define the processing that is wanted for arguments of @defvar. % This is actually simple: just print them in roman. % This must expand the args and terminate the paragraph they make up \def\defvarargs #1{\normalparens #1% \interlinepenalty=10000 \endgraf\nobreak\vskip -\parskip\nobreak} X % @defvr Counter foo-count X \def\defvr{\defvrparsebody\Edefvr\defvrx\defvrheader} X \def\defvrheader #1#2#3{\doind {vr}{\code{#2}}% \begingroup\defname {#2}{#1}\defvarargs{#3}\endgroup} X % @defvar == @defvr Variable X \def\defvar{\defvarparsebody\Edefvar\defvarx\defvarheader} X \def\defvarheader #1#2{\doind {vr}{\code{#1}}% Make entry in var index \begingroup\defname {#1}{\putwordDefvar}% \defvarargs {#2}\endgroup % } X % @defopt == @defvr {User Option} X \def\defopt{\defvarparsebody\Edefopt\defoptx\defoptheader} X \def\defoptheader #1#2{\doind {vr}{\code{#1}}% Make entry in var index \begingroup\defname {#1}{\putwordDefopt}% \defvarargs {#2}\endgroup % } X % @deftypevar int foobar X \def\deftypevar{\defvarparsebody\Edeftypevar\deftypevarx\deftypevarheader} X % #1 is the data type. #2 is the name, perhaps followed by text that % is actually part of the data type, which should not be put into the index. \def\deftypevarheader #1#2{% \dovarind#2 \relax% Make entry in variables index \begingroup\defname {\defheaderxcond#1\relax$$$#2}{\putwordDeftypevar}% \interlinepenalty=10000 \endgraf\nobreak\vskip -\parskip\nobreak \endgroup} \def\dovarind#1 #2\relax{\doind{vr}{\code{#1}}} X % @deftypevr {Global Flag} int enable X \def\deftypevr{\defvrparsebody\Edeftypevr\deftypevrx\deftypevrheader} X \def\deftypevrheader #1#2#3{\dovarind#3 \relax% \begingroup\defname {\defheaderxcond#2\relax$$$#3}{#1} \interlinepenalty=10000 \endgraf\nobreak\vskip -\parskip\nobreak \endgroup} X % Now define @deftp % Args are printed in bold, a slight difference from @defvar. X \def\deftpargs #1{\bf \defvarargs{#1}} X % @deftp Class window height width ... X \def\deftp{\deftpparsebody\Edeftp\deftpx\deftpheader} X \def\deftpheader #1#2#3{\doind {tp}{\code{#2}}% \begingroup\defname {#2}{#1}\deftpargs{#3}\endgroup} X % These definitions are used if you use @defunx (etc.) % anywhere other than immediately after a @defun or @defunx. % \def\defcvx#1 {\errmessage{@defcvx in invalid context}} \def\deffnx#1 {\errmessage{@deffnx in invalid context}} \def\defivarx#1 {\errmessage{@defivarx in invalid context}} \def\defmacx#1 {\errmessage{@defmacx in invalid context}} \def\defmethodx#1 {\errmessage{@defmethodx in invalid context}} \def\defoptx #1 {\errmessage{@defoptx in invalid context}} \def\defopx#1 {\errmessage{@defopx in invalid context}} \def\defspecx#1 {\errmessage{@defspecx in invalid context}} \def\deftpx#1 {\errmessage{@deftpx in invalid context}} \def\deftypefnx#1 {\errmessage{@deftypefnx in invalid context}} \def\deftypefunx#1 {\errmessage{@deftypefunx in invalid context}} \def\deftypeivarx#1 {\errmessage{@deftypeivarx in invalid context}} \def\deftypemethodx#1 {\errmessage{@deftypemethodx in invalid context}} \def\deftypevarx#1 {\errmessage{@deftypevarx in invalid context}} \def\deftypevrx#1 {\errmessage{@deftypevrx in invalid context}} \def\defunx#1 {\errmessage{@defunx in invalid context}} \def\defvarx#1 {\errmessage{@defvarx in invalid context}} \def\defvrx#1 {\errmessage{@defvrx in invalid context}} X X \message{macros,} % @macro. X % To do this right we need a feature of e-TeX, \scantokens, % which we arrange to emulate with a temporary file in ordinary TeX. \ifx\eTeXversion\undefined X \newwrite\macscribble X \def\scanmacro#1{% X \begingroup \newlinechar`\^^M X % Undo catcode changes of \startcontents and \doprintindex X \catcode`\@=0 \catcode`\\=12 \escapechar=`\@ X % Append \endinput to make sure that TeX does not see the ending newline. X \toks0={#1\endinput}% X \immediate\openout\macscribble=\jobname.tmp X \immediate\write\macscribble{\the\toks0}% X \immediate\closeout\macscribble X \let\xeatspaces\eatspaces X \input \jobname.tmp X \endgroup } \else \def\scanmacro#1{% \begingroup \newlinechar`\^^M % Undo catcode changes of \startcontents and \doprintindex \catcode`\@=0 \catcode`\\=12 \escapechar=`\@ \let\xeatspaces\eatspaces\scantokens{#1\endinput}\endgroup} \fi X \newcount\paramno % Count of parameters \newtoks\macname % Macro name \newif\ifrecursive % Is it recursive? \def\macrolist{} % List of all defined macros in the form X % \do\macro1\do\macro2... X % Utility routines. % Thisdoes \let #1 = #2, except with \csnames. \def\cslet#1#2{% \expandafter\expandafter \expandafter\let \expandafter\expandafter \csname#1\endcsname \csname#2\endcsname} X % Trim leading and trailing spaces off a string. % Concepts from aro-bend problem 15 (see CTAN). {\catcode`\@=11 \gdef\eatspaces #1{\expandafter\trim@\expandafter{#1 }} \gdef\trim@ #1{\trim@@ @#1 @ #1 @ @@} \gdef\trim@@ #1@ #2@ #3@@{\trim@@@\empty #2 @} \def\unbrace#1{#1} \unbrace{\gdef\trim@@@ #1 } #2@{#1} } X % Trim a single trailing ^^M off a string. {\catcode`\^^M=12\catcode`\Q=3% \gdef\eatcr #1{\eatcra #1Q^^MQ}% \gdef\eatcra#1^^MQ{\eatcrb#1Q}% \gdef\eatcrb#1Q#2Q{#1}% } X % Macro bodies are absorbed as an argument in a context where % all characters are catcode 10, 11 or 12, except \ which is active % (as in normal texinfo). It is necessary to change the definition of \. X % It's necessary to have hard CRs when the macro is executed. This is % done by making ^^M (\endlinechar) catcode 12 when reading the macro % body, and then making it the \newlinechar in \scanmacro. X \def\macrobodyctxt{% X \catcode`\~=12 X \catcode`\^=12 X \catcode`\_=12 X \catcode`\|=12 X \catcode`\<=12 X \catcode`\>=12 X \catcode`\+=12 X \catcode`\{=12 X \catcode`\}=12 X \catcode`\@=12 X \catcode`\^^M=12 X \usembodybackslash} X \def\macroargctxt{% X \catcode`\~=12 X \catcode`\^=12 X \catcode`\_=12 X \catcode`\|=12 X \catcode`\<=12 X \catcode`\>=12 X \catcode`\+=12 X \catcode`\@=12 X \catcode`\\=12} X % \mbodybackslash is the definition of \ in @macro bodies. % It maps \foo\ => \csname macarg.foo\endcsname => #N % where N is the macro parameter number. % We define \csname macarg.\endcsname to be \realbackslash, so % \\ in macro replacement text gets you a backslash. X {\catcode`@=0 @catcode`@\=@active X @gdef@usembodybackslash{@let\=@mbodybackslash} X @gdef@mbodybackslash#1\{@csname macarg.#1@endcsname} } \expandafter\def\csname macarg.\endcsname{\realbackslash} X \def\macro{\recursivefalse\parsearg\macroxxx} \def\rmacro{\recursivetrue\parsearg\macroxxx} X \def\macroxxx#1{% X \getargs{#1}% now \macname is the macname and \argl the arglist X \ifx\argl\empty % no arguments X \paramno=0% X \else X \expandafter\parsemargdef \argl;% X \fi X \if1\csname ismacro.\the\macname\endcsname X \message{Warning: redefining \the\macname}% X \else X \expandafter\ifx\csname \the\macname\endcsname \relax X \else \errmessage{The name \the\macname\space is reserved}\fi X \global\cslet{macsave.\the\macname}{\the\macname}% X \global\expandafter\let\csname ismacro.\the\macname\endcsname=1% X % Add the macroname to \macrolist X \toks0 = \expandafter{\macrolist\do}% X \xdef\macrolist{\the\toks0 X \expandafter\noexpand\csname\the\macname\endcsname}% X \fi X \begingroup \macrobodyctxt X \ifrecursive \expandafter\parsermacbody X \else \expandafter\parsemacbody X \fi} X \def\unmacro{\parsearg\unmacroxxx} \def\unmacroxxx#1{% X \if1\csname ismacro.#1\endcsname X \global\cslet{#1}{macsave.#1}% X \global\expandafter\let \csname ismacro.#1\endcsname=0% X % Remove the macro name from \macrolist X \begingroup X \edef\tempa{\expandafter\noexpand\csname#1\endcsname}% X \def\do##1{% X \def\tempb{##1}% X \ifx\tempa\tempb X % remove this X \else X \toks0 = \expandafter{\newmacrolist\do}% X \edef\newmacrolist{\the\toks0\expandafter\noexpand\tempa}% X \fi}% X \def\newmacrolist{}% X % Execute macro list to define \newmacrolist X \macrolist X \global\let\macrolist\newmacrolist X \endgroup X \else X \errmessage{Macro #1 not defined}% X \fi } X % This makes use of the obscure feature that if the last token of a % is #, then the preceding argument is delimited by % an opening brace, and that opening brace is not consumed. \def\getargs#1{\getargsxxx#1{}} \def\getargsxxx#1#{\getmacname #1 \relax\getmacargs} \def\getmacname #1 #2\relax{\macname={#1}} \def\getmacargs#1{\def\argl{#1}} X % Parse the optional {params} list. Set up \paramno and \paramlist % so \defmacro knows what to do. Define \macarg.blah for each blah % in the params list, to be ##N where N is the position in that list. % That gets used by \mbodybackslash (above). X % We need to get `macro parameter char #' into several definitions. % The technique used is stolen from LaTeX: let \hash be something % unexpandable, insert that wherever you need a #, and then redefine % it to # just before using the token list produced. % % The same technique is used to protect \eatspaces till just before % the macro is used. X \def\parsemargdef#1;{\paramno=0\def\paramlist{}% X \let\hash\relax\let\xeatspaces\relax\parsemargdefxxx#1,;,} \def\parsemargdefxxx#1,{% X \if#1;\let\next=\relax X \else \let\next=\parsemargdefxxx X \advance\paramno by 1% X \expandafter\edef\csname macarg.\eatspaces{#1}\endcsname X {\xeatspaces{\hash\the\paramno}}% X \edef\paramlist{\paramlist\hash\the\paramno,}% X \fi\next} X % These two commands read recursive and nonrecursive macro bodies. % (They're different since rec and nonrec macros end differently.) X \long\def\parsemacbody#1@end macro% {\xdef\temp{\eatcr{#1}}\endgroup\defmacro}% \long\def\parsermacbody#1@end rmacro% {\xdef\temp{\eatcr{#1}}\endgroup\defmacro}% X % This defines the macro itself. There are six cases: recursive and % nonrecursive macros of zero, one, and many arguments. % Much magic with \expandafter here. % \xdef is used so that macro definitions will survive the file % they're defined in; @include reads the file inside a group. \def\defmacro{% X \let\hash=##% convert placeholders to macro parameter chars X \ifrecursive X \ifcase\paramno X % 0 X \expandafter\xdef\csname\the\macname\endcsname{% X \noexpand\scanmacro{\temp}}% X \or % 1 X \expandafter\xdef\csname\the\macname\endcsname{% X \bgroup\noexpand\macroargctxt X \noexpand\braceorline X \expandafter\noexpand\csname\the\macname xxx\endcsname}% X \expandafter\xdef\csname\the\macname xxx\endcsname##1{% X \egroup\noexpand\scanmacro{\temp}}% X \else % many X \expandafter\xdef\csname\the\macname\endcsname{% X \bgroup\noexpand\macroargctxt X \noexpand\csname\the\macname xx\endcsname}% X \expandafter\xdef\csname\the\macname xx\endcsname##1{% X \expandafter\noexpand\csname\the\macname xxx\endcsname ##1,}% X \expandafter\expandafter X \expandafter\xdef X \expandafter\expandafter X \csname\the\macname xxx\endcsname X \paramlist{\egroup\noexpand\scanmacro{\temp}}% X \fi X \else X \ifcase\paramno X % 0 X \expandafter\xdef\csname\the\macname\endcsname{% X \noexpand\norecurse{\the\macname}% X \noexpand\scanmacro{\temp}\egroup}% X \or % 1 X \expandafter\xdef\csname\the\macname\endcsname{% X \bgroup\noexpand\macroargctxt X \noexpand\braceorline X \expandafter\noexpand\csname\the\macname xxx\endcsname}% X \expandafter\xdef\csname\the\macname xxx\endcsname##1{% X \egroup X \noexpand\norecurse{\the\macname}% X \noexpand\scanmacro{\temp}\egroup}% X \else % many X \expandafter\xdef\csname\the\macname\endcsname{% X \bgroup\noexpand\macroargctxt X \expandafter\noexpand\csname\the\macname xx\endcsname}% X \expandafter\xdef\csname\the\macname xx\endcsname##1{% X \expandafter\noexpand\csname\the\macname xxx\endcsname ##1,}% X \expandafter\expandafter X \expandafter\xdef X \expandafter\expandafter X \csname\the\macname xxx\endcsname X \paramlist{% X \egroup X \noexpand\norecurse{\the\macname}% X \noexpand\scanmacro{\temp}\egroup}% X \fi X \fi} X \def\norecurse#1{\bgroup\cslet{#1}{macsave.#1}} X % \braceorline decides whether the next nonwhitespace character is a % {. If so it reads up to the closing }, if not, it reads the whole % line. Whatever was read is then fed to the next control sequence % as an argument (by \parsebrace or \parsearg) \def\braceorline#1{\let\next=#1\futurelet\nchar\braceorlinexxx} \def\braceorlinexxx{% X \ifx\nchar\bgroup\else X \expandafter\parsearg X \fi \next} X % We mant to disable all macros during \shipout so that they are not % expanded by \write. \def\turnoffmacros{\begingroup \def\do##1{\let\noexpand##1=\relax}% X \edef\next{\macrolist}\expandafter\endgroup\next} X X % @alias. \def\alias#1=#2{\gdef#1{#2}} X X \message{cross references,} % @xref etc. X \newwrite\auxfile X \newif\ifhavexrefs % True if xref values are known. \newif\ifwarnedxrefs % True if we warned once that they aren't known. X % @inforef is relatively simple. \def\inforef #1{\inforefzzz #1,,,,**} \def\inforefzzz #1,#2,#3,#4**{\putwordSee{} \putwordInfo{} \putwordfile{} \file{\ignorespaces #3{}}, X node \samp{\ignorespaces#1{}}} X % @node's job is to define \lastnode. \def\node{\ENVcheck\parsearg\nodezzz} \def\nodezzz#1{\nodexxx [#1,]} \def\nodexxx[#1,#2]{\gdef\lastnode{#1}} \let\nwnode=\node \let\lastnode=\relax X % The sectioning commands (@chapter, etc.) call these. \def\donoderef{% X \ifx\lastnode\relax\else X \expandafter\expandafter\expandafter\setref{\lastnode}% X {Ysectionnumberandtype}% X \global\let\lastnode=\relax X \fi } \def\unnumbnoderef{% X \ifx\lastnode\relax\else X \expandafter\expandafter\expandafter\setref{\lastnode}{Ynothing}% X \global\let\lastnode=\relax X \fi } \def\appendixnoderef{% X \ifx\lastnode\relax\else X \expandafter\expandafter\expandafter\setref{\lastnode}% X {Yappendixletterandtype}% X \global\let\lastnode=\relax X \fi } X X % @anchor{NAME} -- define xref target at arbitrary point. % { \catcode`\@ = 11 % From latex.ltx, to make @anchor truely invisible. \newdimen\@savsk \newcount\@savsf \gdef\@bsphack{\relax X \ifhmode \@savsk\lastskip \@savsf\spacefactor \fi } \gdef\@esphack{\relax X \ifhmode \spacefactor\@savsf X \ifdim\@savsk>\z@ \ignorespaces \fi X \fi } \gdef\anchor#1{\@bsphack \setref{#1}{Ynothing}\@esphack} } X % \setref{NAME}{SNT} defines a cross-reference point NAME, namely % NAME-title, NAME-pg, and NAME-SNT. Called from \foonoderef. We have % to set \indexdummies so commands such as @code in a section title % aren't expanded. It would be nicer not to expand the titles in the % first place, but there's so many layers that that is hard to do. % \def\setref#1#2{{% X \indexdummies X \ifpdf \pdfmkdest{#1}\fi X \dosetq{#1-title}{Ytitle}% X \dosetq{#1-pg}{Ypagenumber}% X \dosetq{#1-snt}{#2}% }} X % @xref, @pxref, and @ref generate cross-references. For \xrefX, #1 is % the node name, #2 the name of the Info cross-reference, #3 the printed % node name, #4 the name of the Info file, #5 the name of the printed % manual. All but the node name can be omitted. % \def\pxref#1{\putwordsee{} \xrefX[#1,,,,,,,]} \def\xref#1{\putwordSee{} \xrefX[#1,,,,,,,]} \def\ref#1{\xrefX[#1,,,,,,,]} \def\xrefX[#1,#2,#3,#4,#5,#6]{\begingroup X \def\printedmanual{\ignorespaces #5}% X \def\printednodename{\ignorespaces #3}% X \setbox1=\hbox{\printedmanual}% X \setbox0=\hbox{\printednodename}% X \ifdim \wd0 = 0pt X % No printed node name was explicitly given. X \expandafter\ifx\csname SETxref-automatic-section-title\endcsname\relax X % Use the node name inside the square brackets. X \def\printednodename{\ignorespaces #1}% X \else X % Use the actual chapter/section title appear inside X % the square brackets. Use the real section title if we have it. X \ifdim \wd1 > 0pt X % It is in another manual, so we don't have it. X \def\printednodename{\ignorespaces #1}% X \else X \ifhavexrefs X % We know the real title if we have the xref values. X \def\printednodename{\refx{#1-title}{}}% X \else X % Otherwise just copy the Info node name. X \def\printednodename{\ignorespaces #1}% X \fi% X \fi X \fi X \fi X % X % If we use \unhbox0 and \unhbox1 to print the node names, TeX does not X % insert empty discretionaries after hyphens, which means that it will X % not find a line break at a hyphen in a node names. Since some manuals X % are best written with fairly long node names, containing hyphens, this X % is a loss. Therefore, we give the text of the node name again, so it X % is as if TeX is seeing it for the first time. X \ifpdf X \leavevmode X \getfilename{#4}% X \ifnum\filenamelength>0 X \pdfannotlink attr{/Border [0 0 0]}% X goto file{\the\filename.pdf} name{#1@}% X \else X \pdfannotlink attr{/Border [0 0 0]}% X goto name{#1@}% X \fi X \BlueGreen X \fi X % X \ifdim \wd1 > 0pt X \putwordsection{} ``\printednodename'' \putwordin{} \cite{\printedmanual}% X \else X % _ (for example) has to be the character _ for the purposes of the X % control sequence corresponding to the node, but it has to expand X % into the usual \leavevmode...\vrule stuff for purposes of X % printing. So we \turnoffactive for the \refx-snt, back on for the X % printing, back off for the \refx-pg. X {\normalturnoffactive X % Only output a following space if the -snt ref is nonempty; for X % @unnumbered and @anchor, it won't be. X \setbox2 = \hbox{\ignorespaces \refx{#1-snt}{}}% X \ifdim \wd2 > 0pt \refx{#1-snt}\space\fi X }% X % [mynode], X [\printednodename],\space X % page 3 X \turnoffactive \putwordpage\tie\refx{#1-pg}{}% X \fi X \ifpdf \Black\pdfendlink \fi \endgroup} X % \dosetq is the interface for calls from other macros X % Use \normalturnoffactive so that punctuation chars such as underscore % and backslash work in node names. (\turnoffactive doesn't do \.) \def\dosetq#1#2{% X {\let\folio=0% X \normalturnoffactive X \edef\next{\write\auxfile{\internalsetq{#1}{#2}}}% X \iflinks X \next X \fi X }% } X % \internalsetq {foo}{page} expands into % CHARACTERS 'xrdef {foo}{...expansion of \Ypage...} % When the aux file is read, ' is the escape character X \def\internalsetq #1#2{'xrdef {#1}{\csname #2\endcsname}} X % Things to be expanded by \internalsetq X \def\Ypagenumber{\folio} X \def\Ytitle{\thissection} X \def\Ynothing{} X \def\Ysectionnumberandtype{% \ifnum\secno=0 \putwordChapter\xreftie\the\chapno % \else \ifnum \subsecno=0 \putwordSection\xreftie\the\chapno.\the\secno % \else \ifnum \subsubsecno=0 % \putwordSection\xreftie\the\chapno.\the\secno.\the\subsecno % \else % \putwordSection\xreftie\the\chapno.\the\secno.\the\subsecno.\the\subsubsecno % \fi \fi \fi } X \def\Yappendixletterandtype{% \ifnum\secno=0 \putwordAppendix\xreftie'char\the\appendixno{}% \else \ifnum \subsecno=0 \putwordSection\xreftie'char\the\appendixno.\the\secno % \else \ifnum \subsubsecno=0 % \putwordSection\xreftie'char\the\appendixno.\the\secno.\the\subsecno % \else % \putwordSection\xreftie'char\the\appendixno.\the\secno.\the\subsecno.\the\subsubsecno % \fi \fi \fi } X \gdef\xreftie{'tie} X % Use TeX 3.0's \inputlineno to get the line number, for better error % messages, but if we're using an old version of TeX, don't do anything. % \ifx\inputlineno\thisisundefined X \let\linenumber = \empty % Non-3.0. \else X \def\linenumber{\the\inputlineno:\space} \fi X % Define \refx{NAME}{SUFFIX} to reference a cross-reference string named NAME. % If its value is nonempty, SUFFIX is output afterward. X \def\refx#1#2{% X \expandafter\ifx\csname X#1\endcsname\relax X % If not defined, say something at least. X \angleleft un\-de\-fined\angleright X \iflinks X \ifhavexrefs X \message{\linenumber Undefined cross reference `#1'.}% X \else X \ifwarnedxrefs\else X \global\warnedxrefstrue X \message{Cross reference values unknown; you must run TeX again.}% X \fi X \fi X \fi X \else X % It's defined, so just use it. X \csname X#1\endcsname X \fi X #2% Output the suffix in any case. } X % This is the macro invoked by entries in the aux file. % \def\xrdef#1{\begingroup X % Reenable \ as an escape while reading the second argument. X \catcode`\\ = 0 X \afterassignment\endgroup X \expandafter\gdef\csname X#1\endcsname } X % Read the last existing aux file, if any. No error if none exists. \def\readauxfile{\begingroup X \catcode`\^^@=\other X \catcode`\^^A=\other X \catcode`\^^B=\other X \catcode`\^^C=\other X \catcode`\^^D=\other X \catcode`\^^E=\other X \catcode`\^^F=\other X \catcode`\^^G=\other X \catcode`\^^H=\other X \catcode`\^^K=\other X \catcode`\^^L=\other X \catcode`\^^N=\other X \catcode`\^^P=\other X \catcode`\^^Q=\other X \catcode`\^^R=\other X \catcode`\^^S=\other X \catcode`\^^T=\other X \catcode`\^^U=\other X \catcode`\^^V=\other X \catcode`\^^W=\other X \catcode`\^^X=\other X \catcode`\^^Z=\other X \catcode`\^^[=\other X \catcode`\^^\=\other X \catcode`\^^]=\other X \catcode`\^^^=\other X \catcode`\^^_=\other X \catcode`\@=\other X \catcode`\^=\other X % It was suggested to define this as 7, which would allow ^^e4 etc. X % in xref tags, i.e., node names. But since ^^e4 notation isn't X % supported in the main text, it doesn't seem desirable. Furthermore, X % that is not enough: for node names that actually contain a ^ X % character, we would end up writing a line like this: 'xrdef {'hat X % b-title}{'hat b} and \xrdef does a \csname...\endcsname on the first X % argument, and \hat is not an expandable control sequence. It could X % all be worked out, but why? Either we support ^^ or we don't. X % X % The other change necessary for this was to define \auxhat: X % \def\auxhat{\def^{'hat }}% extra space so ok if followed by letter X % and then to call \auxhat in \setq. X % X \catcode`\~=\other X \catcode`\[=\other X \catcode`\]=\other X \catcode`\"=\other X \catcode`\_=\other X \catcode`\|=\other X \catcode`\<=\other X \catcode`\>=\other X \catcode`\$=\other X \catcode`\#=\other X \catcode`\&=\other X \catcode`+=\other % avoid \+ for paranoia even though we've turned it off X % Make the characters 128-255 be printing characters X {% X \count 1=128 X \def\loop{% X \catcode\count 1=\other X \advance\count 1 by 1 X \ifnum \count 1<256 \loop \fi X }% X }% X % The aux file uses ' as the escape (for now). X % Turn off \ as an escape so we do not lose on X % entries which were dumped with control sequences in their names. X % For example, 'xrdef {$\leq $-fun}{page ...} made by @defun ^^ X % Reference to such entries still does not work the way one would wish, X % but at least they do not bomb out when the aux file is read in. X \catcode`\{=1 X \catcode`\}=2 X \catcode`\%=\other X \catcode`\'=0 X \catcode`\\=\other X % X \openin 1 \jobname.aux X \ifeof 1 \else X \closein 1 X \input \jobname.aux X \global\havexrefstrue X \global\warnedobstrue X \fi X % Open the new aux file. TeX will close it automatically at exit. X \openout\auxfile=\jobname.aux \endgroup} X X % Footnotes. X \newcount \footnoteno X % The trailing space in the following definition for supereject is % vital for proper filling; pages come out unaligned when you do a % pagealignmacro call if that space before the closing brace is % removed. (Generally, numeric constants should always be followed by a % space to prevent strange expansion errors.) \def\supereject{\par\penalty -20000\footnoteno =0 } X % @footnotestyle is meaningful for info output only. \let\footnotestyle=\comment X \let\ptexfootnote=\footnote X {\catcode `\@=11 % % Auto-number footnotes. Otherwise like plain. \gdef\footnote{% X \global\advance\footnoteno by \@ne X \edef\thisfootno{$^{\the\footnoteno}$}% X % X % In case the footnote comes at the end of a sentence, preserve the X % extra spacing after we do the footnote number. X \let\@sf\empty X \ifhmode\edef\@sf{\spacefactor\the\spacefactor}\/\fi X % X % Remove inadvertent blank space before typesetting the footnote number. X \unskip X \thisfootno\@sf X \footnotezzz }% X % Don't bother with the trickery in plain.tex to not require the % footnote text as a parameter. Our footnotes don't need to be so general. % % Oh yes, they do; otherwise, @ifset and anything else that uses % \parseargline fail inside footnotes because the tokens are fixed when % the footnote is read. --karl, 16nov96. % \long\gdef\footnotezzz{\insert\footins\bgroup X % We want to typeset this text as a normal paragraph, even if the X % footnote reference occurs in (for example) a display environment. X % So reset some parameters. X \interlinepenalty\interfootnotelinepenalty X \splittopskip\ht\strutbox % top baseline for broken footnotes X \splitmaxdepth\dp\strutbox X \floatingpenalty\@MM X \leftskip\z@skip X \rightskip\z@skip X \spaceskip\z@skip X \xspaceskip\z@skip X \parindent\defaultparindent X % X % Hang the footnote text off the number. X \hang X \textindent{\thisfootno}% X % X % Don't crash into the line above the footnote text. Since this X % expands into a box, it must come within the paragraph, lest it X % provide a place where TeX can split the footnote. X \footstrut X \futurelet\next\fo@t } \def\fo@t{\ifcat\bgroup\noexpand\next \let\next\f@@t X \else\let\next\f@t\fi \next} \def\f@@t{\bgroup\aftergroup\@foot\let\next} \def\f@t#1{#1\@foot} \def\@foot{\strut\egroup} X }%end \catcode `\@=11 X % Set the baselineskip to #1, and the lineskip and strut size % correspondingly. There is no deep meaning behind these magic numbers % used as factors; they just match (closely enough) what Knuth defined. % \def\lineskipfactor{.08333} \def\strutheightpercent{.70833} \def\strutdepthpercent {.29167} % \def\setleading#1{% X \normalbaselineskip = #1\relax X \normallineskip = \lineskipfactor\normalbaselineskip X \normalbaselines X \setbox\strutbox =\hbox{% X \vrule width0pt height\strutheightpercent\baselineskip X depth \strutdepthpercent \baselineskip X }% } X % @| inserts a changebar to the left of the current line. It should % surround any changed text. This approach does *not* work if the % change spans more than two lines of output. To handle that, we would % have adopt a much more difficult approach (putting marks into the main % vertical list for the beginning and end of each change). % \def\|{% X % \vadjust can only be used in horizontal mode. X \leavevmode X % X % Append this vertical mode material after the current line in the output. X \vadjust{% X % We want to insert a rule with the height and depth of the current X % leading; that is exactly what \strutbox is supposed to record. X \vskip-\baselineskip X % X % \vadjust-items are inserted at the left edge of the type. So X % the \llap here moves out into the left-hand margin. X \llap{% X % X % For a thicker or thinner bar, change the `1pt'. X \vrule height\baselineskip width1pt X % X % This is the space between the bar and the text. X \hskip 12pt X }% X }% } X % For a final copy, take out the rectangles % that mark overfull boxes (in case you have decided % that the text looks ok even though it passes the margin). % \def\finalout{\overfullrule=0pt} X % @image. We use the macros from epsf.tex to support this. % If epsf.tex is not installed and @image is used, we complain. % % Check for and read epsf.tex up front. If we read it only at @image % time, we might be inside a group, and then its definitions would get % undone and the next image would fail. \openin 1 = epsf.tex \ifeof 1 \else X \closein 1 X % Do not bother showing banner with post-v2.7 epsf.tex (available in X % doc/epsf.tex until it shows up on ctan). X \def\epsfannounce{\toks0 = }% X \input epsf.tex \fi % % We will only complain once about lack of epsf.tex. \newif\ifwarnednoepsf \newhelp\noepsfhelp{epsf.tex must be installed for images to X work. It is also included in the Texinfo distribution, or you can get X it from ftp://tug.org/tex/epsf.tex.} % \def\image#1{% X \ifx\epsfbox\undefined X \ifwarnednoepsf \else X \errhelp = \noepsfhelp X \errmessage{epsf.tex not found, images will be ignored}% X \global\warnednoepsftrue X \fi X \else X \imagexxx #1,,,\finish X \fi } % % Arguments to @image: % #1 is (mandatory) image filename; we tack on .eps extension. % #2 is (optional) width, #3 is (optional) height. % #4 is just the usual extra ignored arg for parsing this stuff. \def\imagexxx#1,#2,#3,#4\finish{% X \ifx\pdfoutput\undefined X % \epsfbox itself resets \epsf?size at each figure. X \setbox0 = \hbox{\ignorespaces #2}\ifdim\wd0 > 0pt \epsfxsize=#2\relax \fi X \setbox0 = \hbox{\ignorespaces #3}\ifdim\wd0 > 0pt \epsfysize=#3\relax \fi X \begingroup X \catcode`\^^M = 5 % in case we're inside an example X % If the image is by itself, center it. X \ifvmode X \nobreak\bigskip X % Usually we'll have text after the image which will insert X % \parskip glue, so insert it here too to equalize the space X % above and below. X \nobreak\vskip\parskip X \nobreak X \centerline{\epsfbox{#1.eps}}% X \bigbreak X \else X % In the middle of a paragraph, no extra space. X \epsfbox{#1.eps}% X \fi X \endgroup X \else X \centerline{\pdfimage #1.pdf}% X \fi } X X \message{localization,} % and i18n. X % @documentlanguage is usually given very early, just after % @setfilename. If done too late, it may not override everything % properly. Single argument is the language abbreviation. % It would be nice if we could set up a hyphenation file here. % \def\documentlanguage{\parsearg\dodocumentlanguage} \def\dodocumentlanguage#1{% X \tex % read txi-??.tex file in plain TeX. X % Read the file if it exists. X \openin 1 txi-#1.tex X \ifeof1 X \errhelp = \nolanghelp X \errmessage{Cannot read language file txi-#1.tex}% X \let\temp = \relax X \else X \def\temp{\input txi-#1.tex }% X \fi X \temp X \endgroup } \newhelp\nolanghelp{The given language definition file cannot be found or is empty. Maybe you need to install it? In the current directory should work if nowhere else does.} X X % @documentencoding should change something in TeX eventually, most % likely, but for now just recognize it. \let\documentencoding = \comment X X % Page size parameters. % \newdimen\defaultparindent \defaultparindent = 15pt X \chapheadingskip = 15pt plus 4pt minus 2pt \secheadingskip = 12pt plus 3pt minus 2pt \subsecheadingskip = 9pt plus 2pt minus 2pt X % Prevent underfull vbox error messages. \vbadness = 10000 X % Don't be so finicky about underfull hboxes, either. \hbadness = 2000 X % Following George Bush, just get rid of widows and orphans. \widowpenalty=10000 \clubpenalty=10000 X % Use TeX 3.0's \emergencystretch to help line breaking, but if we're % using an old version of TeX, don't do anything. We want the amount of % stretch added to depend on the line length, hence the dependence on % \hsize. We call this whenever the paper size is set. % \def\setemergencystretch{% X \ifx\emergencystretch\thisisundefined X % Allow us to assign to \emergencystretch anyway. X \def\emergencystretch{\dimen0}% X \else X \emergencystretch = .15\hsize X \fi } X % Parameters in order: 1) textheight; 2) textwidth; 3) voffset; % 4) hoffset; 5) binding offset; 6) topskip. Then whoever calls us can % set \parskip and call \setleading for \baselineskip. % \def\internalpagesizes#1#2#3#4#5#6{% X \voffset = #3\relax X \topskip = #6\relax X \splittopskip = \topskip X % X \vsize = #1\relax X \advance\vsize by \topskip X \outervsize = \vsize X \advance\outervsize by 2\topandbottommargin X \pageheight = \vsize X % X \hsize = #2\relax X \outerhsize = \hsize X \advance\outerhsize by 0.5in X \pagewidth = \hsize X % X \normaloffset = #4\relax X \bindingoffset = #5\relax X % X \parindent = \defaultparindent X \setemergencystretch } X % @letterpaper (the default). \def\letterpaper{{\globaldefs = 1 X \parskip = 3pt plus 2pt minus 1pt X \setleading{13.2pt}% X % X % If page is nothing but text, make it come out even. X \internalpagesizes{46\baselineskip}{6in}{\voffset}{.25in}{\bindingoffset}{36pt}% }} X % Use @smallbook to reset parameters for 7x9.5 (or so) format. \def\smallbook{{\globaldefs = 1 X \parskip = 2pt plus 1pt X \setleading{12pt}% X % X \internalpagesizes{7.5in}{5.in}{\voffset}{.25in}{\bindingoffset}{16pt}% X % X \lispnarrowing = 0.3in X \tolerance = 700 X \hfuzz = 1pt X \contentsrightmargin = 0pt X \deftypemargin = 0pt X \defbodyindent = .5cm X % X \let\smalldisplay = \smalldisplayx X \let\smallexample = \smalllispx X \let\smallformat = \smallformatx X \let\smalllisp = \smalllispx }} X % Use @afourpaper to print on European A4 paper. \def\afourpaper{{\globaldefs = 1 X \setleading{12pt}% X \parskip = 3pt plus 2pt minus 1pt X % X \internalpagesizes{53\baselineskip}{160mm}{\voffset}{4mm}{\bindingoffset}{44pt}% X % X \tolerance = 700 X \hfuzz = 1pt }} X % A specific text layout, 24x15cm overall, intended for A4 paper. Top margin % 29mm, hence bottom margin 28mm, nominal side margin 3cm. \def\afourlatex{{\globaldefs = 1 X \setleading{13.6pt}% X % X \afourpaper X \internalpagesizes{237mm}{150mm}{3.6mm}{3.6mm}{3mm}{7mm}% X % X \globaldefs = 0 }} X % Use @afourwide to print on European A4 paper in wide format. \def\afourwide{% X \afourpaper X \internalpagesizes{9.5in}{6.5in}{\hoffset}{\normaloffset}{\bindingoffset}{7mm}% X % X \globaldefs = 0 } X % @pagesizes TEXTHEIGHT[,TEXTWIDTH] % Perhaps we should allow setting the margins, \topskip, \parskip, % and/or leading, also. Or perhaps we should compute them somehow. % \def\pagesizes{\parsearg\pagesizesxxx} \def\pagesizesxxx#1{\pagesizesyyy #1,,\finish} \def\pagesizesyyy#1,#2,#3\finish{{% X \setbox0 = \hbox{\ignorespaces #2}\ifdim\wd0 > 0pt \hsize=#2\relax \fi X \globaldefs = 1 X % X \parskip = 3pt plus 2pt minus 1pt X \setleading{13.2pt}% X % X \internalpagesizes{#1}{\hsize}{\voffset}{\normaloffset}{\bindingoffset}{44pt}% }} X % Set default to letter. % \letterpaper X X \message{and turning on texinfo input format.} X % Define macros to output various characters with catcode for normal text. \catcode`\"=\other \catcode`\~=\other \catcode`\^=\other \catcode`\_=\other \catcode`\|=\other \catcode`\<=\other \catcode`\>=\other \catcode`\+=\other \catcode`\$=\other \def\normaldoublequote{"} \def\normaltilde{~} \def\normalcaret{^} \def\normalunderscore{_} \def\normalverticalbar{|} \def\normalless{<} \def\normalgreater{>} \def\normalplus{+} \def\normaldollar{$} X % This macro is used to make a character print one way in ttfont % where it can probably just be output, and another way in other fonts, % where something hairier probably needs to be done. % % #1 is what to print if we are indeed using \tt; #2 is what to print % otherwise. Since all the Computer Modern typewriter fonts have zero % interword stretch (and shrink), and it is reasonable to expect all % typewriter fonts to have this, we can check that font parameter. % \def\ifusingtt#1#2{\ifdim \fontdimen3\font=0pt #1\else #2\fi} X % Same as above, but check for italic font. Actually this also catches % non-italic slanted fonts since it is impossible to distinguish them from % italic fonts. But since this is only used by $ and it uses \sl anyway % this is not a problem. \def\ifusingit#1#2{\ifdim \fontdimen1\font>0pt #1\else #2\fi} X % Turn off all special characters except @ % (and those which the user can use as if they were ordinary). % Most of these we simply print from the \tt font, but for some, we can % use math or other variants that look better in normal text. X \catcode`\"=\active \def\activedoublequote{{\tt\char34}} \let"=\activedoublequote \catcode`\~=\active \def~{{\tt\char126}} \chardef\hat=`\^ \catcode`\^=\active \def^{{\tt \hat}} X \catcode`\_=\active \def_{\ifusingtt\normalunderscore\_} % Subroutine for the previous macro. \def\_{\leavevmode \kern.06em \vbox{\hrule width.3em height.1ex}} X \catcode`\|=\active \def|{{\tt\char124}} \chardef \less=`\< \catcode`\<=\active \def<{{\tt \less}} \chardef \gtr=`\> \catcode`\>=\active \def>{{\tt \gtr}} \catcode`\+=\active \def+{{\tt \char 43}} \catcode`\$=\active \def${\ifusingit{{\sl\$}}\normaldollar} %\catcode 27=\active %\def^^[{$\diamondsuit$} X % Set up an active definition for =, but don't enable it most of the time. {\catcode`\==\active \global\def={{\tt \char 61}}} X \catcode`+=\active \catcode`\_=\active X % If a .fmt file is being used, characters that might appear in a file % name cannot be active until we have parsed the command line. % So turn them off again, and have \everyjob (or @setfilename) turn them on. % \otherifyactive is called near the end of this file. \def\otherifyactive{\catcode`+=\other \catcode`\_=\other} X \catcode`\@=0 X % \rawbackslashxx output one backslash character in current font \global\chardef\rawbackslashxx=`\\ %{\catcode`\\=\other %@gdef@rawbackslashxx{\}} X % \rawbackslash redefines \ as input to do \rawbackslashxx. {\catcode`\\=\active @gdef@rawbackslash{@let\=@rawbackslashxx }} X % \normalbackslash outputs one backslash in fixed width font. \def\normalbackslash{{\tt\rawbackslashxx}} X % \catcode 17=0 % Define control-q \catcode`\\=\active X % Used sometimes to turn off (effectively) the active characters % even after parsing them. @def@turnoffactive{@let"=@normaldoublequote @let\=@realbackslash @let~=@normaltilde @let^=@normalcaret @let_=@normalunderscore @let|=@normalverticalbar @let<=@normalless @let>=@normalgreater @let+=@normalplus @let$=@normaldollar} X @def@normalturnoffactive{@let"=@normaldoublequote @let\=@normalbackslash @let~=@normaltilde @let^=@normalcaret @let_=@normalunderscore @let|=@normalverticalbar @let<=@normalless @let>=@normalgreater @let+=@normalplus @let$=@normaldollar} X % Make _ and + \other characters, temporarily. % This is canceled by @fixbackslash. @otherifyactive X % If a .fmt file is being used, we don't want the `\input texinfo' to show up. % That is what \eatinput is for; after that, the `\' should revert to printing % a backslash. % @gdef@eatinput input texinfo{@fixbackslash} @global@let\ = @eatinput X % On the other hand, perhaps the file did not have a `\input texinfo'. Then % the first `\{ in the file would cause an error. This macro tries to fix % that, assuming it is called before the first `\' could plausibly occur. % Also back turn on active characters that might appear in the input % file name, in case not using a pre-dumped format. % @gdef@fixbackslash{% X @ifx\@eatinput @let\ = @normalbackslash @fi X @catcode`+=@active X @catcode`@_=@active } X % Say @foo, not \foo, in error messages. @escapechar = `@@ X % These look ok in all fonts, so just make them not special. @catcode`@& = @other @catcode`@# = @other @catcode`@% = @other X @c Set initial fonts. @textfonts @rm X X @c Local variables: @c eval: (add-hook 'write-file-hooks 'time-stamp) @c page-delimiter: "^\\\\message" @c time-stamp-start: "def\\\\texinfoversion{" @c time-stamp-format: "%:y-%02m-%02d.%H" @c time-stamp-end: "}" @c End: SHAR_EOF $shar_touch -am 0507115499 'tar-1.13/doc/texinfo.tex' && chmod 0444 'tar-1.13/doc/texinfo.tex' || $echo 'restore of' 'tar-1.13/doc/texinfo.tex' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/texinfo.tex:' 'MD5 check failed' 839cda950ce6188656e829d325f94fda tar-1.13/doc/texinfo.tex SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/texinfo.tex'`" test 194985 -eq "$shar_count" || $echo 'tar-1.13/doc/texinfo.tex:' 'original size' '194985,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/version.texi ============== if test -f 'tar-1.13/doc/version.texi' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/version.texi' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/version.texi' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/doc/version.texi' && @set UPDATED 16 June 1999 @set EDITION 1.13 @set VERSION 1.13 SHAR_EOF $shar_touch -am 0702170499 'tar-1.13/doc/version.texi' && chmod 0664 'tar-1.13/doc/version.texi' || $echo 'restore of' 'tar-1.13/doc/version.texi' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'tar-1.13/doc/version.texi:' 'MD5 check failed' 716d2198e7725f86474e5ce0e934a35f tar-1.13/doc/version.texi SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'tar-1.13/doc/version.texi'`" test 62 -eq "$shar_count" || $echo 'tar-1.13/doc/version.texi:' 'original size' '62,' 'current size' "$shar_count!" fi fi # ============= tar-1.13/doc/tar.texi ============== if test -f 'tar-1.13/doc/tar.texi' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'tar-1.13/doc/tar.texi' '(file already exists)' else $echo 'x -' extracting 'tar-1.13/doc/tar.texi' '(text)' sed 's/^X//' << 'SHAR_EOF' > 'tar-1.13/doc/tar.texi' && \input texinfo @c %**start of header @setfilename tar.info @settitle GNU tar @finalout @smallbook @c %**end of header X @c ====================================================================== @c This document has three levels of rendition: PUBLISH, DISTRIB or PROOF, @c as decided by @set symbols. The PUBLISH rendition does not show @c notes or marks asking for revision. Most users will prefer having more @c information, even if this information is not fully revised for adequacy, @c so DISTRIB is the default for tar distributions. The PROOF rendition @c show all marks to the point of ugliness, but is nevertheless useful to @c those working on the manual itself. @c ====================================================================== X @ifclear PUBLISH @ifclear DISTRIB @ifclear PROOF @set DISTRIB @end ifclear @end ifclear @end ifclear X @ifset PUBLISH @set RENDITION The book, version @end ifset X @ifset DISTRIB @set RENDITION FTP release, version @end ifset X @ifset PROOF @set RENDITION Proof reading version @end ifset X @c --------------------------------------------------------------------- @c The @FIXME's, @UNREVISED and @c comments are part Fran@,{c}ois's work @c plan. These annotations are somewhat precious to him; he asks that I @c do not alter them inconsiderately. Much work is needed for GNU tar @c internals (the sources, the programs themselves). Revising the @c adequacy of the manual while revising the sources, and cleaning them @c both at the same time, seems to him like a good way to proceed. @c --------------------------------------------------------------------- X @c Output marks for nodes needing revision, but not in PUBLISH rendition. X @macro UNREVISED @ifclear PUBLISH @quotation @emph{(This message will disappear, once this node revised.)} @end quotation @end ifclear @end macro X @c Output various FIXME information only in PROOF rendition. X @macro FIXME{string} @allow-recursion @quote-arg @ifset PROOF @strong{} \string\ @strong{} @end ifset X @end macro X @macro FIXME-ref{string} @quote-arg @ifset PROOF @strong{} \string\ @strong{} @end ifset X @end macro X @macro FIXME-pxref{string} @quote-arg @ifset PROOF @strong{} \string\ @strong{} @end ifset X @end macro X @macro FIXME-xref{string} @quote-arg @ifset PROOF @strong{} \string\ @strong{} @end ifset X @end macro X @c @macro option{entry} @c @quote-arg @c @opindex{--\entry\} @c @value{\entry\} @c @end macro X @set op-absolute-names @kbd{--absolute-names} (@kbd{-P}) @set ref-absolute-names @ref{absolute} @set xref-absolute-names @xref{absolute} @set pxref-absolute-names @pxref{absolute} X @set op-after-date @kbd{--after-date=@var{date}} (@kbd{--newer=@var{date}}, @kbd{-N @var{date}}) @set ref-after-date @ref{after} @set xref-after-date @xref{after} @set pxref-after-date @pxref{after} X @set op-append @kbd{--append} (@kbd{-r}) @set ref-append @ref{add} @set xref-append @xref{add} @set pxref-append @pxref{add} X @set op-atime-preserve @kbd{--atime-preserve} @set ref-atime-preserve @ref{Attributes} @set xref-atime-preserve @xref{Attributes} @set pxref-atime-preserve @pxref{Attributes} X @set op-backup @kbd{--backup} @set ref-backup @ref{Backup options} @set xref-backup @xref{Backup options} @set pxref-backup @pxref{Backup options} X @set op-block-number @kbd{--block-number} (@kbd{-R}) @set ref-block-number @ref{verbose} @set xref-block-number @xref{verbose} @set pxref-block-number @pxref{verbose} X @set op-blocking-factor @kbd{--blocking-factor=@var{512-size}} (@kbd{-b @var{512-size}}) @set ref-blocking-factor @ref{Blocking Factor} @set xref-blocking-factor @xref{Blocking Factor} @set pxref-blocking-factor @pxref{Blocking Factor} X @set op-checkpoint @kbd{--checkpoint} @set ref-checkpoint @ref{verbose} @set xref-checkpoint @xref{verbose} @set pxref-checkpoint @pxref{verbose} X @set op-compare @kbd{--compare} (@kbd{--diff}, @kbd{-d}) @set ref-compare @ref{compare} @set xref-compare @xref{compare} @set pxref-compare @pxref{compare} X @set op-compress @kbd{--compress} (@kbd{--uncompress}, @kbd{-Z}) @set ref-compress @ref{gzip} @set xref-compress @xref{gzip} @set pxref-compress @pxref{gzip} X @set op-concatenate @kbd{--concatenate} (@kbd{--catenate}, @kbd{-A}) @set ref-concatenate @ref{concatenate} @set xref-concatenate @xref{concatenate} @set pxref-concatenate @pxref{concatenate} X @set op-create @kbd{--create} (@kbd{-c}) @set ref-create @ref{create} @set xref-create @xref{create} @set pxref-create @pxref{create} X @set op-delete @kbd{--delete} @set ref-delete @ref{delete} @set xref-delete @xref{delete} @set pxref-delete @pxref{delete} X @set op-dereference @kbd{--dereference} (@kbd{-h}) @set ref-dereference @ref{dereference} @set xref-dereference @xref{dereference} @set pxref-dereference @pxref{dereference} X @set op-directory @kbd{--directory=@var{directory}} (@kbd{-C @var{directory}}) @set ref-directory @ref{directory} @set xref-directory @xref{directory} @set pxref-directory @pxref{directory} X @set op-exclude @kbd{--exclude=@var{pattern}} @set ref-exclude @ref{exclude} @set xref-exclude @xref{exclude} @set pxref-exclude @pxref{exclude} X @set op-exclude-from @kbd{--exclude-from=@var{file-of-patterns}} (@kbd{-X @var{file-of-patterns}}) @set ref-exclude-from @ref{exclude} @set xref-exclude-from @xref{exclude} @set pxref-exclude-from @pxref{exclude} X @set op-extract @kbd{--extract} (@kbd{--get}, @kbd{-x}) @set ref-extract @ref{extract} @set xref-extract @xref{extract} @set pxref-extract @pxref{extract} X @set op-file @kbd{--file=@var{archive-name}} (@kbd{-f @var{archive-name}}) @set ref-file @ref{file} @set xref-file @xref{file} @set pxref-file @pxref{file} X @set op-files-from @kbd{--files-from=@var{file-of-names}} (@kbd{-T @var{file-of-names}}) @set ref-files-from @ref{files} @set xref-files-from @xref{files} @set pxref-files-from @pxref{files} X @set op-force-local @kbd{--force-local} @set ref-force-local @ref{file} @set xref-force-local @xref{file} @set pxref-force-local @pxref{file} X @set op-group @kbd{--group=@var{group}} @set ref-group @ref{Option Summary} @set xref-group @xref{Option Summary} @set pxref-group @pxref{Option Summary} X @set op-gzip @kbd{--gzip} (@kbd{--gunzip}, @kbd{--ungzip}, @kbd{-z}) @set ref-gzip @ref{gzip} @set xref-gzip @xref{gzip} @set pxref-gzip @pxref{gzip} X @set op-help @kbd{--help} @set ref-help @ref{help} @set xref-help @xref{help} @set pxref-help @pxref{help} X @set op-ignore-failed-read @kbd{--ignore-failed-read} @set ref-ignore-failed-read @ref{Reading} @set xref-ignore-failed-read @xref{Reading} @set pxref-ignore-failed-read @pxref{Reading} X @set op-ignore-zeros @kbd{--ignore-zeros} (@kbd{-i}) @set ref-ignore-zeros @ref{Reading} @set xref-ignore-zeros @xref{Reading} @set pxref-ignore-zeros @pxref{Reading} X @set op-incremental @kbd{--incremental} (@kbd{-G}) @set ref-incremental @ref{Inc Dumps} @set xref-incremental @xref{Inc Dumps} @set pxref-incremental @pxref{Inc Dumps} X @set op-info-script @kbd{--info-script=@var{script-name}} (@kbd{--new-volume-script=@var{script-name}}, @kbd{-F @var{script-name}}) @set ref-info-script @ref{Multi-Volume Archives} @set xref-info-script @xref{Multi-Volume Archives} @set pxref-info-script @pxref{Multi-Volume Archives} X @set op-interactive @kbd{--interactive} (@kbd{-w}) @set ref-interactive @ref{interactive} @set xref-interactive @xref{interactive} @set pxref-interactive @pxref{interactive} X @set op-keep-old-files @kbd{--keep-old-files} (@kbd{-k}) @set ref-keep-old-files @ref{Writing} @set xref-keep-old-files @xref{Writing} @set pxref-keep-old-files @pxref{Writing} X @set op-label @kbd{--label=@var{archive-label}} (@kbd{-V @var{archive-label}}) @set ref-label @ref{label} @set xref-label @xref{label} @set pxref-label @pxref{label} X @set op-list @kbd{--list} (@kbd{-t}) @set ref-list @ref{list} @set xref-list @xref{list} @set pxref-list @pxref{list} X @set op-listed-incremental @kbd{--listed-incremental=@var{snapshot-file}} (@kbd{-g @var{snapshot-file}}) @set ref-listed-incremental @ref{Inc Dumps} @set xref-listed-incremental @xref{Inc Dumps} @set pxref-listed-incremental @pxref{Inc Dumps} X @set op-mode @kbd{--mode=@var{permissions}} @set ref-mode @ref{Option Summary} @set xref-mode @xref{Option Summary} @set pxref-mode @pxref{Option Summary} X @set op-multi-volume @kbd{--multi-volume} (@kbd{-M}) @set ref-multi-volume @ref{Multi-Volume Archives} @set xref-multi-volume @xref{Multi-Volume Archives} @set pxref-multi-volume @pxref{Multi-Volume Archives} X @set op-newer-mtime @kbd{--newer-mtime=@var{date}} @set ref-newer-mtime @ref{after} @set xref-newer-mtime @xref{after} @set pxref-newer-mtime @pxref{after} X @set op-no-recursion @kbd{--no-recursion} @set ref-no-recursion @ref{recurse} @set xref-no-recursion @xref{recurse} @set pxref-no-recursion @pxref{recurse} X @set op-null @kbd{--null} @set ref-null @ref{files} @set xref-null @xref{files} @set pxref-null @pxref{files} X @set op-numeric-owner @kbd{--numeric-owner} @set ref-numeric-owner @ref{Attributes} @set xref-numeric-owner @xref{Attributes} @set pxref-numeric-owner @pxref{Attributes} X @set op-old-archive @kbd{--old-archive} (@kbd{-o}) @set ref-old-archive @ref{old} @set xref-old-archive @xref{old} @set pxref-old-archive @pxref{old} X @set op-one-file-system @kbd{--one-file-system} (@kbd{-l}) @set ref-one-file-system @ref{one} @set xref-one-file-system @xref{one} @set pxref-one-file-system @pxref{one} X @set op-owner @kbd{--owner=@var{user}} @set ref-owner @ref{Option Summary} @set xref-owner @xref{Option Summary} @set pxref-owner @pxref{Option Summary} X @set op-posix @kbd{--posix} @set ref-posix @ref{posix} @set xref-posix @xref{posix} @set pxref-posix @pxref{posix} X @set op-preserve @kbd{--preserve} @set ref-preserve @ref{Attributes} @set xref-preserve @xref{Attributes} @set pxref-preserve @pxref{Attributes} X @set op-record-size @kbd{--record-size=@var{size}} @set ref-record-size @ref{Blocking} @set xref-record-size @xref{Blocking} @set pxref-record-size @pxref{Blocking} X @set op-recursive-unlink @kbd{--recursive-unlink} @set ref-recursive-unlink @ref{Writing} @set xref-recursive-unlink @xref{Writing} @set pxref-recursive-unlink @pxref{Writing} X @set op-read-full-records @kbd{--read-full-records} (@kbd{-B}) @set ref-read-full-records @ref{Blocking} @set xref-read-full-records @xref{Blocking} @set pxref-read-full-records @pxref{Blocking} @c FIXME: or should it be Reading, or Blocking Factor X @set op-remove-files @kbd{--remove-files} @set ref-remove-files @ref{Writing} @set xref-remove-files @xref{Writing} @set pxref-remove-files @pxref{Writing} X @set op-rsh-command @kbd{rsh-command=@var{command}} X @set op-same-order @kbd{--same-order} (@kbd{--preserve-order}, @kbd{-s}) @set ref-same-order @ref{Scarce} @set xref-same-order @xref{Scarce} @set pxref-same-order @pxref{Scarce} @c FIXME: or should it be Reading, or Attributes? X @set op-same-owner @kbd{--same-owner} @set ref-same-owner @ref{Attributes} @set xref-same-owner @xref{Attributes} @set pxref-same-owner @pxref{Attributes} X @set op-same-permissions @kbd{--same-permissions} (@kbd{--preserve-permissions}, @kbd{-p}) @set ref-same-permissions @ref{Attributes} @set xref-same-permissions @xref{Attributes} @set pxref-same-permissions @pxref{Attributes} @c FIXME: or should it be Writing? X @set op-show-omitted-dirs @kbd{--show-omitted-dirs} @set ref-show-omitted-dirs @ref{verbose} @set xref-show-omitted-dirs @xref{verbose} @set pxref-show-omitted-dirs @pxref{verbose} X @set op-sparse @kbd{--sparse} (@kbd{-S}) @set ref-sparse @ref{sparse} @set xref-sparse @xref{sparse} @set pxref-sparse @pxref{sparse} X @set op-starting-file @kbd{--starting-file=@var{name}} (@kbd{-K @var{name}}) @set ref-starting-file @ref{Scarce} @set xref-starting-file @xref{Scarce} @set pxref-starting-file @pxref{Scarce} X @set op-suffix @kbd{--suffix=@var{suffix}} @set ref-suffix @ref{Backup options} @set xref-suffix @xref{Backup options} @set pxref-suffix @pxref{Backup options} X @set op-tape-length @kbd{--tape-length=@var{1024-size}} (@kbd{-L @var{1024-size}}) @set ref-tape-length @ref{Using Multiple Tapes} @set xref-tape-length @xref{Using Multiple Tapes} @set pxref-tape-length @pxref{Using Multiple Tapes} X @set op-to-stdout @kbd{--to-stdout} (@kbd{-O}) @set ref-to-stdout @ref{Writing} @set xref-to-stdout @xref{Writing} @set pxref-to-stdout @pxref{Writing} X @set op-totals @kbd{--totals} @set ref-totals @ref{verbose} @set xref-totals @xref{verbose} @set pxref-totals @pxref{verbose} X @set op-touch @kbd{--touch} (@kbd{-m}) @set ref-touch @ref{Writing} @set xref-touch @xref{Writing} @set pxref-touch @pxref{Writing} X @set op-unlink-first @kbd{--unlink-first} (@kbd{-U}) @set ref-unlink-first @ref{Writing} @set xref-unlink-first @xref{Writing} @set pxref-unlink-first @pxref{Writing} X @set op-update @kbd{--update} (@kbd{-u}) @set ref-update @ref{update} @set xref-update @xref{update} @set pxref-update @pxref{update} X @set op-use-compress-prog @kbd{--use-compress-prog=@var{program}} @set ref-use-compress-prog @ref{gzip} @set xref-use-compress-prog @xref{gzip} @set pxref-use-compress-prog @pxref{gzip} X @set op-verbose @kbd{--verbose} (@kbd{-v}) @set ref-verbose @ref{verbose} @set xref-verbose @xref{verbose} @set pxref-verbose @pxref{verbose} X @set op-verify @kbd{--verify} (@kbd{-W}) @set ref-verify @ref{verify} @set xref-verify @xref{verify} @set pxref-verify @pxref{verify} X @set op-version @kbd{--version} @set ref-version @ref{help} @set xref-version @xref{help} @set pxref-version @pxref{help} X @set op-version-control @kbd{--version-control=@var{method}} @set ref-version-control @ref{Backup options} @set xref-version-control @xref{Backup options} @set pxref-version-control @pxref{Backup options} X @set op-volno-file @kbd{--volno-file=@var{file-of-number}} @set ref-volno-file @ref{Using Multiple Tapes} @set xref-volno-file @xref{Using Multiple Tapes} @set pxref-volno-file @pxref{Using Multiple Tapes} X @include version.texi X @c Put everything in one index (arbitrarily chosen to be the concept index). @syncodeindex fn cp @syncodeindex ky cp @syncodeindex pg cp @syncodeindex vr cp X @defindex op @syncodeindex op cp X @ifinfo @format START-INFO-DIR-ENTRY * tar: (tar). Making tape (or disk) archives. END-INFO-DIR-ENTRY @end format @end ifinfo X @ifinfo This file documents GNU @code{tar}, a utility used to store, backup, and transport files. X Copyright (C) 1992, 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. X 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. X @ignore Permission is granted to process this file through TeX and print the results, provided the printed document carries copying permission notice identical to this one except for the removal of this paragraph (this paragraph not being relevant to the printed manual). X @end ignore 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. X 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. @end ifinfo X @setchapternewpage odd X @shorttitlepage GNU @code{tar} X @titlepage @title GNU tar: an archiver tool @subtitle @value{RENDITION} @value{VERSION}, @value{UPDATED} @author Melissa Weisshaus, Jay Fenlason, @author Thomas Bushnell, n/BSG, Amy Gorin @c he said to remove it: Fran@,{c}ois Pinard @c i'm thinking about how the author page *should* look. -mew 2may96 X @page @vskip 0pt plus 1filll Copyright @copyright{} 1992, 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. X 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. X 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. X 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. @end titlepage X @ifinfo X This file documents GNU @code{tar}, which is a utility used to store, backup, and transport files. @code{tar} is a tape (or disk) archiver. This manual documents the release @value{VERSION}. X @end ifinfo X @node Top, Introduction, (dir), (dir) X @menu * Introduction:: * Tutorial:: * tar invocation:: * operations:: * Backups:: * Choosing:: * Date input formats:: * Formats:: * Media:: * Index:: X X --- The Detailed Node Listing --- X Introduction X * Book Contents:: What this Book Contains * Definitions:: Some Definitions * What tar Does:: What @code{tar} Does * Naming tar Archives:: How @code{tar} Archives are Named * posix compliance:: * Authors:: GNU @code{tar} Authors * Reports:: Reporting bugs or suggestions X Tutorial Introduction to @code{tar} X * assumptions:: * stylistic conventions:: * basic tar options:: Basic @code{tar} Operations and Options * frequent operations:: * Two Frequent Options:: * create:: How to Create Archives * list:: How to List Archives * extract:: How to Extract Members from an Archive * going further:: X Two Frequently Used Options X * file tutorial:: * verbose tutorial:: * help tutorial:: X How to Create Archives X * prepare for examples:: * Creating the archive:: * create verbose:: * short create:: * create dir:: X How to List Archives X * list dir:: X How to Extract Members from an Archive X * extracting archives:: * extracting files:: * extract dir:: * failing commands:: X Invoking GNU @code{tar} X * Synopsis:: * using tar options:: * Styles:: * All Options:: * help:: * verbose:: * interactive:: X The Three Option Styles X * Mnemonic Options:: Mnemonic Option Style * Short Options:: Short Option Style * Old Options:: Old Option Style * Mixing:: Mixing Option Styles X All @code{tar} Options X * Operation Summary:: * Option Summary:: * Short Option Summary:: X GNU @code{tar} Operations X * Basic tar:: * Advanced tar:: * extract options:: * backup:: * Applications:: * looking ahead:: X Advanced GNU @code{tar} Operations X * Operations:: * current state:: * append:: * update:: * concatenate:: * delete:: * compare:: X How to Add Files to Existing Archives: @code{--append} X * appending files:: Appending Files to an Archive * multiple:: X Updating an Archive X * how to update:: X Options Used by @code{--extract} X * Reading:: Options to Help Read Archives * Writing:: Changing How @code{tar} Writes Files * Scarce:: Coping with Scarce Resources X Options to Help Read Archives X * read full records:: * Ignore Zeros:: * Ignore Failed Read:: X Changing How @code{tar} Writes Files X * Prevention Overwriting:: * Keep Old Files:: * Unlink First:: * Recursive Unlink:: * Modification Times:: * Setting Access Permissions:: * Writing to Standard Output:: * remove files:: X Options to Prevent Overwriting Files X * Keep Old Files:: * Unlink First:: * Recursive Unlink:: X Coping with Scarce Resources X * Starting File:: * Same Order:: X Performing Backups and Restoring Files X * Full Dumps:: Using @code{tar} to Perform Full Dumps * Inc Dumps:: Using @code{tar} to Perform Incremental Dumps * incremental and listed-incremental:: The Incremental Options * Backup Levels:: Levels of Backups * Backup Parameters:: Setting Parameters for Backups and Restoration * Scripted Backups:: Using the Backup Scripts * Scripted Restoration:: Using the Restore Script X Setting Parameters for Backups and Restoration X * backup-specs example:: An Example Text of @file{Backup-specs} * Script Syntax:: Syntax for @file{Backup-specs} X Choosing Files and Names for @code{tar} X * file:: Choosing the Archive's Name * Selecting Archive Members:: * files:: Reading Names from a File * exclude:: Excluding Some Files * Wildcards:: * after:: Operating Only on New Files * recurse:: Descending into Directories * one:: Crossing Filesystem Boundaries X Reading Names from a File X * nul:: X Excluding Some Files X * problems with exclude:: X Crossing Filesystem Boundaries X * directory:: Changing Directory * absolute:: Absolute File Names X Date input formats X * General date syntax:: Common rules. * Calendar date item:: 19 Dec 1994. * Time of day item:: 9:20pm. * Timezone item:: EST, DST, BST, UCT, AHST, ... * Day of week item:: Monday and others. * Relative item in date strings:: next tuesday, 2 years ago. * Pure numbers in date strings:: 19931219, 1440. * Authors of getdate:: Bellovin, Salz, Berets, et al. X Controlling the Archive Format X * Portability:: Making @code{tar} Archives More Portable * Compression:: Using Less Space through Compression * Attributes:: Handling File Attributes * Standard:: The Standard Format * Extensions:: GNU Extensions to the Archive Format * cpio:: Comparison of @code{tar} and @code{cpio} X Making @code{tar} Archives More Portable X * Portable Names:: Portable Names * dereference:: Symbolic Links * old:: Old V7 Archives * posix:: POSIX archives * Checksumming:: Checksumming Problems X Using Less Space through Compression X * gzip:: Creating and Reading Compressed Archives * sparse:: Archiving Sparse Files X Tapes and Other Archive Media X * Device:: Device selection and switching * Remote Tape Server:: * Common Problems and Solutions:: * Blocking:: Blocking * Many:: Many archives on one tape * Using Multiple Tapes:: Using Multiple Tapes * label:: Including a Label in the Archive * verify:: * Write Protection:: X Blocking X * Format Variations:: Format Variations * Blocking Factor:: The Blocking Factor of an Archive X Many Archives on One Tape X * Tape Positioning:: Tape Positions and Tape Marks * mt:: The @code{mt} Utility X Using Multiple Tapes X * Multi-Volume Archives:: Archives Longer than One Tape or Disk * Tape Files:: Tape Files @end menu X @node Introduction, Tutorial, Top, Top @chapter Introduction X Welcome to the GNU @code{tar} manual. GNU @code{tar} is used to create and manipulate files (@dfn{archives}) which are actually collections of many other files; the program provides users with an organized and systematic method for controlling a large amount of data. X @menu * Book Contents:: What this Book Contains * Definitions:: Some Definitions * What tar Does:: What @code{tar} Does * Naming tar Archives:: How @code{tar} Archives are Named * posix compliance:: * Authors:: GNU @code{tar} Authors * Reports:: Reporting bugs or suggestions @end menu X @node Book Contents, Definitions, Introduction, Introduction @ifinfo @heading What this Book Contains @end ifinfo X The first part of this chapter introduces you to various terms that will recur throughout the book. It also tells you who has worked on GNU @code{tar} and its documentation, and where you should send bug reports or comments. X The second chapter is a tutorial (@pxref{Tutorial}) which provides a gentle introduction for people who are new to using @code{tar}. It is meant to be self contained, not requiring any reading from subsequent chapters to make sense. It moves from topic to topic in a logical, progressive order, building on information already explained. X Although the tutorial is paced and structured to allow beginners to learn how to use @code{tar}, it is not intended solely for beginners. The tutorial explains how to use the three most frequently used operations (@samp{create}, @samp{list}, and @samp{extract}) as well as two frequently used options (@samp{file} and @samp{verbose}). The other chapters do not refer to the tutorial frequently; however, if a section discusses something which is a complex variant of a basic concept, there may be a cross reference to that basic concept. (The entire book, including the tutorial, assumes that the reader understands some basic concepts of using a Unix-type operating system; @pxref{Tutorial}.) X The third chapter presents the remaining five operations, and information about using @code{tar} options and option syntax. X @FIXME{this sounds more like a GNU Project Manuals Concept [tm] more than the reality. should think about whether this makes sense to say here, or not.} The other chapters are meant to be used as a reference. Each chapter presents everything that needs to be said about a specific topic. X One of the chapters (@pxref{Date input formats}) exists in its entirety in other GNU manuals, and is mostly self-contained. In addition, one section of this manual (@pxref{Standard}) contains a big quote which is taken directly from @code{tar} sources. X In general, we give both the long and short (abbreviated) option names at least once in each section where the relevant option is covered, so that novice readers will become familiar with both styles. (A few options have no short versions, and the relevant sections will indicate this.) X @node Definitions, What tar Does, Book Contents, Introduction @section Some Definitions X @cindex archive @cindex tar archive The @code{tar} program is used to create and manipulate @code{tar} archives. An @dfn{archive} is a single file which contains the contents of many files, while still identifying the names of the files, their owner(s), and so forth. (In addition, archives record access permissions, user and group, size in bytes, and last modification time. Some archives also record the file names in each archived directory, as well as other file and directory information.) You can use @code{tar} to @dfn{create} a new archive in a specified directory. X @cindex member @cindex archive member @cindex file name @cindex member name The files inside an archive are called @dfn{members}. Within this manual, we use the term @dfn{file} to refer only to files accessible in the normal ways (by @code{ls}, @code{cat}, and so forth), and the term @dfn{member} to refer only to the members of an archive. Similarly, a @dfn{file name} is the name of a file, as it resides in the filesystem, and a @dfn{member name} is the name of an archive member within the archive. X @cindex extraction @cindex unpacking The term @dfn{extraction} refers to the process of copying an archive member (or multiple members) into a file in the filesystem. Extracting all the members of an archive is often called @dfn{extracting the archive}. The term @dfn{unpack} can also be used to refer to the extraction of many or all the members of an archive. Extracting an archive does not destroy the archive's structure, just as creating an archive does not destroy the copies of the files that exist outside of the archive. You may also @dfn{list} the members in a given archive (this is often thought of as ``printing'' them to the standard output, or the command line), or @dfn{append} members to a pre-existing archive. All of these operations can be peformed using @code{tar}. X @node What tar Does, Naming tar Archives, Definitions, Introduction @section What @code{tar} Does X @cindex tar The @code{tar} program provides the ability to create @code{tar} archives, as well as various other kinds of manipulation. For example, you can use @code{tar} on previously created archives to extract files, to store additional files, or to update or list files which were already stored. X Initially, @code{tar} archives were used to store files conveniently on magnetic tape. The name @samp{tar} comes from this use; it stands for @code{t}ape @code{ar}chiver. Despite the utility's name, @code{tar} can direct its output to available devices, files, or other programs (using pipes). @code{tar} may even access remote devices or files (as archives). X @FIXME{the following table entries need a bit of work..} X You can use @code{tar} archives in many ways. We want to stress a few of them: storage, backup, and transportation. X @table @asis @item Storage Often, @code{tar} archives are used to store related files for convenient file transfer over a network. For example, the GNU Project distributes its software bundled into @code{tar} archives, so that all the files relating to a particular program (or set of related programs) can be transferred as a single unit. X A magnetic tape can store several files in sequence. However, the tape has no names for these files; it only knows their relative position on the tape. One way to store several files on one tape and retain their names is by creating a @code{tar} archive. Even when the basic transfer mechanism can keep track of names, as FTP can, the nuisance of handling multiple files, directories, and multiple links makes @code{tar} archives useful. X Archive files are also used for long-term storage. You can think of this as transportation from the present into the future. (It is a science-fiction idiom that you can move through time as well as in space; the idea here is that @code{tar} can be used to move archives in all dimensions, even time!) X @item Backup Because the archive created by @code{tar} is capable of preserving file information and directory structure, @code{tar} is commonly used for performing full and incremental backups of disks. A backup puts a collection of files (possibly pertaining to many users and projects) together on a disk or a tape. This guards against accidental destruction of the information in those files. GNU @code{tar} has special features that allow it to be used to make incremental and full dumps of all the files in a filesystem. X @item Transportation You can create an archive on one system, transfer it to another system, and extract the contents there. This allows you to transport a group of files from one system to another. @end table X @node Naming tar Archives, posix compliance, What tar Does, Introduction @section How @code{tar} Archives are Named X Conventionally, @code{tar} archives are given names ending with @samp{.tar}. This is not necessary for @code{tar} to operate properly, but this manual follows that convention in order to accustom readers to it and to make examples more clear. X @cindex tar file @cindex entry @cindex tar entry Often, people refer to @code{tar} archives as ``@code{tar} files,'' and archive members as ``files'' or ``entries''. For people familiar with the operation of @code{tar}, this causes no difficulty. However, in this manual, we consistently refer to ``archives'' and ``archive members'' to make learning to use @code{tar} easier for novice users. X @node posix compliance, Authors, Naming tar Archives, Introduction @section POSIX Compliance X @noindent @FIXME{must ask franc,ois about this. dan hagerty thinks this might be an issue, but we're not really sure at this time. dan just tried a test case of mixing up options' orders while the variable was set, and there was no problem...} X We make some of our recommendations throughout this book for one reason in addition to what we think of as ``good sense''. The main additional reason for a recommendation is to be compliant with the POSIX standards. If you set the shell environment variable @code{POSIXLY_CORRECT}, GNU @code{tar} will force you to adhere to these standards. Therefore, if this variable is set and you violate one of the POSIX standards in the way you phrase a command, for example, GNU @code{tar} will not allow the command and will signal an error message. You would then have to reorder the options or rephrase the command to comply with the POSIX standards. X There is a chance in the future that, if you set this environment variable, your archives will be forced to comply with POSIX standards, also. No GNU @code{tar} extensions will be allowed. X @node Authors, Reports, posix compliance, Introduction @section GNU @code{tar} Authors X GNU @code{tar} was originally written by John Gilmore, and modified by many people. The GNU enhancements were written by Jay Fenlason, then Joy Kendall, and the whole package has been further maintained by Thomas Bushnell, n/BSG, and finally Fran@,{c}ois Pinard, with the help of numerous and kind users. X We wish to stress that @code{tar} is a collective work, and owes much to all those people who reported problems, offered solutions and other insights, or shared their thoughts and suggestions. An impressive, yet partial list of those contributors can be found in the @file{THANKS} file from the GNU @code{tar} distribution. X @FIXME{i want all of these names mentioned, Absolutely. BUT, i'm not sure i want to spell out the history in this detail, at least not for the printed book. i'm just not sure it needs to be said this way. i'll think about it.} X @FIXME{History is more important, and surely more interesting, than actual names. Quoting names without history would be meaningless. FP} X Jay Fenlason put together a draft of a GNU @code{tar} manual, borrowing notes from the original man page from John Gilmore. This draft has been distributed in @code{tar} versions 1.04 (or even before?) @FIXME{huh? IMO, either we know or we don't; the parenthetical is confusing.} through 1.10, then withdrawn in version 1.11. Thomas Bushnell, n/BSG and Amy Gorin worked on a tutorial and manual for GNU @code{tar}. Fran@,{c}ois Pinard put version 1.11.8 of the manual together by taking information from all these sources and merging them. Melissa Weisshaus finally edited and redesigned the book to create version 1.12. @FIXME{update version number as necessary; i'm being optimistic!} @FIXME{Someone [maybe karl berry? maybe bob chassell? maybe melissa? maybe julie sussman?] needs to properly index the thing.} X For version 1.12, Daniel Hagerty contributed a great deal of technical consulting. In particular, he is the primary author of @ref{Backups}. X @node Reports, , Authors, Introduction @section Reporting bugs or suggestions X @cindex bug reports @cindex reporting bugs If you find problems or have suggestions about this program or manual, please report them to @file{tar-bugs@@gnu.org}. X @node Tutorial, tar invocation, Introduction, Top @chapter Tutorial Introduction to @code{tar} X This chapter guides you through some basic examples of three @code{tar} operations: @samp{--create}, @samp{--list}, and @samp{--extract}. If you already know how to use some other version of @code{tar}, then you may not need to read this chapter. This chapter omits most complicated details about how @code{tar} works. X @menu * assumptions:: * stylistic conventions:: * basic tar options:: Basic @code{tar} Operations and Options * frequent operations:: * Two Frequent Options:: * create:: How to Create Archives * list:: How to List Archives * extract:: How to Extract Members from an Archive * going further:: @end menu X @node assumptions, stylistic conventions, Tutorial, Tutorial @ifinfo @heading Assumptions this Tutorial Makes @end ifinfo X This chapter is paced to allow beginners to learn about @code{tar} slowly. At the same time, we will try to cover all the basic aspects of these three operations. In order to accomplish both of these tasks, we have made certain assumptions about your knowledge before reading this manual, and the hardware you will be using: X @itemize @bullet @item Before you start to work through this tutorial, you should understand what the terms ``archive'' and ``archive member'' mean (@pxref{Definitions}). In addition, you should understand something about how Unix-type operating systems work, and you should know how to use some basic utilities. For example, you should know how to create, list, copy, rename, edit, and delete files and directories; how to change between directories; and how to figure out where you are in the filesystem. You should have some basic understanding of directory structure and how files are named according to which directory they are in. You should understand concepts such as standard output and standard input, what various definitions of the term ``argument'' mean, the differences between relative and absolute path names, and @FIXME{what else?}. X @item This manual assumes that you are working from your own home directory (unless we state otherwise). In this tutorial, you will create a directory to practice @code{tar} commands in. When we show path names, we will assume that those paths are relative to your home directory. For example, my home directory path is @file{/home/fsf/melissa}. All of my examples are in a subdirectory of the directory named by that path name; the subdirectory is called @file{practice}. X @item In general, we show examples of archives which exist on (or can be written to, or worked with from) a directory on a hard disk. In most cases, you could write those archives to, or work with them on any other device, such as a tape drive. However, some of the later examples in the tutorial and next chapter will not work on tape drives. Additionally, working with tapes is much more complicated than working with hard disks. For these reasons, the tutorial does not cover working with tape drives. @xref{Media}, for complete information on using @code{tar} archives with tape drives. X @FIXME{this is a cop out. need to add some simple tape drive info.} @end itemize X @node stylistic conventions, basic tar options, assumptions, Tutorial @ifinfo @heading Stylistic Conventions @end ifinfo X In the examples, @samp{$} represents a typical shell prompt. It precedes lines you should type; to make this more clear, those lines are shown in @kbd{this font}, as opposed to lines which represent the computer's response; those lines are shown in @code{this font}, or sometimes @samp{like this}. When we have lines which are too long to be displayed in any other way, we will show them like this: X @smallexample This is an example of a line which would otherwise not fit in this space. @end smallexample X @FIXME{how often do we use smallexample?} X @node basic tar options, frequent operations, stylistic conventions, Tutorial @section Basic @code{tar} Operations and Options X @code{tar} can take a wide variety of arguments which specify and define the actions it will have on the particular set of files or the archive. The main types of arguments to @code{tar} fall into one of two classes: operations, and options. X Some arguments fall into a class called @dfn{operations}; exactly one of these is both allowed and required for any instance of using @code{tar}; you may @emph{not} specify more than one. People sometimes speak of @dfn{operating modes}. You are in a particular operating mode when you have specified the operation which specifies it; there are eight operations in total, and thus there are eight operating modes. X The other arguments fall into the class known as @dfn{options}. You are not required to specify any options, and you are allowed to specify more than one at a time (depending on the way you are using @code{tar} at that time). Some options are used so frequently, and are so useful for helping you type commands more carefully that they are effectively ``required''. We will discuss them in this chapter. X You can write most of the @code{tar} operations and options in any of three forms: long (mnemonic) form, short form, and old style. Some of the operations and options have no short or ``old'' forms; however, the operations and options which we will cover in this tutorial have corresponding abbreviations. @FIXME{make sure this is still the case, at the end} We will indicate those abbreviations appropriately to get you used to seeing them. (Note that the ``old style'' option forms exist in GNU @code{tar} for compatibility with Unix @code{tar}. We present a full discussion of this way of writing options and operations appears in @ref{Old Options}, and we discuss the other two styles of writing options in @ref{Mnemonic Options} and @ref{Short Options}.) X In the examples and in the text of this tutorial, we usually use the long forms of operations and options; but the ``short'' forms produce the same result and can make typing long @code{tar} commands easier. For example, instead of typing X @example @kbd{tar --create --verbose --file=afiles.tar apple angst aspic} @end example X @noindent you can type @example @kbd{tar -c -v -f afiles.tar apple angst aspic} @end example X @noindent or even @example @kbd{tar -cvf afiles.tar apple angst aspic} @end example X @noindent For more information on option syntax, see @ref{Advanced tar}. In discussions in the text, when we name an option by its long form, we also give the corresponding short option in parentheses. X The term, ``option'', can be confusing at times, since ``operations'' are often lumped in with the actual, @emph{optional} ``options'' in certain general class statements. For example, we just talked about ``short and long forms of options and operations''. However, experienced @code{tar} users often refer to these by shorthand terms such as, ``short and long options''. This term assumes that the ``operations'' are included, also. Context will help you determine which definition of ``options'' to use. X Similarly, the term ``command'' can be confusing, as it is often used in two different ways. People sometimes refer to @code{tar} ``commands''. A @code{tar} @dfn{command} is the entire command line of user input which tells @code{tar} what to do --- including the operation, options, and any arguments (file names, pipes, other commands, etc). However, you will also sometimes hear the term ``the @code{tar} command''. When the word ``command'' is used specifically like this, a person is usually referring to the @code{tar} @emph{operation}, not the whole line. Again, use context to figure out which of the meanings the speaker intends. X @node frequent operations, Two Frequent Options, basic tar options, Tutorial @section The Three Most Frequently Used Operations X Here are the three most frequently used operations (both short and long forms), as well as a brief description of their meanings. The rest of this chapter will cover how to use these operations in detail. We will present the rest of the operations in the next chapter. X @table @kbd @item --create @itemx -c Create a new @code{tar} archive. @item --list @itemx -t List the contents of an archive. @item --extract @itemx -x Extract one or more members from an archive. @end table X @node Two Frequent Options, create, frequent operations, Tutorial @section Two Frequently Used Options X To understand how to run @code{tar} in the three operating modes listed previously, you also need to understand how to use two of the options to @code{tar}: @samp{--file} (which takes an archive file as an argument) and @samp{--verbose}. (You are usually not @emph{required} to specify either of these options when you run @code{tar}, but they can be very useful in making things more clear and helping you avoid errors.) X @menu * file tutorial:: * verbose tutorial:: * help tutorial:: @end menu X @node file tutorial, verbose tutorial, Two Frequent Options, Two Frequent Options @unnumberedsubsec The @samp{--file} Option X @table @kbd @item --file=@var{archive-name} @itemx -f @var{archive-name} Specify the name of an archive file. @end table X You can specify an argument for the @value{op-file} option whenever you use @code{tar}; this option determines the name of the archive file that @code{tar} will work on. X If you don't specify this argument, then @code{tar} will use a default, usually some physical tape drive attached to your machine. If there is no tape drive attached, or the default is not meaningful, then @code{tar} will print an error message. The error message might look roughly like one of the following: X @example tar: can't open /dev/rmt8 : No such device or address tar: can't open /dev/rsmt0 : I/O error @end example X @noindent To avoid confusion, we recommend that you always specfiy an archive file name by using @value{op-file} when writing your @code{tar} commands. For more information on using the @value{op-file} option, see @ref{file}. X @node verbose tutorial, help tutorial, file tutorial, Two Frequent Options @unnumberedsubsec The @samp{--verbose} Option X @table @kbd @item --verbose @itemx -v Show the files being worked on as @code{tar} is running. @end table X @value{op-verbose} shows details about the results of running @code{tar}. This can be especially useful when the results might not be obvious. For example, if you want to see the progress of @code{tar} as it writes files into the archive, you can use the @samp{--verbose} option. In the beginning, you may find it useful to use @samp{--verbose} at all times; when you are more accustomed to @code{tar}, you will likely want to use it at certain times but not at others. We will use @samp{--verbose} at times to help make something clear, and we will give many examples both using and not using @samp{--verbose} to show the differences. X Sometimes, a single instance of @samp{--verbose} on the command line will show a full, @samp{ls} style listing of an archive or files, giving sizes, owners, and similar information. Other times, @samp{--verbose} will only show files or members that the particular operation is operating on at the time. In the latter case, you can use @samp{--verbose} twice in a command to get a listing such as that in the former case. For example, instead of saying X @example @kbd{tar -cvf afiles.tar apple angst aspic} @end example X @noindent above, you might say X @example @kbd{tar -cvvf afiles.tar apple angst aspic} @end example X @noindent This works equally well using short or long forms of options. Using long forms, you would simply write out the mnemonic form of the option twice, like this: X @example $ @kbd{tar --create --verbose --verbose @dots{}} @end example X @noindent Note that you must double the hyphens properly each time. X Later in the tutorial, we will give examples using @w{@samp{--verbose --verbose}}. X @node help tutorial, , verbose tutorial, Two Frequent Options @unnumberedsubsec Getting Help: Using the @code{--help} Option X @table @kbd @item --help X The @samp{--help} option to @code{tar} prints out a very brief list of all operations and option available for the current version of @code{tar} available on your system. @end table X @node create, list, Two Frequent Options, Tutorial @section How to Create Archives @UNREVISED X One of the basic operations of @code{tar} is @value{op-create}, which you use to create a @code{tar} archive. We will explain @samp{--create} first because, in order to learn about the other operations, you will find it useful to have an archive available to practice on. X To make this easier, in this section you will first create a directory containing three files. Then, we will show you how to create an @emph{archive} (inside the new directory). Both the directory, and the archive are specifically for you to practice on. The rest of this chapter and the next chapter will show many examples using this directory and the files you will create: some of those files may be other directories and other archives. X The three files you will archive in this example are called @file{blues}, @file{folk}, and @file{jazz}. The archive is called @file{collection.tar}. X This section will proceed slowly, detailing how to use @samp{--create} in @code{verbose} mode, and showing examples using both short and long forms. In the rest of the tutorial, and in the examples in the next chapter, we will proceed at a slightly quicker pace. This section moves more slowly to allow beginning users to understand how @code{tar} works. X @menu * prepare for examples:: * Creating the archive:: * create verbose:: * short create:: * create dir:: @end menu X @node prepare for examples, Creating the archive, create, create @subsection Preparing a Practice Directory for Examples X To follow along with this and future examples, create a new directory called @file{practice} containing files called @file{blues}, @file{folk} and @file{jazz}. The files can contain any information you like: ideally, they should contain information which relates to their names, and be of different lengths. Our examples assume that @file{practice} is a subdirectory of your home directory. X Now @code{cd} to the directory named @file{practice}; @file{practice} is now your @dfn{working directory}. (@emph{Please note}: Although the full path name of this directory is @file{/@var{homedir}/practice}, in our examples we will refer to this directory as @file{practice}; the @var{homedir} is presumed. X In general, you should check that the files to be archived exist where you think they do (in the working directory) by running @code{ls}. Because you just created the directory and the files and have changed to that directory, you probably don't need to do that this time. X It is very important to make sure there isn't already a file in the working directory with the archive name you intend to use (in this case, @samp{collection.tar}), or that you don't care about its contents. Whenever you use @samp{create}, @code{tar} will erase the current contents of the file named by @value{op-file} if it exists. @code{tar} will not tell you if you are about to overwrite a file unless you specify an option which does this @FIXME{xref to the node for --backup!}. To add files to an existing archive, you need to use a different option, such as @value{op-append}; see @ref{append} for information on how to do this. X @node Creating the archive, create verbose, prepare for examples, create @subsection Creating the Archive X To place the files @file{blues}, @file{folk}, and @file{jazz} into an archive named @file{collection.tar}, use the following command: X @example $ @kbd{tar --create --file=collection.tar blues folk jazz} @end example X The order of the arguments is not very important, @emph{when using long option forms}. You could also say: X @example $ @kbd{tar blues --create folk --file=collection.tar jazz} @end example X @noindent However, you can see that this order is harder to understand; this is why we will list the arguments in the order that makes the commands easiest to understand (and we encourage you to do the same when you use @code{tar}, to avoid errors). X Note that the part of the command which says, @w{@kbd{--file=collection.tar}} is considered to be @emph{one} argument. If you substituted any other string of characters for @kbd{`collection.tar'}, then that string would become the name of the archive file you create. X The order of the options becomes more important when you begin to use short forms. With short forms, if you type commands in the wrong order (even if you type them correctly in all other ways), you may end up with results you don't expect. For this reason, it is a good idea to get into the habit of typing options in the order that makes inherent sense. @xref{short create}, for more information on this. X In this example, you type the command as shown above: @samp{--create} is the operation which creates the new archive (@file{collection.tar}), and @samp{--file} is the option which lets you give it the name you chose. The files, @file{blues}, @file{folk}, and @file{jazz}, are now members of the archive, @file{collection.tar} (they are @dfn{file name arguments} to the @samp{--create} operation) @FIXME{xref here to the discussion of file name args?}. Now that they are are in the archive, they are called @emph{archive members}, not files @FIXME{xref to definitions?}. X When you create an archive, you @emph{must} specify which files you want placed in the archive. If you do not specify any archive members, GNU @code{tar} will complain. X If you now list the contents of the working directory (@kbd{ls}), you will find the archive file listed as well as the files you saw previously: X @example blues folk jazz collection.tar @end example X @noindent Creating the archive @samp{collection.tar} did not destroy the copies of the files in the directory. X Keep in mind that if you don't indicate an operation, @code{tar} will not run and will prompt you for one. If you don't name any files, @code{tar} will complain. You must have write access to the working directory, or else you will not be able to create an archive in that directory. X @emph{Caution}: Do not attempt to use @value{op-create} to add files to an existing archive; it will delete the archive and write a new one. Use @value{op-append} instead. @xref{append}. X @node create verbose, short create, Creating the archive, create @subsection Running @samp{--create} with @samp{--verbose} X If you include the @value{op-verbose} option on the command line, @code{tar} will list the files it is acting on as it is working. In verbose mode, the @code{create} example above would appear as: X @example $ @kbd{tar --create --verbose --file=collection.tar blues folk jazz} blues folk jazz @end example X This example is just like the example we showed which did not use @samp{--verbose}, except that @code{tar} generated the remaining lines @iftex (note the different font styles). @end iftex @ifinfo X. @end ifinfo X In the rest of the examples in this chapter, we will frequently use @code{verbose} mode so we can show actions or @code{tar} responses that you would otherwise not see, and which are important for you to understand. X @node short create, create dir, create verbose, create @subsection Short Forms with @samp{create} X As we said before, the @value{op-create} operation is one of the most basic uses of @code{tar}, and you will use it countless times. Eventually, you will probably want to use abbreviated (or ``short'') forms of options. A full discussion of the three different forms that options can take appears in @ref{Styles}; for now, here is what the previous example (including the @value{op-verbose} option) looks like using short option forms: X @example $ @kbd{tar -cvf collection.tar blues folk jazz} blues folk jazz @end example X @noindent As you can see, the system responds the same no matter whether you use long or short option forms. X @FIXME{i don't like how this is worded:} One difference between using short and long option forms is that, although the exact placement of arguments following options is no more specific when using short forms, it is easier to become confused and make a mistake when using short forms. For example, suppose you attempted the above example in the following way: X @example $ @kbd{tar -cfv collection.tar blues folk jazz} @end example X @noindent In this case, @code{tar} will make an archive file called @file{v}, containing the files @file{blues}, @file{folk}, and @file{jazz}, because the @samp{v} is the closest ``file name'' to the @samp{-f} option, and is thus taken to be the chosen archive file name. @code{tar} will try to add a file called @file{collection.tar} to the @file{v} archive file; if the file @file{collection.tar} did not already exist, @code{tar} will report an error indicating that this file does not exist. If the file @file{collection.tar} does already exist (e.g., from a previous command you may have run), then @code{tar} will add this file to the archive. Because the @samp{-v} option did not get registered, @code{tar} will not run under @samp{verbose} mode, and will not report its progress. X The end result is that you may be quite confused about what happened, and possibly overwrite a file. To illustrate this further, we will show you how an example we showed previously would look using short forms. X This example, X @example $ @kbd{tar blues --create folk --file=collection.tar jazz} @end example X @noindent is confusing as it is. When shown using short forms, however, it becomes much more so: X @example $ @kbd{tar blues -c folk -f collection.tar jazz} @end example X @noindent It would be very easy to put the wrong string of characters immediately following the @samp{-f}, but doing that could sacrifice valuable data. X For this reason, we recommend that you pay very careful attention to the order of options and placement of file and archive names, especially when using short option forms. Not having the option name written out mnemonically can affect how well you remember which option does what, and therefore where different names have to be placed. (Placing options in an unusual order can also cause @code{tar} to report an error if you have set the shell environment variable, @code{POSIXLY_CORRECT}; @pxref{posix compliance} for more information on this.) X @node create dir, , short create, create @subsection Archiving Directories X @cindex Archiving Directories @cindex Directories, Archiving You can archive a directory by specifying its directory name as a file name argument to @code{tar}. The files in the directory will be archived relative to the working directory, and the directory will be re-created along with its contents when the archive is extracted. X To archive a directory, first move to its superior directory. If you have followed the previous instructions in this tutorial, you should type: X @example $ @kbd{cd ..} $ @end example X @noindent This will put you into the directory which contains @file{practice}, i.e. your home directory. Once in the superior directory, you can specify the subdirectory, @file{practice}, as a file name argument. To store @file{practice} in the new archive file @file{music.tar}, type: X @example $ @kbd{tar --create --verbose --file=music.tar practice} @end example X @noindent @code{tar} should output: X @example practice/ practice/blues practice/folk practice/jazz practice/collection.tar @end example X Note that the archive thus created is not in the subdirectory @file{practice}, but rather in the current working directory---the directory from which @code{tar} was invoked. Before trying to archive a directory from its superior directory, you should make sure you have write access to the superior directory itself, not only the directory you are trying archive with @code{tar}. For example, you will probably not be able to store your home directory in an archive by invoking @code{tar} from the root directory; @value{xref-absolute-names}. (Note also that @file{collection.tar}, the original archive file, has itself been archived. @code{tar} will accept any file as a file to be archived, regardless of its content. When @file{music.tar} is extracted, the archive file @file{collection.tar} will be re-written into the file system). X If you give @code{tar} a command such as X @example $ @kbd{tar --create --file=foo.tar .} @end example X @noindent @code{tar} will report @samp{tar: foo.tar is the archive; not dumped}. This happens because @code{tar} creates the archive @file{foo.tar} in the current directory before putting any files into it. Then, when @code{tar} attempts to add all the files in the directory @file{.} to the archive, it notices that the file @file{foo.tar} is the same as the archive, and skips it. (It makes no sense to put an archive into itself.) GNU @code{tar} will continue in this case, and create the archive normally, except for the exclusion of that one file. (@emph{Please note:} Other versions of @code{tar} are not so clever; they will enter an infinite loop when this happens, so you should not depend on this behavior unless you are certain you are running GNU @code{tar}. @FIXME{bob doesn't like this sentence, since he does it all the time, and we've been doing it in the editing passes for this manual: In general, make sure that the archive is not inside a directory being dumped.}) X @node list, extract, create, Tutorial @section How to List Archives X Frequently, you will find yourself wanting to determine exactly what a particular archive contains. You can use the @value{op-list} operation to get the member names as they currently appear in the archive, as well as various attributes of the files at the time they were archived. For example, you can examine the archive @file{collection.tar} that you created in the last section with the command, X @example $ @kbd{tar --list --file=collection.tar} @end example X @noindent The output of @code{tar} would then be: X @example blues folk jazz @end example X @FIXME{we hope this will change. if it doesn't, need to show the creation of bfiles somewhere above!!! : } X @noindent The archive @file{bfiles.tar} would list as follows: X @example X./birds baboon X./box @end example X @noindent Be sure to use a @value{op-file} option just as with @value{op-create} to specify the name of the archive. X If you use the @value{op-verbose} option with @samp{--list}, then @code{tar} will print out a listing reminiscent of @w{@samp{ls -l}}, showing owner, file size, and so forth. X If you had used @value{op-verbose} mode, the example above would look like: X @example $ @kbd{tar --list --verbose --file=collection.tar folk} -rw-rw-rw- myself user 62 1990-05-23 10:55 folk @end example X @cindex File name arguments, using @code{--list} with @cindex @code{--list} with file name arguments You can specify one or more individual member names as arguments when using @samp{list}. In this case, @code{tar} will only list the names of members you identify. For example, @w{@kbd{tar --list --file=afiles.tar apple}} would only print @file{apple}. X @FIXME{we hope the relevant aspects of this will change:}Because @code{tar} preserves paths, file names must be specified as they appear in the archive (ie., relative to the directory from which the archive was created). Therefore, it is essential when specifying member names to @code{tar} that you give the exact member names. For example, @w{@kbd{tar --list --file=bfiles birds}} would produce an error message something like @samp{tar: birds: Not found in archive}, because there is no member named @file{birds}, only one named @file{./birds}. While the names @file{birds} and @file{./birds} name the same file, @emph{member} names are compared using a simplistic name comparison, in which an exact match is necessary. @xref{absolute}. X However, @w{@kbd{tar --list --file=collection.tar folk}} would respond with @file{folk}, because @file{folk} is in the archive file @file{collection.tar}. If you are not sure of the exact file name, try listing all the files in the archive and searching for the one you expect to find; remember that if you use @samp{--list} with no file names as arguments, @code{tar} will print the names of all the members stored in the specified archive. X @menu * list dir:: @end menu X @node list dir, , list, list @unnumberedsubsec Listing the Contents of a Stored Directory @UNREVISED X @FIXME{i changed the order of these nodes around and haven't had a chance to play around with this node's example, yet. i have to play with it and see what it actually does for my own satisfaction, even if what it says *is* correct..} X To get information about the contents of an archived directory, use the directory name as a file name argument in conjunction with @value{op-list}. To find out file attributes, include the @value{op-verbose} option. X For example, to find out about files in the directory @file{practice}, in the archive file @file{music.tar}, type: X @example $ @kbd{tar --list --verbose --file=music.tar practice} @end example X @code{tar} responds: X @example drwxrwxrwx myself user 0 1990-05-31 21:49 practice/ -rw-rw-rw- myself user 42 1990-05-21 13:29 practice/blues -rw-rw-rw- myself user 62 1990-05-23 10:55 practice/folk -rw-rw-rw- myself user 40 1990-05-21 13:30 practice/jazz -rw-rw-rw- myself user 10240 1990-05-31 21:49 practice/collection.tar @end example X When you use a directory name as a file name argument, @code{tar} acts on all the files (including sub-directories) in that directory. X @node extract, going further, list, Tutorial @section How to Extract Members from an Archive @UNREVISED @cindex Extraction @cindex Retrieving files from an archive @cindex Resurrecting files from an archive X Creating an archive is only half the job---there is no point in storing files in an archive if you can't retrieve them. The act of retrieving members from an archive so they can be used and manipulated as unarchived files again is called @dfn{extraction}. To extract files from an archive, use the @value{op-extract} operation. As with @value{op-create}, specify the name of the archive with @value{op-file}. Extracting an archive does not modify the archive in any way; you can extract it multiple times if you want or need to. X Using @samp{--extract}, you can extract an entire archive, or specific files. The files can be directories containing other files, or not. As with @value{op-create} and @value{op-list}, you may use the short or the long form of the operation without affecting the performance. X @menu * extracting archives:: * extracting files:: * extract dir:: * failing commands:: @end menu X @node extracting archives, extracting files, extract, extract @subsection Extracting an Entire Archive X To extract an entire archive, specify the archive file name only, with no individual file names as arguments. For example, X @example $ @kbd{tar -xvf collection.tar} @end example X @noindent produces this: X @example -rw-rw-rw- me user 28 1996-10-18 16:31 jazz -rw-rw-rw- me user 21 1996-09-23 16:44 blues -rw-rw-rw- me user 20 1996-09-23 16:44 folk @end example X @node extracting files, extract dir, extracting archives, extract @subsection Extracting Specific Files X To extract specific archive members, give their exact member names as arguments, as printed by @value{op-list}. If you had mistakenly deleted one of the files you had placed in the archive @file{collection.tar} earlier (say, @file{blues}), you can extract it from the archive without changing the archive's structure. It will be identical to the original file @file{blues} that you deleted. @FIXME{check this; will the times, permissions, owner, etc be the same, also?} X First, make sure you are in the @file{practice} directory, and list the files in the directory. Now, delete the file, @samp{blues}, and list the files in the directory again. X You can now extract the member @file{blues} from the archive file @file{collection.tar} like this: X @example $ @kbd{tar --extract --file=collection.tar blues} @end example X @noindent If you list the files in the directory again, you will see that the file @file{blues} has been restored, with its original permissions, creation times, and owner. @FIXME{This is only accidentally true, but not in general. In most cases, one has to be root for restoring the owner, and use a special option for restoring permissions. Here, it just happens that the restoring user is also the owner of the archived members, and that the current @code{umask} is compatible with original permissions.} (These parameters will be identical to those which the file had when you originally placed it in the archive; any changes you may have made before deleting the file from the file system, however, will @emph{not} have been made to the archive member.) The archive file, @samp{collection.tar}, is the same as it was before you extracted @samp{blues}. You can confirm this by running @code{tar} with @value{op-list}. X @FIXME{we hope this will change:}Remember that as with other operations, specifying the exact member name is important. @w{@kbd{tar --extract --file=bfiles.tar birds}} will fail, because there is no member named @file{birds}. To extract the member named @file{./birds}, you must specify @w{@kbd{tar --extract --file=bfiles.tar ./birds}}. To find the exact member names of the members of an archive, use @value{op-list} (@pxref{list}). X If you give the @value{op-verbose} option, then @value{op-extract} will print the names of the archive members as it extracts them. X @node extract dir, failing commands, extracting files, extract @subsection Extracting Files that are Directories X Extracting directories which are members of an archive is similar to extracting other files. The main difference to be aware of is that if the extracted directory has the same name as any directory already in the working directory, then files in the extracted directory will be placed into the directory of the same name. Likewise, if there are files in the pre-existing directory with the same names as the members which you extract, the files from the extracted archive will overwrite the files already in the working directory (and possible subdirectories). This will happen regardless of whether or not the files in the working directory were more recent than those extracted. X However, if a file was stored with a directory name as part of its file name, and that directory does not exist under the working directory when the file is extracted, @code{tar} will create the directory. X We can demonstrate how to use @samp{--extract} to extract a directory file with an example. Change to the @file{practice} directory if you weren't there, and remove the files @file{folk} and @file{jazz}. Then, go back to the parent directory and extract the archive @file{music.tar}. You may either extract the entire archive, or you may extract only the files you just deleted. To extract the entire archive, don't give any file names as arguments after the archive name @file{music.tar}. To extract only the files you deleted, use the following command: X @example $ @kbd{tar -xvf music.tar practice/folk practice/jazz} @end example X @FIXME{need to show tar's response; used verbose above. also, here's a good place to demonstrate the -v -v thing. have to write that up (should be trivial, but i'm too tired!).} X @noindent Because you created the directory with @file{practice} as part of the file names of each of the files by archiving the @file{practice} directory as @file{practice}, you must give @file{practice} as part of the file names when you extract those files from the archive. X @FIXME{IMPORTANT! show the final structure, here. figure out what it will be.} X @node failing commands, , extract dir, extract @subsection Commands That Will Fail X Here are some sample commands you might try which will not work, and why they won't work. X If you try to use this command, X @example $ @kbd{tar -xvf music.tar folk jazz} @end example X @noindent you will get the following response: X @example tar: folk: Not found in archive tar: jazz: Not found in archive $ @end example X @noindent This is because these files were not originally @emph{in} the parent directory @file{..}, where the archive is located; they were in the @file{practice} directory, and their file names reflect this: X @example $ @kbd{tar -tvf music.tar} practice/folk practice/jazz practice/rock @end example X @FIXME{make sure the above works when going through the examples in order...} X @noindent Likewise, if you try to use this command, X @example $ @kbd{tar -tvf music.tar folk jazz} @end example X @noindent you would get a similar response. Members with those names are not in the archive. You must use the correct member names in order to extract the files from the archive. X If you have forgotten the correct names of the files in the archive, use @w{@kbd{tar --list --verbose}} to list them correctly. X @FIXME{more examples, here? hag thinks it's a good idea.} X @node going further, , extract, Tutorial @section Going Further Ahead in this Manual X @FIXME{need to write up a node here about the things that are going to be in the rest of the manual.} X @node tar invocation, operations, Tutorial, Top @chapter Invoking GNU @code{tar} @UNREVISED X This chapter is about how one invokes the GNU @code{tar} command, from the command synopsis (@pxref{Synopsis}). There are numerous options, and many styles for writing them. One mandatory option specifies the operation @code{tar} should perform (@pxref{Operation Summary}), other options are meant to detail how this operation should be performed (@pxref{Option Summary}). Non-option arguments are not always interpreted the same way, depending on what the operation is. X You will find in this chapter everything about option styles and rules for writing them (@pxref{Styles}). On the other hand, operations and options are fully described elsewhere, in other chapters. Here, you will find only synthetic descriptions for operations and options, together with pointers to other parts of the @code{tar} manual. X Some options are so special they are fully described right in this chapter. They have the effect of inhibiting the normal operation of @code{tar} or else, they globally alter the amount of feedback the user receives about what is going on. These are the @value{op-help} and @value{op-version} (@pxref{help}), @value{op-verbose} (@pxref{verbose}) and @value{op-interactive} options (@pxref{interactive}). X @menu * Synopsis:: * using tar options:: * Styles:: * All Options:: * help:: * verbose:: * interactive:: @end menu X @node Synopsis, using tar options, tar invocation, tar invocation @section General Synopsis of @code{tar} X The GNU @code{tar} program is invoked as either one of: X @example @kbd{tar @var{option}@dots{} [@var{name}]@dots{}} @kbd{tar @var{letter}@dots{} [@var{argument}]@dots{} [@var{option}]@dots{} [@var{name}]@dots{}} @end example X The second form is for when old options are being used. X You can use @code{tar} to store files in an archive, to extract them from an archive, and to do other types of archive manipulation. The primary argument to @code{tar}, which is called the @dfn{operation}, specifies which action to take. The other arguments to @code{tar} are either @dfn{options}, which change the way @code{tar} performs an operation, or file names or archive members, which specify the files or members @code{tar} is to act on. X You can actually type in arguments in any order, even if in this manual the options always precede the other arguments, to make examples easier to understand. Further, the option stating the main operation mode (the @code{tar} main command) is usually given first. X Each @var{name} in the synopsis above is interpreted as an archive member name when the main command is one of @value{op-compare}, @value{op-delete}, @value{op-extract}, @value{op-list} or @value{op-update}. When naming archive members, you must give the exact name of the member in the archive, as it is printed by @value{op-list}. For @value{op-append} and @value{op-create}, these @var{name} arguments specify the names of either files or directory hierarchies to place in the archive. These files or hierarchies should already exist in the file system, prior to the execution of the @code{tar} command. X @code{tar} interprets relative file names as being relative to the working directory. @code{tar} will make all file names relative (by removing leading slashes when archiving or restoring files), unless you specify otherwise (using the @value{op-absolute-names} option). @value{xref-absolute-names}, for more information about @value{op-absolute-names}. X If you give the name of a directory as either a file name or a member name, then @code{tar} acts recursively on all the files and directories beneath that directory. For example, the name @file{/} identifies all the files in the filesystem to @code{tar}. X The distinction between file names and archive member names is especially important when shell globbing is used, and sometimes a source of confusion for newcomers. @xref{Wildcards}, for more information about globbing. The problem is that shells may only glob using existing files in the file system. Only @code{tar} itself may glob on archive members, so when needed, you must ensure that wildcard characters reach @code{tar} without being interpreted by the shell first. Using a backslash before @samp{*} or @samp{?}, or putting the whole argument between quotes, is usually sufficient for this. X Even if @var{name}s are often specified on the command line, they can also be read from a text file in the file system, using the @value{op-files-from} option. X If you don't use any file name arguments, @value{op-append}, @value{op-delete} and @value{op-concatenate} will do nothing, while @value{op-create} will usually yield a diagnostic and inhibit @code{tar} execution. The other operations of @code{tar} (@value{op-list}, @value{op-extract}, @value{op-compare}, and @value{op-update}) will act on the entire contents of the archive. X @cindex exit status @cindex return status Besides successful exits, GNU @code{tar} may fail for many reasons. Some reasons correspond to bad usage, that is, when the @code{tar} command is improperly written. Errors may be encountered later, while encountering an error processing the archive or the files. Some errors are recoverable, in which case the failure is delayed until @code{tar} has completed all its work. Some errors are such that it would not meaningful, or at least risky, to continue processing: @code{tar} then aborts processing immediately. All abnormal exits, whether immediate or delayed, should always be clearly diagnosed on @code{stderr}, after a line stating the nature of the error. X GNU @code{tar} returns only a few exit statuses. I'm really aiming simplicity in that area, for now. If you are not using the @value{op-compare} option, zero means that everything went well, besides maybe innocuous warnings. Nonzero means that something went wrong. Right now, as of today, ``nonzero'' is almost always 2, except for remote operations, where it may be 128. X @node using tar options, Styles, Synopsis, tar invocation @section Using @code{tar} Options X GNU @code{tar} has a total of eight operating modes which allow you to perform a variety of tasks. You are required to choose one operating mode each time you employ the @code{tar} program by specifying one, and only one operation as an argument to the @code{tar} command (two lists of four operations each may be found at @ref{frequent operations} and @ref{Operations}). Depending on circumstances, you may also wish to customize how the chosen operating mode behaves. For example, you may wish to change the way the output looks, or the format of the files that you wish to archive may require you to do something special in order to make the archive look right. X You can customize and control @code{tar}'s performance by running @code{tar} with one or more options (such as @value{op-verbose}, which we used in the tutorial). As we said in the tutorial, @dfn{options} are arguments to @code{tar} which are (as their name suggests) optional. Depending on the operating mode, you may specify one or more options. Different options will have different effects, but in general they all change details of the operation, such as archive format, archive name, or level of user interaction. Some options make sense with all operating modes, while others are meaningful only with particular modes. You will likely use some options frequently, while you will only use others infrequently, or not at all. (A full list of options is available in @pxref{All Options}.) X Note that @code{tar} options are case sensitive. For example, the options @samp{-T} and @samp{-t} are different; the first requires an argument for stating the name of a file providing a list of @var{name}s, while the second does not require an argument and is another way to write @value{op-list}. X In addition to the eight operations, there are many options to @code{tar}, and three different styles for writing both: long (mnemonic) form, short form, and old style. These styles are discussed below. Both the options and the operations can be written in any of these three styles. X @FIXME{menu at end of this node. need to think of an actual outline for this chapter; probably do that after stuff from chap. 4 is incorporated.} X @node Styles, All Options, using tar options, tar invocation @section The Three Option Styles X There are three styles for writing operations and options to the command line invoking @code{tar}. The different styles were developed at different times during the history of @code{tar}. These styles will be presented below, from the most recent to the oldest. X Some options must take an argument. (For example, @value{op-file} takes the name of an archive file as an argument. If you do not supply an archive file name, @code{tar} will use a default, but this can be confusing; thus, we recommend that you always supply a specific archive file name.) Where you @emph{place} the arguments generally depends on which style of options you choose. We will detail specific information relevant to each option style in the sections on the different option styles, below. The differences are subtle, yet can often be very important; incorrect option placement can cause you to overwrite a number of important files. We urge you to note these differences, and only use the option style(s) which makes the most sense to you until you feel comfortable with the others. X @FIXME{hag to write a brief paragraph on the option(s) which can optionally take an argument} X @menu * Mnemonic Options:: Mnemonic Option Style * Short Options:: Short Option Style * Old Options:: Old Option Style * Mixing:: Mixing Option Styles @end menu X @node Mnemonic Options, Short Options, Styles, Styles @subsection Mnemonic Option Style X @FIXME{have to decide whether or ot to replace other occurrences of "mnemonic" with "long", or *ugh* vice versa.} X Each option has at least one long (or mnemonic) name starting with two dashes in a row, e.g. @samp{list}. The long names are more clear than their corresponding short or old names. It sometimes happens that a single mnemonic option has many different different names which are synonymous, such as @samp{--compare} and @samp{--diff}. In addition, long option names can be given unique abbreviations. For example, @samp{--cre} can be used in place of @samp{--create} because there is no other mnemonic option which begins with @samp{cre}. (One way to find this out is by trying it and seeing what happens; if a particular abbreviation could represent more than one option, @code{tar} will tell you that that abbreviation is ambiguous and you'll know that that abbreviation won't work. You may also choose to run @samp{tar --help} to see a list of options. Be aware that if you run @code{tar} with a unique abbreviation for the long name of an option you didn't want to use, you are stuck; @code{tar} will perform the command as ordered.) X Mnemonic options are meant to be obvious and easy to remember, and their meanings are generally easier to discern than those of their corresponding short options (see below). For example: X @example $ @kbd{tar --create --verbose --blocking-factor=20 --file=/dev/rmt0} @end example X @noindent gives a fairly good set of hints about what the command does, even for those not fully acquainted with @code{tar}. X Mnemonic options which require arguments take those arguments immediately following the option name; they are introduced by an equal sign. For example, the @samp{--file} option (which tells the name of the @code{tar} archive) is given a file such as @file{archive.tar} as argument by using the notation @samp{--file=archive.tar} for the mnemonic option. X @node Short Options, Old Options, Mnemonic Options, Styles @subsection Short Option Style X Most options also have a short option name. Short options start with a single dash, and are followed by a single character, e.g. @samp{-t} (which is equivalent to @samp{--list}). The forms are absolutely identical in function; they are interchangeable. X The short option names are faster to type than long option names. X Short options which require arguments take their arguments immediately following the option, usually separated by white space. It is also possible to stick the argument right after the short option name, using no intervening space. For example, you might write @w{@samp{-f archive.tar}} or @samp{-farchive.tar} instead of using @samp{--file=archive.tar}. Both @samp{--file=@var{archive-name}} and @w{@samp{-f @var{archive-name}}} denote the option which indicates a specific archive, here named @file{archive.tar}. X Short options' letters may be clumped together, but you are not required to do this (as compared to old options; see below). When short options are clumped as a set, use one (single) dash for them all, e.g. @w{@samp{@code{tar} -cvf}}. Only the last option in such a set is allowed to have an argument@footnote{Clustering many options, the last of which has an argument, is a rather opaque way to write options. Some wonder if GNU @code{getopt} should not even be made helpful enough for considering such usages as invalid.}. X When the options are separated, the argument for each option which requires an argument directly follows that option, as is usual for Unix programs. For example: X @example $ @kbd{tar -c -v -b 20 -f /dev/rmt0} @end example X If you reorder short options' locations, be sure to move any arguments that belong to them. If you do not move the arguments properly, you may end up overwriting files. X @node Old Options, Mixing, Short Options, Styles @subsection Old Option Style @UNREVISED X Like short options, old options are single letters. However, old options must be written together as a single clumped set, without spaces separating them or dashes preceding them@footnote{Beware that if you precede options with a dash, you are announcing the short option style instead of the old option style; short options are decoded differently.}. This set of letters must be the first to appear on the command line, after the @code{tar} program name and some whitespace; old options cannot appear anywhere else. The letter of an old option is exactly the same letter as the corresponding short option. For example, the old option @samp{t} is the same as the short option @samp{-t}, and consequently, the same as the mnemonic option @samp{--list}. So for example, the command @w{@samp{tar cv}} specifies the option @samp{-v} in addition to the operation @samp{-c}. X @FIXME{bob suggests having an uglier example. :-) } X When options that need arguments are given together with the command, all the associated arguments follow, in the same order as the options. Thus, the example given previously could also be written in the old style as follows: X @example $ @kbd{tar cvbf 20 /dev/rmt0} @end example X @noindent Here, @samp{20} is the argument of @samp{-b} and @samp{/dev/rmt0} is the argument of @samp{-f}. X On the other hand, this old style syntax makes it difficult to match option letters with their corresponding arguments, and is often confusing. In the command @w{@samp{tar cvbf 20 /dev/rmt0}}, for example, @samp{20} is the argument for @samp{-b}, @samp{/dev/rmt0} is the argument for @samp{-f}, and @samp{-v} does not have a corresponding argument. Even using short options like in @w{@samp{tar -c -v -b 20 -f /dev/rmt0}} is clearer, putting all arguments next to the option they pertain to. X If you want to reorder the letters in the old option argument, be sure to reorder any corresponding argument appropriately. X This old way of writing @code{tar} options can surprise even experienced users. For example, the two commands: X @example @kbd{tar cfz archive.tar.gz file} @kbd{tar -cfz archive.tar.gz file} @end example X @noindent are quite different. The first example uses @file{archive.tar.gz} as the value for option @samp{f} and recognizes the option @samp{z}. The second example, however, uses @file{z} as the value for option @samp{f}---probably not what was intended. X Old options are kept for compatibility with old versions of @code{tar}. X This second example could be corrected in many ways, among which the following are equivalent: X @example @kbd{tar -czf archive.tar.gz file} @kbd{tar -cf archive.tar.gz -z file} @kbd{tar cf archive.tar.gz -z file} @end example X @FIXME{still could explain this better; it's redundant:} X @cindex option syntax, traditional As far as we know, all @code{tar} programs, GNU and non-GNU, support old options. GNU @code{tar} supports them not only for historical reasons, but also because many people are used to them. For compatibility with Unix @code{tar}, the first argument is always treated as containing command and option letters even if it doesn't start with @samp{-}. Thus, @samp{tar c} is equivalent to @w{@samp{tar -c}:} both of them specify the @value{op-create} command to create an archive. X @node Mixing, , Old Options, Styles @subsection Mixing Option Styles X All three styles may be intermixed in a single @code{tar} command, so long as the rules for each style are fully respected@footnote{Before GNU @code{tar} version 1.11.6, a bug prevented intermixing old style options with mnemonic options in some cases.}. Old style options and either of the modern styles of options may be mixed within a single @code{tar} command. However, old style options must be introduced as the first arguments only, following the rule for old options (old options must appear directly after the @code{tar} command and some whitespace). Modern options may be given only after all arguments to the old options have been collected. If this rule is not respected, a modern option might be falsely interpreted as the value of the argument to one of the old style options. X For example, all the following commands are wholly equivalent, and illustrate the many combinations and orderings of option styles. X @example @kbd{tar --create --file=archive.tar} @kbd{tar --create -f archive.tar} @kbd{tar --create -farchive.tar} @kbd{tar --file=archive.tar --create} @kbd{tar --file=archive.tar -c} @kbd{tar -c --file=archive.tar} @kbd{tar -c -f archive.tar} @kbd{tar -c -farchive.tar} @kbd{tar -cf archive.tar} @kbd{tar -cfarchive.tar} @kbd{tar -f archive.tar --create} @kbd{tar -f archive.tar -c} @kbd{tar -farchive.tar --create} @kbd{tar -farchive.tar -c} @kbd{tar c --file=archive.tar} @kbd{tar c -f archive.tar} @kbd{tar c -farchive.tar} @kbd{tar cf archive.tar} @kbd{tar f archive.tar --create} @kbd{tar f archive.tar -c} @kbd{tar fc archive.tar} @end example X On the other hand, the following commands are @emph{not} equivalent to the previous set: X @example @kbd{tar -f -c archive.tar} @kbd{tar -fc archive.tar} @kbd{tar -fcarchive.tar} @kbd{tar -farchive.tarc} @kbd{tar cfarchive.tar} @end example X @noindent These last examples mean something completely different from what the user intended (judging based on the example in the previous set which uses long options, whose intent is therefore very clear). The first four specify that the @code{tar} archive would be a file named @samp{-c}, @samp{c}, @samp{carchive.tar} or @samp{archive.tarc}, respectively. The first two examples also specify a single non-option, @var{name} argument having the value @samp{archive.tar}. The last example contains only old style option letters (repeating option @samp{c} twice), not all of which are meaningful (eg., @samp{.}, @samp{h}, or @samp{i}), with no argument value. @FIXME{not sure i liked the first sentence of this paragraph..} X @node All Options, help, Styles, tar invocation @section All @code{tar} Options X The coming manual sections contain an alphabetical listing of all @code{tar} operations and options, with brief descriptions and cross references to more in-depth explanations in the body of the manual. They also contain an alphabetically arranged table of the short option forms with their corresponding long option. You can use this table as a reference for deciphering @code{tar} commands in scripts. X @menu * Operation Summary:: * Option Summary:: * Short Option Summary:: @end menu X @node Operation Summary, Option Summary, All Opti