Browse Source

Merge pull request #15505 from Chocobo1/freebsd

Add detection for various OS
adaptive-webui-19844
Chocobo1 3 years ago committed by GitHub
parent
commit
b81cbf9062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 39
      configure
  2. 37
      configure.ac

39
configure vendored

@ -5188,29 +5188,38 @@ fi @@ -5188,29 +5188,38 @@ fi
# Detect OS
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OS is FreeBSD" >&5
printf %s "checking whether OS is FreeBSD... " >&6; }
if expr "$host_os" : ".*freebsd.*" > /dev/null
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable specific tweaks for current host \"$host_os\"" >&5
printf %s "checking whether to enable specific tweaks for current host \"$host_os\"... " >&6; }
case "$host_os" in
*darwin*)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
enable_qt_dbus=no
;;
*freebsd*)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
LIBS="-lexecinfo $LIBS"
else $as_nop
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi
;;
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OS is macOS" >&5
printf %s "checking whether OS is macOS... " >&6; }
if expr "$host_os" : ".*darwin.*" > /dev/null
then :
*haiku*)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
enable_qt_dbus=no
else $as_nop
LIBS="-lnetwork $LIBS"
;;
*openbsd*)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
LIBS="-lexecinfo $LIBS"
;;
*)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi
;;
esac
# Require 0.23 pkg-config

37
configure.ac

@ -54,17 +54,32 @@ AC_ARG_ENABLE(qt-dbus, @@ -54,17 +54,32 @@ AC_ARG_ENABLE(qt-dbus,
[enable_qt_dbus=yes])
# Detect OS
AC_MSG_CHECKING([whether OS is FreeBSD])
AS_IF([expr "$host_os" : ".*freebsd.*" > /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])
enable_qt_dbus=no],
[AC_MSG_RESULT([no])])
AC_MSG_CHECKING([whether to enable specific tweaks for current host "$host_os"])
case "$host_os" in
*darwin*)
AC_MSG_RESULT([yes])
enable_qt_dbus=no
;;
*freebsd*)
AC_MSG_RESULT([yes])
LIBS="-lexecinfo $LIBS"
;;
*haiku*)
AC_MSG_RESULT([yes])
LIBS="-lnetwork $LIBS"
;;
*openbsd*)
AC_MSG_RESULT([yes])
LIBS="-lexecinfo $LIBS"
;;
*)
AC_MSG_RESULT([no])
;;
esac
# Require 0.23 pkg-config
PKG_PROG_PKG_CONFIG([0.23])

Loading…
Cancel
Save