[Sawfish] [PATCH] librep compile with gcc-4.7 for x86_64

[ Thread Index | Date Index | More lists.tuxfamily.org/sawfish Archives ]

librep/configure tries to autodetect stack direction if it's not
specified. It's forced to "downwards" for sparc/i?86/powerpc, but not
for x86_64. The autodetect has worked so far but not anymore with
gcc-4.7. Compiling librep runs self-test, which detects correctly
"downwards" and conflicts with configure's "upwards". Attached patch
forces it to "downwards" on x86_64 too. 	

Comment in the source says that "upwards" is not even tested.

diff --git a/configure.in b/configure.in
index 525cc40..85ececd 100644
--- a/configure.in
+++ b/configure.in
@@ -536,7 +536,7 @@ AC_ARG_WITH(stack-direction,
 if test "${with_stack_direction}" = unknown; then
   case ${host_cpu} in
-    sparc|i?86|powerpc)
+    sparc|i?86|powerpc|x86_64)
       AC_MSG_RESULT([assuming downwards])

Sawfish ML

Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/