All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Habets <errandir_news@mph.eclipse.co.uk>
To: alsa-devel@alsa-project.org
Subject: Re: How to build alsa-driver for sparc?
Date: Tue, 28 Sep 2004 01:25:21 +0100	[thread overview]
Message-ID: <20040928002520.GA8552@palantir8> (raw)
In-Reply-To: <s5hllev1nxa.wl@alsa2.suse.de>

Takashi,

Yes this works (and in record-breaking time!), but revealed another problem
when running configure:

checking for which soundcards to compile driver for... ./configure: line 8479: ((: ( test y = y -o y = m ) ||
      ( test  = y -o  = m ): missing `)' (error token is "y = y -o y = m ) ||
      ( test  = y -o  = m )")
./configure: line 8491: ((: ( test y = y -o y = m ) ||
      ( test  = y -o  = m ): missing `)' (error token is "y = y -o y = m ) ||
      ( test  = y -o  = m )")
./configure: line 8502: ((: ( test y = y -o y = m ) ||
      ( test  = y -o  = m ): missing `)' (error token is "y = y -o y = m ) ||
      ( test  = y -o  = m )")
all

configure has:
  if test "$card" = "all" -o "$card" = "sun-amd7930"; then
    if ((( test "$CONFIG_SPARC32" = "y" -o "$CONFIG_SPARC32" = "m" ) ||
      ( test "$CONFIG_SPARC64" = "y" -o "$CONFIG_SPARC64" = "m" ))) &&
      ( test "$CONFIG_SBUS" = "y" -o "$CONFIG_SBUS" = "m" ); then

The "((" puts bash into math mode... The first patch attached circumvents
this problem.
After that it turned out CONFIG_SBUS was not set either in toplevel.config,
and the 2nd patch is my attempt to resolve that.

Thanks!
Martin

        Signed-off-by: Martin Habets <errandir_news@mph.eclipse.co.uk>

--- alsa-driver-1.0.7rc1/utils/mod-deps.c.orig	2004-09-28 00:46:20.791040341 +0100
+++ alsa-driver-1.0.7rc1/utils/mod-deps.c	2004-09-28 00:47:02.581559194 +0100
@@ -929,10 +929,10 @@
 			if (cond->not)
 				printf(" ! ");
 			for (j = 0; j < cond->left; j++)
-				printf("(");
+				printf("( ");
 			printf("( test \"$CONFIG_%s\" = \"y\" -o \"$CONFIG_%s\" = \"m\" )", cond->name, cond->name);
 			for (j = 0; j < cond->right; j++)
-				printf(")");
+				printf(" )");
 			put_if = 1;
 			cond_prev = cond;
 		}
--- alsa-driver-1.0.7rc1/configure.in.orig	2004-09-28 01:13:47.546782281 +0100
+++ alsa-driver-1.0.7rc1/configure.in	2004-09-28 01:13:21.190059795 +0100
@@ -683,6 +683,9 @@
 CONFIG_ISA=probe
 fi
 
+dnl Check for SBUS support...
+CHECK_KERNEL_CONFIG(CONFIG_SBUS, [SBUS support in kernel])
+
 dnl Check processor type...
 AC_MSG_CHECKING(for processor type)
 CONFIG_X86=
@@ -1042,6 +1045,7 @@
 AC_SUBST(CONFIG_PPC)
 AC_SUBST(CONFIG_SPARC32)
 AC_SUBST(CONFIG_SPARC64)
+AC_SUBST(CONFIG_SBUS)
 AC_SUBST(CONFIG_ISA)
 AC_SUBST(CONFIG_PARISC)
 AC_SUBST(CONFIG_SND_BIT32_EMUL)


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php

  reply	other threads:[~2004-09-28  0:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-27 19:14 How to build alsa-driver for sparc? Martin Habets
2004-09-27 20:01 ` Takashi Iwai
2004-09-28  0:25   ` Martin Habets [this message]
2004-09-28 16:51     ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040928002520.GA8552@palantir8 \
    --to=errandir_news@mph.eclipse.co.uk \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.