Skip to content

Commit

Permalink
initial import of MPC 0.9 package.
Browse files Browse the repository at this point in the history
MPC is a C library for the arithmetic of complex numbers with
arbitrarily high precision and correct rounding of the result.
It is built upon and follows the same principles as MPFR.

GCC >= 4.2 requires MPC.
  • Loading branch information
mrg committed Jun 20, 2011
1 parent a2bca40 commit f146506
Show file tree
Hide file tree
Showing 220 changed files with 77,134 additions and 0 deletions.
6 changes: 6 additions & 0 deletions external/lgpl2/mpc/dist/AUTHORS
@@ -0,0 +1,6 @@
Main authors:
Andreas Enge
Philipe Théveny
Paul Zimmermann

Mickaël Gastineau has contributed the file Makefile.vc.
504 changes: 504 additions & 0 deletions external/lgpl2/mpc/dist/COPYING.LIB

Large diffs are not rendered by default.

Empty file.
86 changes: 86 additions & 0 deletions external/lgpl2/mpc/dist/INSTALL
@@ -0,0 +1,86 @@
Installing MPC
==============

This is for the impatient, for deeper explanations see Installing MPC chapter
in the Texinfo documentation (type 'info mpc.info').

0. You first need to install GMP and MPFR. See <http://gmplib.org/>
and <http://www.mpfr.org>.
MPC requires GMP version 4.3.2 or later and MPFR version 2.4.2 or later.

1. In the directory of the MPC archive, type

tar xzf mpc-0.9.tar.gz
cd mpc-0.9
./configure
make

This assumes that GMP and MPFR are installed in a directory searched by
default by the compiler. Otherwise, use --with-gmp=DIR or --with-mpfr=DIR
(see the Texinfo documentation).

2. You can optionally run the test suit, type

make check

3. To install the MPC library, type

make install

By default, the files are copied into /usr/local subdirectories. You
need write permissions on these directories.

4. You can optionally create documentation, type

make dvi

or

make ps

This requires the Texinfo package (version 4.2 at least).

In case of difficulties, please send a description of the problem to
<mpc-discuss@lists.gforge.inria.fr>.

##############################################################################

Note for AIX users:
===================

If GMP was built with the 64-bit ABI, before building and testing MPC,
it might be necessary to set the OBJECT_MODE environment variable to 64
by, e.g.,
export OBJECT_MODE=64
This has been tested with the C compiler IBM XL C/C++ Enterprise Edition
V8.0 for AIX, version: 08.00.0000.0021, GMP 4.2.4 and MPFR 2.4.1.

##############################################################################

Note for Windows users:
=======================

There is a special file Makefile.vc for Windows, contributed by Mickael
Gastineau. This file works both for the Windows Server 2003 R2 Platform SDK,
and for the Windows SDK of Vista. To use it, simply replace "make" by
"nmake /f makefile.vc" in the above instructions:

compilation :
nmake /f makefile.vc GMP=<gmp_install_dir> MPFR=<mpfr_install_dir>

clean :
nmake /f makefile.vc GMP=<gmp_install_dir> MPFR=<mpfr_install_dir> clean

check :
nmake /f makefile.vc GMP=<gmp_install_dir> MPFR=<mpfr_install_dir> check

For any issue related to the makefile.vc file, please contact directly
Mickael Gastineau at <gastineau at imcce dot fr> (replace 'at' by '@',
and 'dot' by '.').

If you want to compile mpc with mingw in the msys shell, you might need to
add the following to the configure command (or in your environment):

LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include

(reported by Sisyphus)
8 changes: 8 additions & 0 deletions external/lgpl2/mpc/dist/Makefile.am
@@ -0,0 +1,8 @@
## Makefile.am -- Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4

SUBDIRS = src tests doc

EXTRA_HEADERS = src/mpc-log.h
include_HEADERS = src/mpc.h @MPC_LOG_H@
EXTRA_DIST = src/mpc-log.h tests/tgeneric.c Makefile.vc

0 comments on commit f146506

Please sign in to comment.