x86 NCG: fix regUsageOfInstr for VMOVU & friends
[ghc.git] / m4 / fp_gmp.m4
blob587049d85fcb323ea5ea8f0077af968c8bd972b0
1 # FP_GMP
2 # -------------
3 AC_DEFUN([FP_GMP],
5   dnl--------------------------------------------------------------------
6   dnl * Deal with arguments telling us gmp is somewhere odd
7   dnl--------------------------------------------------------------------
9   AC_ARG_WITH([gmp-includes],
10     [AS_HELP_STRING([--with-gmp-includes],
11       [directory containing gmp.h])],
12       [GMP_INCLUDE_DIRS=$withval])
14   AC_ARG_WITH([gmp-libraries],
15     [AS_HELP_STRING([--with-gmp-libraries],
16       [directory containing gmp library])],
17       [GMP_LIB_DIRS=$withval])
19   AC_ARG_WITH([intree-gmp],
20     [AS_HELP_STRING([--with-intree-gmp],
21       [force using the in-tree GMP])],
22       [FP_CAPITALIZE_YES_NO(["$withval"], [GMP_FORCE_INTREE])],
23       [GMP_FORCE_INTREE=NO])
25   AC_ARG_WITH([gmp-framework-preferred],
26     [AS_HELP_STRING([--with-gmp-framework-preferred],
27       [on OSX, prefer the GMP framework to the gmp lib])],
28       [FP_CAPITALIZE_YES_NO(["$withval"], [GMP_PREFER_FRAMEWORK])],
29       [GMP_PREFER_FRAMEWORK=NO])
31   AC_SUBST(GMP_INCLUDE_DIRS)
32   AC_SUBST(GMP_LIB_DIRS)
33   AC_SUBST(GMP_FORCE_INTREE)
34   AC_SUBST(GMP_PREFER_FRAMEWORK)
35 ])# FP_GMP