Trisurf Monte Carlo simulator
Samo Penic
2015-10-06 6c3bb91fea92c5013507bdf4f5ac49e889e213ff
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])
a61c00 17 # Checks for libcairo
SP 18
19 ## cairographics needs pkg-config
20 #AC_PATH_PROG(PKGCONF, pkg-config , [], 
21 #         [$PATH:/usr/local/bin:/ext/bin:/ext:/sw/bin:/opt/bin])
22 AC_CHECK_HEADERS([cairo/cairo.h cairo/cairo-png.h])
23 AC_CHECK_HEADERS([cairo.h cairo-png.h])
24 AC_CHECK_LIB([cairo],[cairo_move_to])
25 #PKG_CHECK_MODULES(CAIRO, cairo)
26 #AC_SUBST(CAIRO_CFLAGS)
27 #AC_SUBST(CAIRO_LIBS)
d7639a 28
01d871 29 AC_CHECK_LIB([gslcblas],[cblas_dgemm])
SP 30 AC_CHECK_LIB([gsl],[gsl_blas_dgemm])
31
d7639a 32 # Checks for header files.
aec47d 33 AC_CHECK_HEADERS([stdlib.h string.h])
d7639a 34
SP 35 # Checks for typedefs, structures, and compiler characteristics.
aec47d 36 AC_C_INLINE
SP 37
38 dnl Check if we have enable debug support.
39 AC_MSG_CHECKING(whether to enable debugging)
40 debug_default="yes"
41 AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging
42 [default=$debug_default]],, enable_debug=$debug_default)
43 dnl Yes, shell scripts can be used
44 if test "x$enable_debug" = "xyes"; then
45 CFLAGS="-g -O2 -DDEBUG"
46 AC_MSG_RESULT(yes)
47 else
48 CFLAGS="-O3 -ffast-math"
49 AC_MSG_RESULT(no)
50 fi
d7639a 51
SP 52 # Checks for library functions.
53 AC_FUNC_MALLOC
aec47d 54 AC_FUNC_REALLOC
SP 55 AC_CHECK_FUNCS([pow sqrt strndup])
d7639a 56
SP 57 AC_CONFIG_FILES([Makefile
58                  src/Makefile
59                  test/Makefile])
60 AC_OUTPUT