2 GNU Multiple Precision Arithmetic library, or its mini-gmp substitute
14 gl_CONDITIONAL_HEADER([gmp.h])
16 gl_CONDITIONAL([GL_COND_OBJ_MINI_GMP_GNULIB], [test $HAVE_LIBGMP != yes])
19 BUILT_SOURCES += $(GMP_H)
22 if GL_GENERATE_MINI_GMP_H
23 # Build gmp.h as a wrapper for mini-gmp.h when using mini-gmp.
24 gmp.h: $(top_builddir)/config.status
25 @NMD@ $(MKDIR_P) '%reldir%'
26 echo '#include "mini-gmp.h"' > $@-t
29 if GL_GENERATE_GMP_GMP_H
30 # Build gmp.h as a wrapper for gmp/gmp.h.
31 gmp.h: $(top_builddir)/config.status
32 @NMD@ $(MKDIR_P) '%reldir%'
33 echo '#include <gmp/gmp.h>' > $@-t
37 gmp.h: $(top_builddir)/config.status
40 MOSTLYCLEANFILES += gmp.h gmp.h-t
42 if GL_COND_OBJ_MINI_GMP_GNULIB
43 lib_SOURCES += mini-gmp-gnulib.c
50 $(LTLIBGMP) when linking with libtool, $(LIBGMP) otherwise