diff options
author | Shubham Goyal <22shubh22@gmail.com> | 2019-05-28 12:49:07 +0530 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2019-07-02 12:09:30 +0200 |
commit | b4141cade04dac0c9d47293313a4521282975f12 (patch) | |
tree | 123d0d5e053cf9209d74f7458b2b4e07f2b13a01 /configure.ac | |
parent | 5d22b9a022f8c98b6b215860ce45b52aea41633e (diff) |
bundle external: qrcodegen
The bundle helps to generate QR code in LO.
Change-Id: Iaa9225a72d15806c929d30951cefd3f3fee8960e
Reviewed-on: https://gerrit.libreoffice.org/73302
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 22f6bf110b8c..a517de7c9290 100644 --- a/configure.ac +++ b/configure.ac @@ -1909,6 +1909,11 @@ AC_ARG_WITH(system-hunspell, [Use libhunspell already on system.]),, [with_system_hunspell="$with_system_libs"]) +AC_ARG_WITH(system-qrcodegen, + AS_HELP_STRING([--with-system-qrcodegen], + [Use libqrcodegen already on system.]),, + [with_system_qrcodegen="$with_system_libs"]) + AC_ARG_WITH(system-mythes, AS_HELP_STRING([--with-system-mythes], [Use mythes already on system.]),, @@ -9822,6 +9827,32 @@ AC_SUBST(HUNSPELL_CFLAGS) AC_SUBST(HUNSPELL_LIBS) dnl =================================================================== +dnl Check for system qrcodegen +dnl =================================================================== +AC_MSG_CHECKING([which libqrcodegen to use]) +if test "$with_system_qrcodegen" = "yes"; then + AC_MSG_RESULT([external]) + SYSTEM_QRCODEGEN=TRUE + AC_LANG_PUSH([C++]) + AC_CHECK_HEADER(qrcodegen/QrCode.hpp, [], + [AC_MSG_ERROR(qrcodegen headers not found.)], [#include <stdexcept>]) + AC_CHECK_LIB([qrcodegencpp], [main], [:], + [ AC_MSG_ERROR(qrcodegen C++ library not found.) ], []) + QRCODEGEN_LIBS=-lqrcodegencpp + AC_LANG_POP([C++]) + QRCODEGEN_CFLAGS=$(printf '%s' "$QRCODEGEN_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g") + FilterLibs "${QRCODEGEN_LIBS}" + QRCODEGEN_LIBS="${filteredlibs}" +else + AC_MSG_RESULT([internal]) + SYSTEM_QRCODEGEN= + BUILD_TYPE="$BUILD_TYPE QRCODEGEN" +fi +AC_SUBST(SYSTEM_QRCODEGEN) +AC_SUBST(QRCODEGEN_CFLAGS) +AC_SUBST(QRCODEGEN_LIBS) + +dnl =================================================================== dnl Checking for altlinuxhyph dnl =================================================================== AC_MSG_CHECKING([which altlinuxhyph to use]) |