From unknown Sun Jun 22 11:37:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15067: 24.3.50; configure does not allow for sound support without ALSA Resent-From: Ulrich Mueller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Aug 2013 10:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15067 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 15067@debbugs.gnu.org Cc: emacs@gentoo.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13761296789252 (code B ref -1); Sat, 10 Aug 2013 10:15:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Aug 2013 10:14:38 +0000 Received: from localhost ([127.0.0.1]:51111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V86Bx-0002P9-QY for submit@debbugs.gnu.org; Sat, 10 Aug 2013 06:14:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56058) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V86Bw-0002Ow-83 for submit@debbugs.gnu.org; Sat, 10 Aug 2013 06:14:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V86Bl-0008TK-NP for submit@debbugs.gnu.org; Sat, 10 Aug 2013 06:14:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00, USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V86Bl-0008TG-JF for submit@debbugs.gnu.org; Sat, 10 Aug 2013 06:14:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V86Bg-0003ac-9P for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2013 06:14:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V86Bb-0008Qg-EE for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2013 06:14:20 -0400 Received: from a1www.kph.uni-mainz.de ([134.93.134.1]:34840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V86Bb-0008DI-6F for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2013 06:14:15 -0400 Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1www.kph.uni-mainz.de (8.14.4/8.13.4) with ESMTP id r7AAE0XL029380; Sat, 10 Aug 2013 12:14:00 +0200 Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.6/8.14.2) with ESMTP id r7AAE06W014468; Sat, 10 Aug 2013 12:14:00 +0200 Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.6/8.14.6/Submit) id r7AADvWK014466; Sat, 10 Aug 2013 12:13:57 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Message-ID: <20998.4709.272601.247676@a1i15.kph.uni-mainz.de> Date: Sat, 10 Aug 2013 12:13:57 +0200 X-Mailer: VM 8.2.0b under 24.3.1 (x86_64-pc-linux-gnu) From: Ulrich Mueller Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by a1www.kph.uni-mainz.de id r7AAE0XL029380 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.4 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) Tags: patch In GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, Motif Version 2.3.4) of 2013-08-02 on juno Bzr revision: monnier@iro.umontreal.ca-20130801231837-onq015h5medtj4ea Windowing system distributor `The X.Org Foundation', version 11.0.11402901 System Description: NAME=3DGentoo After the 2013-07-27 change to configure.ac, --with-sound will accept option values (yes, no, ossaudio, alsa). However, it is not possible to enable sound support but prevent autodetection of ALSA. For example, when configuring --with-sound=3Dyes on a GNU/Linux system, ALSA will be enabled when it is found. The patch below adds a new value --with-sound=3Dvoxware that will enable sound but not ALSA, i.e. src/sound.c will then use the /dev/dsp device of OSS. (I'd have preferred the name "oss" over "voxware", but there already is "ossaudio" and I think having "oss" along with it would be too confusing. Also src/sound.c refers to the driver as Voxware and functions are called vox_init() etc. But feel free to change it to "oss" if you think that confusion is not an issue.) --- emacs-orig/ChangeLog +++ emacs/ChangeLog @@ -1,3 +1,9 @@ +2013-08-10 Ulrich M=FCller + + * configure.ac: Allow for --with-sound=3Dvoxware that will enable + sound but otherwise disable ALSA. This will use the OSS device, + typically /dev/dsp, for sound output. + 2013-08-10 Eli Zaretskii =20 * configure.ac: Define and substitute UPDATE_MANIFEST. --- emacs-orig/configure.ac +++ emacs/configure.ac @@ -142,12 +142,12 @@ AC_DEFINE_UNQUOTED(MAILHOST, ["$withval"], [String giving fallback P= OP mail host.])) =20 AC_ARG_WITH([sound],[AS_HELP_STRING([--with-sound=3DVALUE], - [compile with sound support (VALUE one of: yes, ossaudio, alsa, no; + [compile with sound support (VALUE one of: yes, ossaudio, alsa, voxwar= e, no; default yes). Only for GNU/Linux, FreeBSD, NetBSD, MinGW.])], [ case "${withval}" in - yes|no|ossaudio|alsa) val=3D$withval ;; + yes|no|ossaudio|alsa|voxware) val=3D$withval ;; *) AC_MSG_ERROR([`--with-sound=3D$withval' is invalid; -this option's value should be `yes', `no', `ossaudio', or `alsa'.]) +this option's value should be `yes', `no', `ossaudio', `alsa', or `voxwa= re'.]) ;; esac with_sound=3D$val @@ -1274,6 +1274,9 @@ #include #endif ]) + test "${with_sound}" =3D "voxware" && test "${have_sound_header}" !=3D= "yes" && \ + AC_MSG_ERROR([OSS/Voxware sound support requested but not found.]) + if test "${with_sound}" =3D "ossaudio" || test "${with_sound}" =3D "ye= s"; then # Emulation library used on NetBSD. AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBSOUND=3D-lossaudio, LIBSOUND=3D= ) From unknown Sun Jun 22 11:37:19 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ulrich Mueller Subject: bug#15067: closed (Re: bug#15067: 24.3.50; configure does not allow for sound support without ALSA) Message-ID: References: <72d2ottz2o.fsf@fencepost.gnu.org> <20998.4709.272601.247676@a1i15.kph.uni-mainz.de> X-Gnu-PR-Message: they-closed 15067 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 15067@debbugs.gnu.org Date: Sat, 31 Aug 2013 19:56:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1377978964-23456-1" This is a multi-part message in MIME format... ------------=_1377978964-23456-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #15067: 24.3.50; configure does not allow for sound support without ALSA which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 15067@debbugs.gnu.org. --=20 15067: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15067 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1377978964-23456-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 15067-done) by debbugs.gnu.org; 31 Aug 2013 19:55:31 +0000 Received: from localhost ([127.0.0.1]:33638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VFrGc-00065a-KJ for submit@debbugs.gnu.org; Sat, 31 Aug 2013 15:55:31 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:32975 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VFrGZ-00065P-PM for 15067-done@debbugs.gnu.org; Sat, 31 Aug 2013 15:55:28 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1VFrGZ-0002zd-9F; Sat, 31 Aug 2013 15:55:27 -0400 From: Glenn Morris To: 15067-done@debbugs.gnu.org Subject: Re: bug#15067: 24.3.50; configure does not allow for sound support without ALSA References: <20998.4709.272601.247676@a1i15.kph.uni-mainz.de> X-Spook: Lon Horiuchi embassy Mantis Baranyi Operation Iraqi X-Ran: *iV_rmcNw\ej7hh'yp/]OhE6rkDl$7S].}"@)d?jmj.m0|B1+lj\6A>fc?+$3|[' (Ulrich Mueller's message of "Sat, 10 Aug 2013 12:13:57 +0200") Message-ID: <72d2ottz2o.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -7.5 (-------) X-Debbugs-Envelope-To: 15067-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.5 (-------) Version: 24.4 Applied. I think no-one is going to know what these options mean without reading configure.ac, but I don't expect (m)any people will use them apart from the people who reported these issues in the first place. ------------=_1377978964-23456-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 10 Aug 2013 10:14:38 +0000 Received: from localhost ([127.0.0.1]:51111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V86Bx-0002P9-QY for submit@debbugs.gnu.org; Sat, 10 Aug 2013 06:14:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56058) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V86Bw-0002Ow-83 for submit@debbugs.gnu.org; Sat, 10 Aug 2013 06:14:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V86Bl-0008TK-NP for submit@debbugs.gnu.org; Sat, 10 Aug 2013 06:14:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00, USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V86Bl-0008TG-JF for submit@debbugs.gnu.org; Sat, 10 Aug 2013 06:14:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V86Bg-0003ac-9P for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2013 06:14:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V86Bb-0008Qg-EE for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2013 06:14:20 -0400 Received: from a1www.kph.uni-mainz.de ([134.93.134.1]:34840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V86Bb-0008DI-6F for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2013 06:14:15 -0400 Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1www.kph.uni-mainz.de (8.14.4/8.13.4) with ESMTP id r7AAE0XL029380; Sat, 10 Aug 2013 12:14:00 +0200 Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.6/8.14.2) with ESMTP id r7AAE06W014468; Sat, 10 Aug 2013 12:14:00 +0200 Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.6/8.14.6/Submit) id r7AADvWK014466; Sat, 10 Aug 2013 12:13:57 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Message-ID: <20998.4709.272601.247676@a1i15.kph.uni-mainz.de> Date: Sat, 10 Aug 2013 12:13:57 +0200 To: bug-gnu-emacs@gnu.org Subject: 24.3.50; configure does not allow for sound support without ALSA X-Mailer: VM 8.2.0b under 24.3.1 (x86_64-pc-linux-gnu) From: Ulrich Mueller Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by a1www.kph.uni-mainz.de id r7AAE0XL029380 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit Cc: emacs@gentoo.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) Tags: patch In GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, Motif Version 2.3.4) of 2013-08-02 on juno Bzr revision: monnier@iro.umontreal.ca-20130801231837-onq015h5medtj4ea Windowing system distributor `The X.Org Foundation', version 11.0.11402901 System Description: NAME=3DGentoo After the 2013-07-27 change to configure.ac, --with-sound will accept option values (yes, no, ossaudio, alsa). However, it is not possible to enable sound support but prevent autodetection of ALSA. For example, when configuring --with-sound=3Dyes on a GNU/Linux system, ALSA will be enabled when it is found. The patch below adds a new value --with-sound=3Dvoxware that will enable sound but not ALSA, i.e. src/sound.c will then use the /dev/dsp device of OSS. (I'd have preferred the name "oss" over "voxware", but there already is "ossaudio" and I think having "oss" along with it would be too confusing. Also src/sound.c refers to the driver as Voxware and functions are called vox_init() etc. But feel free to change it to "oss" if you think that confusion is not an issue.) --- emacs-orig/ChangeLog +++ emacs/ChangeLog @@ -1,3 +1,9 @@ +2013-08-10 Ulrich M=FCller + + * configure.ac: Allow for --with-sound=3Dvoxware that will enable + sound but otherwise disable ALSA. This will use the OSS device, + typically /dev/dsp, for sound output. + 2013-08-10 Eli Zaretskii =20 * configure.ac: Define and substitute UPDATE_MANIFEST. --- emacs-orig/configure.ac +++ emacs/configure.ac @@ -142,12 +142,12 @@ AC_DEFINE_UNQUOTED(MAILHOST, ["$withval"], [String giving fallback P= OP mail host.])) =20 AC_ARG_WITH([sound],[AS_HELP_STRING([--with-sound=3DVALUE], - [compile with sound support (VALUE one of: yes, ossaudio, alsa, no; + [compile with sound support (VALUE one of: yes, ossaudio, alsa, voxwar= e, no; default yes). Only for GNU/Linux, FreeBSD, NetBSD, MinGW.])], [ case "${withval}" in - yes|no|ossaudio|alsa) val=3D$withval ;; + yes|no|ossaudio|alsa|voxware) val=3D$withval ;; *) AC_MSG_ERROR([`--with-sound=3D$withval' is invalid; -this option's value should be `yes', `no', `ossaudio', or `alsa'.]) +this option's value should be `yes', `no', `ossaudio', `alsa', or `voxwa= re'.]) ;; esac with_sound=3D$val @@ -1274,6 +1274,9 @@ #include #endif ]) + test "${with_sound}" =3D "voxware" && test "${have_sound_header}" !=3D= "yes" && \ + AC_MSG_ERROR([OSS/Voxware sound support requested but not found.]) + if test "${with_sound}" =3D "ossaudio" || test "${with_sound}" =3D "ye= s"; then # Emulation library used on NetBSD. AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBSOUND=3D-lossaudio, LIBSOUND=3D= ) ------------=_1377978964-23456-1--