- [AS_HELP_STRING([--enable-iliad],[Compiles Chimara for the iLiad])],
- [AS_CASE([${enableval}],
- [yes], [iliad=true],
- [no], [iliad=false],
- [AC_MSG_ERROR([bad value ${enableval} for --enable-iliad])]
- )],
- [iliad=false]
-)
-
-AM_CONDITIONAL([TARGET_ILIAD], [$TEST "x$iliad" = xtrue])
+ [AS_HELP_STRING([--enable-iliad=@<:@yes/no@:>@],
+ [Compiles Chimara for the iLiad @<:@default=no@:>@])],
+ [],
+ [enable_iliad=no])
+AM_CONDITIONAL(TARGET_ILIAD, $TEST "x$enable_iliad" = xyes)
+
+### BUILD WITHOUT RECENT FILES MANAGER #########################################
+# (to work around a bug on OS X)
+AC_ARG_ENABLE([recent],
+ [AS_HELP_STRING([--disable-recent],
+ [Omit recent files menu (to work around a bug on OS X])],
+ [],
+ [enable_recent=yes])
+AS_IF([$TEST "x$enable_recent" = "xyes"],
+ [OPEN_RECENT_MENU_ITEM="<menuitem action=\"recent\"/>"],
+ [OPEN_RECENT_MENU_ITEM="<!-- <menuitem action=\"recent\"/>-->"])
+AC_SUBST(OPEN_RECENT_MENU_ITEM)