+AC_DO_PORT(mcs51, mcs51, MCS51, [Excludes the Intel mcs51 port])
+AC_DO_PORT(gbz80, z80, GBZ80, [Excludes the Gameboy gbz80 port])
+AC_DO_PORT(z80, z80, Z80, [Excludes the z80 port])
+AC_DO_PORT(avr, avr, AVR, [Excludes the AVR port])
+AC_DO_PORT(ds390, ds390, DS390, [Excludes the DS390 port])
+AC_DEFINE_UNQUOTED(OPT_DISABLE_TININative, $OPT_DISABLE_DS390)
+AC_DO_PORT(ds400, ds400, DS400, [Excludes the DS400 port])
+AC_DO_PORT(pic, pic, PIC, [Excludes the PIC port])
+AC_DO_PORT(pic16, pic16, PIC16, [Excludes the PIC16 port])
+AC_DO_PORT(xa51, xa51, XA51, [Excludes the XA51 port])
+AC_DO_PORT(hc08, hc08, HC08, [Excludes the HC08 port])
+
+AC_DO_DISABLER(ucsim, UCSIM, [Disables configuring and building of ucsim])
+AC_DO_DISABLER(device-lib, DEVICE_LIB, [Disables building device libraries])
+AC_DO_DISABLER(packihx, PACKIHX, [Disables building packihx])
+AC_DO_DISABLER(sdcpp, SDCPP, [Disables building sdcpp])
+AC_DO_DISABLER(sdcdb, SDCDB, [Disables building sdcdb])
+
+AC_DO_ENABLER(doc, DOC, [Enables building the documentation])
+if test $OPT_ENABLE_DOC = 1; then
+ AC_CHECK_PROG(LYX, lyx, lyx, :)
+ AC_CHECK_PROG(LATEX2HTML, latex2html, latex2html, :)
+ AC_CHECK_PROG(PDFLATEX, pdflatex, pdflatex, :)
+ AC_CHECK_PROG(PDFOPT, pdfopt, pdfopt, :)
+ AC_CHECK_PROG(MAKEINDEX, makeindex, makeindex, :)
+
+ SDCC_REQUIRE_PROG($LYX, lyx)
+ SDCC_REQUIRE_PROG($LATEX2HTML, latex2html)
+ SDCC_REQUIRE_PROG($PDFLATEX, pdflatex)
+ SDCC_REQUIRE_PROG($PDFOPT, pdfopt)
+ SDCC_REQUIRE_PROG($MAKEINDEX, makeindex)