vine-users ML アーカイブ



[vine-users:051778] Re: hal って何 ? (PCTel winmodem driver for kernel 2.4)

  • From: Masaki SHINOMIYA <shino@xxxxxx>
  • Subject: [vine-users:051778] Re: hal って何 ? (PCTel winmodem driver for kernel 2.4)
  • Date: Sun, 30 Jun 2002 15:14:26 +0900
シノバーです

On Sun, 30 Jun 2002 13:36:00 +0900
R <hasimoto@xxxxxxxxxxxxxxxxx> wrote:
> ./configure --with-hal=pct789 --with-kernel-includes=/usr/src/linux/include
> 
> としてみたところ、
> 
> checking for Linux kernel version >= 2.4.0... ./configure: test: too many arguments
> no
> configure: error: You should have linux kernel >= 2.4.0 installed
> 
> となりました。

(1)configureファイルを一部変更してみてください。
--- configure.org	Fri Mar  1 19:15:22 2002
+++ configure	Sat Apr  6 12:58:34 2002
@@ -2578,7 +2578,9 @@
 
   CPPFLAGS="$ac_save_CPPFLAGS"
 
-  KERNEL_VERSION="`grep UTS_RELEASE $KERNEL_INCLUDES/linux/version.h | cut -d\\\" -f2`"
+  VERSION_HEADER=version.h
+  [ -f $KERNEL_INCLUDES/linux/version-up.h ] && VERSION_HEADER=version-up.h
+  KERNEL_VERSION="`grep UTS_RELEASE $KERNEL_INCLUDES/linux/$VERSION_HEADER | cut -d\\\" -f2`"
 
   min_kernel_version=2.4.0

(1)acinclude.m4 も変更必要かも
--- acinclude.org	Fri May  3 19:15:23 2002
+++ acinclude.m4	Sat Jun  1 08:14:10 2002
@@ -39,7 +39,7 @@
      AC_MSG_ERROR(modversions.h is missing - you should configure your kernel first!))
   CPPFLAGS="$ac_save_CPPFLAGS"
 
-  KERNEL_VERSION="`grep UTS_RELEASE $KERNEL_INCLUDES/linux/version.h | cut -d\\\" -f2`"
+  KERNEL_VERSION="`grep UTS_RELEASE $KERNEL_INCLUDES/linux/version*.h | head -n 1 | cut -d\\\" -f2`"
 
   KERNEL_VERSION=`echo $KERNEL_VERSION | awk '{ print $1 }'`
   AC_SUBST(KERNEL_INCLUDES)

-- 
Masaki Shinomiya <shino@xxxxxx>
http://shino.pos.to/linux/