fix detection on non-openbsd systems

This commit is contained in:
Omar Polo 2021-02-08 10:28:56 +00:00
parent 337c74209b
commit 1516fd4dad
1 changed files with 9 additions and 6 deletions

15
configure vendored
View File

@ -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