geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

356 lines
13 KiB

  1. Installation Instructions
  2. *************************
  3. Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
  4. Software Foundation, Inc.
  5. This file is free documentation; the Free Software Foundation gives
  6. unlimited permission to copy, distribute and modify it.
  7. When Building directly from Master
  8. ==================================
  9. If you want to build directly from the git repository, you must first
  10. generate the configure script and Makefile using autotools. There is
  11. a convenience script that calls all tools in the correct order. Make
  12. sure that autoconf, automake and libtool are installed on your system,
  13. then execute:
  14. autoreconf -fi
  15. After executing this script, you can build the project as usual:
  16. ./configure
  17. make
  18. Basic Installation
  19. ==================
  20. These are generic installation instructions.
  21. The `configure' shell script attempts to guess correct values for
  22. various system-dependent variables used during compilation. It uses
  23. those values to create a `Makefile' in each directory of the package.
  24. It may also create one or more `.h' files containing system-dependent
  25. definitions. Finally, it creates a shell script `config.status' that
  26. you can run in the future to recreate the current configuration, and a
  27. file `config.log' containing compiler output (useful mainly for
  28. debugging `configure').
  29. It can also use an optional file (typically called `config.cache'
  30. and enabled with `--cache-file=config.cache' or simply `-C') that saves
  31. the results of its tests to speed up reconfiguring. (Caching is
  32. disabled by default to prevent problems with accidental use of stale
  33. cache files.)
  34. If you need to do unusual things to compile the package, please try
  35. to figure out how `configure' could check whether to do them, and mail
  36. diffs or instructions to the address given in the `README' so they can
  37. be considered for the next release. If you are using the cache, and at
  38. some point `config.cache' contains results you don't want to keep, you
  39. may remove or edit it.
  40. The file `configure.ac' (or `configure.in') is used to create
  41. `configure' by a program called `autoconf'. You only need
  42. `configure.ac' if you want to change it or regenerate `configure' using
  43. a newer version of `autoconf'.
  44. The simplest way to compile this package is:
  45. 1. `cd' to the directory containing the package's source code and type
  46. `./configure' to configure the package for your system. If you're
  47. using `csh' on an old version of System V, you might need to type
  48. `sh ./configure' instead to prevent `csh' from trying to execute
  49. `configure' itself.
  50. Running `configure' takes awhile. While running, it prints some
  51. messages telling which features it is checking for.
  52. 2. Type `make' to compile the package.
  53. 3. Optionally, type `make check' to run any self-tests that come with
  54. the package.
  55. 4. Type `make install' to install the programs and any data files and
  56. documentation.
  57. 5. You can remove the program binaries and object files from the
  58. source code directory by typing `make clean'. To also remove the
  59. files that `configure' created (so you can compile the package for
  60. a different kind of computer), type `make distclean'. There is
  61. also a `make maintainer-clean' target, but that is intended mainly
  62. for the package's developers. If you use it, you may have to get
  63. all sorts of other programs in order to regenerate files that came
  64. with the distribution.
  65. Compilers and Options
  66. =====================
  67. Some systems require unusual options for compilation or linking that the
  68. `configure' script does not know about. Run `./configure --help' for
  69. details on some of the pertinent environment variables.
  70. You can give `configure' initial values for configuration parameters
  71. by setting variables in the command line or in the environment. Here
  72. is an example:
  73. ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
  74. *Note Defining Variables::, for more details.
  75. Compiling For Multiple Architectures
  76. ====================================
  77. You can compile the package for more than one kind of computer at the
  78. same time, by placing the object files for each architecture in their
  79. own directory. To do this, you must use a version of `make' that
  80. supports the `VPATH' variable, such as GNU `make'. `cd' to the
  81. directory where you want the object files and executables to go and run
  82. the `configure' script. `configure' automatically checks for the
  83. source code in the directory that `configure' is in and in `..'.
  84. If you have to use a `make' that does not support the `VPATH'
  85. variable, you have to compile the package for one architecture at a
  86. time in the source code directory. After you have installed the
  87. package for one architecture, use `make distclean' before reconfiguring
  88. for another architecture.
  89. Installation Names
  90. ==================
  91. By default, `make install' installs the package's commands under
  92. `/usr/local/bin', include files under `/usr/local/include', etc. You
  93. can specify an installation prefix other than `/usr/local' by giving
  94. `configure' the option `--prefix=PREFIX'.
  95. You can specify separate installation prefixes for
  96. architecture-specific files and architecture-independent files. If you
  97. pass the option `--exec-prefix=PREFIX' to `configure', the package uses
  98. PREFIX as the prefix for installing programs and libraries.
  99. Documentation and other data files still use the regular prefix.
  100. In addition, if you use an unusual directory layout you can give
  101. options like `--bindir=DIR' to specify different values for particular
  102. kinds of files. Run `configure --help' for a list of the directories
  103. you can set and what kinds of files go in them.
  104. If the package supports it, you can cause programs to be installed
  105. with an extra prefix or suffix on their names by giving `configure' the
  106. option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  107. Optional Features
  108. =================
  109. Some packages pay attention to `--enable-FEATURE' options to
  110. `configure', where FEATURE indicates an optional part of the package.
  111. They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  112. is something like `gnu-as' or `x' (for the X Window System). The
  113. `README' should mention any `--enable-' and `--with-' options that the
  114. package recognizes.
  115. For packages that use the X Window System, `configure' can usually
  116. find the X include and library files automatically, but if it doesn't,
  117. you can use the `configure' options `--x-includes=DIR' and
  118. `--x-libraries=DIR' to specify their locations.
  119. Specifying the System Type
  120. ==========================
  121. There may be some features `configure' cannot figure out automatically,
  122. but needs to determine by the type of machine the package will run on.
  123. Usually, assuming the package is built to be run on the _same_
  124. architectures, `configure' can figure that out, but if it prints a
  125. message saying it cannot guess the machine type, give it the
  126. `--build=TYPE' option. TYPE can either be a short name for the system
  127. type, such as `sun4', or a canonical name which has the form:
  128. CPU-COMPANY-SYSTEM
  129. where SYSTEM can have one of these forms:
  130. OS KERNEL-OS
  131. See the file `config.sub' for the possible values of each field. If
  132. `config.sub' isn't included in this package, then this package doesn't
  133. need to know the machine type.
  134. If you are _building_ compiler tools for cross-compiling, you should
  135. use the option `--target=TYPE' to select the type of system they will
  136. produce code for.
  137. If you want to _use_ a cross compiler, that generates code for a
  138. platform different from the build platform, you should specify the
  139. "host" platform (i.e., that on which the generated programs will
  140. eventually be run) with `--host=TYPE'.
  141. Sharing Defaults
  142. ================
  143. If you want to set default values for `configure' scripts to share, you
  144. can create a site shell script called `config.site' that gives default
  145. values for variables like `CC', `cache_file', and `prefix'.
  146. `configure' looks for `PREFIX/share/config.site' if it exists, then
  147. `PREFIX/etc/config.site' if it exists. Or, you can set the
  148. `CONFIG_SITE' environment variable to the location of the site script.
  149. A warning: not all `configure' scripts look for a site script.
  150. Defining Variables
  151. ==================
  152. Variables not defined in a site shell script can be set in the
  153. environment passed to `configure'. However, some packages may run
  154. configure again during the build, and the customized values of these
  155. variables may be lost. In order to avoid this problem, you should set
  156. them in the `configure' command line, using `VAR=value'. For example:
  157. ./configure CC=/usr/local2/bin/gcc
  158. causes the specified `gcc' to be used as the C compiler (unless it is
  159. overridden in the site shell script). Here is a another example:
  160. /bin/bash ./configure CONFIG_SHELL=/bin/bash
  161. Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
  162. configuration-related scripts to be executed by `/bin/bash'.
  163. `configure' Invocation
  164. ======================
  165. `configure' recognizes the following options to control how it operates.
  166. `--help'
  167. `-h'
  168. Print a summary of the options to `configure', and exit.
  169. `--version'
  170. `-V'
  171. Print the version of Autoconf used to generate the `configure'
  172. script, and exit.
  173. `--cache-file=FILE'
  174. Enable the cache: use and save the results of the tests in FILE,
  175. traditionally `config.cache'. FILE defaults to `/dev/null' to
  176. disable caching.
  177. `--config-cache'
  178. `-C'
  179. Alias for `--cache-file=config.cache'.
  180. `--quiet'
  181. `--silent'
  182. `-q'
  183. Do not print messages saying which checks are being made. To
  184. suppress all normal output, redirect it to `/dev/null' (any error
  185. messages will still be shown).
  186. `--srcdir=DIR'
  187. Look for the package's source code in directory DIR. Usually
  188. `configure' can determine that directory automatically.
  189. `configure' also accepts some other, not widely useful, options. Run
  190. `configure --help' for more details.
  191. More configure options
  192. ======================
  193. Some ./configure options deserve additional comments:
  194. * --enable-crypt-none
  195. The SSH2 Transport allows for unencrypted data
  196. transmission using the "none" cipher. Because this is
  197. such a huge security hole, it is typically disabled on
  198. SSH2 implementations and is disabled in libssh2 by
  199. default as well.
  200. Enabling this option will allow for "none" as a
  201. negotiable method, however it still requires that the
  202. method be advertized by the remote end and that no
  203. more-preferable methods are available.
  204. * --enable-mac-none
  205. The SSH2 Transport also allows implementations to
  206. forego a message authentication code. While this is
  207. less of a security risk than using a "none" cipher, it
  208. is still not recommended as disabling MAC hashes
  209. removes a layer of security.
  210. Enabling this option will allow for "none" as a
  211. negotiable method, however it still requires that the
  212. method be advertized by the remote end and that no
  213. more-preferable methods are available.
  214. * --disable-gex-new
  215. The diffie-hellman-group-exchange-sha1 (dh-gex) key
  216. exchange method originally defined an exchange
  217. negotiation using packet type 30 to request a
  218. generation pair based on a single target value. Later
  219. refinement of dh-gex provided for range and target
  220. values. By default libssh2 will use the newer range
  221. method.
  222. If you experience trouble connecting to an old SSH
  223. server using dh-gex, try this option to fallback on
  224. the older more reliable method.
  225. * --with-libgcrypt
  226. * --without-libgcrypt
  227. * --with-libgcrypt-prefix=DIR
  228. libssh2 can use the Libgcrypt library
  229. (https://www.gnupg.org/) for cryptographic operations.
  230. One of the cryptographic libraries is required.
  231. Configure will attempt to locate Libgcrypt
  232. automatically.
  233. If your installation of Libgcrypt is in another
  234. location, specify it using --with-libgcrypt-prefix.
  235. * --with-openssl
  236. * --without-openssl
  237. * --with-libssl-prefix=[DIR]
  238. libssh2 can use the OpenSSL library
  239. (https://www.openssl.org) for cryptographic operations.
  240. One of the cryptographic libraries is required.
  241. Configure will attempt to locate OpenSSL in the
  242. default location.
  243. If your installation of OpenSSL is in another
  244. location, specify it using --with-libssl-prefix.
  245. * --with-mbedtls
  246. * --without-mbedtls
  247. * --with-libmbedtls-prefix=[DIR]
  248. libssh2 can use the mbedTLS library
  249. (https://tls.mbed.org) for cryptographic operations.
  250. One of the cryptographic libraries is required.
  251. Configure will attempt to locate mbedTLS in the
  252. default location.
  253. If your installation of mbedTLS is in another
  254. location, specify it using --with-libmbedtls-prefix.
  255. * --with-libz
  256. * --without-libz
  257. * --with-libz-prefix=[DIR]
  258. If present, libssh2 will attempt to use the zlib
  259. (http://www.zlib.org) for payload compression, however
  260. zlib is not required.
  261. If your installation of Libz is in another location,
  262. specify it using --with-libz-prefix.
  263. * --enable-debug
  264. Will make the build use more pedantic and strict compiler
  265. options as well as enable the libssh2_trace() function (for
  266. showing debug traces).