Changeset: aa2d760bd3d4 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=aa2d760bd3d4 Modified Files: configure.ag Branch: default Log Message:
Set config.h symbols when header files are found. diffs (44 lines): diff --git a/configure.ag b/configure.ag --- a/configure.ag +++ b/configure.ag @@ -2389,33 +2389,33 @@ if test "x$have_samtools" != xno; then LDFLAGS="$LDFLAGS $SAMTOOLS_LIBS" AC_CHECK_HEADER(samtools/bam.h, - [ why_have_samtools= ], + [ why_have_samtools=; AC_DEFINE([HAVE_SAMTOOLS_BAM_H], 1, [Define to 1 if you have the <samtools/bam.h> header file.]) ], [ why_have_samtools="bam.h header not found" ]) if test -n "$why_have_samtools"; then AC_CHECK_HEADER(bam/bam.h, - [ why_have_samtools= ], - [ why_have_samtools="Neither samtools/bam.h or bam/bam.h header not found" ]) + [ why_have_samtools=; AC_DEFINE([HAVE_BAM_BAM_H], 1, [Define to 1 if you have the <samtools/bam.h> header file.]) ], + [ why_have_samtools="Neither bam/bam.h or bam/bam.h header not found" ]) fi if test -z "$why_have_samtools"; then AC_CHECK_HEADER(samtools/sam.h, - [ why_have_samtools= ], + [ why_have_samtools=; AC_DEFINE([HAVE_SAMTOOLS_SAM_H], 1, [Define to 1 if you have the <samtools/sam.h> header file.]) ], [ why_have_samtools="sam.h header not found" ]) fi if test -n "$why_have_samtools"; then AC_CHECK_HEADER(bam/sam.h, - [ why_have_samtools= ], + [ why_have_samtools=; AC_DEFINE([HAVE_BAM_SAM_H], 1, [Define to 1 if you have the <bam/sam.h> header file.]) ], [ why_have_samtools="Neither samtools/sam.h or bam/sam.h header not found" ]) fi if test -z "$why_have_samtools"; then AC_CHECK_HEADER(samtools/bgzf.h, - [ why_have_samtools= ], + [ why_have_samtools=; AC_DEFINE([HAVE_SAMTOOLS_BGZF_H], 1, [Define to 1 if you have the <samtools/bgzf.h> header file.]) ], [ why_have_samtools="bgzf.h header not found" ]) fi if test -n "$why_have_samtools"; then AC_CHECK_HEADER(bam/bgzf.h, - [ why_have_samtools= ], + [ why_have_samtools=; AC_DEFINE([HAVE_BAM_BGZF_H], 1, [Define to 1 if you have the <bam/bgzf.h> header file.]) ], [ why_have_samtools="Neither samtool/bgzf.h nor bam/bgzf.h header not found" ]) fi _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list