Bash it's not used on FreeBSD.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
[ wei: rerun autogen.sh ]
fi
fi
-# Extract the first word of "bash", so it can be a program name with args.
+case "$host_os" in
+ freebsd*) ;;
+ *) # Extract the first word of "bash", so it can be a program name with args.
set dummy bash; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test x"${BASH}" = x"no"
then
as_fn_error $? "Unable to find bash, please install bash" "$LINENO" 5
-fi
+fi;;
+esac
if echo "$PYTHON" | grep -q "^/"; then :
PYTHONPATH=$PYTHON
xsmpolicy="n"
])
])
-AX_PATH_PROG_OR_FAIL([BASH], [bash])
+dnl FreeBSD doesn't require bash (hotplug scripts are in plain sh)
+case "$host_os" in
+ freebsd*) ;;
+ *) AX_PATH_PROG_OR_FAIL([BASH], [bash]);;
+esac
AS_IF([echo "$PYTHON" | grep -q "^/"], [
PYTHONPATH=$PYTHON
PYTHON=`basename $PYTHONPATH`