Ignore:
Timestamp:
Jan 26, 2013, 7:53:56 AM (10 years ago)
Author:
Peter
Message:

refs #745. Implement a workaround when bam_nt16_rev_table is not
available in -lbam.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.10-stable/m4/yat_check_libbam.m4

    r2928 r2972  
    11## $Id$
    22#
    3 # serial 1 (yat 0.10)
     3# serial 2 (yat 0.10.2)
    44#
    55#
    6 #   Copyright (C) 2012 Peter Johansson
     6#   Copyright (C) 2012, 2013 Peter Johansson
    77#
    88#   This file is part of the yat library, http://dev.thep.lu.se/yat
     
    7878LIBS=$save_LIBS
    7979]) # YAT_LINK_BAM_IFELSE
     80
     81# YAT_BAM_NT16_REV_TABLE
     82# ====================================================================
     83# Check if global variable bam_nt16_rev_table is available in
     84# -lbam. If found call AC_DEFINE(HAVE_BAM_NT16_REV_TABLE).
     85AC_DEFUN([YAT_BAM_NT16_REV_TABLE],
     86[
     87AC_MSG_CHECKING([for bam_nt16_rev_table])
     88AC_LINK_IFELSE([AC_LANG_PROGRAM(
     89                 [@%:@if HAVE_BAM_H
     90                  @%:@ include <bam.h>
     91                  @%:@elif HAVE_BAM_BAM_H
     92                  @%:@ include <bam/bam.h>
     93                  @%:@elif HAVE_SAMTOOLS_BAM_H
     94                  @%:@ include <samtools/bam.h>
     95                  @%:@endif
     96                 ],[
     97                  char c = bam_nt16_rev_table@<:@7@:>@;
     98                 ])
     99               ],[
     100                 AC_MSG_RESULT([yes])
     101                 AC_DEFINE([HAVE_BAM_NT16_REV_TABLE], [1],
     102                           [Define to 1 if libbam contains bam_nt16_rev_table])
     103               ],[
     104                 AC_MSG_RESULT([no])
     105               ])
     106]) # YAT_BAM_NT16_REV_TABLE
Note: See TracChangeset for help on using the changeset viewer.