From: Takashi Iwai Subject: Re: [PATCH] Allow opt-out from speex dependency Date: Sat, 04 Jul 2009 12:27:10 +0200 Message-ID: References: <1246534925-21921-1-git-send-email-ingmar@exherbo.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 62F08103806 for ; Sat, 4 Jul 2009 12:27:10 +0200 (CEST) In-Reply-To: <1246534925-21921-1-git-send-email-ingmar@exherbo.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Ingmar Vanhassel Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 2 Jul 2009 13:42:05 +0200, Ingmar Vanhassel wrote: > > --- > configure.in | 8 +++++--- > 1 files changed, 5 insertions(+), 3 deletions(-) > > This patch makes the --with-speex configure option work as intended, allowing > to explicitly disable speex linking. $HAVE_SPEEX should be initialized explicitly before if check. Otherwise the value is undefined. Could you fix and repost? thanks, Takashi > > diff --git a/configure.in b/configure.in > index 36740e9..36d0d2a 100644 > --- a/configure.in > +++ b/configure.in > @@ -106,14 +106,16 @@ AC_SUBST(AVCODEC_CFLAGS) > AC_SUBST(AVCODEC_LIBS) > AC_SUBST(AVCODEC_HEADER) > > -PKG_CHECK_MODULES(speexdsp, [speexdsp >= 1.2], [HAVE_SPEEXDSP="yes"], [HAVE_SPEEXDSP=""]) > -AM_CONDITIONAL(HAVE_SPEEXDSP, test "$HAVE_SPEEXDSP" = "yes") > - > AC_ARG_WITH([speex], > AS_HELP_STRING([--with-speex={builtin|lib|no}], > [build speex resampler (built-in code, link with external lib, or no build)]), > [PPH=$withval], [PPH="lib"]) > > +if test "x$with_speex" != "xno"; then > + PKG_CHECK_MODULES(speexdsp, [speexdsp >= 1.2], [HAVE_SPEEXDSP="yes"], [HAVE_SPEEXDSP=""]) > +fi > +AM_CONDITIONAL(HAVE_SPEEXDSP, test "$HAVE_SPEEXDSP" = "yes") > + > USE_LIBSPEEX="" > if test "$PPH" = "lib"; then > if test "$HAVE_SPEEXDSP" = "yes"; then > -- > 1.6.3.3 > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >