AC_MSG_ERROR([Cannot use $LEX as flex.])
fi
-if test -z "$LEXLIB" ; then
- AC_MSG_FAILURE([Cannot find a library with yywrap() in, but flex was found.
- It's possible the compiler you're using ($CC) is incompatible with the
- installed library.])
-fi
-
-LIBS="$LEXLIB $LIBS"
-
dnl YACC - ditto
AC_PROG_YACC
dnl The autoconf docs say $YACC defaults to 'yacc'. This seems to be true,
fi
AC_SUBST(ENGINE_C)
+have_gnutls="no"
+AC_CHECK_LIB(gnutls, gnutls_init, [
+ AC_CHECK_HEADERS(gnutls/gnutls.h, [
+ LIBS="$LIBS -lgnutls"
+ have_gnutls="yes"
+ ])
+])
+if test x"$have_gnutls" = xno; then
+ if test x$is_win32 = xyes ; then
+ openssl_deps="-lcrypto -lgdi32"
+ else
+ openssl_deps="-lcrypto"
+ fi
+ AC_CHECK_LIB([ssl],[SSL_library_init], [
+ LIBS="$LIBS -lssl $openssl_deps"
+ ], [], $openssl_deps)
+fi
+
dnl Now look for --enable-debug
AC_MSG_CHECKING([whether to enable debug mode])
AC_ARG_ENABLE([debug],
[Maximum number of network connections])
dnl Finally really generate all output files:
-AC_OUTPUT(Makefile ircd/Makefile ircd/test/Makefile doc/Makefile, [echo timestamp > stamp-h])
+AC_OUTPUT(Makefile ircd/Makefile ircd/test/Makefile, [echo timestamp > stamp-h])
dnl Report configuration
AC_OUTPUT_COMMANDS([echo "