annotate src/portaudio_20161030_catalina_patch/bindings/cpp/INSTALL @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents d43aab368df9
children
rev   line source
cannam@162 1 Installation Instructions
cannam@162 2 *************************
cannam@162 3
cannam@162 4 Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
cannam@162 5 Inc.
cannam@162 6
cannam@162 7 Copying and distribution of this file, with or without modification,
cannam@162 8 are permitted in any medium without royalty provided the copyright
cannam@162 9 notice and this notice are preserved. This file is offered as-is,
cannam@162 10 without warranty of any kind.
cannam@162 11
cannam@162 12 Basic Installation
cannam@162 13 ==================
cannam@162 14
cannam@162 15 Briefly, the shell command `./configure && make && make install'
cannam@162 16 should configure, build, and install this package. The following
cannam@162 17 more-detailed instructions are generic; see the `README' file for
cannam@162 18 instructions specific to this package. Some packages provide this
cannam@162 19 `INSTALL' file but do not implement all of the features documented
cannam@162 20 below. The lack of an optional feature in a given package is not
cannam@162 21 necessarily a bug. More recommendations for GNU packages can be found
cannam@162 22 in *note Makefile Conventions: (standards)Makefile Conventions.
cannam@162 23
cannam@162 24 The `configure' shell script attempts to guess correct values for
cannam@162 25 various system-dependent variables used during compilation. It uses
cannam@162 26 those values to create a `Makefile' in each directory of the package.
cannam@162 27 It may also create one or more `.h' files containing system-dependent
cannam@162 28 definitions. Finally, it creates a shell script `config.status' that
cannam@162 29 you can run in the future to recreate the current configuration, and a
cannam@162 30 file `config.log' containing compiler output (useful mainly for
cannam@162 31 debugging `configure').
cannam@162 32
cannam@162 33 It can also use an optional file (typically called `config.cache'
cannam@162 34 and enabled with `--cache-file=config.cache' or simply `-C') that saves
cannam@162 35 the results of its tests to speed up reconfiguring. Caching is
cannam@162 36 disabled by default to prevent problems with accidental use of stale
cannam@162 37 cache files.
cannam@162 38
cannam@162 39 If you need to do unusual things to compile the package, please try
cannam@162 40 to figure out how `configure' could check whether to do them, and mail
cannam@162 41 diffs or instructions to the address given in the `README' so they can
cannam@162 42 be considered for the next release. If you are using the cache, and at
cannam@162 43 some point `config.cache' contains results you don't want to keep, you
cannam@162 44 may remove or edit it.
cannam@162 45
cannam@162 46 The file `configure.ac' (or `configure.in') is used to create
cannam@162 47 `configure' by a program called `autoconf'. You need `configure.ac' if
cannam@162 48 you want to change it or regenerate `configure' using a newer version
cannam@162 49 of `autoconf'.
cannam@162 50
cannam@162 51 The simplest way to compile this package is:
cannam@162 52
cannam@162 53 1. `cd' to the directory containing the package's source code and type
cannam@162 54 `./configure' to configure the package for your system.
cannam@162 55
cannam@162 56 Running `configure' might take a while. While running, it prints
cannam@162 57 some messages telling which features it is checking for.
cannam@162 58
cannam@162 59 2. Type `make' to compile the package.
cannam@162 60
cannam@162 61 3. Optionally, type `make check' to run any self-tests that come with
cannam@162 62 the package, generally using the just-built uninstalled binaries.
cannam@162 63
cannam@162 64 4. Type `make install' to install the programs and any data files and
cannam@162 65 documentation. When installing into a prefix owned by root, it is
cannam@162 66 recommended that the package be configured and built as a regular
cannam@162 67 user, and only the `make install' phase executed with root
cannam@162 68 privileges.
cannam@162 69
cannam@162 70 5. Optionally, type `make installcheck' to repeat any self-tests, but
cannam@162 71 this time using the binaries in their final installed location.
cannam@162 72 This target does not install anything. Running this target as a
cannam@162 73 regular user, particularly if the prior `make install' required
cannam@162 74 root privileges, verifies that the installation completed
cannam@162 75 correctly.
cannam@162 76
cannam@162 77 6. You can remove the program binaries and object files from the
cannam@162 78 source code directory by typing `make clean'. To also remove the
cannam@162 79 files that `configure' created (so you can compile the package for
cannam@162 80 a different kind of computer), type `make distclean'. There is
cannam@162 81 also a `make maintainer-clean' target, but that is intended mainly
cannam@162 82 for the package's developers. If you use it, you may have to get
cannam@162 83 all sorts of other programs in order to regenerate files that came
cannam@162 84 with the distribution.
cannam@162 85
cannam@162 86 7. Often, you can also type `make uninstall' to remove the installed
cannam@162 87 files again. In practice, not all packages have tested that
cannam@162 88 uninstallation works correctly, even though it is required by the
cannam@162 89 GNU Coding Standards.
cannam@162 90
cannam@162 91 8. Some packages, particularly those that use Automake, provide `make
cannam@162 92 distcheck', which can by used by developers to test that all other
cannam@162 93 targets like `make install' and `make uninstall' work correctly.
cannam@162 94 This target is generally not run by end users.
cannam@162 95
cannam@162 96 Compilers and Options
cannam@162 97 =====================
cannam@162 98
cannam@162 99 Some systems require unusual options for compilation or linking that
cannam@162 100 the `configure' script does not know about. Run `./configure --help'
cannam@162 101 for details on some of the pertinent environment variables.
cannam@162 102
cannam@162 103 You can give `configure' initial values for configuration parameters
cannam@162 104 by setting variables in the command line or in the environment. Here
cannam@162 105 is an example:
cannam@162 106
cannam@162 107 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
cannam@162 108
cannam@162 109 *Note Defining Variables::, for more details.
cannam@162 110
cannam@162 111 Compiling For Multiple Architectures
cannam@162 112 ====================================
cannam@162 113
cannam@162 114 You can compile the package for more than one kind of computer at the
cannam@162 115 same time, by placing the object files for each architecture in their
cannam@162 116 own directory. To do this, you can use GNU `make'. `cd' to the
cannam@162 117 directory where you want the object files and executables to go and run
cannam@162 118 the `configure' script. `configure' automatically checks for the
cannam@162 119 source code in the directory that `configure' is in and in `..'. This
cannam@162 120 is known as a "VPATH" build.
cannam@162 121
cannam@162 122 With a non-GNU `make', it is safer to compile the package for one
cannam@162 123 architecture at a time in the source code directory. After you have
cannam@162 124 installed the package for one architecture, use `make distclean' before
cannam@162 125 reconfiguring for another architecture.
cannam@162 126
cannam@162 127 On MacOS X 10.5 and later systems, you can create libraries and
cannam@162 128 executables that work on multiple system types--known as "fat" or
cannam@162 129 "universal" binaries--by specifying multiple `-arch' options to the
cannam@162 130 compiler but only a single `-arch' option to the preprocessor. Like
cannam@162 131 this:
cannam@162 132
cannam@162 133 ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
cannam@162 134 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
cannam@162 135 CPP="gcc -E" CXXCPP="g++ -E"
cannam@162 136
cannam@162 137 This is not guaranteed to produce working output in all cases, you
cannam@162 138 may have to build one architecture at a time and combine the results
cannam@162 139 using the `lipo' tool if you have problems.
cannam@162 140
cannam@162 141 Installation Names
cannam@162 142 ==================
cannam@162 143
cannam@162 144 By default, `make install' installs the package's commands under
cannam@162 145 `/usr/local/bin', include files under `/usr/local/include', etc. You
cannam@162 146 can specify an installation prefix other than `/usr/local' by giving
cannam@162 147 `configure' the option `--prefix=PREFIX', where PREFIX must be an
cannam@162 148 absolute file name.
cannam@162 149
cannam@162 150 You can specify separate installation prefixes for
cannam@162 151 architecture-specific files and architecture-independent files. If you
cannam@162 152 pass the option `--exec-prefix=PREFIX' to `configure', the package uses
cannam@162 153 PREFIX as the prefix for installing programs and libraries.
cannam@162 154 Documentation and other data files still use the regular prefix.
cannam@162 155
cannam@162 156 In addition, if you use an unusual directory layout you can give
cannam@162 157 options like `--bindir=DIR' to specify different values for particular
cannam@162 158 kinds of files. Run `configure --help' for a list of the directories
cannam@162 159 you can set and what kinds of files go in them. In general, the
cannam@162 160 default for these options is expressed in terms of `${prefix}', so that
cannam@162 161 specifying just `--prefix' will affect all of the other directory
cannam@162 162 specifications that were not explicitly provided.
cannam@162 163
cannam@162 164 The most portable way to affect installation locations is to pass the
cannam@162 165 correct locations to `configure'; however, many packages provide one or
cannam@162 166 both of the following shortcuts of passing variable assignments to the
cannam@162 167 `make install' command line to change installation locations without
cannam@162 168 having to reconfigure or recompile.
cannam@162 169
cannam@162 170 The first method involves providing an override variable for each
cannam@162 171 affected directory. For example, `make install
cannam@162 172 prefix=/alternate/directory' will choose an alternate location for all
cannam@162 173 directory configuration variables that were expressed in terms of
cannam@162 174 `${prefix}'. Any directories that were specified during `configure',
cannam@162 175 but not in terms of `${prefix}', must each be overridden at install
cannam@162 176 time for the entire installation to be relocated. The approach of
cannam@162 177 makefile variable overrides for each directory variable is required by
cannam@162 178 the GNU Coding Standards, and ideally causes no recompilation.
cannam@162 179 However, some platforms have known limitations with the semantics of
cannam@162 180 shared libraries that end up requiring recompilation when using this
cannam@162 181 method, particularly noticeable in packages that use GNU Libtool.
cannam@162 182
cannam@162 183 The second method involves providing the `DESTDIR' variable. For
cannam@162 184 example, `make install DESTDIR=/alternate/directory' will prepend
cannam@162 185 `/alternate/directory' before all installation names. The approach of
cannam@162 186 `DESTDIR' overrides is not required by the GNU Coding Standards, and
cannam@162 187 does not work on platforms that have drive letters. On the other hand,
cannam@162 188 it does better at avoiding recompilation issues, and works well even
cannam@162 189 when some directory options were not specified in terms of `${prefix}'
cannam@162 190 at `configure' time.
cannam@162 191
cannam@162 192 Optional Features
cannam@162 193 =================
cannam@162 194
cannam@162 195 If the package supports it, you can cause programs to be installed
cannam@162 196 with an extra prefix or suffix on their names by giving `configure' the
cannam@162 197 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
cannam@162 198
cannam@162 199 Some packages pay attention to `--enable-FEATURE' options to
cannam@162 200 `configure', where FEATURE indicates an optional part of the package.
cannam@162 201 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
cannam@162 202 is something like `gnu-as' or `x' (for the X Window System). The
cannam@162 203 `README' should mention any `--enable-' and `--with-' options that the
cannam@162 204 package recognizes.
cannam@162 205
cannam@162 206 For packages that use the X Window System, `configure' can usually
cannam@162 207 find the X include and library files automatically, but if it doesn't,
cannam@162 208 you can use the `configure' options `--x-includes=DIR' and
cannam@162 209 `--x-libraries=DIR' to specify their locations.
cannam@162 210
cannam@162 211 Some packages offer the ability to configure how verbose the
cannam@162 212 execution of `make' will be. For these packages, running `./configure
cannam@162 213 --enable-silent-rules' sets the default to minimal output, which can be
cannam@162 214 overridden with `make V=1'; while running `./configure
cannam@162 215 --disable-silent-rules' sets the default to verbose, which can be
cannam@162 216 overridden with `make V=0'.
cannam@162 217
cannam@162 218 Particular systems
cannam@162 219 ==================
cannam@162 220
cannam@162 221 On HP-UX, the default C compiler is not ANSI C compatible. If GNU
cannam@162 222 CC is not installed, it is recommended to use the following options in
cannam@162 223 order to use an ANSI C compiler:
cannam@162 224
cannam@162 225 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
cannam@162 226
cannam@162 227 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
cannam@162 228
cannam@162 229 HP-UX `make' updates targets which have the same time stamps as
cannam@162 230 their prerequisites, which makes it generally unusable when shipped
cannam@162 231 generated files such as `configure' are involved. Use GNU `make'
cannam@162 232 instead.
cannam@162 233
cannam@162 234 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
cannam@162 235 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
cannam@162 236 a workaround. If GNU CC is not installed, it is therefore recommended
cannam@162 237 to try
cannam@162 238
cannam@162 239 ./configure CC="cc"
cannam@162 240
cannam@162 241 and if that doesn't work, try
cannam@162 242
cannam@162 243 ./configure CC="cc -nodtk"
cannam@162 244
cannam@162 245 On Solaris, don't put `/usr/ucb' early in your `PATH'. This
cannam@162 246 directory contains several dysfunctional programs; working variants of
cannam@162 247 these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
cannam@162 248 in your `PATH', put it _after_ `/usr/bin'.
cannam@162 249
cannam@162 250 On Haiku, software installed for all users goes in `/boot/common',
cannam@162 251 not `/usr/local'. It is recommended to use the following options:
cannam@162 252
cannam@162 253 ./configure --prefix=/boot/common
cannam@162 254
cannam@162 255 Specifying the System Type
cannam@162 256 ==========================
cannam@162 257
cannam@162 258 There may be some features `configure' cannot figure out
cannam@162 259 automatically, but needs to determine by the type of machine the package
cannam@162 260 will run on. Usually, assuming the package is built to be run on the
cannam@162 261 _same_ architectures, `configure' can figure that out, but if it prints
cannam@162 262 a message saying it cannot guess the machine type, give it the
cannam@162 263 `--build=TYPE' option. TYPE can either be a short name for the system
cannam@162 264 type, such as `sun4', or a canonical name which has the form:
cannam@162 265
cannam@162 266 CPU-COMPANY-SYSTEM
cannam@162 267
cannam@162 268 where SYSTEM can have one of these forms:
cannam@162 269
cannam@162 270 OS
cannam@162 271 KERNEL-OS
cannam@162 272
cannam@162 273 See the file `config.sub' for the possible values of each field. If
cannam@162 274 `config.sub' isn't included in this package, then this package doesn't
cannam@162 275 need to know the machine type.
cannam@162 276
cannam@162 277 If you are _building_ compiler tools for cross-compiling, you should
cannam@162 278 use the option `--target=TYPE' to select the type of system they will
cannam@162 279 produce code for.
cannam@162 280
cannam@162 281 If you want to _use_ a cross compiler, that generates code for a
cannam@162 282 platform different from the build platform, you should specify the
cannam@162 283 "host" platform (i.e., that on which the generated programs will
cannam@162 284 eventually be run) with `--host=TYPE'.
cannam@162 285
cannam@162 286 Sharing Defaults
cannam@162 287 ================
cannam@162 288
cannam@162 289 If you want to set default values for `configure' scripts to share,
cannam@162 290 you can create a site shell script called `config.site' that gives
cannam@162 291 default values for variables like `CC', `cache_file', and `prefix'.
cannam@162 292 `configure' looks for `PREFIX/share/config.site' if it exists, then
cannam@162 293 `PREFIX/etc/config.site' if it exists. Or, you can set the
cannam@162 294 `CONFIG_SITE' environment variable to the location of the site script.
cannam@162 295 A warning: not all `configure' scripts look for a site script.
cannam@162 296
cannam@162 297 Defining Variables
cannam@162 298 ==================
cannam@162 299
cannam@162 300 Variables not defined in a site shell script can be set in the
cannam@162 301 environment passed to `configure'. However, some packages may run
cannam@162 302 configure again during the build, and the customized values of these
cannam@162 303 variables may be lost. In order to avoid this problem, you should set
cannam@162 304 them in the `configure' command line, using `VAR=value'. For example:
cannam@162 305
cannam@162 306 ./configure CC=/usr/local2/bin/gcc
cannam@162 307
cannam@162 308 causes the specified `gcc' to be used as the C compiler (unless it is
cannam@162 309 overridden in the site shell script).
cannam@162 310
cannam@162 311 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
cannam@162 312 an Autoconf limitation. Until the limitation is lifted, you can use
cannam@162 313 this workaround:
cannam@162 314
cannam@162 315 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
cannam@162 316
cannam@162 317 `configure' Invocation
cannam@162 318 ======================
cannam@162 319
cannam@162 320 `configure' recognizes the following options to control how it
cannam@162 321 operates.
cannam@162 322
cannam@162 323 `--help'
cannam@162 324 `-h'
cannam@162 325 Print a summary of all of the options to `configure', and exit.
cannam@162 326
cannam@162 327 `--help=short'
cannam@162 328 `--help=recursive'
cannam@162 329 Print a summary of the options unique to this package's
cannam@162 330 `configure', and exit. The `short' variant lists options used
cannam@162 331 only in the top level, while the `recursive' variant lists options
cannam@162 332 also present in any nested packages.
cannam@162 333
cannam@162 334 `--version'
cannam@162 335 `-V'
cannam@162 336 Print the version of Autoconf used to generate the `configure'
cannam@162 337 script, and exit.
cannam@162 338
cannam@162 339 `--cache-file=FILE'
cannam@162 340 Enable the cache: use and save the results of the tests in FILE,
cannam@162 341 traditionally `config.cache'. FILE defaults to `/dev/null' to
cannam@162 342 disable caching.
cannam@162 343
cannam@162 344 `--config-cache'
cannam@162 345 `-C'
cannam@162 346 Alias for `--cache-file=config.cache'.
cannam@162 347
cannam@162 348 `--quiet'
cannam@162 349 `--silent'
cannam@162 350 `-q'
cannam@162 351 Do not print messages saying which checks are being made. To
cannam@162 352 suppress all normal output, redirect it to `/dev/null' (any error
cannam@162 353 messages will still be shown).
cannam@162 354
cannam@162 355 `--srcdir=DIR'
cannam@162 356 Look for the package's source code in directory DIR. Usually
cannam@162 357 `configure' can determine that directory automatically.
cannam@162 358
cannam@162 359 `--prefix=DIR'
cannam@162 360 Use DIR as the installation prefix. *note Installation Names::
cannam@162 361 for more details, including other options available for fine-tuning
cannam@162 362 the installation locations.
cannam@162 363
cannam@162 364 `--no-create'
cannam@162 365 `-n'
cannam@162 366 Run the configure checks, but stop before creating any output
cannam@162 367 files.
cannam@162 368
cannam@162 369 `configure' also accepts some other, not widely useful, options. Run
cannam@162 370 `configure --help' for more details.