So, I'm modifying an autoconf script for some software I'm working on... I'm trying to test that ${host} has "freebsd" in it. I've tried all sorts of variants of the following
but none seem to work... Either the test returns false (unexpectedly), or I just get errors when I run the ./configure script. I'm pretty green to scripting on a 'nix box, so any suggestions are obviously more than welcome.
Thanks in advance.
Code:
if test "${host}" = "*freebsd*"; then
fi
if test "${host}" =~ ".*freebsd.*"; then
fi
but none seem to work... Either the test returns false (unexpectedly), or I just get errors when I run the ./configure script. I'm pretty green to scripting on a 'nix box, so any suggestions are obviously more than welcome.
Thanks in advance.