source: trunk/configure.ac @ 314

Last change on this file since 314 was 314, checked in by Peter, 18 years ago

minor changes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id: configure.ac 314 2005-05-12 13:22:56Z 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([lib/gslapi/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
26#AC_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_PROG_LIBTOOL
41AC_FUNC_ERROR_AT_LINE
42AC_HEADER_STDC
43AC_CHECK_FUNCS([pow sqrt])
44
45LOCAL_INCLUDES="-I/home/max/jari/local/include"
46LDFLAGS="-L/home/max/jari/local/lib"
47CXXFLAGS="-g -O -Wall -DHAVE_INLINE=1"
48# Use these flags when you compile a production library
49#CXXFLAGS="-O3 -Wall -DGSL_RANGE_CHECK_OFF -DHAVE_INLINE=1"
50AC_SUBST([LOCAL_INCLUDES])
51AC_SUBST(CXXFLAGS)
52
53AC_CHECK_LIB(m,main,[MATH_LIB="-lm" LIBS="-lm $LIBS"])
54AC_CHECK_LIB(atlas,ATL_ctrsv,
55  [CBLAS_LIB="-lcblas -latlas"],
56  AC_CHECK_LIB(gslcblas,cblas_sdsdot, \
57    [CBLAS_LIB="-lgslcblas" LIBS="-lgslcblas $LIBS"]))
58AC_CHECK_LIB(gsl,main,[GSL_LIB="-lgsl"])
59AC_SUBST(GSL_LIB)
60AC_SUBST(CBLAS_LIB)
61AC_SUBST(MATH_LIB)
62
63# c++_tools specific settings
64
65CPP_TOOLS_LIB="libc++_tools.la"
66CPP_TOOLS_LIB_LOCATION="lib"
67CPP_TOOLS_HEADER_LOCATION="lib"
68AC_SUBST(CPP_TOOLS_LIB)
69AC_SUBST(CPP_TOOLS_LIB_LOCATION)
70AC_SUBST(CPP_TOOLS_HEADER_LOCATION)
71
72#CROSS_INCLUDES="-I@top_srcdir@/gslapi -I@top_srcdir@/misc -I@top_srcdir@/statistics -I@top_srcdir@/svm "
73#AC_SUBST([CROSS_INCLUDES])
74
75AM_CONDITIONAL([COND_DOC], [test "$want_doc" = no])
76
77AC_CONFIG_FILES([Makefile
78     doc/Makefile
79     lib/Makefile
80     lib/gslapi/Makefile
81     lib/utility/Makefile
82     lib/statistics/Makefile
83     lib/svm/Makefile
84     test/Makefile])
85
86AC_OUTPUT
87
Note: See TracBrowser for help on using the repository browser.