Mercurial > hg > libxtract
comparison configure.in @ 30:4df9012cebf1
Replaced --enable-vector with --enable-fft and improved build
author | Jamie Bullock <jamie@postlude.co.uk> |
---|---|
date | Fri, 20 Oct 2006 12:30:46 +0000 |
parents | a9154a4599c2 |
children | cb667e483ad4 |
comparison
equal
deleted
inserted
replaced
29:a9154a4599c2 | 30:4df9012cebf1 |
---|---|
23 AC_PROG_LIBTOOL | 23 AC_PROG_LIBTOOL |
24 AC_CHECK_HEADERS([math.h, stdlib.h, stdio.h]) | 24 AC_CHECK_HEADERS([math.h, stdlib.h, stdio.h]) |
25 AC_CHECK_PROG([DOXYGEN], [doxygen], [doc], []) | 25 AC_CHECK_PROG([DOXYGEN], [doxygen], [doc], []) |
26 AC_SUBST(DOXYGEN) | 26 AC_SUBST(DOXYGEN) |
27 | 27 |
28 AC_ARG_ENABLE(vector, | 28 AC_ARG_ENABLE(fft, |
29 [ --enable-vector Turn fft-based vector processing on], | 29 [ --enable-fft Turn fft-based fft processing on], |
30 [case "${enableval}" in | 30 [case "${enableval}" in |
31 yes) vector=true ;; | 31 yes) fft=true ;; |
32 no) vector=false ;; | 32 no) fft=false ;; |
33 *) AC_MSG_ERROR(bad value ${enableval} for --enable-vector) ;; | 33 *) AC_MSG_ERROR(bad value ${enableval} for --enable-fft) ;; |
34 esac],[vector=false]) | 34 esac],[fft=false]) |
35 | 35 |
36 AC_ARG_ENABLE(pd_example, | 36 AC_ARG_ENABLE(pd_example, |
37 [ --enable-pd_example Compile the Pure Data external example], | 37 [ --enable-pd_example Compile the Pure Data external example], |
38 [case "${enableval}" in | 38 [case "${enableval}" in |
39 yes) pd_example=true ;; | 39 yes) pd_example=true ;; |
84 echo "fftw3 dir is $withval" | 84 echo "fftw3 dir is $withval" |
85 echo | 85 echo |
86 ]) | 86 ]) |
87 | 87 |
88 dnl Are we building with fftw? | 88 dnl Are we building with fftw? |
89 if [[ "$vector" = "true" ]] ; then | 89 if [[ "$fft" = "true" ]] ; then |
90 LDFLAGS="$LDFLAGS -lfftw3f" | 90 LDFLAGS="$LDFLAGS -lfftw3f" |
91 AC_DEFINE([BUILD_VECTOR], [1], [Build the vector functions]) | 91 AC_DEFINE([BUILD_FFT], [1], [Build the fft functions]) |
92 AC_CHECK_HEADER(fftw3.h, [have_fftw3_hdr=yes ], [ | 92 AC_CHECK_HEADER(fftw3.h, [have_fftw3_hdr=yes ], [ |
93 have_pd_hdr=no | 93 have_pd_hdr=no |
94 echo | 94 echo |
95 echo "no fftw3.h header found. try with option --with-fftw3-dir=/path/to/fftw3/header" | 95 echo "no fftw3.h header found. try with option --with-fftw3-dir=/path/to/fftw3/header" |
96 echo | 96 echo |
97 exit | 97 exit |
98 ]) | 98 ]) |
99 fi | 99 fi |
100 | 100 |
101 AM_CONDITIONAL(BUILD_VECTOR, test "x${vector}" = 'xtrue') | 101 AM_CONDITIONAL(BUILD_FFT, test "x${fft}" = 'xtrue') |
102 | 102 |
103 | 103 |
104 dnl are we building the simpletest example | 104 dnl are we building the simpletest example |
105 if [[ "$simpletest" = "true" ]] ; then | 105 if [[ "$simpletest" = "true" ]] ; then |
106 AC_DEFINE([BUILD_SIMPLETEST], [1], [Build the simpletest example]) | 106 AC_DEFINE([BUILD_SIMPLETEST], [1], [Build the simpletest example]) |
219 echo | 219 echo |
220 echo "Summary:" | 220 echo "Summary:" |
221 echo | 221 echo |
222 dnl echo you are using the ${host} architecture | 222 dnl echo you are using the ${host} architecture |
223 | 223 |
224 if test "$vector" = "true"; then | 224 if test "$fft" = "true"; then |
225 echo "Fftw3: yes (using fftw3f)" | 225 echo "fft: yes (using fftw3f)" |
226 else | 226 else |
227 echo "Fftw3: no (not using fftw3, no vector functions)" | 227 echo "fft: no (not using fftw3, no fft functions)" |
228 fi | 228 fi |
229 if test "$simpletest" = "true"; then | 229 if test "$simpletest" = "true"; then |
230 echo "simpletest example: yes" | 230 echo "simpletest example: yes" |
231 else | 231 else |
232 echo "simpletest example: no" | 232 echo "simpletest example: no" |