summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2020-06-11 14:02:57 +0300
committerTor Lillqvist <tml@collabora.com>2020-06-11 16:23:52 +0200
commitc392ecfa734731194c366e869a3c2475c53dc867 (patch)
tree852813ca2e485335b53ff3f1ca3bf3202de8496d /configure.ac
parentf62f200f31ac20c4e28a1e6fbead512d55bdf04f (diff)
Drop configurability of libnumbertext use
It was fairly pointless to be able to --disable-libnumbertext. Besides, disabling it broke the ordinal page (etc) numbering feature: "1st", "2nd", "3rd", etc showed up as "Ordinal-number 1", "Ordinal-number 2", "Ordinal-number 3" etc. Change-Id: I645169054a8fdc8dac89cd48b6c369fd61749467 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96119 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac51
1 files changed, 16 insertions, 35 deletions
diff --git a/configure.ac b/configure.ac
index 38cef8b899f2..553402e33515 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1225,10 +1225,6 @@ libo_FUZZ_ARG_ENABLE(ooenv,
AS_HELP_STRING([--disable-ooenv],
[Disable ooenv for the instdir installation.]))
-libo_FUZZ_ARG_ENABLE(libnumbertext,
- AS_HELP_STRING([--disable-libnumbertext],
- [Disable use of numbertext external library.]))
-
AC_ARG_ENABLE(lto,
AS_HELP_STRING([--enable-lto],
[Enable link-time optimization. Suitable for (optimised) product builds. Building might take
@@ -10392,40 +10388,26 @@ AC_SUBST(SYSTEM_LIBEXTTEXTCAT_DATA)
dnl ===================================================================
dnl Checking for libnumbertext
dnl ===================================================================
-AC_MSG_CHECKING([whether to use libnumbertext])
-if test "$enable_libnumbertext" = "no"; then
- AC_MSG_RESULT([no])
- ENABLE_LIBNUMBERTEXT=
- SYSTEM_LIBNUMBERTEXT=
+libo_CHECK_SYSTEM_MODULE([libnumbertext],[LIBNUMBERTEXT],[libnumbertext >= 1.0.0])
+if test "$with_system_libnumbertext" = "yes"; then
+ SYSTEM_LIBNUMBERTEXT_DATA=file://`$PKG_CONFIG --variable=pkgdatadir libnumbertext`
+ SYSTEM_LIBNUMBERTEXT=YES
else
- AC_MSG_RESULT([yes])
- ENABLE_LIBNUMBERTEXT=TRUE
- libo_CHECK_SYSTEM_MODULE([libnumbertext],[LIBNUMBERTEXT],[libnumbertext >= 1.0.0])
- if test "$with_system_libnumbertext" = "yes"; then
- SYSTEM_LIBNUMBERTEXT_DATA=file://`$PKG_CONFIG --variable=pkgdatadir libnumbertext`
- SYSTEM_LIBNUMBERTEXT=YES
- else
- SYSTEM_LIBNUMBERTEXT=
- AC_LANG_PUSH([C++])
- save_CPPFLAGS=$CPPFLAGS
- CPPFLAGS="$CPPFLAGS $CXXFLAGS_CXX11"
- AC_CHECK_HEADERS([codecvt regex])
- AS_IF([test "x$ac_cv_header_codecvt" != xyes -o "x$ac_cv_header_regex" != xyes],
- [ ENABLE_LIBNUMBERTEXT=''
- LIBNUMBERTEXT_CFLAGS=''
- AC_MSG_WARN([No system-provided libnumbertext or codecvt/regex C++11 headers (min. libstdc++ 4.9).
- Enable libnumbertext fallback (missing number to number name conversion).])
- ])
- CPPFLAGS=$save_CPPFLAGS
- AC_LANG_POP([C++])
- fi
- if test "$ENABLE_LIBNUMBERTEXT" = TRUE; then
- AC_DEFINE(ENABLE_LIBNUMBERTEXT)
- fi
+ SYSTEM_LIBNUMBERTEXT=
+ AC_LANG_PUSH([C++])
+ save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$CPPFLAGS $CXXFLAGS_CXX11"
+ AC_CHECK_HEADERS([codecvt regex])
+ AS_IF([test "x$ac_cv_header_codecvt" != xyes -o "x$ac_cv_header_regex" != xyes],
+ [ LIBNUMBERTEXT_CFLAGS=''
+ AC_MSG_WARN([No system-provided libnumbertext or codecvt/regex C++11 headers (min. libstdc++ 4.9).
+ Enable libnumbertext fallback (missing number to number name conversion).])
+ ])
+ CPPFLAGS=$save_CPPFLAGS
+ AC_LANG_POP([C++])
fi
AC_SUBST(SYSTEM_LIBNUMBERTEXT)
AC_SUBST(SYSTEM_LIBNUMBERTEXT_DATA)
-AC_SUBST(ENABLE_LIBNUMBERTEXT)
AC_SUBST(LIBNUMBERTEXT_CFLAGS)
dnl ***************************************
@@ -13420,7 +13402,6 @@ AC_CONFIG_HEADERS([config_host/config_langs.h])
AC_CONFIG_HEADERS([config_host/config_lgpl.h])
AC_CONFIG_HEADERS([config_host/config_libcxx.h])
AC_CONFIG_HEADERS([config_host/config_liblangtag.h])
-AC_CONFIG_HEADERS([config_host/config_libnumbertext.h])
AC_CONFIG_HEADERS([config_host/config_locales.h])
AC_CONFIG_HEADERS([config_host/config_mpl.h])
AC_CONFIG_HEADERS([config_host/config_oox.h])