if test -e "$topsrcdir/mozilla/build/macosx/universal/mozconfig"; then
  # We need some hackery to deal with the mozilla/ build system calling this
  # mozconfig.
  oldtopsrcdir=$topsrcdir
  export topsrcdir=$topsrcdir/mozilla
else
  # Big Hack that unsets CC / CXX so that mozconfig.common doesn't get
  # mixed up with host/target CPUs when trying to work out how to do the
  # universal build. When we redo the build system (bug 648979) this will
  # go away.
  unset CC
  unset CXX
fi

. $topsrcdir/build/macosx/universal/mozconfig

if test -n $oldtopsrcdir; then
  export topsrcdir=$oldtopsrcdir
fi

ac_add_options --enable-application=suite
ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
ac_add_options --enable-update-packaging
ac_add_options --enable-tests
ac_add_options --enable-codesighs
ac_add_options --disable-install-strip

export CFLAGS="-gdwarf-2"
export CXXFLAGS="-gdwarf-2"

# For NSS symbols
export MOZ_DEBUG_SYMBOLS=1
ac_add_options --enable-debug-symbols="-gdwarf-2"

# Needed to enable breakpad in application.ini
export MOZILLA_OFFICIAL=1

# Enable parallel compiling
mk_add_options MOZ_MAKE_FLAGS="-j4"
