<commit_before># Check for NTL
# <NAME>, 2001-06-13
# Inspired by gnome-bonobo-check.m4 by <NAME>, 99-04-12
# Stolen from <NAME>       99-2-5
# stolen from <NAME> again
# stolen back from <NAME>
# stolen from <NAME>
# Shamelessly stolen from <NAME>

dnl LB_CHECK_NTL ([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl
dnl Test for Victor Shoup's NTL (Number Theory Library) and define
dnl NTL_CFLAGS and NTL_LIBS

AC_DEFUN([LB_CHECK_NTL],
[

AC_ARG_WITH(ntl-prefix,[  --with-ntl-prefix=PFX      Prefix where NTL is installed (optional)],
[ntl_prefix="$withval"],[ntl_prefix=""])

min_ntl_version=ifelse([$1], ,4.0,$1)
AC_MSG_CHECKING(for NTL >= $min_ntl_version)

if test x$ntl_prefix != x; then
	LD_LIBRARY_PATH=$ntl_prefix/src:$LD_LIBRARY_PATH
	export LD_LIBRARY_PATH
	CPLUS_INCLUDE_PATH=$ntl_prefix/include:$CPLUS_INCLUDE_PATH
	export CPLUS_INCLUDE_PATH
fi

# sanity check
#echo $LD_LIBRARY_PATH

dnl Check for existence

AC_CHECK_LIB(ntl, _ntl_GetTime,
[
dnl Check if the version is new enough
dnl FIXME

NTL_CFLAGS="-I$(ntl_prefix)/include"
NTL_LIBS="-L$(ntl_prefix)/src -lntl"
AC_SUBST(NTL_CFLAGS)
AC_SUBST(NTL_LIBS)
AC_DEFINE(HAVE_NTL)
AC_MSG_RESULT(found)
ifelse([$2], , :, [$2])
],
[
AC_MSG_RESULT(not found)
ifelse([$3], , :, [$3])
])

])
<commit_msg>ntl check works if library is called libntl.a not ntl.a<commit_after># Check for NTL
# <NAME>, 2001-06-13
# Inspired by gnome-bonobo-check.m4 by <NAME>, 99-04-12
# Stolen from <NAME>       99-2-5
# stolen from <NAME> again
# stolen back from <NAME>
# stolen from <NAME>
# Shamelessly stolen from <NAME>

dnl LB_CHECK_NTL ([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl
dnl Test for Victor Shoup's NTL (Number Theory Library) and define
dnl NTL_CFLAGS and NTL_LIBS

AC_DEFUN([LB_CHECK_NTL],
[

AC_ARG_WITH(ntl-prefix,[  --with-ntl-prefix=PFX      Prefix where NTL is installed (optional)],
[ntl_prefix="$withval"],[ntl_prefix=""])

min_ntl_version=ifelse([$1], ,4.0,$1)
AC_MSG_CHECKING(for NTL >= $min_ntl_version)

if test x$ntl_prefix != x; then
	LD_LIBRARY_PATH=$ntl_prefix/src:$LD_LIBRARY_PATH
	export LD_LIBRARY_PATH
	CPLUS_INCLUDE_PATH=$ntl_prefix/include:$CPLUS_INCLUDE_PATH
	export CPLUS_INCLUDE_PATH
fi

# sanity check
echo $LD_LIBRARY_PATH

dnl Check for existence

AC_CHECK_LIB(ntl, _ntl_GetTime,
[
dnl Check if the version is new enough
dnl FIXME

NTL_CFLAGS="-I$(ntl_prefix)/include"
NTL_LIBS="-L$(ntl_prefix)/src -lntl"
AC_SUBST(NTL_CFLAGS)
AC_SUBST(NTL_LIBS)
AC_DEFINE(HAVE_NTL)
AC_MSG_RESULT(found)
ifelse([$2], , :, [$2])
],
[
AC_MSG_RESULT(not found)
ifelse([$3], , :, [$3])
])

])

{'fraction_non_alphanumeric': 0.13977666538313438, 'fraction_numerical': 0.020793222949557183, 'mean_word_length': 5.695876288659794, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6487246', 'n_tokens_mistral': 1169, 'n_tokens_neox': 1090, 'n_words': 233}