bug 554021 - enable compiling Breakpad on Linux/x86-64 by default. r=jimb, a=stuart
authorTed Mielczarek <ted.mielczarek@gmail.com>
Thu, 25 Mar 2010 09:16:19 -0400
changeset 34244 3b3d0d34e9c52e8c87ddde258477ee22f1b3a93b
parent 34243 17391b64e7909d35e09409f83b2a5e25044b56aa
child 34245 fe0f13bfc4fb649ba231179b94b868c8e4532ef5
push id1351
push usertmielczarek@mozilla.com
push dateTue, 25 May 2010 12:49:44 +0000
reviewersjimb, stuart
bugs554021
milestone1.9.2.5pre
bug 554021 - enable compiling Breakpad on Linux/x86-64 by default. r=jimb, a=stuart (transplanted from 74ffccda23b88e9b0ca49c22318e3d0ab42473e0)
configure.in
--- a/configure.in
+++ b/configure.in
@@ -5755,23 +5755,30 @@ if test -n "${MOZ_JAVAXPCOM}"; then
     AC_MSG_ERROR([The programs java, javac and jar were not found.  Set \$JAVA_HOME to your java sdk directory, use --with-java-bin-path={java-bin-dir}, or reconfigure with --disable-javaxpcom.])
   fi
 fi
 
 dnl ========================================================
 dnl = Breakpad crash reporting (on by default on supported platforms)
 dnl ========================================================
 
-if (test "$OS_ARCH" = "WINNT" -a -z "$GNU_CC" \
-    || test "$OS_ARCH" = "Darwin" \
-    || test "$OS_ARCH" = "Linux" -a "$CPU_ARCH" = "x86" \
-    || test "$OS_ARCH" = "SunOS") \
-   && test -z "$HAVE_64BIT_OS"; then
-   MOZ_CRASHREPORTER=1
-fi
+case $target in
+i?86-*-mingw*)
+  MOZ_CRASHREPORTER=1
+  ;;
+i?86-apple-darwin*|powerpc-apple-darwin*)
+  MOZ_CRASHREPORTER=1
+  ;;
+i?86-*-linux*|x86_64-*-linux*)
+  MOZ_CRASHREPORTER=1
+  ;;
+*solaris*)
+  MOZ_CRASHREPORTER=1
+  ;;
+esac
 
 MOZ_ARG_DISABLE_BOOL(crashreporter,
 [  --disable-crashreporter          Disable breakpad crash reporting],
     MOZ_CRASHREPORTER=,
     MOZ_CRASHREPORTER=1)
 
 if test -n "$MOZ_CRASHREPORTER"; then
    AC_DEFINE(MOZ_CRASHREPORTER)