fd0cbd09083b5b275dbd73671013e3b7ad3b575c
angie
  Wed Sep 2 16:54:21 2015 -0700
Check whether local file "extTools.ra" exists before calling printExtMenuData and showing the keyboard shortcuts for it.

diff --git src/hg/hgTracks/extTools.h src/hg/hgTracks/extTools.h
index c5a358f..d8f0c9c 100644
--- src/hg/hgTracks/extTools.h
+++ src/hg/hgTracks/extTools.h
@@ -16,18 +16,21 @@
     char *url;            /* target URL of the tool CGI */
     char *email;          /* email address of external tool */
     bool isHttpGet;      /* default is a POST request. Set to 1/on/true to make it a http GET request */
     int maxSize;          /* maximum size in bp that can be handled by tool or 0 for any */
     struct slPair *params;	          /* CGI vars we have to send to the tool */
     struct slName *dbs;	          /* if not null: list of DBS to show the entry */
     struct slName *notDbs;	          /* if not null: list of DBS where entry should NOT be shown */
 };
 
 struct extTool *readExtToolRa(char *raFileName);
 /* parse the extTools.ra file. */
 
 void extToolRedirect(struct cart *cart, char *tool);
 /* redirect to an external tool, sending the data specified in the ext tools config file */
 
+boolean extToolsEnabled();
+/* Return TRUE if we can display the external tools menu. */
+
 void printExtMenuData();
 /* print the external tools aka "send to" menu entries as JSON to stdout */
 #endif