projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added OpenSSL handler
[NeonServV5.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index a464dace120aaf0900557383a4d2bd3364a2ce0f..95d0bdd0afa00fcf59a1539a542d51f125f3c35e 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-1,7
+1,8
@@
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.67])
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.67])
-AC_INIT([NeonServ], [5.0], [bugs@pk910.de], [neonserv], [http://neonserv.krypton-bouncer.de])
+AC_INIT([NeonServ], [5.2], [bugs@pk910.de], [neonserv], [http://neonserv.krypton-bouncer.de])
+AC_PREFIX_DEFAULT([~/neonserv])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_HEADERS([config.h])
@@
-30,6
+31,15
@@
AC_ARG_WITH([winsock],
[WINSOCK_LIBS=''])
AC_SUBST([WINSOCK_LIBS])
[WINSOCK_LIBS=''])
AC_SUBST([WINSOCK_LIBS])
+AC_CHECK_LIB(ssl, SSL_read, [
+ AC_CHECK_LIB(crypto, X509_new, [
+ AC_CHECK_HEADERS(openssl/ssl.h openssl/err.h openssl/rand.h, [
+ LIBS="$LIBS -lssl -lcrypto"
+ AC_DEFINE([HAVE_SSL], 1, [Define if you are using SSL])
+ ])
+ ])
+])
+
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h windows.h winsock2.h])
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h windows.h winsock2.h])