From 2e4f3512c9414793c714748aec7d676d33e18e2c Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 27 Apr 2008 14:50:53 +0000 Subject: 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 --- configure | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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"; -- cgit v1.2.3