All of lore.kernel.org
 help / color / mirror / Atom feed
* PCI drivers didn't compile (0.9RC2)
@ 2002-06-25 17:56 Dave Andruczyk
  2002-06-26 16:56 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Andruczyk @ 2002-06-25 17:56 UTC (permalink / raw)
  To: alsa-devel


On my system (Mandrake 8.2) alsa 0.9rc2 failed to compile the PCI drivers.  
looking at the configure output said PCI was NOT detected in the kernel.  After
chewing thru the configure.in file, and verifying my kernel autoconf file was
OK, I made the following switch:

AC_TRY_RUN([
#include "$CONFIG_SND_KERNELDIR/include/linux/autoconf.h"
int main( void ) {
#ifndef CONFIG_PCI
  exit(1);
#else
  exit(0);
#endif
}
],
  AC_MSG_RESULT("yes");pcisup="y",
  AC_MSG_RESULT("no");pcisup="n",
  AC_MSG_RESULT("unknown");pcisup="n"
)

   - TO -

AC_TRY_RUN([
#include "$CONFIG_SND_KERNELDIR/include/linux/autoconf.h"
int main( void ) {
#ifndef CONFIG_PCI
  exit(1);
#else
  exit(0);
#endif
}
],
  AC_MSG_RESULT("no");pcisup="n",
  AC_MSG_RESULT("yes");pcisup="y",
  AC_MSG_RESULT("unknown");pcisup="n"
)

Notice the last four lines of each block.  the AC_MSG_RESULT "no/yes" sections
had to be reversed .  Not sure if theis is something weird on my box, or what. 

After doing that, run "autoreconf" then rm *cache ; ./configure, and PCI is
detected and alsa compiles OK (including the PCI drivers)

Any suggestions?


=====
Dave J. Andruczyk
ERP

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-26 16:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-25 17:56 PCI drivers didn't compile (0.9RC2) Dave Andruczyk
2002-06-26 16:56 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.