X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2Fautoconf%2Flustre-build-linux.m4;h=ec77262b29ae5179a584c1d7f615dab2755a0d2f;hp=4c0a58101c2185b629724a5027a752725e6193dc;hb=a3a4ecdd28c2cbb41e1245479c918e9e9fcfabaa;hpb=f3ef9ea96d229a1589576d148c5973fd74ae2841 diff --git a/build/autoconf/lustre-build-linux.m4 b/build/autoconf/lustre-build-linux.m4 index 4c0a581..ec77262 100644 --- a/build/autoconf/lustre-build-linux.m4 +++ b/build/autoconf/lustre-build-linux.m4 @@ -285,44 +285,6 @@ AC_DEFUN([LB_LINUX_SYMVERFILE], AC_SUBST(SYMVERFILE) ]) -# -# -# LB_LINUX_MODPOST -# -# Find modpost and check it -# -AC_DEFUN([LB_LINUX_MODPOST], -[ -# Find the modpost utility -LB_CHECK_FILE([$LINUX_OBJ/scripts/mod/modpost], - [MODPOST=$LINUX_OBJ/scripts/mod/modpost], - [LB_CHECK_FILE([$LINUX_OBJ/scripts/modpost], - [MODPOST=$LINUX_OBJ/scripts/modpost], - AC_MSG_ERROR([modpost not found.]) - )] -) -AC_SUBST(MODPOST) - -# Ensure it can run -AC_MSG_CHECKING([if modpost can be run]) -if $MODPOST ; then - AC_MSG_RESULT([yes]) -else - AC_MSG_ERROR([modpost can not be run.]) -fi - -# Check if modpost supports (and therefore requires) -m -AC_MSG_CHECKING([if modpost supports -m]) -if $MODPOST -m 2>/dev/null ; then - AC_MSG_RESULT([yes]) - MODPOST_ARGS=-m -else - AC_MSG_RESULT([no]) - MODPOST_ARGS="" -fi -AC_SUBST(MODPOST_ARGS) -]) - # these are like AC_TRY_COMPILE, but try to build modules against the # kernel, inside the build directory