summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-26 21:40:51 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-26 21:40:51 +0000
commitf2bf5b703f376ed2b6d9b2ab18d36da128ee17ff (patch)
tree8b6e966c759455069c11b3d4d3ea55ae4c5f993d
parent7db1805f6fc5d51ce6ec01129eede3bb09f2eaa1 (diff)
Dont let people enable gnutls/openssl when they dont have it... imho people shouldnt try and enable support for things they dont have, whats next, preventing
them symlinking it? :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5342 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index d0a6b40cd..2fda86dd5 100755
--- a/configure
+++ b/configure
@@ -878,6 +878,17 @@ print "\033[0mIPv6 to IPv4 Links:\033[1;32m\t\t$config{SUPPORT_IP6LINKS}\033[0m\
print "\033[0mGnuTLS Support:\033[1;32m\t\t\t$config{USE_GNUTLS}\033[0m\n";
print "\033[0mOpenSSL Support:\033[1;32m\t\t$config{USE_OPENSSL}\033[0m\n\n";
+if (($config{USE_GNUTLS} eq "y") && ($config{HAS_GNUTLS} ne "y"))
+{
+ print "Sorry, but i couldn't detect gnutls. Make sure gnutls-config is in your path.\n";
+ exit(0);
+}
+if (($config{USE_OPENSSL} eq "y") && ($config{HAS_OPENSSL} ne "y"))
+{
+ print "Sorry, but i couldn't detect openssl. Make sure openssl is in your path.\n";
+ exit(0);
+}
+
if ($config{USE_GNUTLS} eq "y") {
$failed = 0;
open(TMP, "<src/modules/m_ssl_gnutls.cpp") or $failed = 1;