source: trunk/configure.ac @ 4

Last change on this file since 4 was 4, checked in by daniel, 19 years ago

* empty log message *

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1# $Id: configure.ac 4 2003-02-25 15:04:49Z daniel $
2
3AC_INIT(src)
4
5AM_CONFIG_HEADER(config.h)
6
7AM_INIT_AUTOMAKE(c++_tools,0.1,jari@thep.lu.se)
8
9AC_PREFIX_DEFAULT(/usr/local)
10
11# Checks for programs.
12AC_PROG_CXX
13AC_PROG_INSTALL
14AC_PROG_RANLIB
15
16## BEGIN COMMON DENOMINATOR of DISTRIBUTION COMPILATION CFLAG
17##
18## variables used to pass to CFLAG:
19## gcc_cflags       standard optimization flags
20## gcc_cflags_cpu   cpu detection
21## gcc_cflags_arch  architecture detection
22
23## Tests if --enable-debug, --enable-warning or --enable-purify are given
24AC_ARG_ENABLE(debug,
25[  --enable-debug          debug (-g option on compiler)])
26if test "${enable_debug}" = "yes" ; then
27  CFLAGS="-g"
28fi
29AC_ARG_ENABLE(warnings,
30[  --enable-warnings          warnings (-Wall option on compiler)])
31if test "${enable_warnings}" = "yes" ; then
32  CFLAGS="$CFLAGS -Wall"
33fi
34AC_MSG_CHECKING(for purify)
35if(purify -version) < /dev/null > /dev/null 2>&1; then
36   AC_MSG_RESULT(yes)
37   AC_ARG_ENABLE(purify,
38   [  --enable-purify          purify ])
39   if test "${enable_purify}" = "yes" ; then
40     CFLAGS="-g"
41   fi         
42else
43   AC_MSG_RESULT(no)
44fi
45
46CXXFLAGS="-O3 -Wall"
47AC_SUBST(CXXFLAGS)
48
49# Misc libs, these should of course be set automatically
50CBLAS_LIB="-lcblas -latlas"
51AC_SUBST(CBLAS_LIB)
52GSL_LIB="-lgsl"
53AC_SUBST(GSL_LIB)
54GSLWRAP_LIB="-lgslwrap"
55AC_SUBST(GSLWRAP_LIB)
56MATH_LIB="-lm"
57AC_SUBST(MATH_LIB)
58
59# c++_tools specific settings
60
61CPP_TOOLS_LIB="-lc++_tools"
62CPP_TOOLS_LIB_LOCATION="src"
63CPP_TOOLS_HEADER_LOCATION="src"
64AC_SUBST(CPP_TOOLS_LIB)
65AC_SUBST(CPP_TOOLS_LIB_LOCATION)
66AC_SUBST(CPP_TOOLS_HEADER_LOCATION)
67
68AC_OUTPUT([
69  Makefile
70  src/Makefile
71  test/Makefile
72    ])
Note: See TracBrowser for help on using the repository browser.