-f ${O2IBPATH}/include/rdma/ib_cm.h -a \
-f ${O2IBPATH}/include/rdma/ib_verbs.h -a \
-f ${O2IBPATH}/include/rdma/ib_fmr_pool.h \); then
+ if test \( -d ${O2IBPATH}/kernel_patches -a \
+ -f ${O2IBPATH}/Makefile \); then
+ AC_MSG_RESULT([no])
+ AC_MSG_ERROR([you appear to be trying to use the OFED distribution's source directory (${O2IBPATH}) rather than the "development/headers" directory which is likely in ${O2IBPATH%-*}])
+ fi
o2ib_found=true
break
fi
])
-#
-# LN_FUNC_DUMP_TRACE
-#
-# 2.6.23 exports dump_trace() so we can dump_stack() on any task
-# 2.6.24 has stacktrace_ops.address with "reliable" parameter
-#
-AC_DEFUN([LN_FUNC_DUMP_TRACE],
-[LB_CHECK_SYMBOL_EXPORT([dump_trace],
-[kernel/ksyms.c arch/${LINUX_ARCH%_64}/kernel/traps_64.c],[
- tmp_flags="$EXTRA_KCFLAGS"
- EXTRA_KCFLAGS="-Werror"
- AC_MSG_CHECKING([whether we can really use dump_stack])
- LB_LINUX_TRY_COMPILE([
- struct task_struct;
- struct pt_regs;
- #include <asm/stacktrace.h>
- ],[
- ],[
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_DUMP_TRACE, 1, [dump_trace is exported])
- ],[
- AC_MSG_RESULT(no)
- ],[
- ])
- AC_MSG_CHECKING([whether print_trace_address has reliable argument])
- LB_LINUX_TRY_COMPILE([
- struct task_struct;
- struct pt_regs;
- void print_addr(void *data, unsigned long addr, int reliable);
- #include <asm/stacktrace.h>
- ],[
- struct stacktrace_ops ops;
-
- ops.address = print_addr;
- ],[
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_TRACE_ADDRESS_RELIABLE, 1,
- [print_trace_address has reliable argument])
- ],[
- AC_MSG_RESULT(no)
- ],[
- ])
-EXTRA_KCFLAGS="$tmp_flags"
-])
-])
#
#
# LN_CONFIG_USERSPACE
#
-# This is defined but empty because it is called from build/lustre-build.m4
-# which is shared by all branches.
+# This is defined but empty because it is called from
+# build/autconf/lustre-build.m4 which is shared by all branches.
#
AC_DEFUN([LN_CONFIG_USERSPACE],
[
LN_CONFIG_RALND
LN_CONFIG_PTLLND
LN_CONFIG_MX
-LN_FUNC_DUMP_TRACE
])
#
lnet/ulnds/socklnd/Makefile
lnet/ulnds/ptllnd/Makefile
lnet/utils/Makefile
-])
-case $lb_target_os in
- darwin)
- AC_CONFIG_FILES([
lnet/include/lnet/darwin/Makefile
])
- ;;
-esac
])