autoconf: Default Prefix

1 
1 4.13 Default Prefix
1 ===================
1 
1 By default, `configure' sets the prefix for files it installs to
1 `/usr/local'.  The user of `configure' can select a different prefix
1 using the `--prefix' and `--exec-prefix' options.  There are two ways
1 to change the default: when creating `configure', and when running it.
1 
1    Some software packages might want to install in a directory other
1 than `/usr/local' by default.  To accomplish that, use the
1 `AC_PREFIX_DEFAULT' macro.
1 
1  -- Macro: AC_PREFIX_DEFAULT (PREFIX)
1      Set the default installation prefix to PREFIX instead of
1      `/usr/local'.
1 
1    It may be convenient for users to have `configure' guess the
1 installation prefix from the location of a related program that they
1 have already installed.  If you wish to do that, you can call
1 `AC_PREFIX_PROGRAM'.
1 
1  -- Macro: AC_PREFIX_PROGRAM (PROGRAM)
1      If the user did not specify an installation prefix (using the
1      `--prefix' option), guess a value for it by looking for PROGRAM in
1      `PATH', the way the shell does.  If PROGRAM is found, set the
1      prefix to the parent of the directory containing PROGRAM, else
1      default the prefix as described above (`/usr/local' or
1      `AC_PREFIX_DEFAULT').  For example, if PROGRAM is `gcc' and the
1      `PATH' contains `/usr/local/gnu/bin/gcc', set the prefix to
1      `/usr/local/gnu'.
1