[openib-general] [PATCH] libosmvendor: configure option to skip library check
Michael S. Tsirkin
mst at mellanox.co.il
Tue Aug 9 08:12:17 PDT 2005
Add option to skip infiniband library checks in libibumad.
Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>
Index: management/osm/libvendor/configure.in
===================================================================
--- management/osm/libvendor/configure.in (revision 2963)
+++ management/osm/libvendor/configure.in (working copy)
@@ -7,6 +7,13 @@ AC_CONFIG_AUX_DIR(config)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(libosmvendor, 0.9.0)
+AC_ARG_ENABLE(libcheck, [ --disable-libcheck do not test for presense of
+ib libraries],
+[ if test x$enableval = xno ; then
+ disable_libcheck=yes
+ fi
+])
+
dnl Checks for programs
AC_PROG_CC
AC_PROG_GCC_TRADITIONAL
@@ -16,17 +23,23 @@ AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
+if test "$disable_libcheck" != "yes"
+then
dnl Checks for libraries
LDFLAGS="$LDFLAGS -L/usr/local/ib/lib"
AC_CHECK_LIB(ibumad, umad_init, [],
AC_MSG_ERROR([umad_init() not found. libosmvendor requires libibumad.]))
+fi
dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
+if test "$disable_libcheck" != "yes"
+then
AC_CHECK_HEADER(infiniband/umad.h, [],
AC_MSG_ERROR([<infiniband/umad.h> not found. libosmvendor requires libibumad.])
)
+fi
AC_CHECK_HEADERS([fcntl.h stddef.h stdint.h sys/ioctl.h])
dnl Checks for library functions
--
MST
More information about the general
mailing list