Hi Sasha,

When compiling infiniband-diags not from the source code location,
compilation fails to find the ibdiag_version.h file - fixing it.

Signed-off-by:  Yevgeny Kliteynik <[EMAIL PROTECTED]>
---
 infiniband-diags/Makefile.am |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/infiniband-diags/Makefile.am b/infiniband-diags/Makefile.am
index e502a06..b6228b5 100644
--- a/infiniband-diags/Makefile.am
+++ b/infiniband-diags/Makefile.am
@@ -1,5 +1,5 @@

-INCLUDES = -I$(srcdir)/include -I$(includedir) -I$(includedir)/infiniband
+INCLUDES = -I$(top_builddir)/include/ -I$(srcdir)/include -I$(includedir) 
-I$(includedir)/infiniband

 if DEBUG
 DBGFLAGS = -ggdb -D_DEBUG_
@@ -103,7 +103,7 @@ man_MANS = man/ibaddr.8 man/ibcheckerrors.8 
man/ibcheckerrs.8 \
 BUILT_SOURCES = ibdiag_version
 ibdiag_version:
        if [ -x $(top_srcdir)/../gen_ver.sh ] ; then \
-               ver_file=$(srcdir)/include/ibdiag_version.h ; \
+               ver_file=$(top_builddir)/include/ibdiag_version.h ; \
                ibdiag_ver=`cat $$ver_file | sed -ne '/#define IBDIAG_VERSION 
/s/^.*\"\(.*\)\"$$/\1/p'` ; \
                ver=`$(top_srcdir)/../gen_ver.sh $(PACKAGE)` ; \
                if [ $$ver != $$ibdiag_ver ] ; then \
-- 
1.5.1.4

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

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

Reply via email to