;;
--disable-numa) disable_numa="yes"
;;
+ --disable-rbd) disable_rbd="yes"
+ ;;
+ --disable-gfapi) disable_gfapi="yes"
+ ;;
--help)
show_help="yes"
;;
# zlib probe
zlib="no"
cat > $TMPC <<EOF
-#include <zlib.h>
+#include <zlib2.h>
int main(void)
{
z_stream stream;
return 0;
}
EOF
-if compile_prog "" "-lrbd -lrados" "rbd"; then
+if test "$disable_rbd" != "yes" && compile_prog "" "-lrbd -lrados" "rbd"; then
LIBS="-lrbd -lrados $LIBS"
rbd="yes"
fi
return 0;
}
EOF
-if compile_prog "" "-lgfapi -lglusterfs" "gfapi"; then
+if test "$disable_gfapi" != "yes" && compile_prog "" "-lgfapi -lglusterfs" "gfapi"; then
LIBS="-lgfapi -lglusterfs $LIBS"
gfapi="yes"
fi