home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / rcs-5.6.0.1.tar.gz / rcs-5.6.0.1.tar / rcs5.6.0.1 / src / README < prev    next >
Text File  |  1993-03-24  |  9KB  |  221 lines

  1. RCS configuration instructions
  2.  
  3.     $Id: README,v 1.5.0.1 1993/03/25 04:24:14 eggert Exp $
  4.  
  5.     Copyright 1991 by Paul Eggert
  6.     Distributed under license by the Free Software Foundation, Inc.
  7.  
  8.     This file is part of RCS.
  9.  
  10.     RCS is free software; you can redistribute it and/or modify it
  11.     under the terms of the GNU General Public License as published
  12.     by the Free Software Foundation; either version 2, or (at your
  13.     option) any later version.
  14.  
  15.     RCS is distributed in the hope that it will be useful, but
  16.     WITHOUT ANY WARRANTY; without even the implied warranty of
  17.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18.     GNU General Public License for more details.
  19.  
  20.     You should have received a copy of the GNU General Public
  21.     License along with RCS; see the file COPYING.  If not, write to
  22.     the Free Software Foundation, 675 Mass Ave, Cambridge, MA
  23.     02139, USA.
  24.  
  25.     Report problems and direct all questions to:
  26.  
  27.         rcs-bugs@cs.purdue.edu
  28.  
  29.  
  30. For Posix and near-Posix hosts, configure by editing Makefile,
  31. commenting out wrong lines and uncommenting right ones.
  32. See ``Makefile notes'' below for advice.
  33.  
  34. After configuring, make conf.h; if this fails,
  35. look in src/conf.error to see what went wrong in the conf.sh shell file.
  36. Check the resulting conf.h for plausibility; see ``conf.h notes'' below.
  37. If conf.h is wrong, and the mistake isn't listed in ``conf.h notes'',
  38. there is a bug in conf.sh; please report it.
  39. You can patch conf.h if you're in a hurry, but it's better to fix it;
  40. look at a.h and conf.error for ideas.
  41. If all else fails, copy conf.heg to conf.h and edit it by hand.
  42. After configuring, make `all'.
  43.  
  44. If all went well, make `install'.
  45. If installation succeeds, make `installtest';
  46. if this fails, make `installdebug' for detailed info.
  47.  
  48. If you want to test RCS before installing it,
  49. you must set RCSPREFIX to be empty, make RCS from scratch,
  50. prefix the src directory to your PATH, and run `sh src/rcstest'.
  51. Be sure to restore RCSPREFIX and rebuild RCS before installing it.
  52.  
  53. If you want to maintain RCS with itself,
  54. preserve the original revision numbers, dates, etc.
  55. by checking the files in with the -k option.
  56.  
  57.  
  58. __________
  59.  
  60. Makefile notes
  61.  
  62. CC is the name of your C compiler.
  63.  
  64. CC_D is a list of extra options for the C preprocessor.
  65. It should include any extra -D and -I options needed on your system.
  66.  
  67. CC_O is the C compiler options that affect just compilation and assembly;
  68. not preprocessing, linking or linting.
  69. If your compiler has the BSD -R option, -R can improve performance by
  70. making all initialized data read-only (not just string literals);
  71. this is not worth worrying about if your compiler also supports `const'.
  72.  
  73. CC_W is the list of C compiler options to enable
  74. warnings about questionable constructs in the RCS source code.
  75.  
  76. COMPAT2 is 1 if you still have version 2 RCS files around.
  77. (Version 2 became obsolete in 1982, so this isn't likely.)
  78. COMPAT2 assures that version 2 RCS files can still be read.
  79. When you have the new RCS installed, rename old version 2 RCS files as follows.
  80. Suppose the working file was `f.c';
  81. rename the RCS file `f.c.v' to `f.c,v', and the RCS file `f.v' to `f.c,v'.
  82. Thus suffixes are no longer dropped and RCS files end in `,v' rather than `.v'.
  83. After all version 2 RCS files have been updated with new versions of ci or rcs,
  84. you can remake RCS with COMPAT2 set to 0.
  85.  
  86. DIFF is the name of your diff program.
  87. If you override DIFF, make sure you rebuild conf.h afterwards;
  88. otherwise you may introduce a security hole.
  89. On some versions of Unix, the standard diff does not support RCS
  90. and you must use something like /usr/lib/rdiff instead;
  91. perhaps you should try GNU diff instead.
  92.  
  93. DIFFPREFIX act likes RCSPREFIX, except it applies to subsidiary diffs,
  94. not to subsidiary RCS commands.  It must be nonempty if setuid is to be used.
  95.  
  96. DIFF_FLAGS are diff's options for RCS format output, probably -n.
  97. If available, also include the -a option for comparing arbitrary files.
  98.  
  99. DIFF_L is 1 if diff understands the -L option for labeling context diff output.
  100.  
  101. DIFF_SUCCESS, DIFF_FAILURE, DIFF_TROUBLE are integer constants
  102. representing diff's exit status when it finds
  103. no differences, some differences, or trouble respectively.
  104. The first two should be EXIT_SUCCESS and EXIT_FAILURE,
  105. but on some hosts they are broken.
  106.  
  107. DIFF3 is the name of the diff3 program.
  108. With GNU diff, this is simply its user-visible diff3 program.
  109. With traditional diff3, this is not the user-visible diff3 program;
  110. instead, it this is the name of the undocumented diff3 auxiliary program,
  111. whose name is /usr/lib/diff3 or /usr/5lib/rdiff3prog or something similar.
  112.  
  113. DIFF3_A is 1 if your diff3 has an -A option, 0 otherwise.
  114. This option is available in GNU diff 2.1 and later; it generates better
  115. quality diff3 output, but RCS is not yet ready for it.
  116.  
  117. DIFF3_BIN is 1 if DIFF3 is the user-visible GNU diff3 program (see DIFF3).
  118. Before setting this to 1, make sure your diff3 understands -a, -L, and and -m;
  119. e.g. the command `echo x | diff3 -m /dev/null /dev/null -' should output `x'.
  120.  
  121. ED is the name of the standard Unix line editor.
  122. It is needed only if DIFF3_BIN is 0.
  123.  
  124. EXECUTABLE_PERMISSIONS are the options given to INSTALL for executable files
  125. on BSD Unix sites.  Watch out for `-g staff' if you don't have a staff group,
  126. or if your installation program doesn't have a -g option.
  127.  
  128. INSTALL is the command that installs commands.
  129.  
  130. LDFLAGS are the loader flags you need, e.g. -i, -n, -s, -x.
  131.  
  132. LDLIBS are the loader libraries you need, e.g. -lbsd, -lBSD, -ljobs, -lPW, -lx.
  133.  
  134. LINK is the command used to link together an executable.
  135.  
  136. LINT is the name and usual arguments of your lint program.
  137.  
  138. OTHER_OBJECT are any other object files you need to link.
  139.  
  140. RCSCOMMANDS is the list of commands to be installed by default.
  141. It doesn't include rcsclean$x, which is still a little experimental.
  142.  
  143. RCSDIR is where the RCS commands will be installed.
  144.  
  145. RCSPREFIX is the prefix for subsidiary RCS commands like ci.
  146. If empty, RCS will search the PATH for these commands;
  147. this lets you move RCS commands after building them, and permits
  148. multiple instances of setuid RCS commands on the same host for different users.
  149. If nonempty, it should be a path followed by /;
  150. this makes RCS look in just one place, and makes execution faster.
  151.  
  152. REMOVE is how to remove a file.
  153.  
  154. SENDMAIL is a comma-separated list of strings that are a command to send mail.
  155. The name of the addressee will be appended as a separate argument,
  156. and the standard input will be the message
  157. (first line `Subject: xxxx', second line empty).
  158. If your host cannot send mail, leave SENDMAIL empty.
  159.  
  160. TESTPREFIX is the prefix for test commands.
  161.  
  162. o is the file name extension your host uses for object files.
  163. It includes the `.'.  It is typically `.o' on Unix hosts.
  164.  
  165. x is the file name extension your host uses for executables.
  166. It includes the `.'.  It is empty on Unix hosts,
  167. which traditionally lack extensions on executables.
  168.  
  169.  
  170. __________
  171.  
  172. conf.h notes
  173.  
  174. See conf.sh for details about the definitions in conf.h.
  175. Comments below cover unusual situations that can require hand patches to conf.h.
  176.  
  177. has_NFS - Set this if the target host might use NFS.
  178. NFS's stateless server model has well-known problems with
  179. the non-idempotent operations link(), rename(), and unlink().
  180. For example, unlink() can run twice on the file server,
  181. causing the client to think that the unlink failed with errno==ENOENT.
  182. has_NFS enables code that works around these problems.
  183.  
  184. const - Some hosts support `const' but complain about it, perhaps because
  185. system headers are wrong.  `#define const /*empty*/' pacifies them.
  186.  
  187. has_rename - This should be 0 in SCO Unix V.3.2.  Its NFS rename() is broken,
  188. but if you run conf.sh in a non-NFS filesystem, conf.sh thinks rename() works.
  189.  
  190. has_seteuid - This should be 1 only if your seteuid lets you switch back and
  191. forth between any pair of users as specified in Posix 1003.1a Draft 5.
  192. One must be root to test this reliably, so conf.sh just guesses.
  193.  
  194. large_memory - This should be 1 if main memory is large enough to hold entire
  195. copies of RCS files, perhaps because virtual memory is available.
  196.  
  197. NAME_MAX - this should be #undef'ed in AT&T SVR4.0 V2.0, which defines NAME_MAX
  198. to be 14 even though longer names are permitted on some filesystems.
  199. If you run conf.sh in a short-name filesystem, conf.sh won't detect this bug.
  200.  
  201. _POSIX_SOURCE must be #defined in a strict Standard C environment,
  202. because otherwise stdio.h cannot define useful names like fileno.
  203. Avoid defining _POSIX_SOURCE if possible,
  204. because it can disable useful non-Posix features in your host.
  205. Perhaps you can remove the need for _POSIX_SOURCE
  206. by supplying an option to your compiler to makes it less strict.
  207.  
  208. text_work_stdio - This option makes sense only on non-Posix hosts that
  209. distinguish between text and binary I/O, e.g. DOS.  Set this option if
  210. you want to use text I/O for working files, but binary I/O for RCS
  211. files.  If set, RCS does not support non-text working files, but RCS
  212. files are portable to other hosts across binary network file systems
  213. like NFS.  If not set, RCS supports non-text working files, but RCS
  214. files are not portable to Posix hosts.
  215.  
  216. TZ_must_be_set - set this to 1 on hosts where gmtime() yields bogus
  217. values unless the TZ environment variable is set.
  218.  
  219. volatile - See `const'.  E.g. `volatile sig_atomic_t' is conforming, but some
  220. buggy hosts complain.  Also, Ultrix 4.0 Mips CC 2.0 has buggy volatile support.
  221.