@@ -712,13 +712,18 @@ else if test $SHARED = no -a $TRY_STATIC = yes
712712 fi
713713fi
714714
715+ AC_ARG_WITH ( [ system-libs] ,
716+ [ AS_HELP_STRING ( [ --with-system-libs] ,
717+ [ use system gc, memtailor, mathic, and mathicgb instead of building them] ) ] ,,
718+ [ with_system_libs=no] )
719+
715720# # we build gc by default so we can configure it for large memory spaces
716721# # see issue #2445
717722AC_ARG_WITH ( [ system-gc] ,
718723 [ AS_HELP_STRING ( [ --with-system-gc] ,
719724 [ use system gc instead of building it] ) ] ,
720725 [ ] ,
721- [ with_system_gc=no ] )
726+ [ with_system_gc=$with_system_libs ] )
722727
723728AS_IF ( [ test "x$with_system_gc" = xyes] ,
724729 [ AC_MSG_CHECKING ( whether package bdw-gc is provided )
@@ -1311,7 +1316,7 @@ AS_IF([test $BUILD_tbb = yes],
13111316AC_ARG_WITH ( [ system-memtailor] ,
13121317 [ AS_HELP_STRING ( [ --with-system-memtailor] ,
13131318 [ use system memtailor instead of building git submodule] ) ] ,,
1314- [ with_system_memtailor=no ] )
1319+ [ with_system_memtailor=$with_system_libs ] )
13151320if test $with_system_memtailor = no
13161321then
13171322 BUILD_memtailor=yes
13271332AC_ARG_WITH ( [ system-mathic] ,
13281333 [ AS_HELP_STRING ( [ --with-system-mathic] ,
13291334 [ use system mathic instead of building git submodule] ) ] ,,
1330- [ with_system_mathic=no ] )
1335+ [ with_system_mathic=$with_system_libs ] )
13311336if test $with_system_mathic = no
13321337then
13331338 BUILD_mathic=yes
13431348AC_ARG_WITH ( [ system-mathicgb] ,
13441349 [ AS_HELP_STRING ( [ --with-system-mathicgb] ,
13451350 [ use system mathicgb instead of building git submodule] ) ] ,,
1346- [ with_system_mathicgb=no ] )
1351+ [ with_system_mathicgb=$with_system_libs ] )
13471352if test $with_system_mathicgb = no
13481353then
13491354 BUILD_mathicgb=yes
0 commit comments