From fc52248bf734efcde536f930115a557421b3c9f8 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Mon, 11 May 2015 00:25:32 +0300 Subject: [PATCH] Correctly detect FreeBSD when configuring. Thanks to yurivict for helping. Closes #2962. --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 852550586..46a9edd20 100755 --- a/configure +++ b/configure @@ -4263,7 +4263,7 @@ fi # Detect OS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS is FreeBSD" >&5 $as_echo_n "checking whether OS is FreeBSD... " >&6; } -if test "x$host_os" = "x*FreeBSD*"; then : +if expr "$host_os" : ".*freebsd.*" > /dev/null; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } LIBS="-lexecinfo $LIBS" diff --git a/configure.ac b/configure.ac index f27154560..22dd6d064 100644 --- a/configure.ac +++ b/configure.ac @@ -74,7 +74,7 @@ AC_ARG_ENABLE(qt-dbus, # Detect OS AC_MSG_CHECKING([whether OS is FreeBSD]) -AS_IF([test "x$host_os" = "x*FreeBSD*"], +AS_IF([expr "$host_os" : ".*freebsd.*" > /dev/null], [AC_MSG_RESULT([yes]) LIBS="-lexecinfo $LIBS"], [AC_MSG_RESULT([no])])