Add detection for OpenBSD in configure script

Patch taken from downstream:
http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/net/qbittorrent/qbittorrent/patches/patch-configure_ac
This commit is contained in:
Chocobo1 2021-09-28 17:18:19 +08:00
commit 08ac33bc5c
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
2 changed files with 18 additions and 0 deletions

View file

@ -60,6 +60,12 @@ AS_IF([expr "$host_os" : ".*freebsd.*" > /dev/null],
LIBS="-lexecinfo $LIBS"],
[AC_MSG_RESULT([no])])
AC_MSG_CHECKING([whether OS is OpenBSD])
AS_IF([expr "$host_os" : ".*openbsd.*" > /dev/null],
[AC_MSG_RESULT([yes])
LIBS="-lexecinfo $LIBS"],
[AC_MSG_RESULT([no])])
AC_MSG_CHECKING([whether OS is macOS])
AS_IF([expr "$host_os" : ".*darwin.*" > /dev/null],
[AC_MSG_RESULT([yes])