chiark / gitweb /
Default to 32-bit builds on OS X. Apple's compiler now defaults to 64
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 3 Oct 2009 13:04:27 +0000 (14:04 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 3 Oct 2009 13:04:27 +0000 (14:04 +0100)
bits but existing Fink installs will be 32 bits.  DisOrder's default
is liable to change when I change my Fink l-)

Use --with-bits=32 or --with-bits=64 to override the default.

README
configure.ac

diff --git a/README b/README
index 482bc3966947c988dc7dbd9b1dab63f0a2ab72b5..010a9db7c6d159ab59b5121ff7c8fe1211c1283d 100644 (file)
--- a/README
+++ b/README
@@ -88,6 +88,9 @@ platform, please get in touch.
      --without-gtk          Don't build GTK+ client (Disobedience)
      --without-python       Don't build Python support
 
+   On a Mac you can use --with-bits=64 to request a 64-bit build.  The default
+   is 32 bits.  You will need suitable versions of all the libraries used.
+
    If configure cannot guess where your web server keeps its HTML documents and
    CGI programs, you may have to tell it, for instance:
 
index 95cb413b5a6e9590103d89846f811f982761f413..8b2e278c846cfade6f7aea4c389c718f569dc739 100644 (file)
@@ -91,8 +91,12 @@ AC_ARG_WITH([tests],
            [want_tests=$withval])
 AC_ARG_WITH([gtk-osx],
            [AS_HELP_STRING([--with-gtk-osx],
-                           [use native GTK+])],
+                           [use native GTK+ (OS X only)])],
            [want_gtkosx=$withval])
+AC_ARG_WITH([bits],
+            [AS_HELP_STRING([--with-bits=64],
+                            [request a 64-bit build (OS X only)])],
+            [BITS=$withval])
 
 AC_MSG_CHECKING([for a known target platform])
 case "$host" in
@@ -110,6 +114,12 @@ case "$host" in
   ;;
 *-apple-darwin* )
   AC_MSG_RESULT([Mac OS X])
+  AC_MSG_CHECKING([bitness])
+  if test "x$BITS" = "x"; then
+    BITS=32
+  fi
+  AC_MSG_RESULT([$BITS])
+  CC="$CC -m$BITS"
   if test $want_coreaudio = yes; then
     COREAUDIO="-framework CoreFoundation -framework CoreServices -framework CoreAudio"
   fi