diff --git a/configure b/configure index 868d27b3a..4608e2e67 100755 --- a/configure +++ b/configure @@ -18081,11 +18081,11 @@ if test X"$enable_pvs_studio" = X"yes"; then esac # Determine platform (currently linux or macos) - case "$host_os" in + case "$host" in x86_64-*-linux*) pvs_platform=linux64;; *86-*-linux*) pvs_platform=linux32;; - darwin*) pvs_platform=macos;; - *) as_fn_error $? "PVS-Studio does not support $host_os." "$LINENO" 5;; + *-*-darwin*) pvs_platform=macos;; + *) as_fn_error $? "PVS-Studio does not support $host." "$LINENO" 5;; esac # create basic PVS-Studio.cfg file diff --git a/configure.ac b/configure.ac index 3be720cef..b283f3d82 100644 --- a/configure.ac +++ b/configure.ac @@ -2297,11 +2297,11 @@ if test X"$enable_pvs_studio" = X"yes"; then esac # Determine platform (currently linux or macos) - case "$host_os" in + case "$host" in x86_64-*-linux*) pvs_platform=linux64;; *86-*-linux*) pvs_platform=linux32;; - darwin*) pvs_platform=macos;; - *) AC_MSG_ERROR([PVS-Studio does not support $host_os.]);; + *-*-darwin*) pvs_platform=macos;; + *) AC_MSG_ERROR([PVS-Studio does not support $host.]);; esac # create basic PVS-Studio.cfg file