Blame 00XCONFIG

Packit Service 603f59
Packit Service 603f59
			Cross-configuring Lsof
Packit Service 603f59
Packit Service 603f59
Introduction
Packit Service 603f59
============
Packit Service 603f59
Packit Service 603f59
Lsof cross-configuration is useful when the target dialect or target
Packit Service 603f59
dialect version for which lsof is to be configured and built differs
Packit Service 603f59
from the one on which the Configure operation is done.
Packit Service 603f59
Packit Service 603f59
Marty Leisner <leisner@sdsp.mc.xerox.com> suggested the method
Packit Service 603f59
described here for lsof cross-configuration, and he supplied
Packit Service 603f59
modifications to the Configure script for cross-configuring Linux
Packit Service 603f59
lsof.
Packit Service 603f59
Packit Service 603f59
Marty says:
Packit Service 603f59
Packit Service 603f59
    "I used this to successfully compile (lsof) on the same machine
Packit Service 603f59
     for (Linux) 2.0.30 and 2.1.42.  (I normally don't bring up a
Packit Service 603f59
     2.1.42 machine all the time).  Also it (the 2.0.30 system)
Packit Service 603f59
     doesn't have much storage and compiles on it are slow.
Packit Service 603f59
Packit Service 603f59
     Set LSOF_VERS if it's not the (version of the) current system.
Packit Service 603f59
     (Actually, you should get the version out of include/linux/version.h.)
Packit Service 603f59
Packit Service 603f59
     Define LINUX_KERNEL to (the path) where the kernel sources
Packit Service 603f59
     are (located).  (No longer necessary as of lsof revision 4.53.)
Packit Service 603f59
Packit Service 603f59
     This should work on most systems; they put a kernel in
Packit Service 603f59
     /usr/src/linux, which is the default.
Packit Service 603f59
Packit Service 603f59
     Now I can just do:
Packit Service 603f59
Packit Service 603f59
	LINUX_KERNEL=/some/other/kernel LSOF_VERS=2142 ./Configure linux
Packit Service 603f59
Packit Service 603f59
     Comments?  Its very convenient when running multiple kernels.
Packit Service 603f59
     (It would be (have been) very handy when the structures changed
Packit Service 603f59
     between 2.0.2* and 2.0.30 , or whatever.)
