diff --git a/build/autoMakefile.am b/build/autoMakefile.am index 2802978f8fa01b036ee6f925f87a778c01562742..95994a4bd3a67a240b4add9aaf817bb8a14a5fe2 100644 --- a/build/autoMakefile.am +++ b/build/autoMakefile.am @@ -1,5 +1,8 @@ -EXTRA_DIST := Makefile lbuild linux-merge-config.awk \ - linux-merge-modules.awk linux-rhconfig.h lmake \ - lustre-kernel-2.4.spec.in lustre.spec lustre.spec \ - suse-functions.sh suse-post.sh suse-postun.sh \ +EXTRA_DIST := Makefile Makefile.in.toplevel autoMakefile.am.toplevel \ + lbuild linux-merge-config.awk \ + linux-merge-modules.awk linux-rhconfig.h lmake \ + lustre-kernel-2.4.spec.in lustre.spec lustre.spec \ + suse-functions.sh suse-post.sh suse-postun.sh \ suse-trigger-script.sh.in + +SUBDIRS := autoconf diff --git a/build/autoMakefile.am.toplevel b/build/autoMakefile.am.toplevel index 7d984cea40a75118f9708bf0835c31b7be363cc8..7bb63370419a6d886fda54254f2efb4ab0f91de1 100644 --- a/build/autoMakefile.am.toplevel +++ b/build/autoMakefile.am.toplevel @@ -1,6 +1,8 @@ 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 # recursive rules etags-recursive: diff --git a/build/autoconf/.cvsignore b/build/autoconf/.cvsignore new file mode 100644 index 0000000000000000000000000000000000000000..282522db0342d8750454b3dc162493b5fc709cc8 --- /dev/null +++ b/build/autoconf/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/build/autoconf/Makefile.am b/build/autoconf/Makefile.am index d3fd6c49c03ad5acaea566abec339de6bd2b8050..23729e73e6972739c4f6d9b4b34fb2cca1ca90d1 100644 --- a/build/autoconf/Makefile.am +++ b/build/autoconf/Makefile.am @@ -1,2 +1,2 @@ -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 diff --git a/build/autoconf/lustre-build-linux.m4 b/build/autoconf/lustre-build-linux.m4 index 301babdf1ce28983797af46e46eea2b171becadb..a2dd4a0ca5240f9b5ae61be79f21b4083e62e79f 100644 --- a/build/autoconf/lustre-build-linux.m4 +++ b/build/autoconf/lustre-build-linux.m4 @@ -1,26 +1,3 @@ -# -# 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 # @@ -40,8 +17,6 @@ AC_MSG_RESULT([$linux25]) MODULE_TARGET="SUBDIRS" if test $linux25 = "yes" ; then - LB_CONFIG_INKERNEL - makerule="$PWD/build" AC_MSG_CHECKING([for external module build support]) rm -f build/conftest.i @@ -461,30 +436,20 @@ LB_LINUX_CONFIG([EXT3_FS_XATTR],[$1],[$3]) # If we have (and can build) fshooks.h # AC_DEFUN([LB_LINUX_FSHOOKS], -[AC_MSG_CHECKING([if this compiler can build a SuSE 2.6 kernel]) -# an excerpt from fshooks.h, which doesn't build with fedora's gcc 3.4 -LB_LINUX_TRY_COMPILE([ - /* for the lack of a kernel-wide definition */ - typedef enum { - false, - true - } boolean_t __attribute__((__mode__(__QI__))); -],[],[ - AC_MSG_RESULT([yes]) -],[ - 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]) +[AC_CHECK_FILE([$LINUX/include/linux/fshooks.h],[ + AC_MSG_CHECKING([if fshooks.h can be compiled]) + LB_LINUX_TRY_COMPILE([ + #include <linux/fshooks.h> + ],[],[ + AC_MSG_RESULT([yes]) + ],[ + AC_MSG_RESULT([no]) + AC_MSG_WARN([You might have better luck with gcc 3.3.x.]) + AC_MSG_WARN([You can set CC=gcc33 before running configure.]) + AC_MSG_ERROR([Your compiler cannot build fshooks.h.]) + ]) $1 ],[ - AC_MSG_RESULT([no]) $2 ]) ]) diff --git a/build/autoconf/lustre-build.m4 b/build/autoconf/lustre-build.m4 index 7994f25ec4f82935f8de837a489d25cf68403a35..4d9f666134e6e89173054e9965bb740db769677b 100644 --- a/build/autoconf/lustre-build.m4 +++ b/build/autoconf/lustre-build.m4 @@ -162,12 +162,15 @@ AC_DEFUN([LB_CONFIG_UTILS], [AC_MSG_CHECKING([whether to build utilities]) AC_ARG_ENABLE([utils], AC_HELP_STRING([--disable-utils], - [disable building of Lustre utility programs]) + [disable building of Lustre utility programs]), [],[enable_utils='yes']) if test x$with_cray_portals = xyes ; then enable_utils='no' fi AC_MSG_RESULT([$enable_utils]) +if test x$enable_utils = xyes ; then + LB_CONFIG_INIT_SCRIPTS +fi ]) #