X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=configure.in;h=926ba7eed345a131222ecd3573034f77bd267674;hb=1a318a68e00717a3ab06cc7b0e8ec95a5833b465;hp=69cb983b0a8ed8d2aa8a00501fd01d55304c0ed8;hpb=ed8006bb3bef2f705f110b96c90203e3a5efa83a;p=fw%2Fsdcc diff --git a/configure.in b/configure.in index 69cb983b..926ba7ee 100755 --- a/configure.in +++ b/configure.in @@ -213,34 +213,85 @@ AC_DEFINE_UNQUOTED(SRCDIR, "${config_in}") # Now handle the port selection -AC_ARG_ENABLE(z80-port,--disable-z80-port: Excludes the z80 port) -if test "$enable_z80_port" = "no"; then - AC_DEFINE_UNQUOTED(OPT_DISABLE_Z80, 1) +rm -f ports.all ports.build +AC_ARG_ENABLE(mcs51-port,--disable-mcs51-port: Excludes the Intel mcs51 port) +echo mcs51 >>ports.all +if test "$enable_mcs51_port" = "no"; then + AC_DEFINE_UNQUOTED(OPT_DISABLE_MCS51, 1) else - AC_DEFINE_UNQUOTED(OPT_DISABLE_Z80, 0) + echo mcs51 >>ports.build + AC_DEFINE_UNQUOTED(OPT_DISABLE_MCS51, 0) fi AC_ARG_ENABLE(gbz80-port,--disable-gbz80-port: Excludes the Gameboy gbz80 port) +echo z80 >>ports.all if test "$enable_gbz80_port" = "no"; then AC_DEFINE_UNQUOTED(OPT_DISABLE_GBZ80, 1) else + echo z80 >>ports.build AC_DEFINE_UNQUOTED(OPT_DISABLE_GBZ80, 0) fi -AC_ARG_ENABLE(mcs51-port,--disable-mcs51-port: Excludes the Intel mcs51 port) -if test "$enable_mcs51_port" = "no"; then - AC_DEFINE_UNQUOTED(OPT_DISABLE_MCS51, 1) +AC_ARG_ENABLE(z80-port,--disable-z80-port: Excludes the z80 port) +echo z80 >>ports.all +if test "$enable_z80_port" = "no"; then + AC_DEFINE_UNQUOTED(OPT_DISABLE_Z80, 1) else - AC_DEFINE_UNQUOTED(OPT_DISABLE_MCS51, 0) + echo z80 >>ports.build + AC_DEFINE_UNQUOTED(OPT_DISABLE_Z80, 0) fi AC_ARG_ENABLE(avr-port,--disable-avr-port: Excludes the AVR port) +echo avr >>ports.all if test "$enable_avr_port" = "no"; then AC_DEFINE_UNQUOTED(OPT_DISABLE_AVR, 1) else + echo avr >>ports.build AC_DEFINE_UNQUOTED(OPT_DISABLE_AVR, 0) fi +AC_ARG_ENABLE(ds390-port,--disable-ds390-port: Excludes the DS390 port) +echo ds390 >>ports.all +if test "$enable_ds390_port" = "no"; then + AC_DEFINE_UNQUOTED(OPT_DISABLE_DS390, 1) +else + echo ds390 >>ports.build + AC_DEFINE_UNQUOTED(OPT_DISABLE_DS390, 0) +fi + +AC_ARG_ENABLE(pic-port,--disable-pic-port: Excludes the PIC port) +echo pic >>ports.all +if test "$enable_pic_port" = "no"; then + AC_DEFINE_UNQUOTED(OPT_DISABLE_PIC, 1) +else + echo pic >>ports.build + AC_DEFINE_UNQUOTED(OPT_DISABLE_PIC, 0) +fi + +AC_ARG_ENABLE(i186-port,--disable-i186-port: Excludes the I186 port) +echo izt >>ports.all +if test "$enable_i186_port" = "no"; then + AC_DEFINE_UNQUOTED(OPT_DISABLE_I186, 1) +else + echo izt >>ports.build + AC_DEFINE_UNQUOTED(OPT_DISABLE_I186, 0) +fi + +AC_ARG_ENABLE(tlcs900h-port,--disable-tlcs900h-port: Excludes the TLCS900H port) +echo izt >>ports.all +if test "$enable_tlcs900h_port" = "no"; then + AC_DEFINE_UNQUOTED(OPT_DISABLE_TLCS900H, 1) +else + echo izt >>ports.build + AC_DEFINE_UNQUOTED(OPT_DISABLE_TLCS900H, 0) +fi + +#remove duplicates +cat ports.all | uniq >ports +mv ports ports.all +cat ports.build | uniq >ports +mv ports ports.build + # Generating output files # =========================================================================== AC_CONFIG_SUBDIRS(sim/ucsim)