[openfabrics-ewg] [PATCH ofed-1.2] libehca: fix build error with disable-libcheck option

Stefan Roscher ossrosch at linux.vnet.ibm.com
Thu Feb 8 09:20:10 PST 2007


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


Signed-off-by: Stefan Roscher <stefan.roscher at de.ibm.com>
---


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






More information about the ewg mailing list