9d7ad023de1fe5c42d386f3793fb87b80732d607
angie
  Tue Feb 8 11:48:18 2011 -0800
Feature #27 (table browser support for BAM): addition of BAM supportwithout enough #ifdef USE_BAM's led to compile errors without USE_BAM=1.
Fix: add stub routines to bamFile.c so that the compile won't break,
but informative error message will be printed if bamFile routines are
called.  I was hoping that this would obviate most of the #ifdef USE_BAM's
currently in the tree, but actually most of those prevent CGIs from
getting into trouble by offering BAM functionality when it isn't
compiled in.  So I left most current #ifdef USE_BAM's in place, but
when future new code doesn't #ifdef, at least the compile won't break.

diff --git src/hg/hgTables/bam.c src/hg/hgTables/bam.c
index 23bdb39..0dc1d9b 100644
--- src/hg/hgTables/bam.c
+++ src/hg/hgTables/bam.c
@@ -1,19 +1,17 @@
 /* bam - stuff to handle BAM stuff in table browser. */
 
-#ifdef USE_BAM
-
 #include "common.h"
 #include "hash.h"
 #include "linefile.h"
 #include "dystring.h"
 #include "localmem.h"
 #include "jksql.h"
 #include "cheapcgi.h"
 #include "cart.h"
 #include "web.h"
 #include "bed.h"
 #include "hdb.h"
 #include "trackDb.h"
 #include "obscure.h"
 #include "hmmstats.h"
 #include "correlate.h"
@@ -312,17 +310,15 @@
 for (col = as->columnList; col != NULL; col = col->next)
     {
     hPrintf("<TR><TD><TT>%s</TT></TD>", col->name);
     hPrintf("<TD>%s</TD></TR>", col->comment);
     ++colCount;
     }
 hTableEnd();
 
 /* In a perfect world would print sample rows here.  Maybe later.... */
 
 /* Clean up and go home. */
 freeMem(fileName);
 hFreeConn(&conn);
 }
 
-#endif /* USE_BAM */
-