1 dnl -*- Mode: Autoconf; tab-width: 4; indent-tabs-mode: nil; fill-column: 102 -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 AC_DEFUN([libo_CHECK_EXTENSION],[
11 AS_HELP_STRING([--enable-ext-$4],
12 [Enable the $1 extension])
14 AC_MSG_CHECKING([for building the $1 extension])
16 if test "x$enable_ext_$3" = "xyes" -a "x$enable_extension_integration" != "xno"; then
17 SCPDEFS="$SCPDEFS -DWITH_EXTENSION_$2"
18 $2_EXTENSION_PACK="$5"
19 BUILD_TYPE="$BUILD_TYPE $2"
20 WITH_EXTRA_EXTENSIONS=YES
25 AC_SUBST($2_EXTENSION_PACK)
28 dnl vim:set shiftwidth=4 softtabstop=4 expandtab: