X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=configure.in;h=9361997463d7a1d172c3897b1af5029ebddf5f49;hb=57781964418caea528f9018cace1acb4a789d71c;hp=340e9c1d0d2ed38c18b596ed946a5fae414d19e8;hpb=ad747cdb5754c81947b3191c18031c4a809e39a4;p=fw%2Fsdcc diff --git a/configure.in b/configure.in index 340e9c1d..93619974 100755 --- a/configure.in +++ b/configure.in @@ -65,6 +65,7 @@ AC_HEADER_STDC AC_CHECK_HEADERS(getopt.h) AC_CHECK_HEADERS(unistd.h) AC_CHECK_HEADERS(endian.h) +AC_CHECK_HEADERS(machine/endian.h) AC_CHECK_HEADERS(malloc.h) AC_CHECK_HEADERS(sys/isa_defs.h) AC_CHECK_HEADERS(sys/socket.h) @@ -299,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 @@ -317,11 +327,9 @@ AC_CONFIG_SUBDIRS(sim/ucsim) # MLH: removed as the rules are already in Makefile.common #as/z80/Makefile #link/z80/Makefile -AC_CONFIG_SUBDIRS(sim/ucsim) AC_OUTPUT(main.mk:main_in.mk src/Makefile as/mcs51/Makefile -support/cpp/Makefile device/include/Makefile device/lib/Makefile debugger/mcs51/Makefile