All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] configure: add a --disable-rdma flag to control rdma deps
@ 2017-03-01  5:30 Mike Frysinger
  2017-03-21 13:21 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2017-03-01  5:30 UTC (permalink / raw)
  To: fio

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 configure | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 15b87fac0e4c..187ac3583805 100755
--- a/configure
+++ b/configure
@@ -166,6 +166,8 @@ for opt do
   ;;
   --disable-numa) disable_numa="yes"
   ;;
+  --disable-rdma) disable_rdma="yes"
+  ;;
   --disable-rbd) disable_rbd="yes"
   ;;
   --disable-rbd-blkin) disable_rbd_blkin="yes"
@@ -204,6 +206,7 @@ if test "$show_help" = "yes" ; then
   echo "--esx                  Configure build options for esx"
   echo "--enable-gfio          Enable building of gtk gfio"
   echo "--disable-numa         Disable libnuma even if found"
+  echo "--disable-rdma         Disable RDMA support even if found"
   echo "--disable-gfapi        Disable gfapi"
   echo "--enable-libhdfs       Enable hdfs support"
   echo "--disable-lex          Disable use of lex/yacc for math"
@@ -642,7 +645,7 @@ int main(int argc, char **argv)
   return 0;
 }
 EOF
-if compile_prog "" "-libverbs" "libverbs" ; then
+if test "$disable_rdma" != "yes" && compile_prog "" "-libverbs" "libverbs" ; then
     libverbs="yes"
     LIBS="-libverbs $LIBS"
 fi
@@ -660,7 +663,7 @@ int main(int argc, char **argv)
   return 0;
 }
 EOF
-if compile_prog "" "-lrdmacm" "rdma"; then
+if test "$disable_rdma" != "yes" && compile_prog "" "-lrdmacm" "rdma"; then
     rdmacm="yes"
     LIBS="-lrdmacm $LIBS"
 fi
-- 
2.11.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] configure: add a --disable-rdma flag to control rdma deps
  2017-03-01  5:30 [PATCH] configure: add a --disable-rdma flag to control rdma deps Mike Frysinger
@ 2017-03-21 13:21 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2017-03-21 13:21 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: fio

On Tue, Feb 28 2017, Mike Frysinger wrote:
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
>  configure | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 

Added, thanks Mike.

-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-21 13:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-01  5:30 [PATCH] configure: add a --disable-rdma flag to control rdma deps Mike Frysinger
2017-03-21 13:21 ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.