building(vii) building(vii) [1mNAME[0m vii - buffer and display output [1mSITE CONFIGURATION[0m The [1mvii [22mpackage is configured using the [4mconfigure[24m program included in this distribution. The [4mconfigure[24m shell script attempts to guess correct values for various system-dependent variables used during compilation, and creates the [4mMakefile[24m and [4mcommon/config.h[24m files. It also creates a shell script [4mconfig.status[24m that you can run in the future to recreate the current configuration. Normally, you just [4mcd[24m to the directory containing [4mvii[24m's source code and type [1m% [22m./configure [4m...lots[24m [4mof[24m [4moutput...[0m [1m%[0m If you're using [4mcsh[24m on an old version of System V, you might need to type [1m% [22msh configure [4m...lots[24m [4mof[24m [4moutput...[0m [1m%[0m instead to prevent [4mcsh[24m from trying to execute [4mconfigure[24m itself. Running [4mconfigure[24m takes a minute or two. While it is running, it prints some messages that tell what it is doing. If you don't want to see the messages, run [4mconfigure[24m with the [4m--quiet[24m option; for example, [1m% [22m./configure --quiet % To compile the [1mvii [22mpackage in a different directory from the one containing the source code, you must use a version of [4mmake[24m that supports the [4mVPATH[24m [4mvariable,[24m such as [4mGNU[24m [4mmake[24m. [4mcd[24m to the directory where you want the object files and executables to go and run the [4mconfigure[24m script. [4mconfigure[24m automatically checks for the source code in the directory that [4mconfigure[24m is in and in [4m..[24m (the parent directory). If for some reason [4mconfigure[24m is not in the source code directory that you are configuring, then it will report that it can't find the source code. In that case, run [4mconfigure[24m with the option --srcdir=[4mDIR[24m, where [4mDIR[24m is the directory that contains the source code. By default, [4mconfigure[24m will arrange for the [4mmake[24m [4minstall[24m command to install the [1mvii [22mpackage's files in [4m/usr/local/bin[24m, [4m/usr/local/man[24m, etc. You can specify an installation prefix other than [4m/usr/local[24m by giving [4mconfigure[24m the option --prefix=[4mPATH[24m. You can specify separate installation prefixes for architecture- specific files and architecture-independent files. If you give [4mconfigure[24m the option --exec-prefix=[4mPATH[24m the [1mvii [22mpackage will use [4mPATH[0m as the prefix for installing programs and libraries. Data files and documentation will still use the regular prefix. Normally, all files are installed using the same prefix. [4mconfigure[24m ignores any other arguments that you give it. On systems that require unusual options for compilation or linking that the [4mvii[24m package's [4mconfigure[24m script does not know about, you can give [4mconfigure[24m initial values for variables by setting them in the environment. In Bourne-compatible shells, you can do that on the command line like this: [1m$ [22mCC='gcc -traditional' LIBS=-lposix ./configure [4m...lots[24m [4mof[24m [4moutput...[0m [1m$[0m Here are the [4mmake[24m variables that you might want to override with environment variables when running [4mconfigure[24m. Variable: CC C compiler program. The default is [4mcc[24m. Variable: INSTALL Program to use to install files. The default is [4minstall[24m if you have it, [4mcp[24m otherwise. Variable: LIBS Libraries to link with, in the form -l[4mfoo[24m -l[4mbar[24m. The [4mconfigure[24m script will append to this, rather than replace it. If you need to do unusual things to compile the package, the author encourages you to figure out how [4mconfigure[24m could check whether to do them, and mail diffs or instructions to the author so that they can be included in the next release. [1mBUILDING[0m All you should need to do is use the [1m% [22mmake [4m...lots[24m [4mof[24m [4moutput...[0m [1m%[0m command and wait. When this finishes you should see a directory called [4mbin[24m containing two files: [4mvii[24m and [4mtxt2c[24m. [1mvii [4m[22mvii[24m program is a curses based output paginator. [1mtxt2c [22mThe [4mtxt2c[24m program is a utility used to build the [4mvii[24m program; it is not intended for general use and should not be installed. You can remove the program binaries and object files from the source directory by using the [1m% [22mmake clean [4m...lots[24m [4mof[24m [4moutput...[0m [1m%[0m command. To remove all of the above files, and also remove the [4mMakefile[24m and [4mcommon/config.h[24m and [4mconfig.status[24m files, use the [1m% [22mmake distclean [4m...lots[24m [4mof[24m [4moutput...[0m [1m%[0m command. The file [4metc/configure.in[24m is used to create [4mconfigure[24m by a GNU program called [4mautoconf[24m. You only need to know this if you want to regenerate [4mconfigure[24m using a newer version of [4mautoconf[24m. [1mINSTALLING[0m As explained in the [4mSITE[24m [4mCONFIGURATION[24m section, above, the [4mvii[24m package is installed under the [4m/usr/local[24m tree by default. Use the --prefix=[4mPATH[24m option to [4mconfigure[24m if you want some other path. All that is required to install the [4mvii[24m package is to use the [1m% [22mmake install [4m...lots[24m [4mof[24m [4moutput...[0m [1m%[0m command. Control of the directories used may be found in the first few lines of the [4mMakefile[24m file if you want to bypass the [4mconfigure[0m script. [1mGETTING HELP[0m If you need assistance with the [4mvii[24m program, please do not hesitate to contact the author at Peter Miller <millerp@canb.auug.org.au> Any and all feedback is welcome. When reporting problems, please include the version number given by the [1m% [22mvii -version [1mvii version[0m [4m...warranty[24m [4mdisclaimer...[0m [1m%[0m command. Please do not send this example; run the program for the exact version number. In the [4mcommon/main.h[24m file, there is a define of [4mDEBUG[24m in comments. If the comments are removed, extensive debugging is turned on. This causes some performance loss, but performs much run-time checking and adds the [1m-TRace [22mcommand line option. When the [1m-TRace [22moption is followed by one or more file names, it turns on execution traces in those source files. It is best to put this option on the end of the command, so that the names of the files to be traced are not confused with any other filenames or strings on the command line. [1mCOPYRIGHT[0m [4mvii[24m version Copyright (C) Peter Miller The [4mvii[24m package 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. It should be in the [4mLICENSE[24m file included with this distribution. [1mAUTHOR[0m Peter Miller E-Mail: millerp@canb.auug.org.au /\/\* WWW: http://www.canb.auug.org.au/~millerp/ building(vii)