Wrap the cmis system/internal check into global feature switch.

This commit is contained in:
Tomas Chvatal
2011-10-04 10:42:36 +02:00
parent 8aaa52f21f
commit 05c008e3fb

View File

@@ -4626,19 +4626,21 @@ AC_SUBST(LIBVISIO_LIBS)
dnl ===================================================================
dnl Check for system libcmis
dnl ===================================================================
AC_MSG_CHECKING([which libcmis to use])
if test "x$with_system_libcmis" != "xno"; then
AC_MSG_RESULT([external])
SYSTEM_LIBCMIS=YES
PKG_CHECK_MODULES( LIBCMIS, libcmis-0.2 )
else
AC_MSG_RESULT([internal])
SYSTEM_LIBCMIS=NO
BUILD_TYPE="$BUILD_TYPE LIBCMIS"
if test "x$with_cmis" != "xno" ; then
AC_MSG_CHECKING([which libcmis to use])
if test "x$with_system_libcmis" != "xno"; then
AC_MSG_RESULT([external])
SYSTEM_LIBCMIS=YES
PKG_CHECK_MODULES( LIBCMIS, libcmis-0.2 )
else
AC_MSG_RESULT([internal])
SYSTEM_LIBCMIS=NO
BUILD_TYPE="$BUILD_TYPE LIBCMIS"
fi
AC_SUBST(SYSTEM_LIBCMIS)
AC_SUBST(LIBCMIS_CFLAGS)
AC_SUBST(LIBCMIS_LIBS)
fi
AC_SUBST(SYSTEM_LIBCMIS)
AC_SUBST(LIBCMIS_CFLAGS)
AC_SUBST(LIBCMIS_LIBS)
dnl ===================================================================