<commit_before>dnl A version of AS_COMPILER_FLAG that supports linker flags
dnl Based on:

dnl as-compiler-flag.m4 0.1.0
dnl autostars m4 macro for detection of compiler flags
dnl <NAME> <<EMAIL>>
dnl $Id: as-compiler-flag.m4,v 1.1 2005/06/18 18:02:46 burgerman Exp $

dnl TP_LINKER_FLAG(LDFLAGS, ACTION-IF-ACCEPTED, [ACTION-IF-NOT-ACCEPTED])
dnl Tries to compile with the given LDFLAGS.
dnl
dnl Runs ACTION-IF-ACCEPTED if the compiler/linker for the currently selected
dnl AC_LANG can compile with the flags, and ACTION-IF-NOT-ACCEPTED otherwise.
dnl
dnl Note that LDFLAGS are passed to the linker via the compiler, so you
dnl should check for -Wl,--no-add-needed rather than --no-add-needed.

AC_DEFUN([TP_LINKER_FLAG],
[
  AC_MSG_CHECKING([to see if compiler/linker understand $1])

  save_LDFLAGS="$LDFLAGS"
  LDFLAGS="$LDFLAGS $1"

  AC_COMPILE_IFELSE(AC_LANG_PROGRAM([], []), [flag_ok=yes], [flag_ok=no])

  LDFLAGS="$save_LDFLAGS"

  if test "X$flag_ok" = Xyes ; then
    $2
    true
  else
    $3
    true<commit_msg>configure: squash ‘AC_LANG_SOURCE call detected’ warning.<commit_after>dnl A version of AS_COMPILER_FLAG that supports linker flags
dnl Based on:

dnl as-compiler-flag.m4 0.1.0
dnl autostars m4 macro for detection of compiler flags
dnl <NAME> <<EMAIL>>
dnl $Id: as-compiler-flag.m4,v 1.1 2005/06/18 18:02:46 burgerman Exp $

dnl TP_LINKER_FLAG(LDFLAGS, ACTION-IF-ACCEPTED, [ACTION-IF-NOT-ACCEPTED])
dnl Tries to compile with the given LDFLAGS.
dnl
dnl Runs ACTION-IF-ACCEPTED if the compiler/linker for the currently selected
dnl AC_LANG can compile with the flags, and ACTION-IF-NOT-ACCEPTED otherwise.
dnl
dnl Note that LDFLAGS are passed to the linker via the compiler, so you
dnl should check for -Wl,--no-add-needed rather than --no-add-needed.

AC_DEFUN([TP_LINKER_FLAG],
[
  AC_MSG_CHECKING([to see if compiler/linker understand $1])

  save_LDFLAGS="$LDFLAGS"
  LDFLAGS="$LDFLAGS $1"

  AC_COMPILE_IFELSE(AC_LANG_SOURCE([]), [flag_ok=yes], [flag_ok=no])

  LDFLAGS="$save_LDFLAGS"

  if test "X$flag_ok" = Xyes ; then
    $2
    true
  else
    $3
    true
{'fraction_non_alphanumeric': 0.10292005744375299, 'fraction_numerical': 0.02489229296314026, 'mean_word_length': 4.38659793814433, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6160016', 'n_tokens_mistral': 822, 'n_tokens_neox': 769, 'n_words': 234}