])
# we know at this point that the found OFED source is good
O2IB_SYMVER=""
- if test $ENABLEO2IB = "withpath" -o "x$OFED" = "xyes" ; then
- if test -f $O2IBPATH/Module.symvers; then
- O2IB_SYMVER=$O2IBPATH/Module.symvers;
- break;
- fi
- if test -n "$O2IB_SYMVER"; then
- AC_MSG_NOTICE([adding $O2IB_SYMVER to Symbol Path])
- EXTRA_SYMBOLS="$EXTRA_SYMBOLS $O2IB_SYMVER"
- AC_SUBST(EXTRA_SYMBOLS)
- else
- AC_MSG_ERROR([an external source tree was, either specified or detected, for o2iblnd however I could not find a $O2IBPATH/Module.symvers there])
- fi
+ if test -f $O2IBPATH/Module.symvers; then
+ O2IB_SYMVER=$O2IBPATH/Module.symvers
+ elif test "x$SUSE_KERNEL" = "xyes"; then
+ O2IB_SYMVER=$(find ${O2IBPATH}* -name Module.symvers)
+ fi
+ if test -n "$O2IB_SYMVER"; then
+ AC_MSG_NOTICE([adding $O2IB_SYMVER to Symbol Path])
+ EXTRA_SYMBOLS="$EXTRA_SYMBOLS $O2IB_SYMVER"
+ AC_SUBST(EXTRA_SYMBOLS)
+ else
+ AC_MSG_ERROR([an external source tree was, either specified or detected, for o2iblnd however I could not find a $O2IBPATH/Module.symvers there])
fi
LB_CHECK_COMPILE([if Linux kernel has kthread_worker],