Skip to content
Snippets Groups Projects
Commit a3a4ecdd authored by Minh Diep's avatar Minh Diep Committed by Oleg Drokin
Browse files

LU-2920 autoconf: delete unused LB_LINUX_MODPOST


LB_LINUX_MODPOST does not seem to be used anywhere.

Signed-off-by: default avatarMinh Diep <minh.diep@intel.com>
Change-Id: Ibec2002ae8b74b9c6f1f6df82a35d44bd00916dc
Reviewed-on: http://review.whamcloud.com/5615


Reviewed-by: default avatarBob Glossman <bob.glossman@intel.com>
Tested-by: Hudson
Reviewed-by: default avatarKeith Mannthey <keith.mannthey@intel.com>
Tested-by: default avatarMaloo <whamcloud.maloo@gmail.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
parent f3ef9ea9
No related branches found
No related tags found
No related merge requests found
...@@ -285,44 +285,6 @@ AC_DEFUN([LB_LINUX_SYMVERFILE], ...@@ -285,44 +285,6 @@ AC_DEFUN([LB_LINUX_SYMVERFILE],
AC_SUBST(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 # these are like AC_TRY_COMPILE, but try to build modules against the
# kernel, inside the build directory # kernel, inside the build directory
......
...@@ -49,7 +49,6 @@ if test x$enable_modules = xyes ; then ...@@ -49,7 +49,6 @@ if test x$enable_modules = xyes ; then
LB_LINUX_CONFIG([KALLSYMS],[],[ LB_LINUX_CONFIG([KALLSYMS],[],[
AC_MSG_ERROR([ldiskfs requires that CONFIG_KALLSYMS is enabled in your kernel.]) AC_MSG_ERROR([ldiskfs requires that CONFIG_KALLSYMS is enabled in your kernel.])
]) ])
LB_LINUX_MODPOST
fi fi
LB_LDISKFS_SERIES([test x$enable_dist = xno]) LB_LDISKFS_SERIES([test x$enable_dist = xno])
......
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