summaryrefslogtreecommitdiff
path: root/m4/libo_externals.m4
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2021-12-28 14:04:39 +0100
committerJan-Marek Glogowski <glogow@fbihome.de>2021-12-29 23:58:14 +0100
commit8ab460a050aecfd21045ffe3cd3de4f63cc2c992 (patch)
treeed103c65068201e1ee2b66a2b762988ab6937a6e /m4/libo_externals.m4
parent8a044b089e1ec3da3a3bc7f1a18555f7e19a4fd0 (diff)
Drop libo_CSM internal CFLAGS+LIBS parameters
... and just use *_(CFLAGS|LIBS)_internal variables. Requires deterministic variable names in configure.ac. Change-Id: Id3f53ca5e6189e531596265945531f4a789a035c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127638 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'm4/libo_externals.m4')
-rw-r--r--m4/libo_externals.m415
1 files changed, 8 insertions, 7 deletions
diff --git a/m4/libo_externals.m4 b/m4/libo_externals.m4
index dc493154a726..64851d3541e2 100644
--- a/m4/libo_externals.m4
+++ b/m4/libo_externals.m4
@@ -7,24 +7,25 @@ dnl -*- Mode: Autoconf; tab-width: 4; indent-tabs-mode: nil; fill-column: 102 -*
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# <lowercase check>,<variable prefix>,<pkg-config query>,
-# <internal CFLAGS>,<internal LIBS>,<prefer external (default: FALSE)>,
+# <prefer external (default: FALSE)>,
# <can be disabled (default: FALSE)>
#
# FALSE is actually a blank value, so TRUE matches any not-blank value.
#
# Used configure.ac variables:
+# - $2_(CFLAGS|LIBS)_internal: must be filled to match the internal build
# - enable_$1: should normally not be set manually; use test_$1 instead
# - test_$1: set to no, if the feature shouldn't be tested at all
# - test_system_$1: set to no, if the system library should not be used
#
AC_DEFUN([libo_CHECK_SYSTEM_MODULE], [
AC_ARG_WITH(system-$1,
- AS_HELP_STRING([m4_ifnblank([$6],[--without-system-$1],[--with-system-$1])],
- m4_ifnblank([$6],
+ AS_HELP_STRING([m4_ifnblank([$4],[--without-system-$1],[--with-system-$1])],
+ m4_ifnblank([$4],
[Build and bundle the internal $1.],
[Use $1 from the operating system.])),
-,[m4_ifnblank([$6],[with_system_$1="yes"],[with_system_$1="$with_system_libs"])])
-m4_ifnblank([$7],[
+,[m4_ifnblank([$4],[with_system_$1="yes"],[with_system_$1="$with_system_libs"])])
+m4_ifnblank([$5],[
AC_ARG_ENABLE([$1],
AS_HELP_STRING([--disable-$1],[Disable $1 support.]),
,[enable_$1="yes"])
@@ -42,8 +43,8 @@ if test "$test_$1" != no -a "$enable_$1" != no; then
else
AC_MSG_RESULT([internal])
SYSTEM_$2=
- $2_CFLAGS=$4
- $2_LIBS=$5
+ $2_CFLAGS="${$2_CFLAGS_internal}"
+ $2_LIBS="${$2_LIBS_internal}"
BUILD_TYPE="$BUILD_TYPE $2"
fi
else