Packit Service 603f59
Packit Service 603f59
     I run multiple OSes at a time (not to mention multiple
Packit Service 603f59
     architectures.  It's very pleasant to cross-build either
Packit Service 603f59
     operating systems or versions."
Packit Service 603f59
Packit Service 603f59
So, the situation is that you have lsof sources on a UNIX dialect
Packit Service 603f59
version, and you want to configure them to build lsof for some
Packit Service 603f59
other version of the same dialect, or perhaps for some other UNIX
Packit Service 603f59
dialect altogether.
Packit Service 603f59
Packit Service 603f59
Packit Service 603f59
The Cross-Configure Method
Packit Service 603f59
==========================
Packit Service 603f59
Packit Service 603f59
The lsof cross-configure method uses environment variables to tell
Packit Service 603f59
the lsof Configure script about the target dialect.  The environment
Packit Service 603f59
variables may specify alternate locations for Configure to examine
Packit Service 603f59
when it determines characteristics of the target, or they may
Packit Service 603f59
specify the values Configure would discover when it examined the
Packit Service 603f59
target's characteristics.
Packit Service 603f59
Packit Service 603f59
Consult each environment variable description for the UNIX dialect
Packit Service 603f59
in which you're interested to see how it affects the operation of
Packit Service 603f59
the Configure script.
Packit Service 603f59
Packit Service 603f59
The number and values of the variables differ by dialect.  Each
Packit Service 603f59
variable begins with an upper case version of the dialect's Configure
Packit Service 603f59
abbreviation -- e.g., AIX for aix or aixgcc, LINUX for linux,
Packit Service 603f59
UW for uw (UnixWare), etc.
Packit Service 603f59
Packit Service 603f59
Of course, the UNIX dialect's version is probably different from
Packit Service 603f59
that of the system on which you're doing the cross-configuration,
Packit Service 603f59
so you will need to specify the new version, too.  For example, to
Packit Service 603f59
configure for FreeBSD 3.0 on a 2.1.7 system, where the standard
Packit Service 603f59
3.0 header files are in /3.0/usr/include and the 3.0 system sources
Packit Service 603f59
are in /3.0/sys, do this:
Packit Service 603f59
Packit Service 603f59
	LSOF_VERS=300 LSOF_INCLUDE=/3.0/usr/include \
Packit Service 603f59
	FREEBSD_SYS=/3.0/sys Configure -n freebsd
Packit Service 603f59
Packit Service 603f59
Packit Service 603f59
General Environment Variables
Packit Service 603f59
=============================
Packit Service 603f59
Packit Service 603f59
There are some environment variables whose names don't begin with
Packit Service 603f59
an upper case rendering of a dialect abbreviation.  Generally they
Packit Service 603f59
apply to all dialects.
Packit Service 603f59
Packit Service 603f59
AFS_VICE        is for AFS configuration.   It need be set only if
Packit Service 603f59
		lsof supports AFS on your dialect and you want to
Packit Service 603f59
		specify an alternate path to the VICE files.
Packit Service 603f59
Packit Service 603f59
		default: /usr/vice
Packit Service 603f59
Packit Service 603f59
LSOF_AR         is the path to and arguments for the library archive
Packit Service 603f59
		application that is used to build the lsof library,
Packit Service 603f59
		liblsof.a.  When this value is placed in the library
Packit Service 603f59
		Makefile as the contents of the AR make string, it is
Packit Service 603f59
		followed by the path to the library and the relative
Packit Service 603f59
		paths of the library module
Packit Service 603f59
Packit Service 603f59
		default: ar cr
Packit Service 603f59
Packit Service 603f59
LSOF_ARCH       is the architecture type string for the system.
Packit Service 603f59
		Usually this is the output of `uname -m`.  Consult
Packit Service 603f59
		the Configure script for details.  The LSOF_ARCH
Packit Service 603f59
		value may have to be quoted if it contains spaces.
Packit Service 603f59
Packit Service 603f59
		default: auto-detection (e.g., from `uname -m`)
Packit Service 603f59
Packit Service 603f59
LSOF_BLDCMT     may be used to introduce a builder's comment into
Packit Service 603f59
		lsof's -v output.  It defaults to the null string,
Packit Service 603f59
		causing no builder's comment to appear in -v output.
Packit Service 603f59
Packit Service 603f59
		default: none
Packit Service 603f59
Packit Service 603f59
LSOF_CC         is the path to the C compiler.  You may need to
Packit Service 603f59
		specify it if your C compiler is in a non-standard
Packit Service 603f59
		place, not found by your path.  If you specify a
Packit Service 603f59
		compiler different from the expected default, you
Packit Service 603f59
		may have to change the compile time flags by
Packit Service 603f59
		specifying new CFGF, CFGL, and DEBUG strings on
Packit Service 603f59
		the make command line.
Packit Service 603f59
Packit Service 603f59
		default: normally cc, but some dialects have other
Packit Service 603f59
			 defaults and some have auto-detection.
Packit Service 603f59
Packit Service 603f59
			 Check the dialect stanza in the lsof Configure
Packit Service 603f59
			 script to see how LSOF_CC is set by default.
Packit Service 603f59
Packit Service 603f59
LSOF_CCV        is the C compiler version.  You should specify it
Packit Service 603f59
		if you have specified a compiler path in LSOF_CC.
Packit Service 603f59
Packit Service 603f59
		default: the lsof Configure script knows how to find
Packit Service 603f59
			 the version number of gcc and some other
Packit Service 603f59
			 dialect-specific compilers.
Packit Service 603f59
Packit Service 603f59
			 Check the dialect stanza in the lsof Configure
Packit Service 603f59
			 script to see how lsof_CCV is set by default.
Packit Service 603f59
Packit Service 603f59
LSOF_CFGF	may be used to specify additional configuration values
Packit Service 603f59
		that will appear in the CFGF string of the Makefile.
Packit Service 603f59
Packit Service 603f59
LSOF_CFGL	may be used to specify additional library specifications
Packit Service 603f59
		that will appear in the CFGL string of the Makefile.
Packit Service 603f59
Packit Service 603f59
LSOF_HOST       may be used to specify a value in lsof's -v output
Packit Service 603f59
		other than the name of the host where lsof was
Packit Service 603f59
		built.  A value of "none" inhibits host name display
Packit Service 603f59
		in -v output.
Packit Service 603f59
Packit Service 603f59
		default: the dialect's host name application -- e.g.,
Packit Service 603f59
			 hostname or uname -n
Packit Service 603f59
Packit Service 603f59
LSOF_INCLUDE    is the path to a tree of header files that is an exact
Packit Service 603f59
		image of the the standard header file tree for the
Packit Service 603f59
		target dialect.  You may need to specify it if you
Packit Service 603f59
		want Configure to test header files in a tree different
Packit Service 603f59
		from /usr/include and compile its test programs with
Packit Service 603f59
		header files from that tree, then you want to compile
Packit Service 603f59
		lsof from the header files in that different, duplicate
Packit Service 603f59
		image tree.
Packit Service 603f59
Packit Service 603f59
		Note: LSOF_INCLUDE should contain a single path
Packit Service 603f59
		without any option flags, such as -I.  It is always
Packit Service 603f59
		supplied to the compiler in CFLAGS following the -I
Packit Service 603f59
		option flag.  If you want to specify other include
Packit Service 603f59
		paths, use LSOF_OPINC.
Packit Service 603f59
Packit Service 603f59
		ADDITIONAL NOTE: all the header files that lsof's
Packit Service 603f59
		Configure tests for optional features and uses to
Packit Service 603f59
		compile test programs must be in LSOF_CONFIGURE.
Packit Service 603f59
		They can't be scattered in the other include path
Packit Service 603f59
		that LSOF_OPINC names.
Packit Service 603f59
Packit Service 603f59
LSOF_LOGNAME    may be used to specify a value in lsof's -v output
Packit Service 603f59
		other than the one in the LOGNAME environment
Packit Service 603f59
		variable for the login name of the person who built
Packit Service 603f59
		lsof.  A value of "none" inhibits login name display
Packit Service 603f59
		in -v output.
Packit Service 603f59
Packit Service 603f59
		default: the LOGNAME environment variable
Packit Service 603f59
Packit Service 603f59
LSOF_MAKE	is the path to the make command.
Packit Service 603f59
Packit Service 603f59
		deafult: the output of `which make`, if it is not NULL;
Packit Service 603f59
			 otherwise the string "make".
Packit Service 603f59
Packit Service 603f59
LSOF_MKC        may be used to specify an alternate method of
Packit Service 603f59
		connecting dialect sources to the top-level lsof
Packit Service 603f59
		directory.  See 00PORTING for more information.
Packit Service 603f59
Packit Service 603f59
		default: ln -s
Packit Service 603f59
Packit Service 603f59
LSOF_OPINC	may be used to specify other include file search
Packit Service 603f59
		paths.  Each must be preceded by the compiler's -I
Packit Service 603f59
		option file and, if there are muliple paths, they
Packit Service 603f59
		must be separated by spaces and the entire set must
Packit Service 603f59
		be enclosed in double quote marks -- e.g.,
Packit Service 603f59
Packit Service 603f59
		LSOF_OPINC="-I/path1 -I/path2 ..."
Packit Service 603f59
Packit Service 603f59
		The optional include paths thus specified will be
Packit Service 603f59
		appended to LSOF_INCLUDE and whatever special
Packit Service 603f59
		include paths the lsof Configure script finds
Packit Service 603f59
		necessary.
Packit Service 603f59
Packit Service 603f59
LSOF_RANLIB	may be used to specify an alternate command for the
Packit Service 603f59
		randomizing of the lsof library.
Packit Service 603f59
Packit Service 603f59
		default: ranlib for most dialects
Packit Service 603f59
			 none for: IBM AIX; HP-UX; SCO OpenServer; Solaris
Packit Service 603f59
				   and SCO|Caldera UnixWare
Packit Service 603f59
Packit Service 603f59
LSOF_SYSINFO    may be used to specify a value in lsof's -v output
Packit Service 603f59
		other than the standard system identification --
Packit Service 603f59
		e.g., output from uname.  A value of "none" inhibits
Packit Service 603f59
		system information display in -v output.
Packit Service 603f59
Packit Service 603f59
		default: the dialect's standard system identification
Packit Service 603f59
			 application output -- e.g., uname, sysinfo
Packit Service 603f59
Packit Service 603f59
LSOF_USER	may be used to specify a value in lsof's -v output
Packit Service 603f59
		other than the one in the USER environment variable
Packit Service 603f59
		for the login name of the person who built lsof.
Packit Service 603f59
		A value of "none" inhibits login name display in
Packit Service 603f59
		-v output.
Packit Service 603f59
Packit Service 603f59
		default: the USER environment variable
Packit Service 603f59
Packit Service 603f59
LSOF_VERS       is the target dialect version number.  It must be
Packit Service 603f59
		stated in the dialect's form -- e.g., FreeBSD 2.0.5
Packit Service 603f59
		is given as 205, Solaris 7 as 70000, etc.  The
Packit Service 603f59
		table, "Abbreviations, Variable Prefixes, and
Packit Service 603f59
		Version Numbers," in this file gives the form for
Packit Service 603f59
		LSOF_VERS for each dialect lsof supports.
Packit Service 603f59
Packit Service 603f59
		default: auto-detection (e.g., from `uname -r`)
Packit Service 603f59
Packit Service 603f59
LSOF_VSTR       is the version string from which LSOF_VERS is
Packit Service 603f59
		derived.  Usually this is the output of `uname -r`
Packit Service 603f59
		or `uname -v`.  Consult the Configure script for
Packit Service 603f59
		details.   The LSOF_VSTR value may have to be quoted
Packit Service 603f59
		if it contains spaces.
Packit Service 603f59
Packit Service 603f59
		default: auto-detection (e.g., output from
Packit Service 603f59
			 `hostname`, `uname -r`, or `uname -v)
Packit Service 603f59
Packit Service 603f59
Packit Service 603f59
Make Strings
Packit Service 603f59
============
Packit Service 603f59
Packit Service 603f59
The CFGF, CFGL, and DEBUG strings can be specified on the make
Packit Service 603f59
command line to change default values placed in the top-level and
Packit Service 603f59
library Makefiles by Configure.  For example, Configure usually
Packit Service 603f59
defines the compiler optimization level to be -O, but you can change
Packit Service 603f59
that with "DEBUG=-g" on the make command -- e.g.,
Packit Service 603f59
Packit Service 603f59
	$ make DEBUG=-g lsof
Packit Service 603f59
Packit Service 603f59
Similarly, the CFGF string contains miscellaneous compile-time
Packit Service 603f59
options, and CFGL contains loader options.  Consult the Makefiles
Packit Service 603f59
generated by Configure for the values it defines by default for
Packit Service 603f59
CFGF and CFGL.
Packit Service 603f59
Packit Service 603f59
As an example, Configure might define CFGL to be "-L./lib -llsof -w"
Packit Service 603f59
for NextStep 3.1; to remove "-w", use this make invocation:
Packit Service 603f59
Packit Service 603f59
	$ make CFGL="-L./lib -llsof"
Packit Service 603f59
Packit Service 603f59
Packit Service 603f59
Abbreviations, Variable Prefixes, and Version Numbers
Packit Service 603f59
=====================================================
Packit Service 603f59
Packit Service 603f59
The following table describes the relationship between Configure
Packit Service 603f59
abbreviations, environment variable prefixes, and lsof UNIX dialect
Packit Service 603f59
version numbers.  The lsof UNIX dialect version number must be
Packit Service 603f59
declared exactly in the listed form when supplied via the LSOF_VERS
Packit Service 603f59
environment variable.
Packit Service 603f59
Packit Service 603f59
				Dialect	   Lsof Version
Packit Service 603f59
   Configure	Variable	Version      Number for
Packit Service 603f59
Abbreviation*	  Prefix	 Number       LSOF_VERS
Packit Service 603f59
Packit Service 603f59
	 aix	     AIX	  3.2.5		   3250
Packit Service 603f59
      aixgcc			  4.1.0		   4100
Packit Service 603f59
				  4.1.4		   4140
Packit Service 603f59
				  4.1.4		   4150
Packit Service 603f59
				  4.2.0		   4200
Packit Service 603f59
				  4.2.1		   4210
Packit Service 603f59
				  4.3		   4300
Packit Service 603f59
				  4.3.1		   4310
Packit Service 603f59
				  4.3.2		   4320
Packit Service 603f59
				  4.3.3		   4330
Packit Service 603f59
				  5.0.x		   5000
Packit Service 603f59
				  5.1.x		   5100
Packit Service 603f59
				  5.2.x		   5200
Packit Service 603f59
				  5.3.x		   5300
Packit Service 603f59
      darwin	  DARWIN	  1.2*		    120
Packit Service 603f59
				  1.3*		    130
Packit Service 603f59
				  1.4*		    140
Packit Service 603f59
				  5.[012]	    500
Packit Service 603f59
				  5.[3-9]	    530
Packit Service 603f59
				  6.x		    600
Packit Service 603f59
				  7.x		    700
Packit Service 603f59
				  8.x		    800
Packit Service 603f59
	  du	      DU	  2.0		  20000
Packit Service 603f59
				  3.0		  30000
Packit Service 603f59
				  3.2		  30200
Packit Service 603f59
				  4.0		  40000
Packit Service 603f59
				  5.0		  50000
Packit Service 603f59
				  5.1		  50100
Packit Service 603f59
     freebsd	 FREEBSD	  1.x		   1000
Packit Service 603f59
				  2.x		   2000
Packit Service 603f59
				  2.0.5		   2005
Packit Service 603f59
				  2.1.x		   2010
Packit Service 603f59
				  2.2.x		   2020
Packit Service 603f59
				  3.x		   30x0
Packit Service 603f59
				  4.x		   40x0
Packit Service 603f59
				  4.1x		   41x0
Packit Service 603f59
				  5.x		   50x0
Packit Service 603f59
				  6.x		   60x0
Packit Service 603f59
				  7.x		   70x0
Packit Service 603f59
				  8.x		   80x0
Packit Service 603f59
				  9.x		   90x0
Packit Service 603f59
	hpux	    HPUX	  9.1		    901
Packit Service 603f59
     hpuxgcc	    HPUX	  9.5		    905
Packit Service 603f59
				  10.0		   1000
Packit Service 603f59
				  10.10		   1010
Packit Service 603f59
				  10.20		   1020
Packit Service 603f59
				  11.00		   1100
Packit Service 603f59
				  11.11		   1111
Packit Service 603f59
      linux	   LINUX	  2.1.x		  21xxx
Packit Service 603f59
				  2.2.x		  22xxx
Packit Service 603f59
				  2.3.x	     	  23xxx
Packit Service 603f59
				  2.4.x		  24xxx
Packit Service 603f59
				  2.6.x		  26xxx
Packit Service 603f59
     netbsd	  NETBSD	  1.2		1002000
Packit Service 603f59
				  1.3		1003000
Packit Service 603f59
				  1.4		1004000
Packit Service 603f59
				  1.5		1005000
Packit Service 603f59
				  1.6		1006000
Packit Service 603f59
				  2.0		2000000
Packit Service 603f59
				  2.99.9        2099009
Packit Service 603f59
				  2.99.10       2099010
Packit Service 603f59
	 ns     NEXTSTEP	  3.1		     31
Packit Service 603f59
    openbsd	 OPENBSD	  1.2		   1020
Packit Service 603f59
				  2.0		   2000
Packit Service 603f59
				  2.1		   2010
Packit Service 603f59
				  2.2		   2020
Packit Service 603f59
				  2.3		   2030
Packit Service 603f59
				  2.4		   2040
Packit Service 603f59
				  2.5		   2050
Packit Service 603f59
				  2.6		   2060
Packit Service 603f59
				  2.7		   2070
Packit Service 603f59
				  2.8		   2080
Packit Service 603f59
				  2.9		   2090
Packit Service 603f59
				  3.0		   3000
Packit Service 603f59
				  3.1		   3010
Packit Service 603f59
				  3.2		   3020
Packit Service 603f59
				  3.3		   3030
Packit Service 603f59
				  3.4		   3040
Packit Service 603f59
				  3.5		   3050
Packit Service 603f59
				  3.6		   3060
Packit Service 603f59
         os     OPENSTEP	  4.x		     4x
Packit Service 603f59
	osr	     OSR	  3.2v2.0	     20
Packit Service 603f59
				  3.2v2.1	     21
Packit Service 603f59
				  3.2v4.0	     40
Packit Service 603f59
				  3.2v4.1	     41
Packit Service 603f59
				  3.2v4.2	     42
Packit Service 603f59
				  3.2v5.0.0	    500
Packit Service 603f59
				  3.2v5.0.2	    502
Packit Service 603f59
				  3.2v5.0.4	    504
Packit Service 603f59
				  3.2v5.0.6	    506
Packit Service 603f59
         ou	      OU	  8.0.0		  80000
Packit Service 603f59
    solaris      SOLARIS	  2.3		  20300
Packit Service 603f59
  solariscc	 SOLARIS	  2.4		  20400
Packit Service 603f59
				  2.5		  20500
Packit Service 603f59
				  2.5.1		  20501
Packit Service 603f59
				  2.6		  20600
Packit Service 603f59
				  7		  70000
Packit Service 603f59
				  8		  80000
Packit Service 603f59
				  9		  90000
Packit Service 603f59
				  10		 100000
Packit Service 603f59
	 uw	      UW	  7.0		  70000
Packit Service 603f59
	 	       		  7.1.0		  70100
Packit Service 603f59
	 	       		  7.1.1		  70101
Packit Service 603f59
	 	       		  7.1.3		  70103
Packit Service 603f59
Packit Service 603f59
* -- The optional Configure abbreviations -- e.g., the ``decosf''
Packit Service 603f59
     and ``digital_unix'' alternatives to ``du'' -- aren't listed
Packit Service 603f59
     here.
Packit Service 603f59
Packit Service 603f59
Packit Service 603f59
Dialect-Specific Environment Variables
Packit Service 603f59
======================================
Packit Service 603f59
Packit Service 603f59
Here are the dialect-specific environment variables, listed
Packit Service 603f59
alphabetically.  The first part of any environment variable will
Packit Service 603f59
be the dialect abbreviation, as specified to Configure, converted
Packit Service 603f59
to upper case characters.  See the `Configure -help` output for a
Packit Service 603f59
listing of the abbreviations.
Packit Service 603f59
Packit Service 603f59
AIX_ARCH		specifies the AIX architecture when the AIX version is
Packit Service 603f59
			5.0 or higher.  A value of "" signifies POWER; "ia64",
Packit Service 603f59
			64 bit x86 (Itanium).
Packit Service 603f59
Packit Service 603f59
			default: none (tested via `uname -a`)
Packit Service 603f59
Packit Service 603f59
AIX_HAS_AFS		specifies the state of AIX ADS support when the AIX
Packit Service 603f59
			version is 4.3.3 or lower.  (Lsof doesn't support AFS
Packit Service 603f59
			above AIX 4.3.3.)  A value of "" allows the Configure
Packit Service 603f59
			script to determine the AFS support state; "no",
Packit Service 603f59
			disables AFS support; and "yes", forces the enabling of
Packit Service 603f59
			AFS support.
Packit Service 603f59
Packit Service 603f59
			default: none (tested via presence of AFS files and the
Packit Service 603f59
				 lsof AFSConfig shell script)
Packit Service 603f59
Packit Service 603f59
AIX_KERNBITS		specifies the kernel bit size, 32 or 64, of the Power
Packit Service 603f59
			architecture AIX 5.x kernel for which lsof was built.
Packit Service 603f59
Packit Service 603f59
			default: determined by the Configure script with a test
Packit Service 603f59
				 program that uses <sys/systemcfg.h> macros.
Packit Service 603f59
Packit Service 603f59
AIX_USHACK		If this environment variable has a value of "Y" or "y",
Packit Service 603f59
			and if the aixgcc Configure abbreviation is selected,
Packit Service 603f59
			the AIX 4.1 and greater gcc user structure hack is
Packit Service 603f59
			activated; any other non-NULL value, it's not set; a
Packit Service 603f59
			NULL value, it's tested by compilation.
Packit Service 603f59
Packit Service 603f59
			default: none (tested by compilation)
Packit Service 603f59
Packit Service 603f59
DARWIN_XNUDIR		If this environment variable has a value, the value is
Packit Service 603f59
			used as the path to the Darwin XNU kernel source code.
Packit Service 603f59
Packit Service 603f59
			default: none (entry requested)
Packit Service 603f59
Packit Service 603f59
DARWIN_XNU_HEADERS	If this environment variable has a value, the value is
Packit Service 603f59
			used as the path to the Darwin XNU kernel header files.
Packit Service 603f59
			This path would match the DSTROOT environment variable
Packit Service 603f59
			used when a "make installhdrs" was executed from the
Packit Service 603f59
			Darwin XNU kernel source directory.
Packit Service 603f59
Packit Service 603f59
			default: none
Packit Service 603f59
Packit Service 603f59
DU_ADVFSV		specifies the DEC OSF/1, Digital UNIX, or Tru64 UNIX
Packit Service 603f59
			ADVFS file system version -- e.g., 200 for 2.0, 400
Packit Service 603f59
			for 4.0, etc.
Packit Service 603f59
Packit Service 603f59
			default: determined via /usr/sbin/setld
Packit Service 603f59
Packit Service 603f59
DU_CDIR			specifies the name of the DEC OSF/1, Digital UNIX, or
Packit Service 603f59
			Tru64 UNIX system configuration directory.
Packit Service 603f59
Packit Service 603f59
			default: first host name component, converted to upper
Packit Service 603f59
				 case
Packit Service 603f59
Packit Service 603f59
DU_SHLIB		specifies the DEC OSF/1, Digital UNIX, or Tru64 UNIX
Packit Service 603f59
			shared library directory path.
Packit Service 603f59
Packit Service 603f59
			default: /usr/shlib
Packit Service 603f59
Packit Service 603f59
DU_SYSDIR		DEC OSF/1, Digital UNIX, or Tru64 UNIX system
Packit Service 603f59
			directory path.
Packit Service 603f59
Packit Service 603f59
			2.x and 3.x default: /sys
Packit Service 603f59
			4.x default: /usr/sys
Packit Service 603f59
Packit Service 603f59
FREEBSD_KERNEL		specifies the path to the FreeBSD kernel for FreeBSD
Packit Service 603f59
			version less than 2.0.
Packit Service 603f59
Packit Service 603f59
			default: /386bsd
Packit Service 603f59
Packit Service 603f59
FREEBSD_SYS		specifies the path to the FreeBSD system source
Packit Service 603f59
			directory.
Packit Service 603f59
Packit Service 603f59
			default: /sys
Packit Service 603f59
Packit Service 603f59
HPUX_BASE		specifies the HP-UX lsof source code base, kmem or
Packit Service 603f59
			pstat, to be used.
Packit Service 603f59
Packit Service 603f59
			default: determined by testing for the
Packit Service 603f59
				 /usr/include/sys/pstat subdirectory
Packit Service 603f59
Packit Service 603f59
HPUX_BOOTFILE		specifies the file in which lsof's Configure script can
Packit Service 603f59
			find kernel information.  This specification may be
Packit Service 603f59
			useful for defining the path to a copy of /stand/vmunix
Packit Service 603f59
			that has been processed by pxdb or q4pxdb.
Packit Service 603f59
Packit Service 603f59
			default: /stand/vmunix
Packit Service 603f59
Packit Service 603f59
HPUX_CCDIR1		specifies the first directory where Configure might
Packit Service 603f59
			find an HP-UX C compiler.  This is ignored when
Packit Service 603f59
			LSOF_CC has been specified.
Packit Service 603f59
Packit Service 603f59
			default: /bin
Packit Service 603f59
Packit Service 603f59
HPUX_CCDIR2		specifies the second directory where Configure might
Packit Service 603f59
			find an HP-UX C compiler.  This is ignored when
Packit Service 603f59
			LSOF_CC has been specified.
Packit Service 603f59
Packit Service 603f59
			default: /usr/ccs/bin
Packit Service 603f59
Packit Service 603f59
HPUX_HASONLINEJFS	If this environment variable has a value of "Y" or "y",
Packit Service 603f59
			the HASONLINEJFS definition will be enabled in the
Packit Service 603f59
			Makefile CFLAGS.  That will cause dnode1.c to use an
Packit Service 603f59
			alternate vx_inode.h header file in the hpux11 sub-
Packit Service 603f59
			directory of dialects/hpux/kmem.
Packit Service 603f59
Packit Service 603f59
			default: determined using nm and grep
Packit Service 603f59
Packit Service 603f59
HPUX_IPC_S_PATCH	If this environment variable has a value of "1", the
Packit Service 603f59
			ipc_s structure of the HP-UX 11 kernel is assumed to
Packit Service 603f59
			have an ipc_ipis member, but it is assumed the ipis_s
Packit Service 603f59
			structure lacks the ipis_msgsqueued member; "2", ipc_s
Packit Service 603f59
			has ipc_ipis, but ipis_s has ipis_msgsqueued; "n" or
Packit Service 603f59
			"N", ipc_s lacks ipc_ipis; any other non-NULL value is
Packit Service 603f59
			considered an error; a NULL value, HPUX_IPC_S_PATCH is
Packit Service 603f59
			determined by testing.
Packit Service 603f59
			
Packit Service 603f59
			default: determined with q4 and grep
Packit Service 603f59
Packit Service 603f59
HPUX_KERNBITS		specifies the number of bits (32 or 64) in the HP-UX
Packit Service 603f59
			11 "basic kernel word.
Packit Service 603f59
Packit Service 603f59
			default: `getconf _SC_KERNEL_BITS`
Packit Service 603f59
Packit Service 603f59
HPUX_LIBC1		specifies the first directory that might contain the
Packit Service 603f59
			HP-UX C library, libc.sl.
Packit Service 603f59
Packit Service 603f59
			default: /usr/lib
Packit Service 603f59
Packit Service 603f59
HPUX_LIBC2		specifies the second directory that might contain the
Packit Service 603f59
			HP-UX C library, libc.sl.
Packit Service 603f59
Packit Service 603f59
			default: /lib
Packit Service 603f59
Packit Service 603f59
HPUX_RNODE3		If this environment variable has a value of "1", the
Packit Service 603f59
			Configure script will define HASRNODE3 in the Makefile
Packit Service 603f59
			CFGF flags.   If it is defined, but not "1", Configure
Packit Service 603f59
			will not define HASRNODE2.
Packit Service 603f59
Packit Service 603f59
			default: determined using `nm -x /stand/vmunix` and
Packit Service 603f59
				 `grep r_fh3 /usr/include/nfs/rnode.h`
Packit Service 603f59
Packit Service 603f59
HPUX_X25DIR		specifies path to the HP-UX X25 directory that contains
Packit Service 603f59
			configuration header files.
Packit Service 603f59
Packit Service 603f59
			default: /etc/conf
Packit Service 603f59
Packit Service 603f59
LINUX_CLIB		specifies the definition of the Linux C library:
Packit Service 603f59
Packit Service 603f59
			default: ""             (standard C library)
Packit Service 603f59
			others: -DGLIBCV=2      (glibc2)
Packit Service 603f59
Packit Service 603f59
LINUX_CONF_CC		specifies the location of the C compiler to use during
Packit Service 603f59
			the running of the Configure script:
Packit Service 603f59
Packit Service 603f59
			default: the value of the LSOF_CC variable, if defined,
Packit Service 603f59
				 or cc
Packit Service 603f59
Packit Service 603f59
LINUX_HASSELINUX	If this environment variable has a value of "Y" or "y",
Packit Service 603f59
			Configure unconditionally activates SELinux support.
Packit Service 603f59
			If it has any other value, Configure unconditionally
Packit Service 603f59
			inhibits SELinux suport.
Packit Service 603f59
Packit Service 603f59
			Default: assumed to be "Y" if <selinux/selinux.h>
Packit Service 603f59
				 exists
Packit Service 603f59
Packit Service 603f59
LINUX_INCL		specifies the path to the header file tree:
Packit Service 603f59
Packit Service 603f59
			default: /usr/include
Packit Service 603f59
Packit Service 603f59
LINUX_LSEEK		If this environment variable has a value of "Y" or "y",
Packit Service 603f59
			Configure uses Makefile.lseek in place of Makefile in
Packit Service 603f59
			order to enable use of the private lseek() function for
Packit Service 603f59
			2.1.x kernels; any other non-NULL value, Makefile.lseek
Packit Service 603f59
			will isn't used; a NULL value, the alternate lseek()
Packit Service 603f59
			need is determined by compilation.
Packit Service 603f59
Packit Service 603f59
			default: determined by test program
Packit Service 603f59
Packit Service 603f59
LINUX_VERSION_CODE	specifies the value of the LINUX_VERSION_CODE in the
Packit Service 603f59
			same decimal form as found in the LINUX_VERSION_CODE
Packit Service 603f59
			#define of /usr/include/linux/version.h:
Packit Service 603f59
Packit Service 603f59
			default: the value of LINUX_VERSION_CODE in
Packit Service 603f59
				 /usr/include/linux/version.h
Packit Service 603f59
Packit Service 603f59
NETBSD_SYS		specifies the path to the NetBSD system source
Packit Service 603f59
			directory.
Packit Service 603f59
Packit Service 603f59
			default: /usr/include
Packit Service 603f59
Packit Service 603f59
NETBSD_UVM		If this environment variable has a value of "Y" or "y",
Packit Service 603f59
			the NetBSD system uses the UVM virtual memory system;
Packit Service 603f59
			any other non-NULL value, it does not; a NULL value,
Packit Service 603f59
			it will be determined by the contents of /etc/mk.conf.
Packit Service 603f59
Packit Service 603f59
			default: tested by grep'ping /etc/mk.conf
Packit Service 603f59
Packit Service 603f59
OPENBSD_SYS		specifies the path to the OpenBSD system source
Packit Service 603f59
			directory.
Packit Service 603f59
Packit Service 603f59
			default: /sys
Packit Service 603f59
Packit Service 603f59
OPENBSD_UVM		If this environment variable has a value of "Y" or "y",
Packit Service 603f59
			the OpenBSD system uses the UVM virtual memory system;
Packit Service 603f59
			any other non-NULL value, it does not; a NULL value,
Packit Service 603f59
			it will be determined by examining /bsd.
Packit Service 603f59
Packit Service 603f59
			default: tested by grep'ping `nm /bsd` output
Packit Service 603f59
Packit Service 603f59
Packit Service 603f59
OSR_CFGF		The value of this environment variable is made the
Packit Service 603f59
			initial value for the compiler flags the lsof Configure
Packit Service 603f59
			script constructs for the Makefile CFGF macro.
Packit Service 603f59
Packit Service 603f59
			default: ""
Packit Service 603f59
Packit Service 603f59
OSR_CFGL		The value of this environment variable is made the
Packit Service 603f59
			initial value for the loader flags the lsof Configure
Packit Service 603f59
			script constructs for the Makefile CFGL macro.
Packit Service 603f59
Packit Service 603f59
			default: ""
Packit Service 603f59
Packit Service 603f59
OSR_STATLSTAT		If this environment variable has a value of "Y" or "y",
Packit Service 603f59
			HAS_STATLSTAT is defined in the Makefile's CFGL string;
Packit Service 603f59
			any other non-NULL value, it's not defined; a NULL
Packit Service 603f59
			value, it is determined with nm and grep.
Packit Service 603f59
Packit Service 603f59
			default: determined with nm and grep
Packit Service 603f59
Packit Service 603f59
Packit Service 603f59
SOLARIS_23P101318	If this environment variable has a non-NULL value, the
Packit Service 603f59
			value is interpreted as the patch level of the Solaris
Packit Service 603f59
			2.3 P101318 patch.
Packit Service 603f59
Packit Service 603f59
			default: pkginfo tested with grep
Packit Service 603f59
Packit Service 603f59
SOLARIS_24P101945	If this environment variable has a non-NULL value, the
Packit Service 603f59
			value is interpreted as the patch level of the Solaris
Packit Service 603f59
			2.4 P101945 patch.
Packit Service 603f59
Packit Service 603f59
			default: pkginfo tested with grep
Packit Service 603f59
Packit Service 603f59
SOLARIS_24P102303	If this environment variable has a non-NULL value, the
Packit Service 603f59
			value is interpreted as the patch level of the Solaris
Packit Service 603f59
			2.4 P102303 patch.
Packit Service 603f59
Packit Service 603f59
			default: pkginfo tested with grep
Packit Service 603f59
Packit Service 603f59
SOLARIS_26PR_GWINDOWS	If this environment variable has a value of "Y" or "y",
Packit Service 603f59
			the HASPR_GWINDOWS definition is set in the Solaris 2.6
Packit Service 603f59
			and 7 Makefile's CFG string; any other non-NULL value,
Packit Service 603f59
			it's not set; a NULL value, it's tested by compilation.
Packit Service 603f59
Packit Service 603f59
			default: tested by compilation
Packit Service 603f59
Packit Service 603f59
SOLARIS_26PR_LDT	If this environment variable has a value of "Y" or "y",
Packit Service 603f59
			the HASPR_LDT definition is set in the Solaris 2.6
Packit Service 603f59
			Makefile's CFGL string; any other non-NULL value, it's
Packit Service 603f59
			not set; a NULL value, it's tested by compilation.
Packit Service 603f59
Packit Service 603f59
			default: tested by compilation
Packit Service 603f59
Packit Service 603f59
SOLARIS_CCDIR		specifies the path to the Sun C compiler -- i.e., when
Packit Service 603f59
			`Configure solariscc` is used.  This is ignored when
Packit Service 603f59
			LSOF_CC has been specified.
Packit Service 603f59
Packit Service 603f59
			default: /opt/SUNWspro/bin
Packit Service 603f59
Packit Service 603f59
SOLARIS_INSTR		specifies the Sun C compiler target instruction set
Packit Service 603f59
			when building lsof for a 64 bit kernel -- i.e., when
Packit Service 603f59
			the Configure abbreviation is "solariscc".  Possible
Packit Service 603f59
			values include amd64 and sparcv9.  This is ignored when
Packit Service 603f59
			the Configure abbreviation is "solaris" -- i.e., the
Packit Service 603f59
			compiler is gcc.
Packit Service 603f59
Packit Service 603f59
			default: tested with /bin/isainfo -k
Packit Service 603f59
Packit Service 603f59
SOLARIS_KERNBITS	specifies the number of bits in the Solaris 7, 8, 9 or
Packit Service 603f59
			10 kernel: 32 or 64.
Packit Service 603f59
Packit Service 603f59
			default: tested with /bin/isainfo -kv
Packit Service 603f59
Packit Service 603f59
SOLARIS_VSOCK		If this environment variable has a value of "Y" or "y",
Packit Service 603f59
			the HAS_VSOCK definition is in the Solaris Makefile's
Packit Service 603f59
			CFGL string; any other non-NULL value, it's not set; a
Packit Service 603f59
			NULL value, it's tested by compilation.
Packit Service 603f59
Packit Service 603f59
			default: tested by compilation
Packit Service 603f59
Packit Service 603f59
SOLARIS_VXFSINCL	This environment variable defines the path to the
Packit Service 603f59
			header files of the VxFS 3.4 or greater version.  If
Packit Service 603f59
			SOLARIS_VXFSINCL is not set, the default is used.
Packit Service 603f59
Packit Service 603f59
			default: VxFS < 4.0:
Packit Service 603f59
				    /opt/VRTSvxfs/include
Packit Service 603f59
				 VxFS 4.0 and above:
Packit Service 603f59
				    /opt/VRTSfssdk/<version>/include
Packit Service 603f59
Packit Service 603f59
SOLARIS_VXFSLIB		This environment variable defines the path to the
Packit Service 603f59
			VxFS 3.4 or greater utility libraries, libvxfsutil.a
Packit Service 603f59
			(32 bit) and libvxfsutil64.a (64 bit).  If
Packit Service 603f59
			SOLARIS_VXFSLIB is not set, the default is used.
Packit Service 603f59
Packit Service 603f59
			Note:  end SOLARIS_VXFSLIB at the "/lib" component; do
Packit Service 603f59
			       NOT put "/sparcv9" at its end.  The lsof
Packit Service 603f59
			       Configure script will add "/sparcv9" if it is
Packit Service 603f59
			       required; hence, if Configure finds that
Packit Service 603f59
			       "/sparcv9" is needed, your SOLARIS_VXFSLIB
Packit Service 603f59
			       directory tree must have a sparcv9 subdirectory.
Packit Service 603f59
Packit Service 603f59
			default: `dirname $SOLARIS_VXFSINCL`/lib
Packit Service 603f59
Packit Service 603f59
SUN_AFSAPATHDEF		specifies the path to the AFS library modload file
Packit Service 603f59
			for either Solaris or SunOS.
Packit Service 603f59
Packit Service 603f59
			default: /usr/vice/etc/modload/libafs
Packit Service 603f59
				 Verified with ls.
Packit Service 603f59
Packit Service 603f59
			Note: the SunOS support is no longer maintained.
Packit Service 603f59
Packit Service 603f59
UW_HAS_NSC		If this environment variable has a value of "Y" or "y",
Packit Service 603f59
			lsof will be configured for a UnixWare 7.1.1 or above
Packit Service 603f59
			NonStop Cluster (NSC) system.
Packit Service 603f59
Packit Service 603f59
			default: tested via /bin/node_self
Packit Service 603f59
Packit Service 603f59
Vic Abell <abe@purdue.edu>
Packit Service 603f59
October 13, 2014