230
230
MOZ_ARG_WITH_STRING(l10n-base,
231
231
[ --with-l10n-base=DIR path to l10n repositories],
232
232
L10NBASEDIR=$withval)
233
if test ! -z "$L10NBASEDIR"; then
233
if test -n "$L10NBASEDIR"; then
234
234
if test "$L10NBASEDIR" = "yes" -o "$L10NBASEDIR" = "no"; then
235
235
AC_MSG_ERROR([--with-l10n-base must specify a path])
236
236
elif test -d "$L10NBASEDIR"; then
489
494
MOZ_ARG_WITH_STRING(windows-version,
490
495
[ --with-windows-version=WINSDK_TARGETVER
491
496
Highest Windows version to target using this SDK
492
502: Windows Server 2003
495
498
WINSDK_TARGETVER=$withval)
497
500
case "$WINSDK_TARGETVER" in
499
502
MOZ_WINSDK_TARGETVER=0${WINSDK_TARGETVER}0000
503
AC_MSG_ERROR([Invalid value for --with-windows-version ($WINSDK_TARGETVER), must be 502, 600 or 601]);
506
AC_MSG_ERROR([Invalid value for --with-windows-version ($WINSDK_TARGETVER), must be 601]);
508
dnl Vista SDK specific api (deprecated)
509
MOZ_ARG_DISABLE_BOOL(vista-sdk-requirements,
510
[ --disable-vista-sdk-requirements
511
Do not build Vista SDK specific code],
512
MOZ_DISABLE_VISTA_SDK_REQUIREMENTS=1,
513
MOZ_DISABLE_VISTA_SDK_REQUIREMENTS=)
514
if test -n "$COMPILE_ENVIRONMENT"; then
515
if test -n "$MOZ_DISABLE_VISTA_SDK_REQUIREMENTS"; then
516
AC_MSG_WARN([--disable-vista-sdk-requirements is deprecated, use --with-windows-version=502 instead])
517
MOZ_WINSDK_TARGETVER=05020000
520
if test "$MOZ_WINSDK_TARGETVER" -lt "06000000"; then
521
MOZ_DISABLE_VISTA_SDK_REQUIREMENTS=1
522
AC_DEFINE(MOZ_DISABLE_VISTA_SDK_REQUIREMENTS)
526
AC_SUBST(MOZ_DISABLE_VISTA_SDK_REQUIREMENTS)
528
511
case "$target" in
529
512
*-cygwin*|*-mingw*|*-msvc*|*-mks*|*-wince|*-winmo)
530
513
if test "$GCC" != "yes"; then
682
665
MOZ_WINSDK_MAXVER=${ac_cv_winsdk_maxver}
684
# The Vista SDK is the only one to have sdkddkver.h but not
686
AC_CHECK_HEADERS([sdkddkver.h])
687
if test "$ac_cv_header_sdkddkver_h" = "yes"; then
688
MOZ_WINSDK_MAXVER=0x06000000
690
# Assume the Server 2003 Platform SDK
691
MOZ_WINSDK_MAXVER=0x05020000
667
# Any SDK which doesn't have WinSDKVer.h is too old.
668
AC_MSG_ERROR([Your SDK does not have WinSDKVer.h. It is probably too old. Please upgrade to a newer SDK or try running the Windows SDK Configuration Tool and selecting a newer SDK. See https://developer.mozilla.org/En/Windows_SDK_versions for more details on fixing this.])
695
671
unset _MSVC_VER_FILTER
795
771
AC_MSG_ERROR([windres version $WINDRES_VERSION or higher is required to build.])
798
# Server 2003 is the highest version supported
799
MOZ_WINSDK_MAXVER=0x05020000
774
MOZ_WINSDK_MAXVER=0x06010000
802
777
AC_DEFINE_UNQUOTED(WINVER,0x$WINVER)
803
778
AC_DEFINE_UNQUOTED(_WIN32_WINNT,0x$WINVER)
804
# Require OS features provided by IE 5.0
805
AC_DEFINE_UNQUOTED(_WIN32_IE,0x0500)
779
# Require OS features provided by IE 6.0 SP2 (XP SP2)
780
AC_DEFINE_UNQUOTED(_WIN32_IE,0x0603)
807
782
# If the maximum version supported by this SDK is lower than the target
808
783
# version, error out
2336
2311
AC_MSG_ERROR([\$MOZ_TOOLS\\bin must be in your path.])
2338
2313
MOZ_TOOLS_DIR=`$CYGPATH_W $MOZ_TOOLS_DIR | $CYGPATH_S`
2340
if test -n "$GLIB_PREFIX"; then
2341
_GLIB_PREFIX_DIR=`cd $GLIB_PREFIX && pwd -W`
2342
if test "$?" = "0"; then
2343
if test `echo ${PATH}: | grep -ic "$_GLIB_PREFIX_DIR/bin:"` = 0; then
2344
AC_MSG_ERROR([GLIB_PREFIX must be in your \$PATH.])
2346
_GLIB_PREFIX_DIR=`$CYGPATH_W $_GLIB_PREFIX_DIR | $CYGPATH_S`
2348
AC_MSG_ERROR([GLIB_PREFIX is set but "${GLIB_PREFIX}" is not a directory.])
2351
_GLIB_PREFIX_DIR=$MOZ_TOOLS_DIR
2353
if test ! -f "${_GLIB_PREFIX_DIR}/include/glib.h"; then
2354
AC_MSG_ERROR([Cannot find $_GLIB_PREFIX_DIR/include/glib.h .])
2356
GLIB_CFLAGS="-I${_GLIB_PREFIX_DIR}/include"
2357
if test -f "${_GLIB_PREFIX_DIR}/lib/glib-1.2_s.lib"; then
2358
GLIB_LIBS="${_GLIB_PREFIX_DIR}/lib/glib-1.2_s.lib"
2359
elif test -f "${_GLIB_PREFIX_DIR}/lib/glib-1.2.lib"; then
2360
GLIB_LIBS="${_GLIB_PREFIX_DIR}/lib/glib-1.2.lib"
2362
AC_MSG_ERROR([Cannot find $_GLIB_PREFIX_DIR/lib/glib-1.2.lib or $_GLIB_PREFIX_DIR/lib/glib-1.2_s.lib])
2366
*) # else cross-compiling
2367
if test -n "$GLIB_PREFIX"; then
2368
GLIB_CFLAGS="-I${GLIB_PREFIX}/include"
2369
if test -f "${GLIB_PREFIX}/lib/glib-1.2_s.lib"; then
2370
GLIB_LIBS="${GLIB_PREFIX}/lib/glib-1.2_s.lib"
2371
elif test -f "${GLIB_PREFIX}/lib/glib-1.2.lib"; then
2372
GLIB_LIBS="${GLIB_PREFIX}/lib/glib-1.2.lib"
2374
AC_MSG_ERROR([Cannot find $GLIB_PREFIX/lib/glib-1.2.lib or $GLIB_PREFIX/lib/glib-1.2_s.lib])
4107
4044
ac_cv_thread_keyword=no)])
4108
4045
LDFLAGS=$_SAVE_LDFLAGS
4109
4046
if test "$ac_cv_thread_keyword" = yes; then
4110
AC_DEFINE(HAVE_THREAD_TLS_KEYWORD)
4047
# mips builds fail with TLS variables because of a binutils bug.
4054
AC_DEFINE(HAVE_THREAD_TLS_KEYWORD)
4113
4059
dnl Check for the existence of various allocation headers/functions
4177
4123
ac_cv_i18n_lc_messages=no)])
4178
4124
if test "$ac_cv_i18n_lc_messages" = yes; then
4179
4125
AC_DEFINE(HAVE_I18N_LC_MESSAGES)
4182
fi # SKIP_COMPILER_CHECKS
4127
fi # ! SKIP_COMPILER_CHECKS
4184
4129
TARGET_XPCOM_ABI=
4185
4130
if test -n "${CPU_ARCH}" -a -n "${TARGET_COMPILER_ABI}"; then
5120
5063
MOZ_JSDEBUGGER=1)
5122
5065
dnl ========================================================
5123
dnl = Disable IPC support for tabs and plugins
5124
dnl ========================================================
5125
MOZ_ARG_DISABLE_BOOL(ipc,
5126
[ --disable-ipc Disable IPC supports for tabs and plugins],
5130
if test -n "$MOZ_IPC"; then
5136
dnl ========================================================
5137
5066
dnl = Disable plugin support
5138
5067
dnl ========================================================
5139
5068
MOZ_ARG_DISABLE_BOOL(plugins,
5185
5114
dnl ========================================================
5186
dnl use native unicode converters
5187
dnl ========================================================
5188
MOZ_ARG_ENABLE_BOOL(native-uconv,
5189
[ --enable-native-uconv Enable iconv support],
5190
MOZ_USE_NATIVE_UCONV=1,
5191
MOZ_USE_NATIVE_UCONV= )
5192
if test "$MOZ_USE_NATIVE_UCONV"; then
5193
AC_DEFINE(MOZ_USE_NATIVE_UCONV)
5195
if test "$OS_ARCH" != "WINCE" -a "$OS_ARCH" != "WINNT" -a "$MOZ_USE_NATIVE_UCONV" -a "$ac_cv_func_iconv" != "yes"; then
5196
AC_MSG_ERROR([iconv() not found. Cannot enable native uconv support.])
5200
dnl ========================================================
5201
5115
dnl Libeditor can be build as plaintext-only,
5202
5116
dnl or as a full html and text editing component.
5203
5117
dnl We build both by default.
5372
5286
if test -n "`echo $MOZ_DIRECTX_SDK_REG_KEY | grep 'February 2010'`" ; then
5373
AC_MSG_WARN([Found the February 2010 DirectX SDK. This is too old. We now require the June 2010 DirectX SDK, or newer.])
5287
AC_MSG_ERROR([Found the February 2010 DirectX SDK. This is too old. We now require the June 2010 DirectX SDK, or newer. Upgrade your SDK or to explicitly build without ANGLE, reconfigure with --disable-angle.])
5375
5289
MOZ_DIRECTX_SDK_PATH=`reg query "$MOZ_DIRECTX_SDK_REG_KEY" //v InstallPath | grep REG_SZ | sed 's/.*\([[a-zA-Z]]\)\\:\\\\/\\1\\:\\\\/'`
5444
5358
dnl ========================================================
5446
dnl ========================================================
5448
MOZ_ARG_DISABLE_BOOL(smil,
5449
[ --disable-smil Disable SMIL animation support],
5453
if test -n "$MOZ_SMIL"; then
5457
dnl ========================================================
5458
5359
dnl Build Freetype in the tree
5459
5360
dnl ========================================================
5460
5361
MOZ_ARG_ENABLE_BOOL(tree-freetype,
6353
6254
dnl ========================================================
6354
dnl Profile guided optimization
6255
dnl Profile guided optimization (gcc checks)
6355
6256
dnl ========================================================
6356
6257
dnl Test for profiling options
6357
6258
dnl Under gcc 3.4+, use -fprofile-generate/-fprofile-use
6359
dnl Provide a switch to disable PGO even when called via profiledbuild.
6360
MOZ_ARG_DISABLE_BOOL(profile-guided-optimization,
6361
[ --disable-profile-guided-optimization
6362
Don't build with PGO even if called via make profiledbuild],
6363
MOZ_PROFILE_GUIDED_OPTIMIZE_DISABLE=1,
6364
MOZ_PROFILE_GUIDED_OPTIMIZE_DISABLE=)
6366
AC_SUBST(MOZ_PROFILE_GUIDED_OPTIMIZE_DISABLE)
6368
6260
_SAVE_CFLAGS="$CFLAGS"
6369
6261
CFLAGS="$CFLAGS -fprofile-generate -fprofile-correction"
6502
6394
if test "$ac_nscap_nonconst_opeq_bug" = "yes" ; then
6503
6395
AC_DEFINE(NSCAP_DONT_PROVIDE_NONCONST_OPEQ)
6505
fi # SKIP_COMPILER_CHECKS
6397
fi # ! SKIP_COMPILER_CHECKS
6507
6399
dnl ========================================================
6508
6400
dnl C++ exceptions (g++/VC/irix6/Sun only - for now)
6940
6830
AC_SUBST(MOZ_MACBUNDLE_NAME)
6832
# For extensions and langpacks, we require a max version that is compatible
6833
# across security releases. MOZ_APP_MAXVERSION is our method for doing that.
6834
# 10.0a1 and 10.0a2 aren't affected
6835
# 10.0 becomes 10.0.*
6836
# 10.0.1 becomes 10.0.*
6837
IS_ALPHA=`echo $MOZ_APP_VERSION | grep a`
6838
if test -z "$IS_ALPHA"; then
6840
MOZ_APP_MAXVERSION=`echo $MOZ_APP_VERSION | sed "s|\(^[0-9]*.[0-9]*\).*|\1|"`.*
6843
MOZ_APP_MAXVERSION=$MOZ_APP_VERSION
6942
6846
AC_SUBST(MOZ_APP_NAME)
6943
6847
AC_SUBST(MOZ_APP_DISPLAYNAME)
6944
6848
AC_SUBST(MOZ_APP_VERSION)
6849
AC_SUBST(MOZ_APP_MAXVERSION)
6945
6850
AC_SUBST(FIREFOX_VERSION)
6946
6851
AC_SUBST(THUNDERBIRD_VERSION)
6947
6852
AC_SUBST(SUNBIRD_VERSION)