forked from statgen/demuxlet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
52 lines (42 loc) · 1.51 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.63])
AC_INIT([demuxlet], [0.1.0], [hmkang@umich.edu])
AC_CONFIG_AUX_DIR(aux-dist)
AM_INIT_AUTOMAKE
AC_PROG_MAKE_SET
AC_PROG_CXX
AC_LANG(C++)
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_CXX
AC_CHECK_HEADERS([limits.h stddef.h stdint.h stdlib.h string.h unistd.h])
AC_CHECK_HEADERS([htslib/kseq.h htslib/kstring.h htslib/khash.h htslib/hts.h htslib/sam.h],
[], [AC_MSG_ERROR([htslib headers not found. Please download and compile, and pass CPPFLAGS=-I<htslib_path>])])
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_C_RESTRICT
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
AC_CHECK_TYPES([ptrdiff_t])
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_MALLOC
AC_HEADER_MAJOR
AC_FUNC_REALLOC
AC_FUNC_STRTOD
AC_CHECK_FUNCS([floor gethostname memset pow select sqrt strchr strstr strtol])
AC_CHECK_LIB(z, gzopen, [], [AC_MSG_ERROR([libz.{so,a} was not found. Please install zlib at http://www.zlib.net/ first])])
AC_CHECK_LIB(hts, hts_open, [], [AC_MSG_ERROR([libhts.{so,a} was not found. Please download and compile htslib and pass LDFLAGS=-L<htslib_path>])])
AC_CHECK_LIB([m],[erf],[AC_DEFINE([HAVE_ERF],[1],[libm includes erf])])
AC_CHECK_LIB([m],[erfc],[AC_DEFINE([HAVE_ERFC],[1],[libm includes erfc])])
LT_PREREQ([2.2])
LT_INIT([dlopen shared])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT