fusion-aw: make configure and compile actually work
authorJens Axboe <axboe@kernel.dk>
Mon, 14 Jan 2013 18:33:40 +0000 (19:33 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 Jan 2013 18:33:40 +0000 (19:33 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
configure
engines/fusion-aw.c

index c9932b5..08c8bd2 100755 (executable)
--- a/configure
+++ b/configure
@@ -643,14 +643,15 @@ echo "GUASI                         $guasi"
 # fusion-aw probe
 fusion_aw="no"
 cat > $TMPC << EOF
-#include <vsl_dp_experimental/vectored_write.h>
+#include <nvm/vectored_write.h>
 int main(int argc, char **argv)
 {
   struct vsl_iovec iov;
   return vsl_vectored_write(0, &iov, 0, O_ATOMIC);
 }
 EOF
-if compile_prog "" "-lvsldpexp" "fusion-aw"; then
+if compile_prog "" "-L/usr/lib/fio -lnvm-primitives" "fusion-aw"; then
+  LIBS="-L/usr/lib/fio -lnvm-primitives $LIBS"
   fusion_aw="yes"
 fi
 echo "Fusion-io atomic engine       $fusion_aw"
index 20d13e0..0bc5c0b 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "../fio.h"
 
-#include <vsl_dp_experimental/vectored_write.h>
+#include <nvm/vectored_write.h>
 
 /* Fix sector size to 512 bytes independent of actual sector size, just like
  * the linux kernel. */