1 dnl Process this file with autoconf to produce a configure script.
3 dnl Every other copy of the package version number gets its value from here
4 AC_INIT([ViennaRNA],[2.1.2],[rna@tbi.univie.ac.at],[ViennaRNA], [http://www.tbi.univie.ac.a/~ivo/RNA])
6 AC_CONFIG_AUX_DIR(config)
10 m4_include([m4/package.m4])
12 dnl change the default installation prefix
13 dnl AC_PREFIX_DEFAULT(/usr/local/RNA)
15 AM_SILENT_RULES([yes])
16 AM_INIT_AUTOMAKE([1.11])
18 dnl create a config.h file (Automake will add -DHAVE_CONFIG_H)
19 AC_CONFIG_HEADERS([config.h])
24 AC_ARG_VAR(PERLPREFIX, [Prefix for installation of the Perl module.
25 By default the perl module is installed wherever Perl thinks it belongs, ignoring the $prefix used by configure])
28 ISODATE=`date +%Y-%m-%d`
33 dnl Checks for programs.
40 AC_ARG_VAR(FPIC,[compiler flag for generating PIC code that can be used in a shared library])
42 if test "$GCC" = yes; then
43 AC_DEFINE(UNUSED, __attribute__ ((unused)), avoid warning about unused variables)
45 AC_DEFINE(UNUSED,, only for gcc)
55 dnl Check for OpenMP and prepare flags
57 AC_SUBST(OPENMP_CFLAGS)
59 dnl Checks for libraries.
60 AC_CHECK_LIB([m], [exp])
62 dnl Checks for header files.
65 AC_CHECK_HEADERS([malloc.h float.h limits.h stdlib.h string.h strings.h unistd.h unistd.h math.h])
67 dnl Checks for funtions
71 AC_CHECK_FUNCS([floor strdup strstr strchr strrchr strstr strtol strtoul pow rint sqrt erand48 memset memmove erand48])
73 dnl Checks for typedefs, structures, and compiler characteristics.