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])