This patch fix libehca build errors if disable-libcheck option is choosen.

Signed-off-by: Stefan Roscher <[EMAIL PROTECTED]>
---


configure.in     |    3 +--
src/ehca_uinit.c |    2 +-
2 files changed, 2 insertions(+), 3 deletions(-)


diff -Nurp libehca_old/configure.in libehca_new/configure.in
--- libehca_old/configure.in    2007-02-08 17:42:09.000000000 +0100
+++ libehca_new/configure.in    2007-02-08 17:18:20.000000000 +0100
@@ -28,6 +28,7 @@ AC_CHECK_LIB(ibverbs, 
 dnl Checks for header files.
 AC_CHECK_HEADER(infiniband/driver.h, [],
     AC_MSG_ERROR([<infiniband/driver.h> not found.  libehca requires 
libibverbs.]))
+fi
 
 dnl Checks for library functions
 AC_CHECK_FUNCS(ibv_read_sysfs_file ibv_register_driver)
@@ -43,7 +44,6 @@ rm -f $dummy.c
 AM_CONDITIONAL(HAVE_IBV_DEVICE_LIBRARY_EXTENSION,
     test $IBV_DEVICE_LIBRARY_EXTENSION != IBV_DEVICE_LIBRARY_EXTENSION)
 AC_SUBST(IBV_DEVICE_LIBRARY_EXTENSION)
-fi
 
 dnl Checks for programs.
 AC_PROG_CC
@@ -55,4 +55,3 @@ if test "$disable_libcheck" == "yes"
 then
 echo "#define HAVE_IBV_READ_SYSFS_FILE 1" >> config.h
 fi
-
diff -Nurp libehca_old/src/ehca_uinit.c libehca_new/src/ehca_uinit.c
--- libehca_old/src/ehca_uinit.c        2007-02-08 17:42:09.000000000 +0100
+++ libehca_new/src/ehca_uinit.c        2007-02-08 17:18:20.000000000 +0100
@@ -55,7 +55,7 @@
 #include <fcntl.h>
 #endif
 
-#ifdef HAVE_SYSFS_LIBSYSFS_H
+#ifndef HAVE_IBV_REGISTER_DRIVER
 #include <sysfs/libsysfs.h>
 #endif



_______________________________________________
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to