fi
AC_PROG_INSTALL
-dnl Default optimization
-CFLAGS="$CFLAGS -O2"
-
dnl Enable debugging (no)
AC_ARG_ENABLE(debug,
[ --enable-debug[[=value]] compile with debug [[default=no]]],
AM_CFLAGS = -I$(top_srcdir)/src
AM_LDFLAGS = -L$(top_builddir)/src -laubio @FFTWLIB_LIBS@
-test_phasevoc_jack_CFLAGS = -I$(top_builddir)/ext @JACK_CFLAGS@
-test_phasevoc_jack_LDADD = -laubioext -L$(top_builddir)/ext @JACK_LIBS@
+test_phasevoc_jack_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/ext @JACK_CFLAGS@
+test_phasevoc_jack_LDADD = $(AM_LDFLAGS) -laubioext -L$(top_builddir)/ext @JACK_LIBS@
bin_PROGRAMS = \
test-fft \
uint_t hop_s = 8; /* hop size */
uint_t channels = 4; /* number of channels */
uint_t pos = 0; /* frames%dspblocksize for jack loop */
-uint_t usejack = 1;
fvec_t * in;
cvec_t * fftgrain;
aubio_pvoc_t * pv;
+#ifdef JACK_SUPPORT
aubio_jack_t * jack_setup;
+#endif
int aubio_process(float **input, float **output, int nframes);
aubio_pvoc_rdo(pv,fftgrain,out);
printf("computed backard\n");
- if (usejack) {
- jack_setup = new_aubio_jack(channels, channels,
- (aubio_process_func_t)aubio_process);
- aubio_jack_activate(jack_setup);
- sleep(10); //pause(); /* enter main jack loop */
- aubio_jack_close(jack_setup);
- }
+#ifdef JACK_SUPPORT
+ jack_setup = new_aubio_jack(channels, channels,
+ (aubio_process_func_t)aubio_process);
+ aubio_jack_activate(jack_setup);
+ sleep(10); //pause(); /* enter main jack loop */
+ aubio_jack_close(jack_setup);
+#endif
del_aubio_pvoc(pv);
del_cvec(fftgrain);