Trisurf Monte Carlo simulator
Samo Penic
2014-09-11 978e52dad1ade8ab82871846e52449a064c201ac
commit | author | age
d7639a 1 #                                               -*- Autoconf -*-
SP 2 # Process this file with autoconf to produce a configure script.
3
aec47d 4 AC_PREREQ([2.67])
d7639a 5 AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
SP 6 AC_CONFIG_SRCDIR([config.h.in])
7 AC_CONFIG_HEADERS([config.h])
aec47d 8 AM_INIT_AUTOMAKE
d7639a 9 # Checks for programs.
SP 10 AC_PROG_CC
11
12 # Checks for libraries.
aec47d 13 # FIXME: Replace `main' with a function in `-lconfuse':
SP 14 AC_CHECK_LIB([confuse], [cfg_parse])
15 # FIXME: Replace `main' with a function in `-lm':
16 AC_CHECK_LIB([m], [pow])
d7639a 17
01d871 18 AC_CHECK_LIB([gslcblas],[cblas_dgemm])
SP 19 AC_CHECK_LIB([gsl],[gsl_blas_dgemm])
20
d7639a 21 # Checks for header files.
aec47d 22 AC_CHECK_HEADERS([stdlib.h string.h])
d7639a 23
SP 24 # Checks for typedefs, structures, and compiler characteristics.
aec47d 25 AC_C_INLINE
SP 26
27 dnl Check if we have enable debug support.
28 AC_MSG_CHECKING(whether to enable debugging)
29 debug_default="yes"
30 AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging
31 [default=$debug_default]],, enable_debug=$debug_default)
32 dnl Yes, shell scripts can be used
33 if test "x$enable_debug" = "xyes"; then
34 CFLAGS="-g -O2 -DDEBUG"
35 AC_MSG_RESULT(yes)
36 else
37 CFLAGS="-O3 -ffast-math"
38 AC_MSG_RESULT(no)
39 fi
d7639a 40
SP 41 # Checks for library functions.
42 AC_FUNC_MALLOC
aec47d 43 AC_FUNC_REALLOC
SP 44 AC_CHECK_FUNCS([pow sqrt strndup])
d7639a 45
SP 46 AC_CONFIG_FILES([Makefile
47                  src/Makefile
48                  test/Makefile])
49 AC_OUTPUT