From xemacs-m  Sat Mar 22 11:07:40 1997
Received: from wmperry.in.aventail.com (wmperry@wmperry.oz.net [207.13.185.53])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id LAA28880
	for <xemacs-beta@xemacs.org>; Sat, 22 Mar 1997 11:07:38 -0600 (CST)
Received: (from wmperry@localhost) by wmperry.in.aventail.com (8.7.6/8.7.3) id JAA00561; Sat, 22 Mar 1997 09:15:35 -0800
Date: Sat, 22 Mar 1997 09:15:35 -0800
Message-Id: <199703221715.JAA00561@wmperry.in.aventail.com>
From: "William M. Perry" <wmperry@aventail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Hajime Saitou <hajime@jsk.t.u-tokyo.ac.jp>
Cc: "Karl M. Hegbloom" <karlheg@inetarena.com>, xemacs-beta@xemacs.org
Subject: Re: Configure patch for Linux sound=native 
In-Reply-To: <199703221301.WAA03159@jsk.t.u-tokyo.ac.jp>
References: <199703221215.EAA05337@bittersweet.inetarena.com>
	<199703221301.WAA03159@jsk.t.u-tokyo.ac.jp>
Errors-to: wmperry@aventail.com
Reply-to: wmperry@aventail.com
X-Face: O~Rn;(l][/-o1sALg4A@xpE:9-"'IR[%;,,!m7</SYF`{vYQ(&RI1&EiH[FvT;J}@f!4kfz
 x_!Y#=y{Uuj9GvUi=cPuajQ(Z42R[wE@{G,sn$qGr5g/wnb*"*ktI+,CD}1Z'wxrM2ag-r0p5I6\nA
 [WJopW_J.WY;

Hajime Saitou writes:
>
>> if $(cat /lib/modules/$(uname -r)/modules.dep | grep -q sound.o);
>> then
>>   with_sound = "native"
>> fi
>> 
>>  I think it's best to look in the modules.dep file, since it has to be
>> there in order for kerneld to load it, right?  Or am I wrong?
>> 
>>  Try this:
>
>I don't want you to think that I'm some sort of cheap nitpicker, but
>there are actually other sound drivers too. For instance the ultra
>sound project comes to mind. I have a linux machine with an ultra
>sound card using the ultra sound project drivers. This driver, which
>is compiled as a module is installed in /usr/local/etc/gus.o the
>default. It also is capable of emulating the OSS driver too.
>
>I think that there will be a lot of very grateful people if you could
>include checks such as,
>
>if [ -r /usr/local/etc/gus.o ]; then
>  with_sound="native"
>fi
>
>Thank you very much in advance.

  Why not just skip the whole business and do something along the lines of
all the other configure tests and try to open '/dev/audio' - if it fails,
then you do not have your machine configured correctly to autoload, etc.

  At least, I _think_ this would work.  You could probably do this all from
the shell as well.  Something like:

if [ dd if=/dev/null of=/dev/audio > /dev/null 2>&1 ]; then 
   NATIVE_SOUND=y
else
   NATIVE_SOUND=""
fi

  I don't have the xemacs beta on my laptop right now (had to install
Diablo & Quake to do some testing of our server software this week - no
kidding!) and ran a bit low on disk space.

-Bill P.

