+### 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])],
+ [AS_CASE([${enableval}],
+ [yes], [OPEN_RECENT_MENU_ITEM="<menuitem action=\"recent\"/>"],
+ [no], [OPEN_RECENT_MENU_ITEM="<!-- <menuitem action=\"recent\"/>-->"],
+ [AC_MSG_ERROR([bad value ${enableval} for --enable-recent])]
+ )],
+ [OPEN_RECENT_MENU_ITEM="<menuitem action=\"recent\"/>"]
+)
+AC_SUBST(OPEN_RECENT_MENU_ITEM)
+