PATCH, v3: fix error from configure

Ben Elliston
Fri Dec 19 04:23:00 GMT 2008

On some targets, $target_thread_file can be unset (I'm not sure if that
is the right behaviour or not).  This patch protects against a "unary
operator expected" error from the configure script.  OK for mainline?


2008-12-19  Ben Elliston  <>

        * acinclude.m4: Guard a variable test against an empty string.
        * configure: Regenerate.

(diff against configure omitted for brevity.)

Index: acinclude.m4
--- acinclude.m4        (revision 142828)
+++ acinclude.m4        (working copy)
@@ -2570,7 +2570,7 @@ EOF
   if test $atomicity_dir = "cpu/generic" ; then
     AC_MSG_WARN([No native atomic operations are provided for this platform.])
-      if test $target_thread_file = single; then
+      if test "x$target_thread_file" = xsingle; then
         AC_MSG_WARN([They cannot be faked when thread support is disabled.])
         AC_MSG_WARN([Thread-safety of certain classes is not guaranteed.])

More information about the Gcc-patches mailing list