[openib-general] [PATCH] osm: --with-umad-libs breaks compile if --with-umad-includes not provided

Eitan Zahavi eitan at mellanox.co.il
Thu Mar 30 12:28:10 PST 2006


Hi Hal

Just found out that if the user provides --with-umad-libs and not --with-umad-includes
the compilation breaks. This patch fixes this.

Eitan

Signed-off-by:  Eitan Zahavi <eitan at mellanox.co.il>

Index: config/osmvsel.m4
===================================================================
--- config/osmvsel.m4	(revision 6076)
+++ config/osmvsel.m4	(working copy)
@@ -65,9 +65,12 @@ if test $with_osmv = "openib"; then
    if test "x$with_umad_libs" = "x"; then
    OSMV_LDADD="-libumad"
    else
-     OSMV_INCLUDES="-I$with_umad_includes $OSMV_INCLUDES"
      OSMV_LDADD="-L$with_umad_libs -libumad"
    fi
+
+   if test "x$with_umad_includes" != "x"; then 
+     OSMV_INCLUDES="-I$with_umad_includes $OSMV_INCLUDES"
+   fi
 elif test $with_osmv = "sim" ; then
    OSMV_CFLAGS="-DOSM_VENDOR_INTF_SIM"
    OSMV_INCLUDES="-I$with_sim/include -I\$(srcdir)/../include"




More information about the general mailing list