mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-19 14:04:17 +03:00
configure: better parsing of cache_check version
Properly read also version string like 0.5.5-1.fc24 and read just first 3 digits split by '.' Also remove one extra $HAVE_REALTIME.
This commit is contained in:
parent
49b5022993
commit
5ce334923f
4
configure
vendored
4
configure
vendored
@ -8816,7 +8816,7 @@ $as_echo "$as_me: WARNING: cache_check not found in path $PATH" >&2;}
|
|||||||
if test "$CACHE_CHECK_NEEDS_CHECK" = yes; then
|
if test "$CACHE_CHECK_NEEDS_CHECK" = yes; then
|
||||||
$CACHE_CHECK_CMD -V 2>/dev/null >conftest.tmp
|
$CACHE_CHECK_CMD -V 2>/dev/null >conftest.tmp
|
||||||
read -r CACHE_CHECK_VSN < conftest.tmp
|
read -r CACHE_CHECK_VSN < conftest.tmp
|
||||||
IFS=. read -r CACHE_CHECK_VSN_MAJOR CACHE_CHECK_VSN_MINOR CACHE_CHECK_VSN_PATCH < conftest.tmp
|
IFS=.- read -r CACHE_CHECK_VSN_MAJOR CACHE_CHECK_VSN_MINOR CACHE_CHECK_VSN_PATCH LEFTOVER < conftest.tmp
|
||||||
rm -f conftest.tmp
|
rm -f conftest.tmp
|
||||||
|
|
||||||
# Require version >= 0.5.4 for --clear-needs-check-flag
|
# Require version >= 0.5.4 for --clear-needs-check-flag
|
||||||
@ -12852,8 +12852,6 @@ $as_echo "#define HAVE_REALTIME 1" >>confdefs.h
|
|||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
|
||||||
$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
|
$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
|
||||||
fi
|
fi
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_REALTIME" >&5
|
|
||||||
$as_echo "$HAVE_REALTIME" >&6; }
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat has st_ctim." >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat has st_ctim." >&5
|
||||||
|
@ -586,7 +586,7 @@ case "$CACHE" in
|
|||||||
if test "$CACHE_CHECK_NEEDS_CHECK" = yes; then
|
if test "$CACHE_CHECK_NEEDS_CHECK" = yes; then
|
||||||
$CACHE_CHECK_CMD -V 2>/dev/null >conftest.tmp
|
$CACHE_CHECK_CMD -V 2>/dev/null >conftest.tmp
|
||||||
read -r CACHE_CHECK_VSN < conftest.tmp
|
read -r CACHE_CHECK_VSN < conftest.tmp
|
||||||
IFS=. read -r CACHE_CHECK_VSN_MAJOR CACHE_CHECK_VSN_MINOR CACHE_CHECK_VSN_PATCH < conftest.tmp
|
IFS=.- read -r CACHE_CHECK_VSN_MAJOR CACHE_CHECK_VSN_MINOR CACHE_CHECK_VSN_PATCH LEFTOVER < conftest.tmp
|
||||||
rm -f conftest.tmp
|
rm -f conftest.tmp
|
||||||
|
|
||||||
# Require version >= 0.5.4 for --clear-needs-check-flag
|
# Require version >= 0.5.4 for --clear-needs-check-flag
|
||||||
@ -1585,7 +1585,6 @@ if test "$REALTIME" = yes; then
|
|||||||
else
|
else
|
||||||
AC_MSG_WARN(Disabling realtime clock)
|
AC_MSG_WARN(Disabling realtime clock)
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT($HAVE_REALTIME)
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Check if the system has struct stat st_ctim.
|
dnl Check if the system has struct stat st_ctim.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user