
Installing atomic_ops
If you are building and installing the package under Microsoft
Windows, using the Microsoft tools, please see the
README_win32.txt
file in the distribution.
To install atomic_ops on other platforms, unpack the distribution and
change to the resulting directory. Then:
-
Type ./configure --prefix=install_directory
-
Type make. This will build two small libraries. The
low level libatomic_ops.a library
contains support code for the atomic_ops.h header, if needed
on your platform. Its license normally allows use in
proprietary software. The libatomic_ops_gpl.a
library contains higher level facilities, notably a memory
allocator that may be safely used from signal handlers.
This second library is covered by the GNU General Public License.
-
Type make check to test the libraries and header files.
-
Type make install to install header files, libraries,
and documentation under the directory specified in the first step.
To use the library, include one or more of atomic_ops.h
(low-level primitives), atomic_ops_stack.h, and
atomic_ops_malloc.h. Link
against libatomic_ops.a (if only atomic_ops.h
is used) or both libraries, with libatomic_ops_gpl.a
listed first. (On many platforms, many of the low-level
facilities are implemented entirely in header files, and
the library may not be required. For portability, it should
however be supplied to the linker.)
The interfaces are described in
README.txt,
README_stack.txt,
and
README_malloc.txt.

|