summaryrefslogtreecommitdiff
path: root/m4/fp_gmp.m4
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2021-11-27 19:41:11 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2021-11-27 19:41:11 +0000
commit13ef345ce8ccb8d135659bf341c12ad39a688708 (patch)
tree77d344493fe6f30fe2161bce74dd9b92cf33f14b /m4/fp_gmp.m4
parent02372be119bd1a4e7099d2c7d5bb3de096e99409 (diff)
downloadhaskell-13ef345ce8ccb8d135659bf341c12ad39a688708.tar.gz
Factor our `FP_CAPITALIZE_YES_NO`
This deduplicates converting from yes/no to YES/NO in the configure scripts while also making it safer.
Diffstat (limited to 'm4/fp_gmp.m4')
-rw-r--r--m4/fp_gmp.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/fp_gmp.m4 b/m4/fp_gmp.m4
index bbf054910a..587049d85f 100644
--- a/m4/fp_gmp.m4
+++ b/m4/fp_gmp.m4
@@ -19,13 +19,13 @@ AC_DEFUN([FP_GMP],
AC_ARG_WITH([intree-gmp],
[AS_HELP_STRING([--with-intree-gmp],
[force using the in-tree GMP])],
- [GMP_FORCE_INTREE=YES],
+ [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])],
- [GMP_PREFER_FRAMEWORK=YES],
+ [FP_CAPITALIZE_YES_NO(["$withval"], [GMP_PREFER_FRAMEWORK])],
[GMP_PREFER_FRAMEWORK=NO])
AC_SUBST(GMP_INCLUDE_DIRS)