• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2# ==============================================================================
3#                       Unix: library install instructions
4# ==============================================================================
5
6# NONGNU: gmake required!
7
8# This automatically selects the optimal build on all architectures except
9# for multilib systems that default to 32-bit builds (AIX, Solaris):
10./configure
11make
12
13# The default tests suite attempts to download the official tests cases:
14make check
15
16# Alternatively, if wget is not installed or no network is available, run:
17make check_local
18
19# Install:
20make install
21
22# On some systems it is necessary to run ``ldconfig'', so the newly installed
23# library is found by the system linker.  The Makefile does not run `ldconfig''
24# because it is not portable:
25ldconfig
26
27
28# ==============================================================================
29#                                  Custom build
30# ==============================================================================
31
32#
33# MACHINE variable:
34#
35# If ./configure fails to detect the optimal configuration, a specific
36# configuration can be enforced by providing the MACHINE variable.  This
37# should only be necessary on AIX, Solaris or for a MacOS universal build.
38#
39# Example:
40#
41#   ./configure MACHINE=x64
42#
43# Possible values (in decreasing order of preference):
44#
45#    1. x64         - 64-bit OS with x86_64 processor (AMD, Intel)
46#
47#    2. uint128     - 64-bit OS, compiler provides __uint128_t (gcc)
48#
49#    3. ansi64      - 64-bit OS, ANSI C
50#
51#    4. ppro        - 32-bit OS, x86 CPU, PentiumPro or later
52#
53#    5. ansi32      - 32-bit OS, ANSI C
54#
55#    6. ansi-legacy - 32-bit OS, compiler without uint64_t
56#
57# Multilib builds (Darwin and AIX):
58#
59#    7. universal   - builds a 64-bit or a 32-bit library according to the
60#                     compiler ABI settings:
61#
62#                        Darwin:    -m64 or -m32
63#                        AIX (gcc): -maix64 or -maix32
64#                        AIX (xlc): -q64 or -q32
65#
66#                     The generated header file is suitable for both 64-bit
67#                     and 32-bit installs.
68#
69
70#
71# CFLAGS, LDFLAGS, CXXFLAGS, LDXXFLAGS:
72#
73# If CFLAGS or LDFLAGS (or the C++ counterparts) are passed to ./configure,
74# they are appended to the minimal libmpdec (or libmpdec++) configuration:
75#
76#   ./configure CFLAGS="-m32 -march=i586 -O3" LDFLAGS="-m32"
77#
78#      ==> -DCONFIG_32 -DPPRO -DASM -O2 -fpic -m32 -march=i586 -O3
79#
80# Both MACHINE and CFLAGS can be specified, making it possible to have a
81# complete custom configuration:
82#
83#   ./configure MACHINE=ansi32 CFLAGS="-Wall -W -O3 -g"
84#
85#      ==> -DCONFIG_32 -DANSI -Wall -W -O3 -g
86#
87
88# ======================================================================
89#                   Windows: library install instructions
90# ======================================================================
91
92Build scripts for Visual Studio are in the vcbuild directory.
93
94
95
96