[configure] Running configure on dash.

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. Daniel

Daniel James wrote:
So I've attached a patch which uses '=' instead of '==' which seems to do the trick.
OK... So you'll be checking that in soon? -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

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
participants (3)
-
Daniel James
-
Douglas Gregor
-
Rene Rivera