From: Takashi Iwai <tiwai@suse.de>
To: Ben Stanley <Ben.Stanley@exemail.com.au>
Cc: alsa-devel@alsa-project.org
Subject: Re: alsa-drivers-HEAD does not compile against recent RHE5.1 kernels
Date: Wed, 04 Jun 2008 18:54:36 +0200 [thread overview]
Message-ID: <s5hfxrt3zub.wl%tiwai@suse.de> (raw)
In-Reply-To: <s5hskvt44eb.wl%tiwai@suse.de>
At Wed, 04 Jun 2008 17:16:12 +0200,
I wrote:
>
> At Thu, 05 Jun 2008 01:12:28 +1000,
> Ben Stanley wrote:
> >
> > So, if config.h is not needed in 'newer' kernels (and causes an error?),
> > and is needed in 'older' kernels, it is then an error to universally
> > include it in a configure test program where it causes an error if used
> > inappropriately...
>
> Well, apparently it's only RH kernels that cause the problem.
> So I haven't cared about it at all.
On the second thought, we may force to define the own linux/config.h
to avoid this for the case > 2.6.14. A totally untested patch below.
Takashi
---
diff --git a/configure.in b/configure.in
index 4c44567..e3dada2 100644
--- a/configure.in
+++ b/configure.in
@@ -615,6 +615,19 @@ CHECK_KERNEL_HEADER(linux/config.h, [#ifndef _LINUX_CONFIG_H
#endif
])
+if test ! -f include/linux/config.h; then
+ if test "$kversion.$kpatchlevel" = "2.6" -a "$ksublevel" -gt 14; then
+ echo "Force to create linux/config.h"
+ mkdir -p include/linux
+ echo "#ifndef _LINUX_CONFIG_H
+#define _LINUX_CONFIG_H
+#ifndef AUTOCONF_INCLUDED
+#include <linux/autoconf.h>
+#endif
+#endif" > include/linux/config.h
+ fi
+fi
+
dnl Check kernel headers for 2.2
MODIFY_KERNEL_HEADER(linux/kmod.h, __LINUX_KMOD_H__)
CHECK_KERNEL_HEADER(linux/utsrelease.h)
prev parent reply other threads:[~2008-06-04 16:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-23 1:41 alsa-drivers-HEAD does not compile against recent RHE5.1 kernels Ben Stanley
2008-05-23 11:39 ` Ben Stanley
2008-05-23 12:20 ` Ben Stanley
2008-05-29 23:37 ` Ben Stanley
2008-06-04 12:15 ` Takashi Iwai
2008-06-04 15:12 ` Ben Stanley
2008-06-04 15:16 ` Takashi Iwai
2008-06-04 15:38 ` Ben Stanley
2008-06-04 16:54 ` Takashi Iwai [this message]
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=s5hfxrt3zub.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=Ben.Stanley@exemail.com.au \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox