[前][次][番号順一覧][スレッド一覧]

ruby-changes:73553

From: Kenta <ko1@a...>
Date: Wed, 14 Sep 2022 22:17:58 +0900 (JST)
Subject: [ruby-changes:73553] f512df7398 (master): configure.ac: Add --with-gmp-dir (#6366)

https://git.ruby-lang.org/ruby.git/commit/?id=f512df7398

From f512df73986c74e2f4bd65ca642879a0618da213 Mon Sep 17 00:00:00 2001
From: Kenta Murata <3959+mrkn@u...>
Date: Wed, 14 Sep 2022 22:17:39 +0900
Subject: configure.ac: Add --with-gmp-dir (#6366)

Add the `--with-gmp-dir` to specify the prefix directory of GMP.
The`--without-gmp` option is preserved for convenience.  It can
be used to force to reject using GMP even if the `--with-gmp-dir`
option is specified.
---
 configure.ac | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 2595c6ee6a..92b1a6a696 100644
--- a/configure.ac
+++ b/configure.ac
@@ -930,6 +930,15 @@ AS_CASE(["$target_cpu"], [[i[3-6]86*]], [ https://github.com/ruby/ruby/blob/trunk/configure.ac#L930
 ])
 
 OPT_DIR=
+AC_ARG_WITH([gmp-dir],
+  AS_HELP_STRING([--with-gmp-dir=DIR],
+                 [specify the prefix directory where gmp is installed]),
+  [OPT_DIR="$withval"], [])
+AC_ARG_WITH([gmp],
+  [AS_HELP_STRING([--without-gmp],
+                  [disable GNU GMP to accelerate Bignum operations])],
+  [OPT_DIR=], [with_gmp=yes])
+
 AC_ARG_WITH(opt-dir,
 	AS_HELP_STRING([--with-opt-dir=DIR-LIST],
 		       [add optional headers and libraries directories separated by $PATH_SEPARATOR]),
@@ -1319,11 +1328,6 @@ AS_CASE("$target_cpu", [x64|x86_64|i[3-6]86*], [ https://github.com/ruby/ruby/blob/trunk/configure.ac#L1328
 ])
 RUBY_UNIVERSAL_CHECK_HEADER([x86_64, i386], x86intrin.h)
 
-AC_ARG_WITH([gmp],
-  [AS_HELP_STRING([--without-gmp],
-    [disable GNU GMP to accelerate Bignum operations])],
-  [],
-  [with_gmp=yes])
 AS_IF([test "x$with_gmp" != xno],
   [AC_CHECK_HEADERS(gmp.h)
    AS_IF([test "x$ac_cv_header_gmp_h" != xno],
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]