X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=configure.in;h=541e1e5493a678a3cc1a73094c5e38dd3aa43abb;hb=5df1b9a579235d42fcec8a8884808334ed99a246;hp=1f4f1bf96828f0b959047790ec2401475ec61b80;hpb=11e3839c21831fa11d5508b05a57320e02f12330;p=fw%2Fsdcc diff --git a/configure.in b/configure.in index 1f4f1bf9..541e1e54 100755 --- a/configure.in +++ b/configure.in @@ -300,10 +300,19 @@ AC_ARG_ENABLE(device-lib-build,[ --disable-device-lib-build Disables automatica OPT_ENABLE_DEVICE_LIB_BUILD=$enable_device_lib_build AC_SUBST(OPT_ENABLE_DEVICE_LIB_BUILD) -AC_ARG_ENABLE(packihx,[ -disable-packihx Disables building packihx]) +AC_ARG_ENABLE(packihx,[ --disable-packihx Disables building packihx]) OPT_ENABLE_PACKIHX=$enable_packihx AC_SUBST(OPT_ENABLE_PACKIHX) +AC_ARG_ENABLE(libgc,[ --enable-libgc Use the Bohem memory allocator. Lower runtime footprint.]) +if test "$enable_libgc" = "yes"; then + AC_CHECK_LIB(gc, GC_malloc) + OPT_ENABLE_LIBGC=1 +else + OPT_ENABLE_LIBGC=0 +fi +AC_DEFINE_UNQUOTED(OPT_ENABLE_LIBGC, $OPT_ENABLE_LIBGC) + #remove duplicates cat ports.all | uniq >ports mv ports ports.all