Bug 54600 - kmix links against libasound despite use of --without alsa
Summary: kmix links against libasound despite use of --without alsa
Status: CLOSED FIXED
Alias: None
Product: kmix
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Christian Esken
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-13 15:19 UTC by Rex Dieter
Modified: 2003-05-23 22:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
skip check for libasound if --without-alsa (422 bytes, patch)
2003-04-21 16:12 UTC, Rex Dieter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rex Dieter 2003-02-13 15:19:06 UTC
Version:            (using KDE KDE 3.1)
Installed from:    RedHat RPMs
Compiler:          gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) 
OS:          Linux

Despite the use of the kdemultimedia configure options --without-alsa --disable-alsa-test, kmix *still* looks for and links against libasound if it is found.

Culprit appears to be kmix/configure.in.in that seems to unconditionally look for some sound libraries, including libasound, and use them if found.

My quick-n-dirty fix was to delete kmix/configure.in.in and re-autoconf/automake things.
Comment 1 Christian Esken 2003-03-19 23:10:46 UTC
As far as I know there is no --without-alsa option. --disable-alsatest is only
an option. What you want is --enable-audio=oss , otherwise you might get
implicitly --enable-audio=alsa,oss
Can you please test with --enable-audio=oss  and report back.
Comment 2 Rex Dieter 2003-03-20 21:11:53 UTC
FYI, I had previously tried --disable-alsatest, and it hadn't helped either.  I'll go try your 
--enable-audio suggestion and let you know. 
Comment 3 Rex Dieter 2003-04-03 17:00:31 UTC
Confirmed.  Despite using all of: 
--enable-audio=oss --disable-alsa-test --without-alsa 
I *still* get a build that links against alsa. 
Comment 4 Rex Dieter 2003-04-03 17:01:29 UTC
(FYI, I verified with kdemultimedia-3.1.1). 
Comment 5 Christian Esken 2003-04-19 16:33:51 UTC
Confirmed.

It does not compile in Alsa, but it links against ALSALIB. :-(
 I am not automake/autoconf guru, so somebody else has to fix this.

Chris
Comment 6 Rex Dieter 2003-04-21 16:09:57 UTC
Attaching a patch that seems to do the trick for me.  When configuring 
--with-alsa 
kmix finds and links against libasound, 
when configurating 
--without-alsa 
kmix skips the check for and doesn't use libasound. 
Comment 7 Rex Dieter 2003-04-21 16:12:10 UTC
Created attachment 1401 [details]
skip check for libasound if --without-alsa
Comment 8 Christian Esken 2003-04-23 21:18:52 UTC
Hello Rex, 
 
I applied your patch to CVS HEAD branch. It will ship with next KDE version. 
Thanks for the patch. 
 
Chris 
Comment 9 Christian Esken 2003-05-23 22:03:15 UTC
All fixed Bugs (once verified) should be closed. Doing so. 
Chris 
 
PS: Fixed in KDE HEAD (upcoing 3.2) and in KDE3.1.2