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
|
# FP_GMP
# -------------
AC_DEFUN([FP_GMP],
[
dnl--------------------------------------------------------------------
dnl * Deal with arguments telling us gmp is somewhere odd
dnl--------------------------------------------------------------------
AC_ARG_WITH([gmp-includes],
[AS_HELP_STRING([--with-gmp-includes],
[directory containing gmp.h])],
[GMP_INCLUDE_DIRS=$withval])
AC_ARG_WITH([gmp-libraries],
[AS_HELP_STRING([--with-gmp-libraries],
[directory containing gmp library])],
[GMP_LIB_DIRS=$withval])
AC_ARG_WITH([intree-gmp],
[AS_HELP_STRING([--with-intree-gmp],
[force using the in-tree GMP])],
[FP_CAPITALIZE_YES_NO(["$withval"], [GMP_FORCE_INTREE])],
[GMP_FORCE_INTREE=NO])
AC_ARG_WITH([gmp-framework-preferred],
[AS_HELP_STRING([--with-gmp-framework-preferred],
[on OSX, prefer the GMP framework to the gmp lib])],
[FP_CAPITALIZE_YES_NO(["$withval"], [GMP_PREFER_FRAMEWORK])],
[GMP_PREFER_FRAMEWORK=NO])
AC_SUBST(GMP_INCLUDE_DIRS)
AC_SUBST(GMP_LIB_DIRS)
AC_SUBST(GMP_FORCE_INTREE)
AC_SUBST(GMP_PREFER_FRAMEWORK)
])# FP_GMP
|