Fix unportable == operator in configure scripts

Now this code is more portable and now people can use faster shells than
Bash such as Dash.

To use a faster shell with autoconf set the CONFIG_SHELL environment
variable to the shell and run the configure script with the shell.
Merge pull request #88 from sstewartgallus/fix-bashisms

Fix unportable == operator in configure scripts