From e798f45cc2417ae778e4790e3159654c90ba91fe Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Thu, 25 Jul 2024 16:19:53 -0400 Subject: [PATCH] Error when --with-shared-gc doesn't specify a directory --- tool/m4/ruby_shared_gc.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tool/m4/ruby_shared_gc.m4 b/tool/m4/ruby_shared_gc.m4 index 4882bca057..6f77b96830 100644 --- a/tool/m4/ruby_shared_gc.m4 +++ b/tool/m4/ruby_shared_gc.m4 @@ -6,6 +6,10 @@ AC_ARG_WITH(shared-gc, [shared_gc_dir=$withval], [unset shared_gc_dir] ) +AS_IF([test "$shared_gc_dir" = yes], [ + AC_MSG_ERROR(you must specify a directory when using --with-shared-gc) +]) + AC_MSG_CHECKING([if building with shared GC support]) AS_IF([test x"$shared_gc_dir" != x], [ AC_MSG_RESULT([yes])