Mercurial > hg > libxtract
comparison configure.in @ 98:ca40a0dc29d6
Removed fftw_plan from xtraction functions. Created new init function xtract_init_fft() for creating plans, which have global scope. Updated examples to reflect the change. New configure option: --with-fft_optimisation (0 = FFTW_ESTIMATE, 1 = FFTW_MEASURE, 2 = FFTW_PATIENT).
author | Jamie Bullock <jamie@postlude.co.uk> |
---|---|
date | Sat, 06 Oct 2007 16:36:00 +0000 |
parents | a159098a759e |
children | 1cbbe5b5e461 |
comparison
equal
deleted
inserted
replaced
97:a159098a759e | 98:ca40a0dc29d6 |
---|---|
1 AC_PREREQ(2.13) | 1 AC_PREREQ(2.13) |
2 # Increment for major API changes, release status changes | 2 # Increment for major API changes, release status changes |
3 m4_define(libxtract_major_version, 0) | 3 m4_define(libxtract_major_version, 0) |
4 # Increment for feature additions and enhancements | 4 # Increment for feature additions and enhancements |
5 m4_define(libxtract_minor_version, 4) | 5 m4_define(libxtract_minor_version, 5) |
6 # Increment for fixes | 6 # Increment for fixes |
7 m4_define(libxtract_fix_version, 9) | 7 m4_define(libxtract_fix_version, 0) |
8 | 8 |
9 m4_define(libxtract_version, libxtract_major_version.libxtract_minor_version.libxtract_fix_version) | 9 m4_define(libxtract_version, libxtract_major_version.libxtract_minor_version.libxtract_fix_version) |
10 | 10 |
11 PACKAGE=libxtract | 11 PACKAGE=libxtract |
12 | 12 |
83 echo | 83 echo |
84 echo "fftw3 dir is $withval" | 84 echo "fftw3 dir is $withval" |
85 echo | 85 echo |
86 ]) | 86 ]) |
87 | 87 |
88 dnl Set FFT optimisation level | |
89 AC_ARG_WITH(fft_optimisation, | |
90 [ --with-fft_optimisation=level set fft optimistaion level (default=1)], | |
91 [ | |
92 FFT_OPTIMISATION="$withval" | |
93 echo | |
94 echo "fft optimisation level is $withval" | |
95 echo | |
96 ]) | |
97 | |
88 dnl set a specific java compiler | 98 dnl set a specific java compiler |
89 AC_ARG_WITH(javac, | 99 AC_ARG_WITH(javac, |
90 [ --with-javac=compiler set a specific java compiler (determined automatically if not set) ], | 100 [ --with-javac=compiler set a specific java compiler (determined automatically if not set) ], |
91 [JAVAC="$withval" | 101 [JAVAC="$withval" |
92 echo | 102 echo |
138 with_debug="yes", | 148 with_debug="yes", |
139 with_debug="no") | 149 with_debug="no") |
140 if test "$with_debug" = "yes" | 150 if test "$with_debug" = "yes" |
141 then | 151 then |
142 AC_DEFINE(DEBUG,1,[Define to enable debug]) | 152 AC_DEFINE(DEBUG,1,[Define to enable debug]) |
143 CFLAGS="$CFLAGS -O0 -ggdb -g" | 153 CFLAGS="$CFLAGS -O0 -ggdb -g -Werror" |
144 fi | 154 fi |
145 | 155 |
146 AC_ARG_ENABLE(swig, | 156 AC_ARG_ENABLE(swig, |
147 [ --enable-swig Generate swig bindings], | 157 [ --enable-swig Generate swig bindings], |
148 [case "${enableval}" in | 158 [case "${enableval}" in |
186 | 196 |
187 dnl Are we building with fftw? | 197 dnl Are we building with fftw? |
188 if [[ "$fft" = "true" ]] ; then | 198 if [[ "$fft" = "true" ]] ; then |
189 LDFLAGS="$LDFLAGS -lfftw3f" | 199 LDFLAGS="$LDFLAGS -lfftw3f" |
190 AC_DEFINE([BUILD_FFT], [1], [Build the fft functions]) | 200 AC_DEFINE([BUILD_FFT], [1], [Build the fft functions]) |
201 if test "$FFT_OPTIMISATION" = "" | |
202 then | |
203 AC_DEFINE([XTRACT_FFT_OPTIMISATION_LEVEL], [1], [fft optimisation 1]) | |
204 else | |
205 # AC_SUBST(OPTIMISATION_LEVEL, "$FFT_OPTIMISATION") | |
206 AC_DEFINE_UNQUOTED(XTRACT_FFT_OPTIMISATION_LEVEL, ${FFT_OPTIMISATION}) | |
207 fi | |
191 AC_CHECK_HEADER(fftw3.h, [have_fftw3_hdr=yes ], [ | 208 AC_CHECK_HEADER(fftw3.h, [have_fftw3_hdr=yes ], [ |
192 have_pd_hdr=no | 209 have_pd_hdr=no |
193 echo | 210 echo |
194 echo "no fftw3.h header found. try with option --with-fftw3-dir=/path/to/fftw3/header" | 211 echo "no fftw3.h header found. try with option --with-fftw3-dir=/path/to/fftw3/header" |
195 echo | 212 echo |