configure.ac, wscript: default to no complex
authorPaul Brossier <piem@piem.org>
Sun, 25 Oct 2009 19:40:08 +0000 (20:40 +0100)
committerPaul Brossier <piem@piem.org>
Sun, 25 Oct 2009 19:40:08 +0000 (20:40 +0100)
configure.ac
wscript

index 5c3c19be87f1b56a95c3073f2546c936b66cc993..0afd04ba8698683ab0d3008db00b228e58aea676 100644 (file)
@@ -129,7 +129,7 @@ AC_CHECK_HEADERS(fftw3.h,,AC_MSG_ERROR([Ouch! missing fftw3.h header]))
 AC_ARG_ENABLE(complex,
   AC_HELP_STRING([--enable-complex],[compile with complex.h [[default=auto]]]),
   [with_complex=$enableval],
-  with_complex="yes")
+  with_complex="no")
 if test "$with_complex" = "yes"; then
   AC_CHECK_HEADERS(complex.h,,AC_MSG_WARN([Ouch! missing complex.h header]))
 fi
diff --git a/wscript b/wscript
index eb09721004ed496b38089deb5657382b8f69d544..a63dc609fae6419db7c7b5425b7f7d46664c1555 100644 (file)
--- a/wscript
+++ b/wscript
@@ -20,8 +20,8 @@ def set_options(opt):
       help='compile aubio in double precision mode')
   opt.add_option('--disable-fftw3f', action='store_true', default=False,
       help='compile with fftw3 instead of fftw3f')
-  opt.add_option('--disable-complex', action='store_true', default=False,
-      help='compile without C99 complex')
+  opt.add_option('--enable-complex', action='store_true', default=False,
+      help='compile with C99 complex')
   opt.add_option('--disable-jack', action='store_true', default=False,
       help='compile without jack support')
   opt.add_option('--disable-lash', action='store_true', default=False,
@@ -56,7 +56,7 @@ def configure(conf):
   conf.check(header_name='limits.h')
 
   # optionally use complex.h
-  if (Options.options.disable_complex == False):
+  if (Options.options.enable_complex == True):
     conf.check(header_name='complex.h')
 
   # required dependancies