From 240cc918c58ad627290590a8226dd0eb0a9279b4 Mon Sep 17 00:00:00 2001 From: Frederik Slos Date: Fri, 20 Jun 2014 18:37:55 +0200 Subject: [PATCH] fix: on a FreeBSD machine, assume OpenSSL is there On FreeBSD, OpenSSL is always there, but no .pc file is installed, so pkg-config does not report it --- configure | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 9e48d2b34..3bf30c0b4 100755 --- a/configure +++ b/configure @@ -59,7 +59,15 @@ do_pkg_config() fi } -do_pkg_config OpenSSL openssl +# On FreeBSD, OpenSSL is always there, but no .pc file is installed, +# so pkg-config does not report it +if [ `uname` = 'FreeBSD' ]; then + echo "FreeBSD machine, assuming OpenSSL is there" + LDFLAGS="${LDFLAGS} -lssl -lcrypto" +else + do_pkg_config OpenSSL openssl +fi + do_pkg_config libao ao CONFIG_AO do_pkg_config PulseAudio libpulse-simple CONFIG_PULSE do_pkg_config ALSA alsa CONFIG_ALSA