From e3404ad01729d67bb3f824add6fbff843425cbde Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 19 Jul 2002 07:09:58 +0000 Subject: [PATCH] Fix linux version checking so that modules install correctly under UML also. --- lustre/configure.in | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lustre/configure.in b/lustre/configure.in index 2a54e47..21c0aaf 100644 --- a/lustre/configure.in +++ b/lustre/configure.in @@ -64,16 +64,12 @@ AC_MSG_CHECKING(for Linux release) dnl We need to rid ourselves of the nasty [ ] quotes. changequote(, ) -LVERSION="`sed -ne 's/^VERSION[ ]*=[ ]*//gp' $LINUX/Makefile`" -PATCHLEVEL="`sed -ne 's/^PATCHLEVEL[ ]*=[ ]*//gp' $LINUX/Makefile`" -SUBLEVEL="`sed -ne 's/^SUBLEVEL[ ]*=[ ]*//gp' $LINUX/Makefile`" -EXTRAVERSION="`sed -ne 's/^EXTRAVERSION[ ]*=[ ]*//gp' $LINUX/Makefile`" +dnl Get release from version.h +RELEASE="`sed -ne 's/.*UTS_RELEASE[ \"]*\([0-9.a-zA-Z-]*\).*/\1/p' $LINUX/include/linux/version.h`" changequote([, ]) -RELEASE="$LVERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION" moduledir='$(libdir)/modules/'$RELEASE/kernel AC_SUBST(moduledir) -AC_SUBST(EXTRAVERSION) modulefsdir='$(moduledir)/fs' AC_SUBST(modulefsdir) -- 1.8.3.1