* scmsigs.c (scm_sigaction): Silently ignore setting handlers for
[bpt/guile.git] / INSTALL
CommitLineData
6dad9cd3
JB
1Brief Installation Instructions ===========================================
2
30d14d55 3To build Guile on unix, there are two basic steps:
0196b30a 4
6dad9cd3
JB
5 1. Type "./configure", to configure the package for your system.
6 2. Type "make", to build the package.
0196b30a
JB
7
8Generic instructions for configuring and compiling GNU distributions
9f75bc05 9are included below.
6dad9cd3 10
0196b30a 11
9f75bc05
JB
12Special Instructions For Some Systems =====================================
13
14We would like Guile to build on all systems using the simple
15instructions above, but it seems that a few systems still need special
16treatment. If you can send us fixes for these problems, we'd be
17grateful.
18
19SunOS 4.1: Guile's shared library support seems to be confused, but
20 hey; shared libraries are confusing. You may need to configure
21 Guile with a command like:
7e2c0c8d 22 ./configure --disable-shared
9f75bc05
JB
23 For more information on `--disable-shared', see below, "Flags
24 Accepted by Configure".
25
26HP/UX: GCC 2.7.2 (and maybe other versions) have trouble creating
27 shared libraries if they depend on any non-shared libraries. GCC
28 seems to have other problems as well. To work around this, we
29 suggest you configure Guile to use the system's C compiler:
30 CC=cc ./configure
31
bd0a8b65
JB
32NetBSD: Perry Metzger says, "Guile will build under NetBSD only using
33 gmake -- the native make will not work. (gmake is in our package
34 system, so this will not be a problem when we packagize 1.3.)"
6dad9cd3 35
6dad9cd3
JB
36Flags Accepted by Configure ===============================================
37
38If you run the configure script with no arguments, it should examine
39your system and set things up appropriately. However, there are a few
40switches specific to Guile you may find useful in some circumstances.
41
42--enable-maintainer-mode --- If you have automake, autoconf, and
43libtool installed on your system, this switch causes configure to
44generate Makefiles which know how to automatically regenerate
45configure scripts, makefiles, and headers, when they are out of date.
46The README file says which versions of those tools you will need.
47
48--with-threads --- Build a Guile executable and library that supports
49cooperative threading. If you use this switch, Guile will also build
50and install the QuickThreads non-preemptive threading library,
6d2bd56d
MV
51libqthreads, which you will need to link into your programs after
52libguile. When you use `guile-config', you will pick up all
53neccessary linker flags automatically.
873b9044 54
18f468f8
JB
55Cooperative threads are not yet thoroughly tested; once they are, they
56will be enabled by default. The interaction with blocking I/O is
57pretty ad hoc at the moment. In our experience, bugs in the thread
58support do not affect you if you don't actually use threads.
6dad9cd3 59
6d2bd56d
MV
60--with-modules --- Guile can dynamically load `plugin modules' during
61runtime, using facilities provided by libtool. Not all platforms
62support this, however. On these platforms, you can statically link
63the plugin modules into libguile when Guile itself is build. XXX -
64how does one specify the modules?
6dad9cd3
JB
65
66--disable-shared --- Do not build shared libraries. Normally, Guile
67will build shared libraries if your system supports them. Guile
68always builds static libraries.
69
70
71Using Guile Without Installing It =========================================
72
30d14d55 73If you want to run Guile without installing it, set the environment
cf591c72 74variable `GUILE_LOAD_PATH' to a colon-separated list of directories,
bacf83f0
JB
75including the directory containing this INSTALL file. If you used a
76separate build directory, you'll need to include the build directory
77in the path as well.
30d14d55 78
bacf83f0 79For example, suppose the Guile distribution unpacked into a directory
18f468f8
JB
80called `/home/jimb/guile-snap' (so the full name of this INSTALL file
81would be `/home/jimb/guile-snap/INSTALL'). Then you might say, if
82you're using Bash or any other Bourne shell variant,
bacf83f0 83
cf591c72 84 export GUILE_LOAD_PATH=/home/jimb/guile-snap
0196b30a 85
18f468f8 86or if you're using CSH or one of its variants:
0196b30a 87
cf591c72 88 setenv GUILE_LOAD_PATH /home/jimb/guile-snap
0196b30a 89
0196b30a 90
6dad9cd3 91Generic Instructions for Building Auto-Configured Packages ================
0196b30a
JB
92
93To compile this package:
94
951. Configure the package for your system. In the directory that this
96file is in, type `./configure'. If you're using `csh' on an old
97version of System V, you might need to type `sh configure' instead to
98prevent `csh' from trying to execute `configure' itself.
99
100The `configure' shell script attempts to guess correct values for
101various system-dependent variables used during compilation, and
102creates the Makefile(s) (one in each subdirectory of the source
103directory). In some packages it creates a C header file containing
104system-dependent definitions. It also creates a file `config.status'
105that you can run in the future to recreate the current configuration.
106Running `configure' takes a minute or two.
107
108To compile the package in a different directory from the one
109containing the source code, you must use GNU make. `cd' to the
110directory where you want the object files and executables to go and
111run `configure' with the option `--srcdir=DIR', where DIR is the
112directory that contains the source code. Using this option is
113actually unnecessary if the source code is in the parent directory of
114the one in which you are compiling; `configure' automatically checks
115for the source code in `..' if it does not find it in the current
116directory.
117
118By default, `make install' will install the package's files in
119/usr/local/bin, /usr/local/lib, /usr/local/man, etc. You can specify
120an installation prefix other than /usr/local by giving `configure' the
121option `--prefix=PATH'. Alternately, you can do so by changing the
122`prefix' variable in the Makefile that `configure' creates (the
123Makefile in the top-level directory, if the package contains
124subdirectories).
125
126You can specify separate installation prefixes for machine-specific
127files and machine-independent files. If you give `configure' the
128option `--exec_prefix=PATH', the package will use PATH as the prefix
129for installing programs and libraries. Normally, all files are
130installed using the same prefix.
131
132`configure' ignores any other arguments that you give it.
133
134If your system requires unusual options for compilation or linking
135that `configure' doesn't know about, you can give `configure' initial
136values for some variables by setting them in the environment. In
137Bourne-compatible shells, you can do that on the command line like
138this:
139 CC='gcc -traditional' DEFS=-D_POSIX_SOURCE ./configure
140
141The `make' variables that you might want to override with environment
142variables when running `configure' are:
143
144(For these variables, any value given in the environment overrides the
145value that `configure' would choose:)
146CC C compiler program.
147 Default is `cc', or `gcc' if `gcc' is in your PATH.
148INSTALL Program to use to install files.
149 Default is `install' if you have it, `cp' otherwise.
150INCLUDEDIR Directory for `configure' to search for include files.
151 Default is /usr/include.
152
153(For these variables, any value given in the environment is added to
154the value that `configure' chooses:)
155DEFS Configuration options, in the form '-Dfoo -Dbar ...'
156LIBS Libraries to link with, in the form '-lfoo -lbar ...'
157
158If you need to do unusual things to compile the package, we encourage
159you to teach `configure' how to do them and mail the diffs to the
160address given in the README so we can include them in the next
161release.
162
1632. Type `make' to compile the package.
164
1653. Type `make install' to install programs, data files, and
166documentation.
167
1684. You can remove the program binaries and object files from the
169source directory by typing `make clean'. To also remove the
170Makefile(s), the header file containing system-dependent definitions
171(if the package uses one), and `config.status' (all the files that
172`configure' created), type `make distclean'.
173
174The file `configure.in' is used as a template to create `configure' by
175a program called `autoconf'. You will only need it if you want to
176regenerate `configure' using a newer version of `autoconf'.