Update git submodules
[LibreOffice.git] / m4 / libo_enable_vclplug.m4
blob89b065f8fcc617260f5b824636c3a448cd2af494
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_ENABLE_VCLPLUG],[
10 dnl The $1 of enable_var is taken from the libo_ENABLE_VCLPLUG, so concat
11 dnl needs extra quoting and enable_var has no "magic" argument.
12 m4_pushdef([concat],[$][1][$][2])
13 m4_pushdef([enable_var],[concat(ENABLE_,m4_toupper($1))])
15 enable_var=
16 if test "$test_$1" != no -a "$enable_$1" = yes; then
17     enable_var=TRUE
18     AC_DEFINE(enable_var)
19     R="$R $1"
21 AC_SUBST(enable_var)
23 m4_popdef([enable_var])
24 m4_popdef([concat])
27 dnl vim:set shiftwidth=4 softtabstop=4 expandtab: