From cb6e816c4d2c536cfff5ba9859f210aabe39539b Mon Sep 17 00:00:00 2001 From: Wouter Verhelst Date: Wed, 4 Apr 2018 16:16:28 +0200 Subject: [PATCH] Use AS_CASE here, too --- configure.ac | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index 7b63ca1..cdb4af3 100644 --- a/configure.ac +++ b/configure.ac @@ -247,14 +247,10 @@ AC_CHECK_FUNC([sync_file_range], AC_FUNC_FORK AC_FUNC_SETVBUF_REVERSED AC_MSG_CHECKING(whether client should be built) -case $host_os in - linux*) NBD_CLIENT_NAME="nbd-client" - AC_MSG_RESULT(yes) - ;; - *) NBD_CLIENT_NAME="" - AC_MSG_RESULT(no) - ;; -esac +AS_CASE([$host_os], + [linux*], [NBD_CLIENT_NAME="nbd-client"; AC_MSG_RESULT(yes)], + [NBD_CLIENT_NAME=""; AC_MSG_RESULT(no)] +) AC_MSG_CHECKING(whether to expect tlshuge test to fail) AS_CASE([$host_os], [darwin*], [RUN_XFAIL=tlshuge; AC_MSG_RESULT(yes)], -- 2.11.4.GIT