From: Takashi Iwai Subject: Re: Alsa lib configure asoundlib.h Date: Fri, 06 Jul 2007 11:46:59 +0200 Message-ID: References: <468D0AFA.20208@tse.gov.br> 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 (mail.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id BEEA224598 for ; Fri, 6 Jul 2007 11:47:02 +0200 (CEST) In-Reply-To: <468D0AFA.20208@tse.gov.br> 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: Fausto Carvalho Marques SIlva Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 05 Jul 2007 12:15:06 -0300, Fausto Carvalho Marques SIlva wrote: > > In salsa library(this library really saved my life, from am alsa-lib of > 600K to 45K!!!), developed by Takashi Iwai, the creation of asoundlib.h > is dynamic and based on the configure options ( --disable-mixer will > remove mixer.h from asoundlib.h). > Can alsa-lib do the same??I think it is a good "cleanup" way of doing > client header files. > > Example from configure.ac from salsa-0.0.6: > > " > echo "Creating asoundlib.h..." > cp "$srcdir"/src/asoundlib-head.h src/asoundlib.h > test "$mixer" = "yes" && echo "#include \"mixer.h\"" >> src/asoundlib.h > test "$rawmidi" = "yes" && echo "#include \"rawmidi.h\"" >> src/asoundlib.h > test "$hwdep" = "yes" && echo "#include \"hwdep.h\"" >> src/asoundlib.h > test "$timer" = "yes" && echo "#include \"timer.h\"" >> src/asoundlib.h > test "$sndconf" = "yes" && echo "#include \"conf.h\"" >> src/asoundlib.h > test "$sndseq" = "yes" && echo "#include \"seq_event.h\"" >> src/asoundlib.h > test "$sndseq" = "yes" && echo "#include \"seq.h\"" >> src/asoundlib.h > test "$sndseq" = "yes" && echo "#include \"seqmid.h\"" >> src/asoundlib.h > cat "$srcdir"/src/asoundlib-tail.h >> src/asoundlib.h > " Yeah, it's feasible, but a lower priority work. I'll fix them later... Or, it'd be great if you send a patch ;) Takashi