From: bugtrack@alsa-project.org Subject: [ALSA - utils 0000936]: AM_PATH_ALSA does not set prefix properly Date: Thu, 31 Mar 2005 20:39:47 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [82.113.61.162]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id 73DD8146 for ; Thu, 31 Mar 2005 20:39:47 +0200 (MEST) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org The following issue has been RESOLVED. ====================================================================== ====================================================================== Reported By: starling Assigned To: ====================================================================== Project: ALSA - utils Issue ID: 936 Category: aconnect Reproducibility: always Severity: minor Priority: normal Status: resolved Resolution: won't fix Fixed in Version: ====================================================================== Date Submitted: 02-23-2005 22:39 CET Last Modified: 03-31-2005 20:39 CEST ====================================================================== Summary: AM_PATH_ALSA does not set prefix properly Description: When configure calls AM_PATH_ALSA, it wrongly assumes that --with-alsa-prefix specifies the location of the library, not the prefix of alsa. In addition, --with-alsa-inc-prefix does not properly modify CFLAGS. The result is that every configure where alsa-lib is installed outside the hardcoded include/lib paths fails unconditionally. ====================================================================== ---------------------------------------------------------------------- starling - 02-26-05 03:31 ---------------------------------------------------------------------- I'm not sure how the number of bits per character would break my patch. As for it being an incompatible configure option, I don't see how the current configure can work at all. With the current (unpatched) alsa.m4, any installation outside of /usr, of alsa-utils will fail. With the patch applied it changes the interface, but installations into /usr (or /usr/local depending on your compiler) will not fail because they are checked regardless of which -I/-L flag is passed to the compiler. So the only configurations that would not be backwards compatible, and would become 'broken', are the configurations that do not work in the first place (for no good reason). Nothing to worry about. Unless you know something I don't, which is likely. 64-bit whosamawhudda? You mean like Unicode paths? Oh... and anyone downloading alsa-lib would get the new alsa.m4, so I think it's not /too/ much trouble for people to get it. :) That's the nice thing about aclocal: even people who don't have the patched alsa.m4 will still be able to use the AM_PATH_ALSA macro the same way, complete with the current inability to install into non hard coded compiler prefixes. ---------------------------------------------------------------------- tiwai - 03-09-05 19:09 ---------------------------------------------------------------------- --with-alsa-prefix is the path of alsa-library, and --with-alsa-inc-prefix is the path of alsa headers. So, you can simply pass like ./configure --with-alsa-prefix=/somehwere/lib \ --with-alsa-inc-prefix=/another/include So, it does work. Only its option name is weird. But changing the option name is not a good idea since this macro is already used widely as I wrote. Imagine if you change the option and you write a configure to run both new and slightly-old ALSA versions? Such an incompatibility is indeed a big problem! About 64bit: it's a path for 64bit binaries to avoid conflict with 32bit ones. See LSB for details. Issue History Date Modified Username Field Change ====================================================================== 02-23-05 22:39 starling New Issue 02-23-05 22:39 starling File Added: alsa.diff 02-24-05 22:02 tiwai Note Added: 0003726 02-26-05 03:28 starling Note Added: 0003738 02-26-05 03:31 starling Note Edited: 0003738 03-09-05 19:09 tiwai Note Added: 0003844 03-31-05 20:39 jdthood Status new => resolved 03-31-05 20:39 jdthood Resolution open => won't fix ====================================================================== ------------------------------------------------------- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/Info/Sentarus/hamr30