source: configure.ac @ 96fb8ad

feature/autosinkfeature/constantqfeature/pitchshiftfeature/pydocstringsfeature/timestretchpitchshiftsamplertimestretchyinfft+
Last change on this file since 96fb8ad was 96fb8ad, checked in by Paul Brossier <piem@altern.org>, 16 years ago

import 0.1.7.1

  • Property mode set to 100644
File size: 4.9 KB
Line 
1dnl Process this file with autoconf to porduce a configure script
2
3AC_INIT(src/aubio.h)
4
5. $srcdir/VERSION
6AUBIO_VERSION=${AUBIO_MAJOR_VERSION}.${AUBIO_MINOR_VERSION}.${AUBIO_PATCH_VERSION}${AUBIO_VERSION_STATUS}
7VERSION=${AUBIO_VERSION}
8PACKAGE=aubio
9
10AM_INIT_AUTOMAKE(${PACKAGE}, ${VERSION})
11
12AC_PREFIX_DEFAULT(/usr)
13
14dnl enable optimization
15CFLAGS="$CFLAGS -O2"
16       
17dnl Check for debug
18AC_ARG_ENABLE(debug,
19  [  --enable-debug[[=value]]   compile with debug [[default=no]]],
20  with_debug="yes",
21  with_debug="no")
22if test "$with_debug" = "yes"
23then
24  AC_DEFINE(DEBUG,1,[Define to enable debug])
25  CFLAGS="$CFLAGS -g"
26fi
27
28dnl
29AC_ARG_ENABLE(warnme,
30  [  --enable-warnme[[=value]]   compile with all -W [[default=yes]]],
31  with_warnme="no",
32  with_warnme="yes")
33if test "$with_warnme" = "yes"
34then
35        ALL_CWARNINGS="-Wall -Werror -Wmissing-prototypes -Wmissing-declarations -Wno-char-subscripts -Wno-unknown-pragmas"
36        CFLAGS="$CFLAGS $ALL_CWARNINGS"
37fi
38
39
40dnl Guess the host
41AC_CANONICAL_HOST
42
43dnl Check for programs
44AC_PROG_CC
45if test "$ac_cv_prog_cc" = "no" ; then
46   AC_MSG_ERROR([*** No C compiler found !])
47fi
48AC_PROG_INSTALL
49dnl AC_PROG_SWIG
50
51dnl Check for libtool
52AC_LIBTOOL_DLOPEN
53dnl AC_DISABLE_STATIC
54AC_PROG_LIBTOOL
55
56AC_CONFIG_HEADERS(src/config.h)
57AC_CONFIG_FILES(aubio.pc)
58
59case "${host_os}" in
60mingw*)
61  mingw32_support="yes"
62  AC_CHECK_HEADER(windows.h)
63  ;;
64*)
65  AC_ISC_POSIX
66  ;;
67esac
68
69dnl Check for libraries
70AC_CHECK_LIB(pthread, pthread_create)
71
72dnl Check for header files
73AC_HEADER_STDC
74AC_CHECK_HEADERS([string.h stdlib.h stdio.h math.h errno.h stdarg.h unistd.h signal.h],,)
75AC_CHECK_HEADERS(complex.h,,AC_MSG_ERROR([Ouch! missing complex.h header]))
76AC_CHECK_HEADERS(fftw3.h  ,,AC_MSG_ERROR([Ouch! missing fftw3.h headeri]))
77
78dnl check for pkg-config
79AC_PATH_PROG(PKG_CONFIG,pkg-config,no)
80
81dnl Check for required libraries
82PKG_CHECK_MODULES(FFTWLIB,    fftw3  >= 3.0.0,        FFTW3_SUPPORT=1)
83if test "${FFTW3_SUPPORT}" = "1"; then
84  AC_DEFINE(FFTW3_SUPPORT,1,[Define to enable fftw3 support])
85fi
86PKG_CHECK_MODULES(SNDLIB,     sndfile >= 1.0.4,       SNDLIB_SUPPORT=1)
87PKG_CHECK_MODULES(SAMPLERATE, samplerate  >= 0.0.15,  SAMPLERATE_SUPPORT=1)
88
89if test "${SNDLIB_SUPPORT}" = "1"; then
90  AC_DEFINE(SNDLIB_SUPPORT,1,[Define to enable libsndfile support])
91fi
92
93
94dnl Check for optional libraries
95AC_ARG_ENABLE(fftw3f,
96  [  --enable-fftw3f[[=value]]   compile with fftw3f [[default=no]]],
97  with_fftw3f="yes",
98  with_fftw3f="no")
99if test "$with_fftw3f" = "yes"; then
100        PKG_CHECK_MODULES(FFTWLIB,    fftw3f  >= 3.0.0,     FFTW3F_SUPPORT=1)
101fi
102if test "${FFTW3F_SUPPORT}" = "1"; then
103  AC_DEFINE(FFTW3F_SUPPORT,1,[Define to enable fftw3f support])
104fi
105
106AC_ARG_ENABLE(jack,
107  [  --enable-jack[[=value]]   compile with jack [[default=no]]],
108  with_jack="yes",
109  with_jack="no")
110if test "$with_jack" = "yes"
111then
112        PKG_CHECK_MODULES(JACK,       jack  >= 0.15.0,        JACK_SUPPORT=1)
113        if test "${JACK_SUPPORT}" = "1"; then
114          AC_DEFINE(JACK_SUPPORT,1,[Define to enable jack support])
115        fi
116fi
117
118AC_ARG_ENABLE(alsa,
119  [  --enable-alsa[[=value]]   compile with alsa [[default=no]]],
120  with_alsa="yes",
121  with_alsa="no")
122if test "$with_alsa" = "yes"
123then
124        PKG_CHECK_MODULES(ALSA,       alsa >= 0.0.9,          ALSA_SUPPORT=1)
125        if test "${ALSA_SUPPORT}" = "1"; then
126          AC_DEFINE(ALSA_SUPPORT,1,[Define to enable alsa support])
127        fi
128fi
129
130AC_ARG_ENABLE(ladcca,
131  [  --enable-ladcca[[=value]]   compile with ladcca [[default=no]]],
132  with_ladcca="yes",
133  with_ladcca="no")
134if test "$with_ladcca" = "yes"
135then
136        PKG_CHECK_MODULES(LADCCA,       ladcca-1.0 >= 0.4.0,          LADCCA_SUPPORT=1)
137        if test "${LADCCA_SUPPORT}" = "1"; then
138          AC_DEFINE(LADCCA_SUPPORT,1,[Define to enable ladcca support])
139        fi
140fi
141 
142AM_PATH_PYTHON(,,)
143
144AC_OUTPUT([
145                Makefile
146                src/Makefile
147                examples/Makefile
148                sounds/Makefile
149                doc/Makefile
150                python/Makefile
151                python/aubio/Makefile
152                plugins/Makefile
153                plugins/audacity/Makefile
154                plugins/audacity/plug-ins/Makefile
155                plugins/wavesurfer/Makefile
156                swig/Makefile
157        ])
158
159echo
160echo "**************************************************************"
161echo "Summary:"
162if test "${FFTW3F_SUPPORT}" = "1"; then
163  echo "Fftw3:                   yes (fftw3f)"
164else
165if test "${FFTW3_SUPPORT}" = "1"; then
166  echo "Fftw3:                   yes"
167else
168  echo "Fftw3f:                  no"
169fi
170fi
171if test "${SNDLIB_SUPPORT}" = "1"; then
172  echo "Libsndfile:              yes"
173else
174  echo "Libsndfile:              no"
175fi
176if test "${SAMPLERATE_SUPPORT}" = "1"; then
177  echo "Libsamplerate:           yes"
178else
179  echo "Libsamplerate:           no"
180fi
181if test "${JACK_SUPPORT}" = "1"; then
182  echo "JACK:                    yes"
183else
184  echo "JACK:                    no"
185fi
186if test "${ALSA_SUPPORT}" = "1"; then
187  echo "ALSA midi:               yes"
188else
189  echo "ALSA midi:               no"
190fi
191if test "${LADCCA_SUPPORT}" = "1"; then
192  echo "Ladcca:                  yes"
193else
194  echo "Ladcca:                  no"
195fi
196echo "**************************************************************"
197echo Configuration completed successfully. Type \'make\' to build ${PACKAGE}
Note: See TracBrowser for help on using the repository browser.