summaryrefslogtreecommitdiff
path: root/modules/libgmp
Commit message (Collapse)AuthorAgeFilesLines
* libgmp: add <gmp/gmp.h> supportPaul Eggert2020-08-061-2/+9
| | | | | | | * m4/libgmp.m4 (gl_LIBGMP): * modules/libgmp (configure.ac, Makefile.am): Support platforms requiring ‘#include <gmp/gmp.h>’ instead of ‘#include <gmp.h>’.
* libgmp: remove dependency on havelibPaul Eggert2020-07-261-1/+0
| | | | | | | | | * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined, use the more-traditional AC_SEARCH_LIBS approach. This should work better with GNU Emacs configuration, which uses pkg-config instead of a havelib-style approach. * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro. * modules/libgmp (Depends-on): Remove havelib.
* libgmp: Link to the correct shared library.Bruno Haible2020-07-121-1/+2
| | | | | | | * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS. * modules/libgmp (Depends-on): Add havelib. (Link): Mention $(LIBGMP) and $(LTLIBGMP). * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
* libgmp: new modulePaul Eggert2020-07-061-0/+42
The idea is to let programs simply include <gmp.h>, and so long as they live within the mini-gmp subset they need not worry about whether the GMP libraries are installed. * MODULES.html.sh: Mention it. * config/srclist.txt: Mention files copied from GMP source. * config/srclistvars.sh (GMP): New var. * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp: * modules/libgmp-tests, tests/test-libgmp.c: New files. * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.