2 # Process this file with autoconf to produce a configure script.
6 AC_INIT([kinfold], [1.3], [rna@tbi.univie.ac.at], [Kinfold])
7 AC_CONFIG_SRCDIR([cache_util.h])
10 dnl Every other copy of the package version number gets its value from here
11 AM_INIT_AUTOMAKE([1.11])
16 dnl Checks for programs.
20 dnl create a config.h file (Automake will add -DHAVE_CONFIG_H)
21 AC_CONFIG_HEADERS(config.h)
25 ISODATE=`date +%Y-%m-%d`
30 dnl Checks for library functions.
31 AC_CHECK_FUNCS([strdup memset strchr])
33 AC_ARG_WITH(ViennaRNA-include,
34 [ --with-ViennaRNA-include where to search for ViennaRNA header files],
35 ac_VRNA_includes="$withval",
38 AC_ARG_WITH(ViennaRNA-lib,
39 [ --with-ViennaRNA-lib where to search for libRNA.a],
40 ac_VRNA_lib="$withval",
46 dnl Checks for header files.
48 AC_CHECK_HEADERS(stdlib.h string.h strings.h unistd.h fold.h)
50 dnl Checks for libraries.
51 dnl Replace `main' with a function in -lm:
56 dnl checking for -lRNA will fail if both are built simultaneously
57 dnl AC_CHECK_LIB(RNA, fold)
58 LIBS=["-lRNA ${LIBS}"]
60 dnl Checks for typedefs, structures, and compiler characteristics.
63 AC_CONFIG_FILES([Example/Makefile Makefile])