Changeset 3068
- Timestamp:
- Aug 1, 2013, 5:16:44 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEWS
r3056 r3068 11 11 - tTest::score(void) is now declared const (ticket #755) 12 12 - BamReadIterator(4) will now throw if region is invalid (ticket #764) 13 - #defines HAVE_BAM_H, HAVE_BAM_BAM_H, and HAVE_SAMTOOLS_BAM_H have been 14 replaced with corresponding macros with prefix 'YAT_' (see ticket #766) 13 15 14 16 A complete list of closed tickets can be found here [[br]] -
trunk/m4/yat_check_libbam.m4
r2986 r3068 1 1 ## $Id$ 2 2 # 3 # serial 2 (yat 0.10.2)3 # serial 3 (yat 0.11) 4 4 # 5 5 # … … 28 28 yat_bam_header=no 29 29 # check how to #include <bam.h> 30 AC_CHECK_HEADERS([bam/bam.h bam.h samtools/bam.h bam.h], 31 [yat_bam_header=yes; break]) 30 m4_map_args_w([bam/bam.h bam.h samtools/bam.h], 31 [_YAT_CHECK_HEADER_BAM(], [) 32 ]) 32 33 AS_IF([test x$yat_bam_header = xyes], [$1], [$2]) 33 34 ]) # YAT_CHECK_HEADER_BAM 35 36 37 # _YAT_CHECK_HEADER_BAM 38 # ===================== 39 # Private macro used in YAT_CHECK_HEADER_BAM 40 AC_DEFUN([_YAT_CHECK_HEADER_BAM], 41 [ 42 AS_IF([test x$yat_bam_header = xno], [dnl 43 AC_CHECK_HEADER([$1], [ 44 AC_DEFINE_UNQUOTED(AS_TR_CPP([YAT_HAVE_$1]), [1], 45 [Define to 1 if you have <$1> header file]) 46 yat_bam_header=yes; 47 ]) 48 ]) 49 ]) # _YAT_CHECK_HEADER_BAM 34 50 35 51 … … 39 55 AC_DEFUN([YAT_CHECK_LIBBAM], 40 56 [ 41 AC_REQUIRE([YAT_CHECK_HEADER_BAM])42 57 BAM_LIBS=no 43 58 AC_MSG_CHECKING([for library containing bam_header_destroy]) … … 64 79 save_LIBS=$LIBS 65 80 LIBS="$1 $LIBS" 66 AC_LINK_IFELSE([AC_LANG_PROGRAM([@%:@if HAVE_BAM_H 67 @%:@ include <bam.h> 68 @%:@elif HAVE_BAM_BAM_H 69 @%:@ include <bam/bam.h> 70 @%:@elif HAVE_SAMTOOLS_BAM_H 71 @%:@ include <samtools/bam.h> 72 @%:@endif 73 ],[ 81 AC_LINK_IFELSE([AC_LANG_PROGRAM([_YAT_BAM_INCLUDES], 82 [ 74 83 bam_header_t* hdr = bam_header_init(); 75 84 bam_header_destroy(hdr); … … 86 95 [ 87 96 AC_MSG_CHECKING([for bam_nt16_rev_table]) 88 AC_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 ]) 97 AC_LINK_IFELSE([AC_LANG_PROGRAM([_YAT_BAM_INCLUDES], 98 [char c = bam_nt16_rev_table@<:@7@:>@;]) 99 99 ],[ 100 100 AC_MSG_RESULT([yes]) … … 105 105 ]) 106 106 ]) # YAT_BAM_NT16_REV_TABLE 107 108 109 # _YAT_BAM_INCLUDES 110 # ================= 111 # Private macro that expand PP magic we see in 'yat/omic/bam_config.h' 112 AC_DEFUN([_YAT_BAM_INCLUDES], 113 [AC_REQUIRE([YAT_CHECK_HEADER_BAM]) 114 @%:@if YAT_HAVE_BAM_H 115 @%:@ include <bam.h> 116 @%:@elif YAT_HAVE_BAM_BAM_H 117 @%:@ include <bam/bam.h> 118 @%:@elif YAT_HAVE_SAMTOOLS_BAM_H 119 @%:@ include <samtools/bam.h> 120 @%:@endif 121 ]) # _YAT_BAM_HEADER -
trunk/yat/omic/config_bam.h
r2990 r3068 34 34 #include "yat/utility/config_public.h" 35 35 36 #ifdef HAVE_BAM_H36 #ifdef YAT_HAVE_BAM_H 37 37 # define YAT_BAM_HEADER "bam.h" 38 38 # define YAT_SAM_HEADER "sam.h" 39 39 #else 40 # ifdef HAVE_BAM_BAM_H40 # ifdef YAT_HAVE_BAM_BAM_H 41 41 # define YAT_BAM_HEADER "bam/bam.h" 42 42 # define YAT_SAM_HEADER "bam/sam.h" 43 43 # else 44 # ifdef HAVE_SAMTOOLS_BAM_H44 # ifdef YAT_HAVE_SAMTOOLS_BAM_H 45 45 # define YAT_BAM_HEADER "samtools/bam.h" 46 46 # define YAT_SAM_HEADER "samtools/sam.h" -
trunk/yat/utility/config_public.h.in
r3045 r3068 29 29 30 30 /// Define to 1 if you have the <bam/bam.h> header file. 31 #undef HAVE_BAM_BAM_H31 #undef YAT_HAVE_BAM_BAM_H 32 32 33 33 /// Define to 1 if you have the <bam.h> header file. 34 #undef HAVE_BAM_H34 #undef YAT_HAVE_BAM_H 35 35 36 36 /// Define to 1 if you have the <samtools/bam.h> header file. 37 #undef HAVE_SAMTOOLS_BAM_H37 #undef YAT_HAVE_SAMTOOLS_BAM_H 38 38 39 39 /// Define if compiler supports deprecated attribute, as in g++ 4.0
Note: See TracChangeset
for help on using the changeset viewer.