Skip to content
Snippets Groups Projects
Commit 27b69610 authored by jacob's avatar jacob
Browse files

- add missing files to EXTRA_DIST

 - change fshooks tests to work on HEAD (and better in general)
 - fix init script tests
parent 84b2b696
No related branches found
No related tags found
No related merge requests found
EXTRA_DIST := Makefile lbuild linux-merge-config.awk \ EXTRA_DIST := Makefile Makefile.in.toplevel autoMakefile.am.toplevel \
linux-merge-modules.awk linux-rhconfig.h lmake \ lbuild linux-merge-config.awk \
lustre-kernel-2.4.spec.in lustre.spec lustre.spec \ linux-merge-modules.awk linux-rhconfig.h lmake \
suse-functions.sh suse-post.sh suse-postun.sh \ lustre-kernel-2.4.spec.in lustre.spec lustre.spec \
suse-functions.sh suse-post.sh suse-postun.sh \
suse-trigger-script.sh.in suse-trigger-script.sh.in
SUBDIRS := autoconf
SUBDIRS := . build @LIBSYSIO_SUBDIR@ portals lustre SUBDIRS := . build @LIBSYSIO_SUBDIR@ portals lustre
DIST_SUBDIRS := build @LIBSYSIO_SUBDIR@ portals lustre DIST_SUBDIRS := build @LIBSYSIO_SUBDIR@ portals lustre
EXTRA_DIST := config.h.in
# these empty rules are needed so that automake doesn't add its own # these empty rules are needed so that automake doesn't add its own
# recursive rules # recursive rules
etags-recursive: etags-recursive:
......
Makefile
Makefile.in
EXTRA_DIST := lustre-build.mv lustre-build-darwin.mv lustre-build-linux.m4 EXTRA_DIST := lustre-build.m4 lustre-build-darwin.m4 lustre-build-linux.m4
#
# LB_LINUX_INKERNEL
#
# in kernel compilation? (2.5 only)
#
AC_DEFUN([LB_LINUX_INKERNEL],
[AC_MSG_CHECKING([if inkernel build support is requested])
AC_ARG_ENABLE([inkernel],
AC_HELP_STRING([--enable-inkernel],
[set up 2.5 kernel makefiles]),
[],[enable_inkernel=no])
AC_MSG_RESULT([$enable_inkernel])
if test x$enable_inkernel = xyes ; then
echo ln -s `pwd` $LINUX/fs/lustre
rm $LINUX/fs/lustre
ln -s `pwd` $LINUX/fs/lustre
find portals lustre -name Makefile.mk | sed 's/.mk$//' | xargs -n 1 \
sh -e -x -c '(cp -f $0.mk $0.in)'
fi
])
# #
# LB_LINUX_VERSION # LB_LINUX_VERSION
# #
...@@ -40,8 +17,6 @@ AC_MSG_RESULT([$linux25]) ...@@ -40,8 +17,6 @@ AC_MSG_RESULT([$linux25])
MODULE_TARGET="SUBDIRS" MODULE_TARGET="SUBDIRS"
if test $linux25 = "yes" ; then if test $linux25 = "yes" ; then
LB_CONFIG_INKERNEL
makerule="$PWD/build" makerule="$PWD/build"
AC_MSG_CHECKING([for external module build support]) AC_MSG_CHECKING([for external module build support])
rm -f build/conftest.i rm -f build/conftest.i
...@@ -461,30 +436,20 @@ LB_LINUX_CONFIG([EXT3_FS_XATTR],[$1],[$3]) ...@@ -461,30 +436,20 @@ LB_LINUX_CONFIG([EXT3_FS_XATTR],[$1],[$3])
# If we have (and can build) fshooks.h # If we have (and can build) fshooks.h
# #
AC_DEFUN([LB_LINUX_FSHOOKS], AC_DEFUN([LB_LINUX_FSHOOKS],
[AC_MSG_CHECKING([if this compiler can build a SuSE 2.6 kernel]) [AC_CHECK_FILE([$LINUX/include/linux/fshooks.h],[
# an excerpt from fshooks.h, which doesn't build with fedora's gcc 3.4 AC_MSG_CHECKING([if fshooks.h can be compiled])
LB_LINUX_TRY_COMPILE([ LB_LINUX_TRY_COMPILE([
/* for the lack of a kernel-wide definition */ #include <linux/fshooks.h>
typedef enum { ],[],[
false, AC_MSG_RESULT([yes])
true ],[
} boolean_t __attribute__((__mode__(__QI__))); AC_MSG_RESULT([no])
],[],[ AC_MSG_WARN([You might have better luck with gcc 3.3.x.])
AC_MSG_RESULT([yes]) AC_MSG_WARN([You can set CC=gcc33 before running configure.])
],[ AC_MSG_ERROR([Your compiler cannot build fshooks.h.])
AC_MSG_RESULT([no]) ])
AC_MSG_WARN([We suggest trying gcc 3.3.x.])
AC_MSG_WARN([You can set CC=gcc33 before running configure.])
AC_MSG_ERROR([Your compiler cannot build a SuSE 2.6 kernel.])
])
AC_MSG_CHECKING([if fshooks are present])
LB_LINUX_TRY_COMPILE([
#include <linux/fshooks.h>
],[],[
AC_MSG_RESULT([yes])
$1 $1
],[ ],[
AC_MSG_RESULT([no])
$2 $2
]) ])
]) ])
......
...@@ -162,12 +162,15 @@ AC_DEFUN([LB_CONFIG_UTILS], ...@@ -162,12 +162,15 @@ AC_DEFUN([LB_CONFIG_UTILS],
[AC_MSG_CHECKING([whether to build utilities]) [AC_MSG_CHECKING([whether to build utilities])
AC_ARG_ENABLE([utils], AC_ARG_ENABLE([utils],
AC_HELP_STRING([--disable-utils], AC_HELP_STRING([--disable-utils],
[disable building of Lustre utility programs]) [disable building of Lustre utility programs]),
[],[enable_utils='yes']) [],[enable_utils='yes'])
if test x$with_cray_portals = xyes ; then if test x$with_cray_portals = xyes ; then
enable_utils='no' enable_utils='no'
fi fi
AC_MSG_RESULT([$enable_utils]) AC_MSG_RESULT([$enable_utils])
if test x$enable_utils = xyes ; then
LB_CONFIG_INIT_SCRIPTS
fi
]) ])
# #
......
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