summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-27 14:50:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-27 14:50:53 +0000
commit2e4f3512c9414793c714748aec7d676d33e18e2c (patch)
treed36dcc24bca1649fe5b0265e815e4482b66b68b8 /configure
parent6a64a69fbc56b97f6285fbaad9f30fe58f211a88 (diff)
Detect openssl on freebsd with the openssl binary, so we can find the base version as well as the ports version
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9589 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure b/configure
index 7c0b4ef04..ecc8b1640 100755
--- a/configure
+++ b/configure
@@ -239,7 +239,16 @@ if (defined $opt_library_dir)
$config{LIBRARY_DIR} = $opt_library_dir;
}
chomp($config{HAS_GNUTLS} = `libgnutls-config --version 2>/dev/null | cut -c 1,2,3`); # GNUTLS Version.
-chomp($config{HAS_OPENSSL} = `pkg-config --modversion openssl 2>/dev/null`); # Openssl version
+
+if ($^O eq "freebsd")
+{
+ chomp($config{HAS_OPENSSL} = `openssl version | cut -d ' ' -f 2`); # OpenSSL version, freebsd specific
+}
+else
+{
+ chomp($config{HAS_OPENSSL} = `pkg-config --modversion openssl 2>/dev/null`); # Openssl version, others
+}
+
chomp(our $gnutls_ver = $config{HAS_GNUTLS});
chomp(our $openssl_ver = $config{HAS_OPENSSL});
$config{USE_GNUTLS} = "n";