<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -337,7 +337,17 @@ case &quot;${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}&quot; in
 	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
 	# This test works for both compilers.
 	if [ &quot;$CC_FOR_BUILD&quot; != 'no_compiler_found' ]; then
-	    if echo '\n#ifdef __amd64\nIS_64BIT_ARCH\n#endif' | \
+            # bash is not able to generate correct code here
+            # i.e. it leaves \ns there
+            # so we need to use /usr/bin/echo to get what we want
+            # note that if config.guess is run by /bin/sh then
+            # this works as expected even without /usr/bin/echo
+            # but the problem is that configure is clever enough
+            # to find bash installed and then runs config.guess
+            # by bash instead of by /bin/sh
+            # It seems that using /usr/bin/echo here is the most
+            # portable Solaris fix
+	    if /usr/bin/echo '\n#ifdef __amd64\nIS_64BIT_ARCH\n#endif' | \
 		(CCOPTS= $CC_FOR_BUILD -E - 2&gt;/dev/null) | \
 		grep IS_64BIT_ARCH &gt;/dev/null
 	    then</diff>
      <filename>config.guess</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fb51b56a922aee1ff2653caace1f319f17bec0f6</id>
    </parent>
  </parents>
  <author>
    <name>Simon Marlow</name>
    <email>marlowsd@gmail.com</email>
  </author>
  <url>http://github.com/ghc-hq/ghc/commit/994201363563e3b0819036099bf6a1b5a94857be</url>
  <id>994201363563e3b0819036099bf6a1b5a94857be</id>
  <committed-date>2009-01-27T01:53:43-08:00</committed-date>
  <authored-date>2009-01-27T01:53:43-08:00</authored-date>
  <message>Fix detection of i386 vs. x86_64 for -pc-solaris

Ignore-this: b415138105477e7edab96994babbe6d2
From #2951</message>
  <tree>8eac4d178860ea2e0b7aad79751b0a64cdc3ccce</tree>
  <committer>
    <name>Simon Marlow</name>
    <email>marlowsd@gmail.com</email>
  </committer>
</commit>
