1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

configure: update libcpg test

PKG_CHECK_MODULES needs old-way if;then;fi.
This commit is contained in:
Zdenek Kabelac 2014-06-06 10:29:47 +02:00
parent 14f482077d
commit f115a4a53f
2 changed files with 8 additions and 4 deletions

4
configure vendored
View File

@ -9149,7 +9149,8 @@ $as_echo "yes" >&6; }
HAVE_SACKPT=yes
fi
test "$HAVE_CPG" != yes &&
if test "$HAVE_CPG" != yes; then
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
$as_echo_n "checking for CPG... " >&6; }
@ -9240,6 +9241,7 @@ else
$as_echo "yes" >&6; }
fi
fi
fi
################################################################################

View File

@ -847,7 +847,9 @@ if [[ "$BUILD_CMIRRORD" = yes ]]; then
[AC_MSG_RESULT([no libSaCkpt, compiling without it])
AC_DEFINE([CMIRROR_HAS_CHECKPOINT], 0, [Define to 0 to exclude libSaCkpt.])])
test "$HAVE_CPG" != yes && PKG_CHECK_MODULES(CPG, libcpg)
if test "$HAVE_CPG" != yes; then
PKG_CHECK_MODULES(CPG, libcpg)
fi
fi
################################################################################
@ -911,7 +913,7 @@ fi
dnl -- Enable testing
AC_MSG_CHECKING(whether to enable unit testing)
AC_ARG_ENABLE(testing,
AC_HELP_STRING([--enable-testing],
AC_HELP_STRING([--enable-testing],
[enable testing targets in the makefile]),
TESTING=$enableval, TESTING=no)
AC_MSG_RESULT($TESTING)
@ -925,7 +927,7 @@ fi
dnl -- Enable valgrind awareness of memory pools
AC_MSG_CHECKING(whether to enable valgrind awareness of pools)
AC_ARG_ENABLE(valgrind_pool,
AC_HELP_STRING([--enable-valgrind-pool],
AC_HELP_STRING([--enable-valgrind-pool],
[enable valgrind awareness of pools]),
VALGRIND_POOL=$enableval, VALGRIND_POOL=no)
AC_MSG_RESULT($VALGRIND_POOL)