Add license file

This code has been made available according to the terms of the
MIT/Expat license; this adds a LICENSE file stating those terms.
Add MIT/Expat license boilerplate
Fix copy/pasto
Files under cram/ are BSD-licensed

Note in LICENSE that files in cram/* are licensed according to the
Modified (i.e., 3-clause) BSD license, which is mostly equivalent to
the MIT/Expat license.

Update copyright years in cram_decode.c and cram_io.h.
Add copyright notices and licensing boilerplate

Functions kf_lgamma(), kf_erfc(), kf_gammap(), kf_gammaq(), kf_betai_aux(),
and the functions they call are from klib's kmath.c/.h written by Attractive
Chaos.  kt_fisher_exact() and the functions it calls are from the previous
(standalone) samtools's bcftools/fet.c, written by Heng Li.

Also rationalise kfunc.h's include guard macro name.  Eventually these
may be replaced by upstream kmath.c/.h (augmented with kt_fisher_exact())
with its AC_KMATH_H guard.
Add klib copyright notices and licensing boilerplate

For knetfile.h, copy boilerplate from knetfile.c (the same copyright
years apply to knetfile.h).  Add appropriate copyright years to the
kstring.h notice, and copy the resulting boilerplate to kstring.c
(where the same copyright years again apply).

Other klib files already have appropriate notices and boilerplate.

Remove kstdint.h, which is unused in htslib/samtools/bcftools,
and remove it from htslib.mk.
Omit control files and README.md from release tarballs
Add copyright notices and licensing boilerplate
Add copyright notices and licensing boilerplate

(There is also a small contribution from Joel Thibault that is not
legally significant for copyright purposes.)
Update copyright notices to reflect historic changes

In bgzf.c, add 2012 to parallel the related notice in bgzf.h.
Add Genome Research notice pertaining to changes from Heng Li in 2009
and from others in more recent years.
Add copyright notices and licensing boilerplate

These files originated in the tabix project as tabix.h (htslib/tbx.h)
and index.c (tbx.c).  Early copyright years have been taken from the
copyright notice in tabix/tabix.h, which records that this code originated
while its author was at Sanger in 2009 and was further modified while he
was at Broad in 2010.  Later copyright years from 2012 onwards relate to
the files' histories within this htslib repository.

(See also https://github.com/samtools/tabix)
Update copyright years to reflect historic changes

(There are also small contributions from Peter Chines (bgzip.c) and
Jared Simpson (htslib/faidx.h) that are not legally significant for
copyright purposes.)
Add copyright notices and licensing boilerplate

These files originated in the samtools project as bam.h (htslib/sam.h),
bam_index.c and others (hts.c), and bam.c, bam_pileup.c and others (sam.c).

Early copyright years have been gleaned from the history of relevant parts
of those files in the samtools repository.  Later copyright years from 2012
onwards relate to the files' histories within this htslib repository.

(The files htslib/sam.h and sam.c also contain small contributions from
Mauricio Carneiro that are not legally significant for copyright purposes.)

(See also https://github.com/samtools/samtools)
Add copyright notices and licensing boilerplate

This file originated from the old samview.c, so includes a copyright
notice reflecting that file's authorship.
Add copyright notices and licensing boilerplate

This file originated in the samtools project, so includes copyright
notices reflecting its authorship there, with its original author at
Sanger until 2009 and at Broad by 2011.

(See also https://github.com/samtools/samtools)

(There are also small contributions from Peter Cock and Jared Simpson
that are not legally significant for copyright purposes.)
Add copyright notices and licensing boilerplate

These files originated as parts of samtools.1 in the samtools project,
so include copyright notices reflecting that file's authorship there,
with its original author at Sanger until 2009 and at Broad by 2011.

(See also https://github.com/samtools/samtools)
Add copyright notices and licensing boilerplate

For changes by Heng Li, the applicable copyright notices reflect
that he was at Sanger until October 2009 and at Broad thereafter.

(The file htslib/vcf.h also contains small contributions from
Aaron Quinlan and Joël Spaltenstein that are not legally significant
for copyright purposes.)
Merge copyright notice and licensing boilerplate additions

(This merge also adds 2014 to htslib/faidx.h's copyright notice,
reflecting changes since this boilerplate branch was started.)
Canonicalise whitespace -- USE -b/-w TO DIFF/BLAME ACROSS THIS COMMIT

Expand tabs as spaces; hard tab characters are no longer to be used
as there is disagreement as to how many columns they should expand to.
Remove trailing whitespace at the end of lines.

After this commit, please do not commit hard tab characters or trailing
whitespace in .c, .h, or .pl files, and please consider using a pre-commit
hook in your local repository to enforce this.

These steps will minimise the incidental whitespace changes unrelated
to the intended commit changes that make viewing diffs and merging
less convenient.

To compare files prior to and after the whitespace discontinuity of
this commit, use "diff -b" or "diff -w", "blame -w", etc.

(This does not apply to files in the cram/ subdirectory or the klib
files k*.c and htslib/k*.h.  These files are synchronised with other
projects, so minimising differences with copies of this code elsewhere
is more important.  Please avoid accidental incidental whitespace
changes in these files too.)
Link shared library against libm and libpthread

kfunc.c uses libm and bgzf.c requires pthreads -- hat tip @apmasell.
Partial fix for #94.

(No changes needed for libhts.dylib, as on Mac OS X maths and pthreads
functions are in libSystem.dylib -- -lm and -lpthread merely add further
symlinks to libSystem.dylib to the linking.)