meson: Make fftw optional
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Fri, 19 Oct 2018 10:51:58 +0000 (17:51 +0700)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 27 Dec 2018 11:55:56 +0000 (17:25 +0530)
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
meson.build
meson_options.txt

index e69145a..8e52164 100644 (file)
@@ -280,16 +280,16 @@ if bluez_dep.found()
   endif
 endif
 
+fftw_dep = dependency('fftw3f', required : get_option('fftw'))
+if fftw_dep.found()
+  cdata.set('HAVE_FFTW', 1)
+endif
+
 jack_dep = dependency('jack', version : '>= 0.117.0', required : get_option('jack'))
 if jack_dep.found()
   cdata.set('HAVE_JACK', 1)
 endif
 
-fftw_dep = dependency('fftw3f', required : false)
-if fftw_dep.found()
-  cdata.set('HAVE_FFTW', 1)
-endif
-
 lirc_dep = dependency('lirc', required : false)
 if lirc_dep.found()
   cdata.set('HAVE_LIRC', 1)
index dc2a3e6..9abf135 100644 (file)
@@ -35,6 +35,9 @@ option('bluez5-ofono-headset',
 option('dbus',
        type : 'feature', value : 'auto',
        description : 'Optional D-Bus support')
+option('fftw',
+       type : 'feature', value : 'auto',
+       description : 'Optional FFTW support')
 option('jack',
        type : 'feature', value : 'auto',
        description : 'Optional JACK support')