
On Dec 11, 2006, at 6:33 PM, Daniel James wrote:
Hi,
When I try running the configure script on Ubuntu I get:
daniel@bah:~/src/boost$ ./configure --prefix=/usr/local/boost test: 180: ==: unexpected operator test: 193: ==: unexpected operator test: 213: ==: unexpected operator test: 218: ==: unexpected operator test: 222: ==: unexpected operator test: 226: ==: unexpected operator test: 243: ==: unexpected operator
This is because Ubuntu now links /bin/sh to dash (the script works fine when called with bash). The bash man page says:
string1 == string2 True if the strings are equal. = may be used in place of == for strict POSIX compliance.
So I've attached a patch which uses '=' instead of '==' which seems to do the trick.
Thanks! I'm hacking on the configure script now to make it BBv2- ready, so I've committed this patch. Cheers, Doug