source: trunk/configure.ac @ 9

Last change on this file since 9 was 9, checked in by Jari Häkkinen, 19 years ago

Added autotools configuration directory and renamed autogen.sh to
the more proper 'bootstrap'.

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