From fd679bbca8ad24c0ddd69e3d2018fbbe4bb8e54d Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 23 May 2020 14:12:07 -0400 Subject: Don't compress man page or use configure on FreeBSD Also use DESTDIR in install. --- configure | 32 ++++++++------------------------ 1 file changed, 8 insertions(+), 24 deletions(-) (limited to 'configure') diff --git a/configure b/configure index b0f818f..88bfb1a 100755 --- a/configure +++ b/configure @@ -1,36 +1,20 @@ #!/bin/sh set -eu -case "$(uname)" in - (FreeBSD) - if ! pkg info -e libressl; then - echo 'LibreSSL required' - exit 1 - fi - prefix=$(pkg query '%p' libressl) - cat >config.mk <<-EOF - CFLAGS += -I${prefix}/include - CFLAGS += -D'OPENSSL_BIN="${prefix}/bin/openssl"' - LDFLAGS += -L${prefix}/lib - EOF - exit - ;; -esac +exec >config.mk libs='libcrypto libtls ncursesw' pkg-config --print-errors $libs -cat >config.mk <> config.mk - fi - ;; -esac +if [ "$(uname)" = 'Linux' ]; then + cat <<-EOF + CFLAGS += -D_GNU_SOURCE + EOF +fi -- cgit 1.4.1