Trisurf Monte Carlo simulator
Samo Penic
2023-01-24 a8e354c7fad70eb7fdfda62ec83faf1be6c4ed44
commit | author | age
d7639a 1 #                                               -*- Autoconf -*-
SP 2 # Process this file with autoconf to produce a configure script.
3
a8e354 4 AC_PREREQ([2.71])
SP 5 AC_INIT([trisurf_ng],[1.0],[samo.penic@fe.uni-lj.si])
d7639a 6 AC_CONFIG_SRCDIR([config.h.in])
SP 7 AC_CONFIG_HEADERS([config.h])
a8e354 8 AC_CONFIG_MACRO_DIRS([m4])
aec47d 9 AM_INIT_AUTOMAKE
d7639a 10 # Checks for programs.
SP 11 AC_PROG_CC
7d44c8 12 LT_INIT
a8e354 13 LT_INIT
d7639a 14 # Checks for libraries.
aec47d 15 # FIXME: Replace `main' with a function in `-lconfuse':
SP 16 AC_CHECK_LIB([confuse], [cfg_parse])
17 # FIXME: Replace `main' with a function in `-lm':
18 AC_CHECK_LIB([m], [pow])
d7639a 19
01d871 20 AC_CHECK_LIB([gslcblas],[cblas_dgemm])
SP 21 AC_CHECK_LIB([gsl],[gsl_blas_dgemm])
ee84bd 22 #AC_CHECK_LIB([xml2],[xmlNodeListGetString])
SP 23 PKG_CHECK_MODULES([libxml2], [libxml-2.0])
22721d 24 AC_CHECK_LIB([z],[deflate])
01d871 25
d7639a 26 # Checks for header files.
aec47d 27 AC_CHECK_HEADERS([stdlib.h string.h])
d7639a 28
SP 29 # Checks for typedefs, structures, and compiler characteristics.
aec47d 30 AC_C_INLINE
SP 31
32 dnl Check if we have enable debug support.
33 AC_MSG_CHECKING(whether to enable debugging)
815f19 34 debug_default="no"
aec47d 35 AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging
SP 36 [default=$debug_default]],, enable_debug=$debug_default)
37 dnl Yes, shell scripts can be used
38 if test "x$enable_debug" = "xyes"; then
39 CFLAGS="-g -O2 -DDEBUG"
40 AC_MSG_RESULT(yes)
41 else
42 CFLAGS="-O3 -ffast-math"
43 AC_MSG_RESULT(no)
44 fi
d7639a 45
e29756 46 #AC_DEFINE_UNQUOTED(TS_VERSION,
SP 47 #                    ["Trisurf (commit `git describe  --abbrev=6 --dirty --always --tags`) build on `date` @`hostname`."],
48 #                    [A string containing the version number])
d0cafa 49
d7639a 50 # Checks for library functions.
SP 51 AC_FUNC_MALLOC
aec47d 52 AC_FUNC_REALLOC
SP 53 AC_CHECK_FUNCS([pow sqrt strndup])
d7639a 54
SP 55 AC_CONFIG_FILES([Makefile
24cf44 56                  src/Makefile])
d7639a 57 AC_OUTPUT