--- configure.orig	2012-03-01 17:25:51.000000000 +0100
+++ configure	2012-03-01 17:27:33.000000000 +0100
@@ -6275,7 +6275,7 @@
 fi
 
 GL_LIB="GL"
-GLU_LIB="GLU"
+GLU_LIB="OSGLU"
 OSMESA_LIB="OSMesa"
 if test "x${enable_mangling}" = "xyes" ; then
   DEFINES="${DEFINES} -DUSE_MGL_NAMESPACE"
@@ -6384,7 +6384,7 @@
             ;;
         esac
         ;;
-    x86_64)
+    amd64)
         case "$host_os" in
         linux* | *freebsd* | dragonfly* | *netbsd*)
             test "x$enable_32bit" = xyes && asm_arch=x86 || asm_arch=x86_64
