<commit_before>dnl based on curses.m4 
dnl $Id$

AC_DEFUN(AC_CHECK_OPENSSL,[
  AC_SUBST(OPENSSL_LIBS)
  AC_SUBST(OPENSSL_INCLUDES)

  AC_ARG_WITH(openssl,
    [[  --without-openssl         Compile without OpenSSL]], 
      if test "x$withval" = "xno" ; then
        without_ncurses=yes
      elif test "x$withval" != "xyes" ; then
        with_arg=$withval/include:-L$withval/lib
      fi)

  if test "x$without_openssl" != "xyes" ; then
    AC_MSG_CHECKING(for ssl.h)


    for i in $with_arg \
    		/usr/include: \
		/usr/local/include:"-L/usr/local/lib -L/usr/local/lib/ncurses" \
		/usr/pkg/include:"-L/usr/pkg/lib" \
		/usr/contrib/include:"-L/usr/contrib/lib" \
		/usr/freeware/include:"-L/usr/freeware/lib32" \
    		/sw/include:"-L/sw/lib" \
    		/cw/include:"-L/cw/lib"; do
	
      incl=`echo "$i" | sed 's/:.*//'`
      lib=`echo "$i" | sed 's/.*://'`

      if test -f $incl/openssl/ssl.h; then
	include=$incl
      fi
      
      if test "x$include" != "x"; then
        AC_MSG_RESULT($include/openssl/ssl.h)
	OPENSSL_LIBS="$lib"
	OPENSSL_INCLUDES="-I$include"
	have_openssl=true
	ldflags_old="$LDFLAGS"
	cflags_old="$CFLAGS"
	LDFLAGS="$OPENSSL_LIBS -lcrypto"
	CFLAGS="$OPENSSL_INCLUDES"
	AC_CHECK_LIB(ssl, RSA_new, [
	    AC_DEFINE(HAVE_OPENSSL, 1, [define if you have OpenSSL])
	    LDFLAGS="$OPENSSL_LIBS -lssl -lcrypto $ldflags_old"
	    CFLAGS="$cflags_old $OPENSSL_INCLUDES"
	    OBJS="$OBJS sim.o"
	])
	break
      fi
    done
  fi

  if test "x$have_openssl" != "xtrue"; then<commit_msg>- poprawka wykrywania openssl (Arim/w)<commit_after>dnl based on curses.m4 
dnl $Id$

AC_DEFUN(AC_CHECK_OPENSSL,[
  AC_SUBST(OPENSSL_LIBS)
  AC_SUBST(OPENSSL_INCLUDES)

  AC_ARG_WITH(openssl,
    [[  --without-openssl         Compile without OpenSSL]], 
      if test "x$withval" = "xno" ; then
        without_ncurses=yes
      elif test "x$withval" != "xyes" ; then
        with_arg=$withval/include:-L$withval/lib
      fi)

  if test "x$without_openssl" != "xyes" ; then
    AC_MSG_CHECKING(for ssl.h)


    for i in $with_arg \
    		/usr/include: \
		/usr/local/include:"-L/usr/local/lib" \
		/usr/pkg/include:"-L/usr/pkg/lib" \
		/usr/contrib/include:"-L/usr/contrib/lib" \
		/usr/freeware/include:"-L/usr/freeware/lib32" \
    		/sw/include:"-L/sw/lib" \
    		/cw/include:"-L/cw/lib"; do
	
      incl=`echo "$i" | sed 's/:.*//'`
      lib=`echo "$i" | sed 's/.*://'`

      if test -f $incl/openssl/ssl.h; then
        AC_MSG_RESULT($incl/openssl/ssl.h)
	ldflags_old="$LDFLAGS"
	LDFLAGS="$lib -lcrypto"
	AC_CHECK_LIB(ssl, RSA_new, [
	  AC_DEFINE(HAVE_OPENSSL, 1, [define if you have OpenSSL])
	  have_openssl=true
	  OPENSSL_LIBS="$lib -lcrypto"
	  if test "x$incl" != "x/usr/include"; then
    	    OPENSSL_INCLUDES="-I$incl"
	  fi
	])
	LDFLAGS="$ldflags_old"
	break
      fi
    done
  fi

  if test "x$have_openssl" != "xtrue"; then
{'fraction_non_alphanumeric': 0.1657323055360897, 'fraction_numerical': 0.002803083391730904, 'mean_word_length': 2.786472148541114, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '860623', 'n_tokens_mistral': 1251, 'n_tokens_neox': 1182, 'n_words': 197}