# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

export CC="gcc -O3 -mcpu=powerpc64 -maltivec -mabi=altivec -flax-vector-conversions -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
export CXX="g++ -O3 -mcpu=powerpc64 -maltivec -mabi=altivec -fpermissive -flax-vector-conversions -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
export LDFLAGS="-latomic"

ac_add_options --prefix=/usr

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-ff-dbg

ac_add_options --disable-crashreporter
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-updater
ac_add_options --disable-mozril-geoloc
ac_add_options --disable-webrtc
ac_add_options --disable-safe-browsing
ac_add_options --disable-parental-controls
ac_add_options --enable-release
ac_add_options --disable-necko-wifi
ac_add_options --disable-eme
ac_add_options --disable-gamepad
ac_add_options --disable-dbus
ac_add_options --disable-gio
#ac_add_options --disable-gconf
ac_add_options --disable-pulseaudio
ac_add_options --enable-strip
ac_add_options --enable-install-strip
ac_add_options --enable-application=browser
ac_add_options --with-branding=browser/branding/arcticfox

ac_add_options --enable-altivec
ac_add_options --enable-optimize

ac_add_options --with-system-icu

# gtk3 now supported and default, but gtk2 just looks better
ac_add_options --enable-default-toolkit=cairo-gtk2

# Issue 162
ac_add_options --disable-precompiled-startupcache
