<commit_before>dnl -------------------------------------------------------------
dnl Threading Building Blocks
dnl -------------------------------------------------------------
AC_DEFUN([CONFIGURE_TBB],
[
  AC_ARG_WITH(tbb,
              AC_HELP_STRING([--with-tbb=PATH],[Specify the path where Threading Building Blocks is installed]),
              withtbb=$withval,
              withtbb=$TBB_DIR)

  AC_ARG_WITH(tbb-lib,
              AC_HELP_STRING([--with-tbb-lib=PATH],[Specify the path to Threading Building Blocks libraries]),
              withtbblib=$withval,
              withtbblib=$TBB_LIB_PATH)

  if test "$withtbb" != no ; then
    if test "x$withtbb" = x ; then
      withtbb=/usr
    fi

    AC_LANG_PUSH([C++])
    OLD_CPPFLAGS=$CPPFLAGS
    CPPFLAGS="-I$withtbb/include $CPPFLAGS"
    AC_CHECK_HEADER(tbb/task_scheduler_init.h,
                    TBB_INCLUDE_PATH=$withtbb/include)
    CPPFLAGS=$OLD_CPPFLAGS
    AC_LANG_POP([C++])

    if test "x$withtbblib" != "x" ; then
      TBB_LIBS=$withtbblib
    else	
      TBB_LIBS=$withtbb/lib
    fi
  fi

  if (test -r $TBB_INCLUDE_PATH/tbb/task_scheduler_init.h) ; then
    TBB_LIBRARY="-L$TBB_LIBS -ltbb -ltbbmalloc"
    TBB_INCLUDE=-I$TBB_INCLUDE_PATH
    AC_SUBST(TBB_LIBRARY)
    AC_SUBST(TBB_INCLUDE)
    AC_DEFINE(HAVE_TBB_API, 1,
              [Flag indicating whether the library shall be compiled to use the Threading Building Blocks])
    AC_MSG_RESULT(<<< Configuring library with Intel TBB threading support >>>)
  fi
])<commit_msg>Intel compilers can come with tbb support built-in, in which case no additional include paths are necessary.  Let's try and make sure it's enabled in that case unless the user deliberately disables it.<commit_after>dnl -------------------------------------------------------------
dnl Threading Building Blocks
dnl -------------------------------------------------------------
AC_DEFUN([CONFIGURE_TBB],
[
  AC_ARG_WITH(tbb,
              AC_HELP_STRING([--with-tbb=PATH],[Specify the path where Threading Building Blocks is installed]),
              withtbb=$withval,
              withtbb=$TBB_DIR)

  AC_ARG_WITH(tbb-lib,
              AC_HELP_STRING([--with-tbb-lib=PATH],[Specify the path to Threading Building Blocks libraries]),
              withtbblib=$withval,
              withtbblib=$TBB_LIB_PATH)

  if test "$withtbb" != no ; then
    if test "x$withtbb" = x ; then
      withtbb=/usr
    fi

    AC_LANG_PUSH([C++])
    OLD_CPPFLAGS=$CPPFLAGS
    AC_CHECK_HEADER(tbb/task_scheduler_init.h,
      [TBB_INCLUDE=''
       withtbb=builtin],
      [CPPFLAGS="-I$withtbb/include $CPPFLAGS"
       AC_CHECK_HEADER(tbb/task_scheduler_init.h,
                       TBB_INCLUDE='-I$withtbb/include',
                       withtbb=no)
       CPPFLAGS=$OLD_CPPFLAGS])
    AC_LANG_POP([C++])
  fi

  if test "$withtbb" != no ; then
    if test "x$withtbblib" != "x" ; then
      TBB_LIBS="-L$withtbblib -ltbb -ltbbmalloc"
    else	
      if test "$withtbb" != "builtin" ; then
        TBB_LIBS="-L$withtbb/lib -ltbb -ltbbmalloc"
      else
        TBB_LIBS="-ltbb -ltbbmalloc"
      fi
    fi

    TBB_LIBRARY="-L$TBB_LIBS -ltbb -ltbbmalloc"
    AC_SUBST(TBB_LIBRARY)
    AC_SUBST(TBB_INCLUDE)
    AC_DEFINE(HAVE_TBB_API, 1,
              [Flag indicating whether the library shall be compiled to use the Threading Building Blocks])
    AC_MSG_RESULT(<<< Configuring library with Intel TBB threading support >>>)
  fi
])
{'fraction_non_alphanumeric': 0.1677325581395349, 'fraction_numerical': 0.0005813953488372093, 'mean_word_length': 2.1714285714285713, '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': '2177351', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1126, 'n_words': 240}