From: Paul Brossier Date: Sat, 7 Jan 2012 02:50:38 +0000 (-0800) Subject: configure.ac: add --enable-sndfile X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9906b3f3f22649481dc60d3bcefedea5440225b3;p=aubio.git configure.ac: add --enable-sndfile --- diff --git a/configure.ac b/configure.ac index 052bfd60..1df71e4e 100644 --- a/configure.ac +++ b/configure.ac @@ -153,9 +153,15 @@ if test "$ac_cv_varargs_macros" = "yes"; then [Defined when c99 style varargs macros are supported]) fi -PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.4, HAVE_SNDFILE=1) -if test "${HAVE_SNDFILE}" = "1"; then - AC_DEFINE(HAVE_SNDFILE,1,[Define to enable libsndfile support]) +AC_ARG_ENABLE(sndfile, + AC_HELP_STRING([--enable-sndfile],[compile with sndfile [[default=auto]]]), + [with_sndfile=$enableval], + with_sndfile="yes") +if test "$with_sndfile" = "yes"; then + PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.4, HAVE_SNDFILE=1, HAVE_SNDFILE=0) + if test "${HAVE_SNDFILE}" = "1"; then + AC_DEFINE(HAVE_SNDFILE,1,[Define to enable libsndfile support]) + fi fi dnl Enable samplerate support (auto)