From bdb9eaba6ce50bf9717119650ec415d86e2dcbbe Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 20 Jun 2021 01:06:32 +0000 Subject: pthread needed for bibtexu git-svn-id: svn://tug.org/texlive/trunk@59649 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/bibtex-x/configure | 72 ++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) (limited to 'Build/source/texk/bibtex-x/configure') diff --git a/Build/source/texk/bibtex-x/configure b/Build/source/texk/bibtex-x/configure index 791f947bc2d..d50f9e3a036 100755 --- a/Build/source/texk/bibtex-x/configure +++ b/Build/source/texk/bibtex-x/configure @@ -645,6 +645,7 @@ ICU_DEPEND ICU_LIBS ICU_INCLUDES ICU_CONFIG +PTHREAD_LIB KPATHSEA_RULE KPATHSEA_DEPEND KPATHSEA_LIBS @@ -17646,6 +17647,9 @@ if test "$ac_res" != no; then : fi +if test "x$enable_bibtexu" != xno; then + # As of ICU 65.1, ICU requires -lpthread on x86_64-linux and, most + # likely, on other platforms. See upmendex/configure.ac for more info. kpse_save_CPPFLAGS=$CPPFLAGS kpse_save_LIBS=$LIBS @@ -19372,6 +19376,73 @@ if test "x$kpse_cv_kpse_debug" != xyes; then : KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG" fi +kpse_search_save_LIBS=$LIBS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 +$as_echo_n "checking for library containing pthread_create... " >&6; } +if ${ac_cv_search_pthread_create+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_create (); +int +main () +{ +return pthread_create (); + ; + return 0; +} +_ACEOF +for ac_lib in '' pthread; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_pthread_create=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_pthread_create+:} false; then : + break +fi +done +if ${ac_cv_search_pthread_create+:} false; then : + +else + ac_cv_search_pthread_create=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 +$as_echo "$ac_cv_search_pthread_create" >&6; } +ac_res=$ac_cv_search_pthread_create +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + +LIBS=$kpse_search_save_LIBS +case $ac_cv_search_pthread_create in #( + "none required") : + ;; #( + no) : + as_fn_error $? "Sorry, did not find pthread_create()" "$LINENO" 5 ;; #( + *) : + PTHREAD_LIB=$ac_cv_search_pthread_create ;; +esac + echo 'tldbg:KPSE_ICU_FLAGS called: more-icu-libs=icuio icui18n, icu-config-args=--ldflags-icuio.' >&5 ##tldbg _KPSE_LIB_FLAGS: Setup icu (-licuxxx) flags. echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=icu, libname=icuxxx, options=, tlincl=-DU_STATIC_IMPLEMENTATION -IBLD/libs/icu/include, tllib=BLD/libs/icu/icu-build/lib/libicuio.a BLD/libs/icu/icu-build/lib/libicui18n.a BLD/libs/icu/icu-build/lib/libicuuc.a BLD/libs/icu/icu-build/lib/libicudata.a, tlextra=, rebuildsrcdeps=, rebuildblddeps=${top_builddir}/../../libs/icu/include/unicode/uversion.h.' >&5 @@ -19591,6 +19662,7 @@ openbsd*) ;; esac +fi if test "x$enable_bibtex8" != xno; then BIBTEX8_TRUE= -- cgit v1.2.3