home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tcl2-73c.zip / tcl7.3 / configure.info < prev    next >
Text File  |  1993-08-05  |  4KB  |  82 lines

  1. This file provides more information about the "configure" script
  2. and how you can personalize it for your local environment.
  3.  
  4. The `configure' shell script attempts to guess correct values for
  5. various system-dependent variables used during compilation, and
  6. creates the Makefile.  It also creates a file `config.status'
  7. that you can run in the future to recreate the current configuration.
  8.  
  9. Running `configure' takes a minute or two.  While it is running, it
  10. prints some messages that tell what it is doing.  If you don't want to
  11. see the messages, run `configure' with its standard output redirected
  12. to `/dev/null'; for example, `./configure >/dev/null'.
  13.  
  14. To compile the package in a different directory from the one
  15. containing the source code, you must use a version of make that
  16. supports the VPATH variable, such as GNU make.  `cd' to the directory
  17. where you want the object files and executables to go and run
  18. `configure'.  `configure' automatically checks for the source code in
  19. the directory that `configure' is in and in `..'.  If for some reason
  20. `configure' is not in the source code directory that you are
  21. configuring, then it will report that it can't find the source code.
  22. In that case, run `configure' with the option `--srcdir=DIR', where
  23. DIR is the directory that contains the source code.
  24.  
  25. By default, `make install' will install the package's files in
  26. /usr/local/bin, /usr/local/lib, /usr/local/man, etc.  You can specify
  27. an installation prefix other than /usr/local by giving `configure' the
  28. option `--prefix=PATH'.  Alternately, you can do so by giving a value
  29. for the `prefix' variable when you run `make', e.g.,
  30.     make prefix=/usr/gnu
  31.  
  32. You can specify separate installation prefixes for
  33. architecture-specific files and architecture-independent files.  If
  34. you give `configure' the option `--exec_prefix=PATH' or set the
  35. `make' variable `exec_prefix' to PATH, the package will use PATH as
  36. the prefix for installing programs and libraries.  Data files and
  37. documentation will still use the regular prefix.  Normally, all files
  38. are installed using the regular prefix.
  39.  
  40. You can tell `configure' to figure out the configuration for your
  41. system, and record it in `config.status', without actually configuring
  42. the package (creating `Makefile's and perhaps a configuration header
  43. file).  To do this, give `configure' the `--no-create' option.  Later,
  44. you can run `./config.status' to actually configure the package.  This
  45. option is useful mainly in `Makefile' rules for updating `config.status'
  46. and `Makefile'.  You can also give `config.status' the `--recheck'
  47. option, which makes it re-run `configure' with the same arguments you
  48. used before.  This is useful if you change `configure'.
  49.  
  50. `configure' ignores any other arguments that you give it.
  51.  
  52. If your system requires unusual options for compilation or linking
  53. that `configure' doesn't know about, you can give `configure' initial
  54. values for some variables by setting them in the environment.  In
  55. Bourne-compatible shells, you can do that on the command line like
  56. this:
  57.     CC='gcc -traditional' DEFS=-D_POSIX_SOURCE ./configure
  58.  
  59. The `make' variables that you might want to override with environment
  60. variables when running `configure' are:
  61.  
  62. (For these variables, any value given in the environment overrides the
  63. value that `configure' would choose:)
  64. CC        C compiler program.
  65.         Default is `cc', or `gcc' if `gcc' is in your PATH.
  66. INSTALL        Program to use to install files.
  67.         Default is `install' if you have it, `cp' otherwise.
  68.  
  69. (For these variables, any value given in the environment is added to
  70. the value that `configure' chooses:)
  71. DEFS        Configuration options, in the form `-Dfoo -Dbar ...'
  72. LIBS        Libraries to link with, in the form `-lfoo -lbar ...'
  73.  
  74. If you need to do unusual things to compile the package, we encourage
  75. you to figure out how `configure' could check whether to do them, and
  76. mail diffs or instructions to the address given in the README so we
  77. can include them in the next release.
  78.  
  79. The file `configure.in' is used as a template to create `configure' by
  80. a program called `autoconf'.  You will only need it if you want to
  81. regenerate `configure' using a newer version of `autoconf'.
  82.