build boost::locale library
Change-Id: I40b89a0df483645fc743fb092d3d39ea682c510c Reviewed-on: https://gerrit.libreoffice.org/37060 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
da57421b36
commit
c25eee4496
@ -577,6 +577,11 @@ $(call gb_LinkTarget_add_libs,$(1),$(2))
|
|||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define gb_LinkTarget__use_boost_locale
|
||||||
|
$(call gb_LinkTarget__use_boost_lib,$(1),$(BOOST_LOCALE_LIB))
|
||||||
|
|
||||||
|
endef
|
||||||
|
|
||||||
define gb_LinkTarget__use_boost_date_time
|
define gb_LinkTarget__use_boost_date_time
|
||||||
$(call gb_LinkTarget__use_boost_lib,$(1),$(BOOST_DATE_TIME_LIB))
|
$(call gb_LinkTarget__use_boost_lib,$(1),$(BOOST_DATE_TIME_LIB))
|
||||||
|
|
||||||
@ -624,6 +629,14 @@ $(call gb_LinkTarget_use_static_libraries,$(1),$(2))
|
|||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define gb_LinkTarget__use_boost_locale
|
||||||
|
$(call gb_LinkTarget__use_boost_lib,$(1),boost_locale)
|
||||||
|
$(call gb_LinkTarget_add_libs,$(1),\
|
||||||
|
$(if $(filter $(OS),MACOSX),-liconv) \
|
||||||
|
)
|
||||||
|
|
||||||
|
endef
|
||||||
|
|
||||||
define gb_LinkTarget__use_boost_date_time
|
define gb_LinkTarget__use_boost_date_time
|
||||||
$(call gb_LinkTarget__use_boost_lib,$(1),boost_date_time)
|
$(call gb_LinkTarget__use_boost_lib,$(1),boost_date_time)
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@ export LIBATOMIC_OPS_CFLAGS=$(gb_SPACE)@LIBATOMIC_OPS_CFLAGS@
|
|||||||
export LIBATOMIC_OPS_LIBS=$(gb_SPACE)@LIBATOMIC_OPS_LIBS@
|
export LIBATOMIC_OPS_LIBS=$(gb_SPACE)@LIBATOMIC_OPS_LIBS@
|
||||||
export BOOST_CPPFLAGS=@BOOST_CPPFLAGS@
|
export BOOST_CPPFLAGS=@BOOST_CPPFLAGS@
|
||||||
export BOOST_CXXFLAGS=@BOOST_CXXFLAGS@
|
export BOOST_CXXFLAGS=@BOOST_CXXFLAGS@
|
||||||
|
export BOOST_LOCALE_LIB=@BOOST_LOCALE_LIB@
|
||||||
export BOOST_DATE_TIME_LIB=@BOOST_DATE_TIME_LIB@
|
export BOOST_DATE_TIME_LIB=@BOOST_DATE_TIME_LIB@
|
||||||
export BOOST_FILESYSTEM_LIB=@BOOST_FILESYSTEM_LIB@
|
export BOOST_FILESYSTEM_LIB=@BOOST_FILESYSTEM_LIB@
|
||||||
export BOOST_IOSTREAMS_LIB=@BOOST_IOSTREAMS_LIB@
|
export BOOST_IOSTREAMS_LIB=@BOOST_IOSTREAMS_LIB@
|
||||||
|
@ -8844,6 +8844,7 @@ if test "$with_system_boost" = "yes"; then
|
|||||||
AX_BOOST_DATE_TIME
|
AX_BOOST_DATE_TIME
|
||||||
AX_BOOST_FILESYSTEM
|
AX_BOOST_FILESYSTEM
|
||||||
AX_BOOST_IOSTREAMS
|
AX_BOOST_IOSTREAMS
|
||||||
|
AX_BOOST_LOCALE
|
||||||
AC_LANG_PUSH([C++])
|
AC_LANG_PUSH([C++])
|
||||||
save_CXXFLAGS=$CXXFLAGS
|
save_CXXFLAGS=$CXXFLAGS
|
||||||
CXXFLAGS="$CXXFLAGS $BOOST_CPPFLAGS $CXXFLAGS_CXX11"
|
CXXFLAGS="$CXXFLAGS $BOOST_CPPFLAGS $CXXFLAGS_CXX11"
|
||||||
|
1
external/boost/Module_boost.mk
vendored
1
external/boost/Module_boost.mk
vendored
@ -12,6 +12,7 @@ $(eval $(call gb_Module_Module,boost))
|
|||||||
$(eval $(call gb_Module_add_targets,boost,\
|
$(eval $(call gb_Module_add_targets,boost,\
|
||||||
StaticLibrary_boost_date_time \
|
StaticLibrary_boost_date_time \
|
||||||
StaticLibrary_boost_filesystem \
|
StaticLibrary_boost_filesystem \
|
||||||
|
StaticLibrary_boost_locale \
|
||||||
StaticLibrary_boost_system \
|
StaticLibrary_boost_system \
|
||||||
StaticLibrary_boost_iostreams \
|
StaticLibrary_boost_iostreams \
|
||||||
UnpackedTarball_boost \
|
UnpackedTarball_boost \
|
||||||
|
67
external/boost/StaticLibrary_boost_locale.mk
vendored
Normal file
67
external/boost/StaticLibrary_boost_locale.mk
vendored
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
||||||
|
#
|
||||||
|
# This file is part of the LibreOffice project.
|
||||||
|
#
|
||||||
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
#
|
||||||
|
|
||||||
|
$(eval $(call gb_StaticLibrary_StaticLibrary,boost_locale))
|
||||||
|
|
||||||
|
$(eval $(call gb_StaticLibrary_use_unpacked,boost_locale,boost))
|
||||||
|
|
||||||
|
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,boost_locale))
|
||||||
|
|
||||||
|
# disable "auto link" "feature" on MSVC
|
||||||
|
$(eval $(call gb_StaticLibrary_add_defs,boost_locale,\
|
||||||
|
-DBOOST_ALL_NO_LIB -DBOOST_LOCALE_NO_WINAPI_BACKEND -DBOOST_LOCALE_NO_POSIX_BACKEND \
|
||||||
|
))
|
||||||
|
|
||||||
|
ifneq ($(OS),WNT)
|
||||||
|
|
||||||
|
$(eval $(call gb_StaticLibrary_add_defs,boost_locale,\
|
||||||
|
-DBOOST_LOCALE_WITH_ICONV \
|
||||||
|
))
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
$(eval $(call gb_StaticLibrary_use_external,boost_locale,boost_headers))
|
||||||
|
|
||||||
|
$(eval $(call gb_StaticLibrary_set_generated_cxx_suffix,boost_locale,cpp))
|
||||||
|
|
||||||
|
$(eval $(call gb_StaticLibrary_add_generated_exception_objects,boost_locale,\
|
||||||
|
UnpackedTarball/boost/libs/locale/src/encoding/codepage \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/shared/date_time \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/shared/format \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/shared/formatting \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/shared/generator \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/shared/ids \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/shared/localization_backend \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/shared/message \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/shared/mo_lambda \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/std/codecvt \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/std/collate \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/std/converter \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/std/numeric \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/std/std_backend \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/util/codecvt_converter \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/util/default_locale \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/util/gregorian \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/util/info \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/util/locale_data \
|
||||||
|
))
|
||||||
|
|
||||||
|
ifeq ($(OS),WNT)
|
||||||
|
|
||||||
|
$(eval $(call gb_StaticLibrary_add_generated_exception_objects,boost_locale,\
|
||||||
|
UnpackedTarball/boost/libs/locale/src/win32/collate \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/win32/converter \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/win32/lcid \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/win32/numeric \
|
||||||
|
UnpackedTarball/boost/libs/locale/src/win32/win_backend \
|
||||||
|
))
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
# vim: set noet sw=4 ts=4:
|
23
external/boost/include/boost/circular_buffer.hpp
vendored
Normal file
23
external/boost/include/boost/circular_buffer.hpp
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/* generated by bin/gen-boost-headers, do not edit! */
|
||||||
|
#pragma once
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunknown-pragmas" /* first! for clang */
|
||||||
|
#pragma GCC diagnostic ignored "-Wpragmas" /* second! for GCC */
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#pragma GCC diagnostic ignored "-Wextra"
|
||||||
|
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
|
||||||
|
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
|
||||||
|
#pragma GCC diagnostic ignored "-Winvalid-constexpr"
|
||||||
|
#pragma GCC diagnostic ignored "-Wplacement-new"
|
||||||
|
#pragma GCC diagnostic ignored "-Wreturn-type"
|
||||||
|
#pragma GCC diagnostic ignored "-Wshadow"
|
||||||
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||||
|
#pragma GCC diagnostic ignored "-Wtautological-constant-out-of-range-compare"
|
||||||
|
#pragma GCC diagnostic ignored "-Wtype-limits"
|
||||||
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-macros"
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
|
#include_next <boost/circular_buffer.hpp>
|
||||||
|
#pragma GCC diagnostic pop
|
23
external/boost/include/boost/locale.hpp
vendored
Normal file
23
external/boost/include/boost/locale.hpp
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/* generated by bin/gen-boost-headers, do not edit! */
|
||||||
|
#pragma once
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunknown-pragmas" /* first! for clang */
|
||||||
|
#pragma GCC diagnostic ignored "-Wpragmas" /* second! for GCC */
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#pragma GCC diagnostic ignored "-Wextra"
|
||||||
|
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
|
||||||
|
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
|
||||||
|
#pragma GCC diagnostic ignored "-Winvalid-constexpr"
|
||||||
|
#pragma GCC diagnostic ignored "-Wplacement-new"
|
||||||
|
#pragma GCC diagnostic ignored "-Wreturn-type"
|
||||||
|
#pragma GCC diagnostic ignored "-Wshadow"
|
||||||
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||||
|
#pragma GCC diagnostic ignored "-Wtautological-constant-out-of-range-compare"
|
||||||
|
#pragma GCC diagnostic ignored "-Wtype-limits"
|
||||||
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-macros"
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
|
#include_next <boost/locale.hpp>
|
||||||
|
#pragma GCC diagnostic pop
|
23
external/boost/include/boost/locale/gnu_gettext.hpp
vendored
Normal file
23
external/boost/include/boost/locale/gnu_gettext.hpp
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/* generated by bin/gen-boost-headers, do not edit! */
|
||||||
|
#pragma once
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunknown-pragmas" /* first! for clang */
|
||||||
|
#pragma GCC diagnostic ignored "-Wpragmas" /* second! for GCC */
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#pragma GCC diagnostic ignored "-Wextra"
|
||||||
|
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
|
||||||
|
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
|
||||||
|
#pragma GCC diagnostic ignored "-Winvalid-constexpr"
|
||||||
|
#pragma GCC diagnostic ignored "-Wplacement-new"
|
||||||
|
#pragma GCC diagnostic ignored "-Wreturn-type"
|
||||||
|
#pragma GCC diagnostic ignored "-Wshadow"
|
||||||
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||||
|
#pragma GCC diagnostic ignored "-Wtautological-constant-out-of-range-compare"
|
||||||
|
#pragma GCC diagnostic ignored "-Wtype-limits"
|
||||||
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-macros"
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
|
#include_next <boost/locale/gnu_gettext.hpp>
|
||||||
|
#pragma GCC diagnostic pop
|
23
external/boost/include/boost/type_index.hpp
vendored
Normal file
23
external/boost/include/boost/type_index.hpp
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/* generated by bin/gen-boost-headers, do not edit! */
|
||||||
|
#pragma once
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunknown-pragmas" /* first! for clang */
|
||||||
|
#pragma GCC diagnostic ignored "-Wpragmas" /* second! for GCC */
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#pragma GCC diagnostic ignored "-Wextra"
|
||||||
|
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
|
||||||
|
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
|
||||||
|
#pragma GCC diagnostic ignored "-Winvalid-constexpr"
|
||||||
|
#pragma GCC diagnostic ignored "-Wplacement-new"
|
||||||
|
#pragma GCC diagnostic ignored "-Wreturn-type"
|
||||||
|
#pragma GCC diagnostic ignored "-Wshadow"
|
||||||
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||||
|
#pragma GCC diagnostic ignored "-Wtautological-constant-out-of-range-compare"
|
||||||
|
#pragma GCC diagnostic ignored "-Wtype-limits"
|
||||||
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-macros"
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
|
#include_next <boost/type_index.hpp>
|
||||||
|
#pragma GCC diagnostic pop
|
119
m4/ax_boost_locale.m4
Normal file
119
m4/ax_boost_locale.m4
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
# ===========================================================================
|
||||||
|
# https://www.gnu.org/software/autoconf-archive/ax_boost_locale.html
|
||||||
|
# ===========================================================================
|
||||||
|
#
|
||||||
|
# SYNOPSIS
|
||||||
|
#
|
||||||
|
# AX_BOOST_LOCALE
|
||||||
|
#
|
||||||
|
# DESCRIPTION
|
||||||
|
#
|
||||||
|
# Test for System library from the Boost C++ libraries. The macro requires
|
||||||
|
# a preceding call to AX_BOOST_BASE. Further documentation is available at
|
||||||
|
# <http://randspringer.de/boost/index.html>.
|
||||||
|
#
|
||||||
|
# This macro calls:
|
||||||
|
#
|
||||||
|
# AC_SUBST(BOOST_LOCALE_LIB)
|
||||||
|
#
|
||||||
|
# And sets:
|
||||||
|
#
|
||||||
|
# HAVE_BOOST_LOCALE
|
||||||
|
#
|
||||||
|
# LICENSE
|
||||||
|
#
|
||||||
|
# Copyright (c) 2012 Xiyue Deng <manphiz@gmail.com>
|
||||||
|
#
|
||||||
|
# Copying and distribution of this file, with or without modification, are
|
||||||
|
# permitted in any medium without royalty provided the copyright notice
|
||||||
|
# and this notice are preserved. This file is offered as-is, without any
|
||||||
|
# warranty.
|
||||||
|
|
||||||
|
#serial 2
|
||||||
|
|
||||||
|
AC_DEFUN([AX_BOOST_LOCALE],
|
||||||
|
[
|
||||||
|
AC_ARG_WITH([boost-locale],
|
||||||
|
AS_HELP_STRING([--with-boost-locale@<:@=special-lib@:>@],
|
||||||
|
[use the Locale library from boost - it is possible to specify a certain library for the linker
|
||||||
|
e.g. --with-boost-locale=boost_locale-gcc-mt ]),
|
||||||
|
[
|
||||||
|
if test "$withval" = "no"; then
|
||||||
|
want_boost="no"
|
||||||
|
elif test "$withval" = "yes"; then
|
||||||
|
want_boost="yes"
|
||||||
|
ax_boost_user_locale_lib=""
|
||||||
|
else
|
||||||
|
want_boost="yes"
|
||||||
|
ax_boost_user_locale_lib="$withval"
|
||||||
|
fi
|
||||||
|
],
|
||||||
|
[want_boost="yes"]
|
||||||
|
)
|
||||||
|
|
||||||
|
if test "x$want_boost" = "xyes"; then
|
||||||
|
AC_REQUIRE([AC_PROG_CC])
|
||||||
|
AC_REQUIRE([AC_CANONICAL_BUILD])
|
||||||
|
CPPFLAGS_SAVED="$CPPFLAGS"
|
||||||
|
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
|
||||||
|
export CPPFLAGS
|
||||||
|
|
||||||
|
LDFLAGS_SAVED="$LDFLAGS"
|
||||||
|
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
|
||||||
|
export LDFLAGS
|
||||||
|
|
||||||
|
AC_CACHE_CHECK(whether the Boost::Locale library is available,
|
||||||
|
ax_cv_boost_locale,
|
||||||
|
[AC_LANG_PUSH([C++])
|
||||||
|
CXXFLAGS_SAVE=$CXXFLAGS
|
||||||
|
|
||||||
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/locale.hpp>]],
|
||||||
|
[[boost::locale::generator gen;
|
||||||
|
std::locale::global(gen(""));]])],
|
||||||
|
ax_cv_boost_locale=yes, ax_cv_boost_locale=no)
|
||||||
|
CXXFLAGS=$CXXFLAGS_SAVE
|
||||||
|
AC_LANG_POP([C++])
|
||||||
|
])
|
||||||
|
if test "x$ax_cv_boost_locale" = "xyes"; then
|
||||||
|
AC_SUBST(BOOST_CPPFLAGS)
|
||||||
|
|
||||||
|
AC_DEFINE(HAVE_BOOST_LOCALE,,[define if the Boost::Locale library is available])
|
||||||
|
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
|
||||||
|
|
||||||
|
LDFLAGS_SAVE=$LDFLAGS
|
||||||
|
if test "x$ax_boost_user_locale_lib" = "x"; then
|
||||||
|
for libextension in `ls $BOOSTLIBDIR/libboost_locale*.so* $BOOSTLIBDIR/libboost_locale*.dylib* $BOOSTLIBDIR/libboost_locale*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_locale.*\)\.so.*$;\1;' -e 's;^lib\(boost_locale.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_locale.*\)\.a.*$;\1;'` ; do
|
||||||
|
ax_lib=${libextension}
|
||||||
|
AC_CHECK_LIB($ax_lib, exit,
|
||||||
|
[BOOST_LOCALE_LIB="-l$ax_lib"; AC_SUBST(BOOST_LOCALE_LIB) link_locale="yes"; break],
|
||||||
|
[link_locale="no"])
|
||||||
|
done
|
||||||
|
if test "x$link_locale" != "xyes"; then
|
||||||
|
for libextension in `ls $BOOSTLIBDIR/boost_locale*.dll* $BOOSTLIBDIR/boost_locale*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_locale.*\)\.dll.*$;\1;' -e 's;^\(boost_locale.*\)\.a.*$;\1;'` ; do
|
||||||
|
ax_lib=${libextension}
|
||||||
|
AC_CHECK_LIB($ax_lib, exit,
|
||||||
|
[BOOST_LOCALE_LIB="-l$ax_lib"; AC_SUBST(BOOST_LOCALE_LIB) link_locale="yes"; break],
|
||||||
|
[link_locale="no"])
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
else
|
||||||
|
for ax_lib in $ax_boost_user_locale_lib boost_locale-$ax_boost_user_locale_lib; do
|
||||||
|
AC_CHECK_LIB($ax_lib, exit,
|
||||||
|
[BOOST_LOCALE_LIB="-l$ax_lib"; AC_SUBST(BOOST_LOCALE_LIB) link_locale="yes"; break],
|
||||||
|
[link_locale="no"])
|
||||||
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test "x$ax_lib" = "x"; then
|
||||||
|
AC_MSG_ERROR(Could not find a version of the library!)
|
||||||
|
fi
|
||||||
|
if test "x$link_locale" = "xno"; then
|
||||||
|
AC_MSG_ERROR(Could not link against $ax_lib !)
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
CPPFLAGS="$CPPFLAGS_SAVED"
|
||||||
|
LDFLAGS="$LDFLAGS_SAVED"
|
||||||
|
fi
|
||||||
|
])
|
Loading…
x
Reference in New Issue
Block a user