-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfigure.ac
93 lines (80 loc) · 2.69 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
dnl -*- Autoconf -*-
AC_INIT([PiGx], [m4_translit(m4_esyscmd([cat VERSION]),m4_newline)])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([gnu color-tests tar-pax -Wall -Wno-portability foreign])
AM_SILENT_RULES([yes])
dnl We need sed for version checks
AC_PROG_SED
dnl Load Python support for Automake and ensure we have a Python
dnl interpreter for at least version 3.6. This sets the "PYTHON"
dnl variable.
dnl https://www.gnu.org/software/automake/manual/html_node/Python.html
AM_PATH_PYTHON([3.6])
pipelines=""
AC_ARG_ENABLE([bundle],
AS_HELP_STRING([--enable-bundle], [Build pipelines in sub-directories.]))
AC_ARG_ENABLE([bsseq],
AS_HELP_STRING([--disable-bsseq], [Do not build the bisulfite sequencing pipeline.]))
if test "x$enable_bsseq" != "xno"; then
if test "x$enable_bundle" = "xyes"; then
AC_CONFIG_SUBDIRS([pipelines/bsseq])
else
AC_PATH_PROG([PIGX_BSSEQ], [pigx-bsseq])
fi
pipelines="$pipelines bsseq"
fi
AC_ARG_ENABLE([rnaseq],
AS_HELP_STRING([--disable-rnaseq], [Do not build the RNAseq pipeline.]))
if test "x$enable_rnaseq" != "xno"; then
if test "x$enable_bundle" = "xyes"; then
AC_CONFIG_SUBDIRS([pipelines/rnaseq])
else
AC_PATH_PROG([PIGX_RNASEQ], [pigx-rnaseq])
fi
pipelines="$pipelines rnaseq"
fi
AC_ARG_ENABLE([chipseq],
AS_HELP_STRING([--disable-chipseq], [Do not build the chipseq pipeline.]))
if test "x$enable_chipseq" != "xno"; then
if test "x$enable_bundle" = "xyes"; then
AC_CONFIG_SUBDIRS([pipelines/chipseq])
else
AC_PATH_PROG([PIGX_CHIPSEQ], [pigx-chipseq])
fi
pipelines="$pipelines chipseq"
fi
AC_ARG_ENABLE([crispr],
AS_HELP_STRING([--enable-crispr], [Build the crispr pipeline.]))
if test "x$enable_crispr" = "xyes"; then
if test "x$enable_bundle" = "xyes"; then
AC_CONFIG_SUBDIRS([pipelines/crispr])
else
AC_PATH_PROG([PIGX_CRISPR], [pigx-crispr])
fi
pipelines="$pipelines crispr"
fi
AC_ARG_ENABLE([scrnaseq],
AS_HELP_STRING([--disable-scrnaseq], [Do not build the single cell RNAseq pipeline.]))
if test "x$enable_scrnaseq" != "xno"; then
if test "x$enable_bundle" = "xyes"; then
AC_CONFIG_SUBDIRS([pipelines/scrnaseq])
else
AC_PATH_PROG([PIGX_SCRNASEQ], [pigx-scrnaseq])
fi
pipelines="$pipelines scrnaseq"
fi
AC_ARG_ENABLE([sars-cov-2],
AS_HELP_STRING([--disable-sars-cov-2], [Do not build the SARS-CoV-2 pipeline.]))
if test "x$enable_sars-cov-2" != "xno"; then
if test "x$enable_bundle" = "xyes"; then
AC_CONFIG_SUBDIRS([pipelines/sars-cov-2])
else
AC_PATH_PROG([PIGX_SARS_COV_2], [pigx-sars-cov-2])
fi
pipelines="$pipelines sars-cov-2"
fi
AC_SUBST([pipelines], [$pipelines])
AC_CONFIG_FILES([pigx], [chmod +x pigx])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT