]> sourceware.org Git - lvm2.git/commitdiff
configure: update
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 8 Nov 2018 11:22:07 +0000 (12:22 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 8 Nov 2018 11:22:07 +0000 (12:22 +0100)
configure
include/configure.h.in

index d8f73840a8865ddd28ad4c276e4f24651f1cee5f..496741f17a9197f36ee64e039f6f6c1150964638 100755 (executable)
--- a/configure
+++ b/configure
@@ -915,6 +915,7 @@ with_cache_restore
 enable_cache_check_needs_check
 with_vdo
 with_vdo_format
+with_writecache
 enable_readline
 enable_realtime
 enable_ocf
@@ -1708,6 +1709,7 @@ Optional Packages:
                           cache_restore tool: [autodetect]
   --with-vdo=TYPE         vdo support: internal/none [internal]
   --with-vdo-format=PATH  vdoformat tool: [autodetect]
+  --with-writecache=TYPE  writecache support: internal/none [internal]
   --with-ocfdir=DIR       install OCF files in
                           [PREFIX/lib/ocf/resource.d/lvm2]
   --with-default-pid-dir=PID_DIR
@@ -9705,6 +9707,31 @@ _ACEOF
 #                           VDO_LIB=$withval, VDO_LIB="/usr/lib")
 #AC_MSG_RESULT($VDO_LIB)
 
+################################################################################
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include writecache" >&5
+$as_echo_n "checking whether to include writecache... " >&6; }
+
+# Check whether --with-writecache was given.
+if test "${with_writecache+set}" = set; then :
+  withval=$with_writecache; WRITECACHE=$withval
+else
+  WRITECACHE="none"
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WRITECACHE" >&5
+$as_echo "$WRITECACHE" >&6; }
+
+case "$WRITECACHE" in
+ none) ;;
+ internal)
+
+$as_echo "#define WRITECACHE_INTERNAL 1" >>confdefs.h
+
+       ;;
+ *) as_fn_error $? "--with-writecache parameter invalid" "$LINENO" 5 ;;
+esac
+
 ################################################################################
 # Check whether --enable-readline was given.
 if test "${enable_readline+set}" = set; then :
index 3721844654322f09df35fd41d7544c8e83201e5a..19c1922fc3739fd0e01ff0f1dea9ecc7c3636f6e 100644 (file)
 /* Define to 1 to include built-in support for vdo. */
 #undef VDO_INTERNAL
 
+/* Define to 1 to include built-in support for writecache. */
+#undef WRITECACHE_INTERNAL
+
 /* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
    <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
    #define below would cause a syntax error. */
This page took 0.044825 seconds and 5 git commands to generate.