[Groonga-commit] groonga/groonga [master] mruby: disable mruby by default

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jan 21 12:04:54 JST 2013


Kouhei Sutou	2013-01-21 12:04:54 +0900 (Mon, 21 Jan 2013)

  New Revision: 2232a0e68739d880be0f3885d7fda6eaeda3d859
  https://github.com/groonga/groonga/commit/2232a0e68739d880be0f3885d7fda6eaeda3d859

  Log:
    mruby: disable mruby by default

  Modified files:
    configure.ac
    lib/mrb.c

  Modified: configure.ac (+1 -1)
===================================================================
--- configure.ac    2013-01-19 10:52:37 +0900 (314d483)
+++ configure.ac    2013-01-21 12:04:54 +0900 (ef851fd)
@@ -1259,7 +1259,7 @@ AC_ARG_ENABLE(mruby,
   [AS_HELP_STRING([--enable-mruby],
     [enable mruby. [default=auto]])],
   [enable_mruby="$enableval"],
-  [enable_mruby="yes"])
+  [enable_mruby="no"])
 
 AC_MSG_CHECKING([whether enable mruby])
 if test "x$enable_mruby" != "xyes"; then

  Modified: lib/mrb.c (+1 -1)
===================================================================
--- lib/mrb.c    2013-01-19 10:52:37 +0900 (ee9cf12)
+++ lib/mrb.c    2013-01-21 12:04:54 +0900 (d038602)
@@ -30,7 +30,7 @@ grn_ctx_impl_mrb_init(grn_ctx *ctx)
 {
   const char *grn_mrb_enabled;
   grn_mrb_enabled = getenv("GRN_MRB_ENABLED");
-  if (!grn_mrb_enabled || strcmp(grn_mrb_enabled, "yes") == 0) {
+  if (grn_mrb_enabled && strcmp(grn_mrb_enabled, "yes") == 0) {
     ctx->impl->mrb = mrb_open();
   } else {
     ctx->impl->mrb = NULL;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index