source: trunk/configure.ac @ 243

Last change on this file since 243 was 243, checked in by Peter, 17 years ago

changed default compiler flags

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id: configure.ac 243 2005-02-22 11:35:06Z peter $
4##
5## Author: Jari Hakkinen, jari@thep.lu.se
6##
7## Developers search for FIXME
8##
9## If you grabbed the source from CVS you should, at top-level, execute:
10##  ./bootstrap
11## or maybe one should use autoreconf! FIXME: Can the 'bootstrap'
12## script be replaced with autoreconf?
13
14AC_PREREQ(2.57)
15AC_INIT([[thep-c++_tools]],[0.1],[jari@thep.lu.se])
16AC_CONFIG_SRCDIR([src/matrix.h])
17AC_CONFIG_AUX_DIR([autotools])
18AC_PREFIX_DEFAULT([/usr/local])
19
20AM_CONFIG_HEADER([config.h])
21AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION,$PACKAGE_BUGREPORT)
22
23# Checks for programs.
24AC_PROG_CXX
25AC_PROG_INSTALL
26AC_PROG_RANLIB
27
28# Checks for libraries.
29
30# Checks for header files.
31AC_CHECK_HEADERS([unistd.h])
32
33# Checks for typedefs, structures, and compiler characteristics.
34AC_HEADER_STDBOOL
35AC_C_CONST
36AC_C_INLINE
37AC_TYPE_SIZE_T
38
39# Checks for library functions.
40AC_FUNC_ERROR_AT_LINE
41AC_HEADER_STDC
42AC_CHECK_FUNCS([pow sqrt])
43
44LOCAL_INCLUDES="-I/home/max/jari/local/include"
45LDFLAGS="-L/home/max/jari/local/lib"
46CXXFLAGS="-g -O -Wall -DGSL_RANGE_CHECK_OFF"
47AC_SUBST([LOCAL_INCLUDES])
48AC_SUBST(CXXFLAGS)
49
50AC_CHECK_LIB(m,main,[MATH_LIB="-lm" LIBS="-lm $LIBS"])
51AC_CHECK_LIB(atlas,ATL_ctrsv,
52  [CBLAS_LIB="-lcblas -latlas"],
53  AC_CHECK_LIB(gslcblas,cblas_sdsdot, \
54    [CBLAS_LIB="-lgslcblas" LIBS="-lgslcblas $LIBS"]))
55AC_CHECK_LIB(gsl,main,[GSL_LIB="-lgsl"])
56AC_SUBST(GSL_LIB)
57AC_SUBST(CBLAS_LIB)
58AC_SUBST(MATH_LIB)
59
60# c++_tools specific settings
61
62CPP_TOOLS_LIB="libc++_tools.a"
63CPP_TOOLS_LIB_LOCATION="src"
64CPP_TOOLS_HEADER_LOCATION="src"
65AC_SUBST(CPP_TOOLS_LIB)
66AC_SUBST(CPP_TOOLS_LIB_LOCATION)
67AC_SUBST(CPP_TOOLS_HEADER_LOCATION)
68
69AC_CONFIG_FILES([Makefile
70     doc/Makefile
71     src/Makefile
72     test/Makefile])
73
74AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.