diff --git a/configure b/configure index 7c1ffe024..9babc5982 100755 --- a/configure +++ b/configure @@ -14603,14 +14603,22 @@ $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi -test -n "$THIN_CONFIGURE_WARN" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Support for thin provisioning is limited since some thin provisioning tools are missing!" >&5 +if test -n "$THIN_CONFIGURE_WARN"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Support for thin provisioning is limited since some thin provisioning tools are missing!" >&5 $as_echo "$as_me: WARNING: Support for thin provisioning is limited since some thin provisioning tools are missing!" >&2;} +fi -test -n "$THIN_CHECK_VERSION_WARN" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should also install thin_check vsn 0.3.2 (or later) to use lvm2 thin provisioning" >&5 +if test -n "$THIN_CHECK_VERSION_WARN"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should also install thin_check vsn 0.3.2 (or later) to use lvm2 thin provisioning" >&5 $as_echo "$as_me: WARNING: You should also install thin_check vsn 0.3.2 (or later) to use lvm2 thin provisioning" >&2;} +fi -test -n "$CACHE_CONFIGURE_WARN" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Support for cache is limited since some cache tools are missing!" >&5 +if test -n "$CACHE_CONFIGURE_WARN"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Support for cache is limited since some cache tools are missing!" >&5 $as_echo "$as_me: WARNING: Support for cache is limited since some cache tools are missing!" >&2;} +fi -test "$ODIRECT" = yes || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&5 +if test "$ODIRECT" != yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&5 $as_echo "$as_me: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} +fi diff --git a/configure.in b/configure.in index 83358f507..c3222ed2c 100644 --- a/configure.in +++ b/configure.in @@ -1955,10 +1955,14 @@ unit-tests/mm/Makefile ]) AC_OUTPUT -test -n "$THIN_CONFIGURE_WARN" && AC_MSG_WARN([Support for thin provisioning is limited since some thin provisioning tools are missing!]) +AS_IF([test -n "$THIN_CONFIGURE_WARN"], + [AC_MSG_WARN([Support for thin provisioning is limited since some thin provisioning tools are missing!])]) -test -n "$THIN_CHECK_VERSION_WARN" && AC_MSG_WARN([You should also install thin_check vsn 0.3.2 (or later) to use lvm2 thin provisioning]) +AS_IF([test -n "$THIN_CHECK_VERSION_WARN"], + [AC_MSG_WARN([You should also install thin_check vsn 0.3.2 (or later) to use lvm2 thin provisioning])]) -test -n "$CACHE_CONFIGURE_WARN" && AC_MSG_WARN([Support for cache is limited since some cache tools are missing!]) +AS_IF([test -n "$CACHE_CONFIGURE_WARN"], + [AC_MSG_WARN([Support for cache is limited since some cache tools are missing!])]) -test "$ODIRECT" = yes || AC_MSG_WARN([O_DIRECT disabled: low-memory pvmove may lock up]) +AS_IF([test "$ODIRECT" != yes], + [AC_MSG_WARN([O_DIRECT disabled: low-memory pvmove may lock up])])