commit 1516fd4dadd4ddbb5ed22fdd0f48f5537fd39514 from: Omar Polo date: Mon Feb 08 10:28:56 2021 UTC fix detection on non-openbsd systems commit - 337c74209bae429115d6cda46f7d9f68942b725a commit + 1516fd4dadd4ddbb5ed22fdd0f48f5537fd39514 blob - d91ad15f058e382d36152e47eea0f4e2b67d86a3 blob + ccb9f0c35149d7583fc7caa29539aab34fe97657 --- configure +++ configure @@ -76,12 +76,15 @@ if which pkg-config 2>/dev/null 1>&2; then LDFLAGS="${LDFLAGS} $(pkg-config --libs openssl)" fi - if ! [ "$(uname)" = "OpenBSD" ]; then - if pkg-config libevent; then - CFLAGS="${CFLAGS} $(pkg-config --cflags openssl)" - LDFLAGS="${LDFLAGS} $(pkg-config --libs openssl)" - fi - fi + case "$(uname)" in + OpenBSD) ;; + *) + if pkg-config libevent; then + CFLAGS="${CFLAGS} $(pkg-config --cflags libevent)" + LDFLAGS="${LDFLAGS} $(pkg-config --libs libevent)" + fi + ;; + esac fi # auto detect lex/flex