Replace Progs/RNAalifold with x64 binary and add all other programs
[jabaws.git] / binaries / src / ViennaRNA / Kinfold / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.61)
5
6 AC_INIT([kinfold], [1.3], [rna@tbi.univie.ac.at], [Kinfold])
7 AC_CONFIG_SRCDIR([cache_util.h])
8
9 AM_SILENT_RULES([yes])
10 dnl Every other copy of the package version number gets its value from here
11 AM_INIT_AUTOMAKE([1.11])
12
13 dnl configure options
14 AM_WITH_DMALLOC
15
16 dnl Checks for programs.
17 AC_PROG_CC
18 dnl AC_PROG_MAKE_SET
19
20 dnl create a config.h file (Automake will add -DHAVE_CONFIG_H)
21 AC_CONFIG_HEADERS(config.h)
22
23 AC_SUBST(VERSION)
24
25 ISODATE=`date +%Y-%m-%d`
26 AC_SUBST(ISODATE)
27
28 AC_CANONICAL_HOST
29
30 dnl Checks for library functions.
31 AC_CHECK_FUNCS([strdup memset strchr])
32
33 AC_ARG_WITH(ViennaRNA-include,
34   [ --with-ViennaRNA-include    where to search for ViennaRNA header files],
35   ac_VRNA_includes="$withval",
36   )
37
38 AC_ARG_WITH(ViennaRNA-lib,
39   [ --with-ViennaRNA-lib        where to search for libRNA.a],
40   ac_VRNA_lib="$withval",
41   )
42 AC_OPENMP
43
44 AC_PATH_VRNA
45
46 dnl Checks for header files.
47 AC_HEADER_STDC
48 AC_CHECK_HEADERS(stdlib.h string.h strings.h unistd.h fold.h)
49
50 dnl Checks for libraries.
51 dnl Replace `main' with a function in -lm:
52 AC_CHECK_LIB(m, exp)
53 AC_FUNC_MALLOC
54 AC_FUNC_REALLOC
55
56 dnl checking for -lRNA will fail if both are built simultaneously
57 dnl AC_CHECK_LIB(RNA, fold)
58 LIBS=["-lRNA ${LIBS}"]
59
60 dnl Checks for typedefs, structures, and compiler characteristics.
61 AC_C_CONST
62
63 AC_CONFIG_FILES([Example/Makefile Makefile])
64
65 AC_OUTPUT