X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=109c5d990a20b3f95ae8e4ce6d0310240f70993e;hp=95d0bdd0afa00fcf59a1539a542d51f125f3c35e;hb=3e468d2c23318616f86dc7c180102ebb2c34bd6c;hpb=003f6906aeb911cce26ee25b48a818d0d1c4aea5 diff --git a/configure.ac b/configure.ac index 95d0bdd..109c5d9 100644 --- a/configure.ac +++ b/configure.ac @@ -31,15 +31,20 @@ AC_ARG_WITH([winsock], [WINSOCK_LIBS='']) AC_SUBST([WINSOCK_LIBS]) +do_have_ssl="no"; 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]) + do_have_ssl="yes"; ]) ]) ]) +if test x"$do_have_ssl" = xyes; then + LIBS="$LIBS -lssl -lcrypto" + AC_DEFINE([HAVE_SSL], 1, [Define if you are using SSL]) +fi + # 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])