Skip to content
Snippets Groups Projects
Commit 15584e54 authored by Phil Schwan's avatar Phil Schwan
Browse files

Move AM_CONDITIONAL into configure.in

parent 63741e8f
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,11 @@ ...@@ -5,6 +5,11 @@
AUTOMAKE_OPTIONS = foreign AUTOMAKE_OPTIONS = foreign
if LINUX25
DIRS24 = mds
else
DIRS24 = extN mds
endif
# NOTE: keep extN before mds # NOTE: keep extN before mds
SUBDIRS = lov utils obdclass ldlm ptlrpc lib obdecho mdc osc ost llite SUBDIRS = lov utils obdclass ldlm ptlrpc lib obdecho mdc osc ost llite
......
AC_MSG_CHECKING(if you are running linux 2.5...)
if test -e $LINUX/include/linux/namei.h ; then
linux25=yes
DIRS24="mds"
FSMOD="mds_ext3"
AC_MSG_RESULT(yes)
else
linux25=no
DIRS24="mds extN"
FSMOD="mds_extN"
AC_MSG_RESULT(no)
fi
AC_SUBST(DIRS24)
AC_SUBST(FSMOD)
## AM_CONDITIONAL(LINUX25, test x$linux25 = xyes)
AC_MSG_CHECKING(if you are running user mode linux for $host_alias..) AC_MSG_CHECKING(if you are running user mode linux for $host_alias..)
if test -e $LINUX/include/asm-um ; then if test -e $LINUX/include/asm-um ; then
if test X`ls -id $LINUX/include/asm | awk '{print $1}'` = X`ls -id $LINUX/include/asm-um | awk '{print $1}'` ; then if test X`ls -id $LINUX/include/asm | awk '{print $1}'` = X`ls -id $LINUX/include/asm-um | awk '{print $1}'` ; then
......
...@@ -45,6 +45,16 @@ AC_SUBST(LINUX) ...@@ -45,6 +45,16 @@ AC_SUBST(LINUX)
sinclude(archdep.m4) sinclude(archdep.m4)
AC_MSG_CHECKING(if you are running linux 2.5...)
if test -e $LINUX/include/linux/namei.h ; then
linux25=yes
AC_MSG_RESULT(yes)
else
linux25=no
AC_MSG_RESULT(no)
fi
AM_CONDITIONAL(LINUX25, test x$linux25 = xyes)
KINCFLAGS='-I. -I$(top_srcdir)/include -I$(PORTALS)/include -I$(LINUX)/include' KINCFLAGS='-I. -I$(top_srcdir)/include -I$(PORTALS)/include -I$(LINUX)/include'
CPPFLAGS="$KINCFLAGS $ARCHCPPFLAGS" CPPFLAGS="$KINCFLAGS $ARCHCPPFLAGS"
......
...@@ -5,7 +5,11 @@ ...@@ -5,7 +5,11 @@
DEFS= DEFS=
MODS=@FSMOD@ if LINUX25
FSMOD = mds_ext3
else
FSMOD = mds_extN
endif
MODULE = mds MODULE = mds
modulefs_DATA = mds.o $(MODS).o modulefs_DATA = mds.o $(MODS).o
...@@ -27,4 +31,3 @@ target.c: ...@@ -27,4 +31,3 @@ target.c:
mds_SOURCES = mds_lov.c handler.c mds_reint.c mds_fs.c $(LINX) mds_SOURCES = mds_lov.c handler.c mds_reint.c mds_fs.c $(LINX)
include $(top_srcdir)/Rules include $(top_srcdir)/Rules
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment