summaryrefslogtreecommitdiff
path: root/modules/libgmp
blob: bfc62f8d8623e9709c6209758f3f4ee6d740b58a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Description:
GNU Multiple Precision Arithmetic library, or its mini-gmp substitute

Files:
lib/mini-gmp-gnulib.c
lib/mini-gmp.c
lib/mini-gmp.h
m4/libgmp.m4

Depends-on:

configure.ac:
gl_LIBGMP
if test $HAVE_LIBGMP != yes; then
  AC_LIBOBJ([mini-gmp-gnulib])
fi

Makefile.am:
BUILT_SOURCES += $(GMP_H)

if GL_GENERATE_MINI_GMP_H
# Build gmp.h as a wrapper for mini-gmp.h when using mini-gmp.
gmp.h: $(top_builddir)/config.status
	echo '#include "mini-gmp.h"' >$@-t
	mv $@-t $@
else
if GL_GENERATE_GMP_GMP_H
# Build gmp.h as a wrapper for gmp/gmp.h.
gmp.h: $(top_builddir)/config.status
	echo '#include <gmp/gmp.h>' >$@-t
	mv $@-t $@
else
gmp.h: $(top_builddir)/config.status
	rm -f $@
endif
endif
MOSTLYCLEANFILES += gmp.h gmp.h-t

Include:
<gmp.h>

Link:
$(LTLIBGMP) when linking with libtool, $(LIBGMP) otherwise

License:
LGPLv3+ or GPLv2+

Maintainer:
all