зеркало из https://github.com/mozilla/pjs.git
Fix tests so that they do the right thing when both --enable & --disable are given for the same option.
Fix Description column alignment. Otherwise completely and utterly destroy cvs blame usefulness.
This commit is contained in:
Родитель
d3743a35e8
Коммит
ada09352ff
298
configure.in
298
configure.in
|
@ -3042,7 +3042,14 @@ MOZ_ARG_HEADER(Toolkit Options)
|
|||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_STRING(default-toolkit,
|
||||
[ --enable-default-toolkit=TK
|
||||
Select default toolkit (default=<platform specific>)],
|
||||
Select default toolkit
|
||||
Platform specific defaults:
|
||||
BeOS - beos
|
||||
Mac OS X - mac (carbon)
|
||||
Neutrino/QNX - photon
|
||||
OS/2 - os2
|
||||
Win32 - windows
|
||||
* - gtk],
|
||||
[ _DEFAULT_TOOLKIT=$enableval ],
|
||||
[ _DEFAULT_TOOLKIT=$_PLATFORM_DEFAULT_TOOLKIT])
|
||||
|
||||
|
@ -3203,7 +3210,8 @@ dnl =========================================================
|
|||
MOZ_LDAP_XPCOM=1
|
||||
MOZ_ARG_DISABLE_BOOL(ldap,
|
||||
[ --disable-ldap Disable LDAP support],
|
||||
MOZ_LDAP_XPCOM=)
|
||||
MOZ_LDAP_XPCOM=,
|
||||
MOZ_LDAP_XPCOM=1)
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Phoenix
|
||||
|
@ -3223,7 +3231,8 @@ dnl = FreeType2
|
|||
dnl ========================================================
|
||||
MOZ_ARG_DISABLE_BOOL(freetype2,
|
||||
[ --disable-freetype2 Disable FreeType2 support ],
|
||||
_NO_FREETYPE2=1 )
|
||||
_NO_FREETYPE2=1,
|
||||
_NO_FREETYPE2= )
|
||||
|
||||
if test "$no_x" = "yes"; then
|
||||
_NO_FREETYPE2=1
|
||||
|
@ -3240,12 +3249,12 @@ dnl = Xft
|
|||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(xft,
|
||||
[ --enable-xft Enable Xft support ],
|
||||
MOZ_ENABLE_XFT=1
|
||||
AC_DEFINE(MOZ_ENABLE_XFT)
|
||||
)
|
||||
MOZ_ENABLE_XFT=1,
|
||||
MOZ_ENABLE_XFT= )
|
||||
|
||||
if test "$MOZ_ENABLE_XFT"
|
||||
then
|
||||
AC_DEFINE(MOZ_ENABLE_XFT)
|
||||
PKG_CHECK_MODULES(MOZ_XFT, xft)
|
||||
if test "$MOZ_ENABLE_GTK2"; then
|
||||
PKG_CHECK_MODULES(_PANGOCHK, pango >= 1.1.0)
|
||||
|
@ -3337,7 +3346,8 @@ dnl ========================================================
|
|||
MOZ_JSDEBUGGER=1
|
||||
MOZ_ARG_DISABLE_BOOL(jsd,
|
||||
[ --disable-jsd Disable JavaScript debug library],
|
||||
MOZ_JSDEBUGGER=)
|
||||
MOZ_JSDEBUGGER=,
|
||||
MOZ_JSDEBUGGER=1)
|
||||
|
||||
|
||||
dnl ========================================================
|
||||
|
@ -3350,11 +3360,14 @@ dnl ========================================================
|
|||
MOZ_ARG_ENABLE_BOOL(xinerama,
|
||||
[ --enable-xinerama Enable Xinerama support
|
||||
( not safe for Red Hat 7.0 ) ],
|
||||
[ if test -n "$MOZ_XINERAMA_LIBS" && \
|
||||
test -n "$ac_cv_header_X11_extensions_Xinerama_h"; then
|
||||
_ENABLE_XINERAMA=1,
|
||||
_ENABLE_XINERAMA= )
|
||||
|
||||
if test -n "$_ENABLE_XINERAMA" -a -n "$MOZ_XINERAMA_LIBS" -a \
|
||||
-n "$ac_cv_header_X11_extensions_Xinerama_h"; then
|
||||
MOZ_ENABLE_XINERAMA=1
|
||||
AC_DEFINE(MOZ_ENABLE_XINERAMA)
|
||||
fi ])
|
||||
fi
|
||||
|
||||
dnl bi-directional support always on
|
||||
IBMBIDI=1
|
||||
|
@ -3375,7 +3388,8 @@ dnl ========================================================
|
|||
ACCESSIBILITY=1
|
||||
MOZ_ARG_DISABLE_BOOL(accessibility,
|
||||
[ --disable-accessibility Disable accessibility support],
|
||||
ACCESSIBILITY= )
|
||||
ACCESSIBILITY=,
|
||||
ACCESSIBILITY=1 )
|
||||
if test "$ACCESSIBILITY"; then
|
||||
AC_DEFINE(ACCESSIBILITY)
|
||||
fi
|
||||
|
@ -3385,16 +3399,19 @@ dnl xpfe/components on by default
|
|||
dnl ========================================================
|
||||
MOZ_XPFE_COMPONENTS=1
|
||||
MOZ_ARG_DISABLE_BOOL(xpfe-components,
|
||||
[ --disable-xpfe-components Disable xpfe components],
|
||||
MOZ_XPFE_COMPONENTS= )
|
||||
[ --disable-xpfe-components
|
||||
Disable xpfe components],
|
||||
MOZ_XPFE_COMPONENTS=,
|
||||
MOZ_XPFE_COMPONENTS=1 )
|
||||
|
||||
dnl ========================================================
|
||||
dnl xpinstall support on by default
|
||||
dnl ========================================================
|
||||
MOZ_XPINSTALL=1
|
||||
MOZ_ARG_DISABLE_BOOL(xpinstall,
|
||||
[ --disable-xpinstall Disable xpinstall support],
|
||||
MOZ_XPINSTALL= )
|
||||
[ --disable-xpinstall Disable xpinstall support],
|
||||
MOZ_XPINSTALL=,
|
||||
MOZ_XPINSTALL=1 )
|
||||
if test "$MOZ_XPINSTALL"; then
|
||||
AC_DEFINE(MOZ_XPINSTALL)
|
||||
fi
|
||||
|
@ -3413,8 +3430,9 @@ dnl xpcom js loader support on by default
|
|||
dnl ========================================================
|
||||
MOZ_JSLOADER=1
|
||||
MOZ_ARG_DISABLE_BOOL(jsloader,
|
||||
[ --disable-jsloader Disable xpcom js loader support],
|
||||
MOZ_JSLOADER= )
|
||||
[ --disable-jsloader Disable xpcom js loader support],
|
||||
MOZ_JSLOADER=,
|
||||
MOZ_JSLOADER=1 )
|
||||
if test "$MOZ_JSLOADER"; then
|
||||
AC_DEFINE(MOZ_JSLOADER)
|
||||
fi
|
||||
|
@ -3424,8 +3442,9 @@ dnl use native unicode converters
|
|||
dnl ========================================================
|
||||
MOZ_USE_NATIVE_UCONV=
|
||||
MOZ_ARG_ENABLE_BOOL(native-uconv,
|
||||
[ --enable-native-uconv enable iconv support],
|
||||
MOZ_USE_NATIVE_UCONV=1 )
|
||||
[ --enable-native-uconv Enable iconv support],
|
||||
MOZ_USE_NATIVE_UCONV=1,
|
||||
MOZ_USE_NATIVE_UCONV= )
|
||||
if test "$MOZ_USE_NATIVE_UCONV"; then
|
||||
AC_DEFINE(MOZ_USE_NATIVE_UCONV)
|
||||
fi
|
||||
|
@ -3440,7 +3459,8 @@ MOZ_PLAINTEXT_EDITOR_ONLY=
|
|||
MOZ_ARG_ENABLE_BOOL(plaintext-editor-only,
|
||||
[ --enable-plaintext-editor-only
|
||||
Allow only plaintext editing],
|
||||
MOZ_PLAINTEXT_EDITOR_ONLY=1 )
|
||||
MOZ_PLAINTEXT_EDITOR_ONLY=1,
|
||||
MOZ_PLAINTEXT_EDITOR_ONLY= )
|
||||
dnl Note the #define is MOZILLA, not MOZ, for compat with the Mac build.
|
||||
AC_SUBST(MOZ_PLAINTEXT_EDITOR_ONLY)
|
||||
|
||||
|
@ -3450,7 +3470,8 @@ dnl ========================================================
|
|||
MOZ_COMPOSER=1
|
||||
MOZ_ARG_DISABLE_BOOL(composer,
|
||||
[ --disable-composer Disable building of Composer],
|
||||
MOZ_COMPOSER= )
|
||||
MOZ_COMPOSER=,
|
||||
MOZ_COMPOSER=1 )
|
||||
AC_SUBST(MOZ_COMPOSER)
|
||||
|
||||
dnl ========================================================
|
||||
|
@ -3554,15 +3575,17 @@ dnl ========================================================
|
|||
MOZ_ARG_ENABLE_BOOL(ldap-experimental,
|
||||
[ --enable-ldap-experimental
|
||||
Enable LDAP experimental features],
|
||||
MOZ_LDAP_XPCOM_EXPERIMENTAL=1)
|
||||
MOZ_LDAP_XPCOM_EXPERIMENTAL=1,
|
||||
MOZ_LDAP_XPCOM_EXPERIMENTAL=)
|
||||
|
||||
dnl ========================================================
|
||||
dnl MathML on by default
|
||||
dnl ========================================================
|
||||
MOZ_MATHML=1
|
||||
MOZ_ARG_DISABLE_BOOL(mathml,
|
||||
[ --disable-mathml Disable MathML],
|
||||
MOZ_MATHML= )
|
||||
[ --disable-mathml Disable MathML support],
|
||||
MOZ_MATHML=,
|
||||
MOZ_MATHML=1 )
|
||||
if test "$MOZ_MATHML"; then
|
||||
AC_DEFINE(MOZ_MATHML)
|
||||
fi
|
||||
|
@ -3571,9 +3594,12 @@ dnl ========================================================
|
|||
dnl SVG
|
||||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(svg,
|
||||
[ --enable-svg Enable SVG ],
|
||||
MOZ_SVG=1
|
||||
AC_DEFINE(MOZ_SVG))
|
||||
[ --enable-svg Enable SVG support],
|
||||
MOZ_SVG=1,
|
||||
MOZ_SVG= )
|
||||
if test -n "$MOZ_SVG"; then
|
||||
AC_DEFINE(MOZ_SVG)
|
||||
fi
|
||||
|
||||
dnl To build transformiix standalone, set TX_EXE while configuring
|
||||
if test "$TX_EXE"; then
|
||||
|
@ -3593,6 +3619,10 @@ MOZ_ARG_DISABLE_BOOL(installer,
|
|||
[ --disable-installer Disable building of installer],
|
||||
MOZ_INSTALLER=,
|
||||
MOZ_INSTALLER=1 )
|
||||
# Automatically disable installer if xpinstall isn't built
|
||||
if test -z "$MOZ_XPINSTALL"; then
|
||||
MOZ_INSTALLER=
|
||||
fi
|
||||
AC_SUBST(MOZ_INSTALLER)
|
||||
|
||||
dnl ========================================================
|
||||
|
@ -3617,7 +3647,8 @@ MOZ_ACTIVEX_SCRIPTING_SUPPORT=
|
|||
if test -n "$_WIN32_MSVC"; then
|
||||
MOZ_ARG_ENABLE_BOOL(activex-scripting,
|
||||
[ --enable-activex-scripting
|
||||
Enable building of ActiveX scripting and plugin support (win32 only)],
|
||||
Enable building of ActiveX scripting
|
||||
and plugin support (win32 only)],
|
||||
MOZ_ACTIVEX_SCRIPTING_SUPPORT=1,
|
||||
MOZ_ACTIVEX_SCRIPTING_SUPPORT=)
|
||||
fi
|
||||
|
@ -3629,13 +3660,32 @@ then
|
|||
fi
|
||||
|
||||
|
||||
dnl ========================================================
|
||||
dnl leaky
|
||||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(leaky,
|
||||
[ --enable-leaky Build leaky memory tool],
|
||||
MOZ_LEAKY=1,
|
||||
MOZ_LEAKY=)
|
||||
|
||||
|
||||
dnl ========================================================
|
||||
dnl xpctools
|
||||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(xpctools,
|
||||
[ --enable-xpctools Build JS profiling tool],
|
||||
MOZ_XPCTOOLS=1,
|
||||
MOZ_XPCTOOLS= )
|
||||
|
||||
|
||||
dnl ========================================================
|
||||
dnl build the tests by default
|
||||
dnl ========================================================
|
||||
ENABLE_TESTS=1
|
||||
MOZ_ARG_DISABLE_BOOL(tests,
|
||||
[ --disable-tests Do not build test libraries & programs],
|
||||
ENABLE_TESTS= )
|
||||
ENABLE_TESTS=,
|
||||
ENABLE_TESTS=1 )
|
||||
|
||||
dnl ========================================================
|
||||
dnl =
|
||||
|
@ -3648,25 +3698,26 @@ dnl ========================================================
|
|||
dnl = Enable Lea malloc in xpcom. OFF by default.
|
||||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(xpcom-lea,
|
||||
[ --enable-xpcom-lea Enable Lea malloc in xpcom ],
|
||||
[ XPCOM_USE_LEA=1
|
||||
AC_DEFINE(XPCOM_USE_LEA)])
|
||||
[ --enable-xpcom-lea Use Lea malloc in xpcom ],
|
||||
XPCOM_USE_LEA=1,
|
||||
XPCOM_USE_LEA= )
|
||||
if test -n "$XPCOM_USE_LEA"; then
|
||||
AC_DEFINE(XPCOM_USE_LEA)
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Enable Ultrasparc specific optimizations for JS
|
||||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(js-ultrasparc,
|
||||
[ --enable-js-ultrasparc Enable UltraSPARC optimizations in JS],
|
||||
[case "$target_os" in
|
||||
solaris*)
|
||||
case $OS_TEST in
|
||||
sun4u)
|
||||
JS_ULTRASPARC_OPTS=1
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
])
|
||||
[ --enable-js-ultrasparc Use UltraSPARC optimizations in JS],
|
||||
JS_ULTRASPARC_OPTS=1,
|
||||
JS_ULTRASPARC_OPTS= )
|
||||
|
||||
dnl only enable option for ultrasparcs
|
||||
if test `echo "$target_os" | grep -c \^solaris 2>/dev/null` = 0 -o \
|
||||
"$OS_TEST" != "sun4u"; then
|
||||
JS_ULTRASPARC_OPTS=
|
||||
fi
|
||||
AC_SUBST(JS_ULTRASPARC_OPTS)
|
||||
|
||||
dnl ========================================================
|
||||
|
@ -3674,29 +3725,7 @@ dnl =
|
|||
dnl = Feature options that require extra sources to be pulled
|
||||
dnl =
|
||||
dnl ========================================================
|
||||
MOZ_ARG_HEADER(Features that require extra sources)
|
||||
|
||||
dnl ========================================================
|
||||
dnl mozilla/tools/leaky not part of default build.
|
||||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(leaky,
|
||||
[ --enable-leaky Enable leaky memory tool (needs mozilla/tools/leaky)],
|
||||
MOZ_LEAKY=1)
|
||||
|
||||
dnl ========================================================
|
||||
dnl mozilla/tools/jprof not part of default build.
|
||||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(jprof,
|
||||
[ --enable-jprof Enable jprof profiling tool (needs mozilla/tools/jprof)],
|
||||
MOZ_JPROF=1
|
||||
AC_DEFINE(MOZ_JPROF))
|
||||
|
||||
dnl ========================================================
|
||||
dnl mozilla/js/src/xpconnect/tools is not part of default build.
|
||||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(xpctools,
|
||||
[ --enable-xpctools Build JS profiling tool (needs mozilla/js/src/xpconnect/tools)],
|
||||
MOZ_XPCTOOLS=1)
|
||||
dnl MOZ_ARG_HEADER(Features that require extra sources)
|
||||
|
||||
dnl ========================================================
|
||||
dnl =
|
||||
|
@ -3816,23 +3845,30 @@ dnl ========================================================
|
|||
MOZ_DISABLE_DTD_DEBUG=
|
||||
MOZ_ARG_DISABLE_BOOL(dtd-debug,
|
||||
[ --disable-dtd-debug Disable DTD debugging code in the parser],
|
||||
MOZ_DISABLE_DTD_DEBUG=1
|
||||
AC_DEFINE(MOZ_DISABLE_DTD_DEBUG) )
|
||||
MOZ_DISABLE_DTD_DEBUG=1,
|
||||
MOZ_DISABLE_DTD_DEBUG= )
|
||||
if test -n "$MOZ_DISABLE_DTD_DEBUG"; then
|
||||
AC_DEFINE(MOZ_DISABLE_DTD_DEBUG)
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl Enable garbage collector
|
||||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(boehm,
|
||||
[ --enable-boehm Enable the Boehm Garbage Collector],
|
||||
GC_LEAK_DETECTOR=1,
|
||||
GC_LEAK_DETECTOR= )
|
||||
if test -n "$GC_LEAK_DETECTOR"; then
|
||||
AC_DEFINE(GC_LEAK_DETECTOR)
|
||||
GC_LEAK_DETECTOR=1)
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl Disable runtime logging checks
|
||||
dnl ========================================================
|
||||
MOZ_ARG_DISABLE_BOOL(logging,
|
||||
[ --disable-logging Disable logging facilities],
|
||||
NS_DISABLE_LOGGING=1)
|
||||
NS_DISABLE_LOGGING=1,
|
||||
NS_DISABLE_LOGGING= )
|
||||
if test "$NS_DISABLE_LOGGING"; then
|
||||
AC_DEFINE(NS_DISABLE_LOGGING)
|
||||
else
|
||||
|
@ -3845,7 +3881,11 @@ dnl ========================================================
|
|||
MOZ_ARG_ENABLE_BOOL(crash-on-assert,
|
||||
[ --enable-crash-on-assert
|
||||
Make NS_ASSERTION crash on Unix],
|
||||
AC_DEFINE(UNIX_CRASH_ON_ASSERT))
|
||||
_CRASH_ON_ASSERT=1,
|
||||
_CRASH_ON_ASSERT= )
|
||||
if test "$_CRASH_ON_ASSERT"; then
|
||||
AC_DEFINE(UNIX_CRASH_ON_ASSERT)
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Enable function reordering. Off by default
|
||||
|
@ -3853,19 +3893,29 @@ dnl ========================================================
|
|||
MOZ_REORDER=
|
||||
MOZ_ARG_ENABLE_BOOL(reorder,
|
||||
[ --enable-reorder Enable function reordering (requires GNU ld) ],
|
||||
[ if test -z "$GNU_LD"; then
|
||||
AC_MSG_WARN([Reordering only works with GNU ld. Not reordering.])
|
||||
else
|
||||
MOZ_REORDER=1
|
||||
fi])
|
||||
_ENABLE_REORDER=1,
|
||||
_ENABLE_REORDER= )
|
||||
if test -n "$_ENABLE_REORDER"; then
|
||||
if test -z "$GNU_LD"; then
|
||||
AC_MSG_WARN([Reordering only works with GNU ld. Not reordering.])
|
||||
else
|
||||
MOZ_REORDER=1
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl = dnl This will enable logging of addref, release, ctor, dtor.
|
||||
dnl ========================================================
|
||||
_ENABLE_LOGREFCNT=42
|
||||
MOZ_ARG_ENABLE_BOOL(logrefcnt,
|
||||
[ --enable-logrefcnt Enable logging of refcounts (default=debug) ],
|
||||
AC_DEFINE(FORCE_BUILD_REFCNT_LOGGING),
|
||||
AC_DEFINE(NO_BUILD_REFCNT_LOGGING))
|
||||
_ENABLE_LOGREFCNT=1,
|
||||
_ENABLE_LOGREFCNT= )
|
||||
if test "$_ENABLE_LOGREFCNT" = "1"; then
|
||||
AC_DEFINE(FORCE_BUILD_REFCNT_LOGGING)
|
||||
elif test -z "$_ENABLE_LOGREFCNT"; then
|
||||
AC_DEFINE(NO_BUILD_REFCNT_LOGGING)
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl = detect webshell leaks
|
||||
|
@ -3874,7 +3924,8 @@ MOZ_ARG_ENABLE_BOOL(detect-webshell-leaks,
|
|||
[ --enable-detect-webshell-leaks
|
||||
Enable detection of webshell leaks
|
||||
(default=debug)],
|
||||
_DETECT_WEBSHELL_LEAKS=1 , ,
|
||||
_DETECT_WEBSHELL_LEAKS=1,
|
||||
_DETECT_WEBSHELL_LEAKS=,
|
||||
[ if test "$MOZ_DEBUG"; then
|
||||
_DETECT_WEBSHELL_LEAKS=1
|
||||
fi])
|
||||
|
@ -3889,10 +3940,15 @@ dnl = Use malloc wrapper lib
|
|||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(wrap-malloc,
|
||||
[ --enable-wrap-malloc Wrap malloc calls (gnu linker only)],
|
||||
[ if test "$GNU_CC"; then
|
||||
_WRAP_MALLOC=1,
|
||||
_WRAP_MALLOC= )
|
||||
|
||||
if test -n "$_WRAP_MALLOC"; then
|
||||
if test "$GNU_CC"; then
|
||||
WRAP_MALLOC_CFLAGS="${LDFLAGS} -Wl,--wrap -Wl,malloc -Wl,--wrap -Wl,free -Wl,--wrap -Wl,realloc -Wl,--wrap -Wl,__builtin_new -Wl,--wrap -Wl,__builtin_vec_new -Wl,--wrap -Wl,__builtin_delete -Wl,--wrap -Wl,__builtin_vec_delete -Wl,--wrap -Wl,PR_Free -Wl,--wrap -Wl,PR_Malloc -Wl,--wrap -Wl,PR_Calloc -Wl,--wrap -Wl,PR_Realloc"
|
||||
MKSHLIB='$(CXX) $(DSO_LDOPTS) $(WRAP_MALLOC_CFLAGS) -o $@'
|
||||
fi])
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Location of malloc wrapper lib
|
||||
|
@ -3906,14 +3962,31 @@ dnl = Use Electric Fence
|
|||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(efence,
|
||||
[ --enable-efence Link with Electric Fence],
|
||||
AC_CHECK_LIB(efence,malloc))
|
||||
_ENABLE_EFENCE=1,
|
||||
_ENABLE_EFENCE= )
|
||||
if test -n "$_ENABLE_EFENCE"; then
|
||||
AC_CHECK_LIB(efence,malloc)
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl jprof
|
||||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(jprof,
|
||||
[ --enable-jprof Enable jprof profiling tool (needs mozilla/tools/jprof)],
|
||||
MOZ_JPROF=1,
|
||||
MOZ_JPROF= )
|
||||
if test -n "$MOZ_JPROF"; then
|
||||
AC_DEFINE(MOZ_JPROF)
|
||||
fi
|
||||
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Enable stripping of libs & executables
|
||||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(strip,
|
||||
[ --enable-strip Enable stripping of libs & executables ],
|
||||
ENABLE_STRIP=1)
|
||||
ENABLE_STRIP=1,
|
||||
ENABLE_STRIP= )
|
||||
|
||||
dnl ========================================================
|
||||
dnl = --enable-elf-dynstr-gc
|
||||
|
@ -3936,7 +4009,9 @@ dnl to true on x86 linux, and false everywhere else.
|
|||
dnl
|
||||
|
||||
MOZ_ARG_ENABLE_BOOL(old-abi-compat-wrappers,
|
||||
[ --enable-old-abi-compat-wrappers Support old GCC ABI symbols to ease the pain of the linux compiler change],
|
||||
[ --enable-old-abi-compat-wrappers
|
||||
Support old GCC ABI symbols to ease the pain
|
||||
of the linux compiler change],
|
||||
MOZ_ENABLE_OLD_ABI_COMPAT_WRAPPERS=1,
|
||||
MOZ_ENABLE_OLD_ABI_COMPAT_WRAPPERS= )
|
||||
if test "$MOZ_ENABLE_OLD_ABI_COMPAT_WRAPPERS"; then
|
||||
|
@ -3970,8 +4045,11 @@ dnl ========================================================
|
|||
MOZ_TIMELINE=
|
||||
MOZ_ARG_ENABLE_BOOL(timeline,
|
||||
[ --enable-timeline Enable timeline services ],
|
||||
MOZ_TIMELINE=1,
|
||||
MOZ_TIMELINE= )
|
||||
if test -n "$MOZ_TIMELINE"; then
|
||||
AC_DEFINE(MOZ_TIMELINE)
|
||||
MOZ_TIMELINE=1)
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl Turn on reflow counting
|
||||
|
@ -3979,8 +4057,11 @@ dnl ========================================================
|
|||
MOZ_REFLOW_PERF=
|
||||
MOZ_ARG_ENABLE_BOOL(reflow-perf,
|
||||
[ --enable-reflow-perf Enable reflow performance tracing],
|
||||
MOZ_REFLOW_PERF=1
|
||||
AC_DEFINE(MOZ_REFLOW_PREF) )
|
||||
MOZ_REFLOW_PERF=1,
|
||||
MOZ_REFLOW_PERF= )
|
||||
if test -n "$MOZ_REFLOW_PREF"; then
|
||||
AC_DEFINE(MOZ_REFLOW_PREF)
|
||||
fi
|
||||
AC_SUBST(MOZ_REFLOW_PERF)
|
||||
|
||||
dnl ========================================================
|
||||
|
@ -3988,19 +4069,26 @@ dnl Enable performance metrics.
|
|||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(perf-metrics,
|
||||
[ --enable-perf-metrics Enable performance metrics],
|
||||
MOZ_PERF_METRICS=1
|
||||
AC_DEFINE(MOZ_PERF_METRICS))
|
||||
MOZ_PERF_METRICS=1,
|
||||
MOZ_PERF_METRICS= )
|
||||
if test -n "$MOZ_PERF_METRICS"; then
|
||||
AC_DEFINE(MOZ_PERF_METRICS)
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl Enable code size metrics.
|
||||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(codesighs,
|
||||
[ --enable-codesighs Enable code size analysis tools],
|
||||
[ if test -d $srcdir/tools/codesighs; then
|
||||
MOZ_MAPINFO=1
|
||||
else
|
||||
AC_MSG_ERROR([Codesighs directory ./tools/codesighs required.])
|
||||
fi])
|
||||
_ENABLE_CODESIGHS=1,
|
||||
_ENABLE_CODESIGHS= )
|
||||
if test -n "$_ENABLE_CODESIGHS"; then
|
||||
if test -d $srcdir/tools/codesighs; then
|
||||
MOZ_MAPINFO=1
|
||||
else
|
||||
AC_MSG_ERROR([Codesighs directory $srcdir/tools/codesighs required.])
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Enable trace malloc
|
||||
|
@ -4008,7 +4096,8 @@ dnl ========================================================
|
|||
NS_TRACE_MALLOC=${MOZ_TRACE_MALLOC}
|
||||
MOZ_ARG_ENABLE_BOOL(trace-malloc,
|
||||
[ --enable-trace-malloc Enable malloc tracing],
|
||||
NS_TRACE_MALLOC=1 )
|
||||
NS_TRACE_MALLOC=1,
|
||||
NS_TRACE_MALLOC= )
|
||||
if test "$NS_TRACE_MALLOC"; then
|
||||
# Please, Mr. Linker Man, don't take away our symbol names
|
||||
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS=
|
||||
|
@ -4023,12 +4112,15 @@ dnl ========================================================
|
|||
MOZ_ARG_ENABLE_BOOL(eazel-profiler-support,
|
||||
[ --enable-eazel-profiler-support
|
||||
Enable Corel/Eazel profiler support],
|
||||
ENABLE_EAZEL_PROFILER=1
|
||||
ENABLE_EAZEL_PROFILER=1,
|
||||
ENABLE_EAZEL_PROFILER= )
|
||||
if test -n "$ENABLE_EAZEL_PROFILER"; then
|
||||
AC_DEFINE(ENABLE_EAZEL_PROFILER)
|
||||
USE_ELF_DYNSTR_GC=
|
||||
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS=
|
||||
EAZEL_PROFILER_CFLAGS="-g -O -gdwarf-2 -finstrument-functions -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
|
||||
EAZEL_PROFILER_LIBS="-lprofiler -lpthread")
|
||||
EAZEL_PROFILER_LIBS="-lprofiler -lpthread"
|
||||
fi
|
||||
|
||||
MOZ_ARG_ENABLE_STRING(profile-modules,
|
||||
[ --enable-profile-modules
|
||||
|
@ -4037,7 +4129,14 @@ MOZ_ARG_ENABLE_STRING(profile-modules,
|
|||
|
||||
MOZ_ARG_ENABLE_BOOL(insure,
|
||||
[ --enable-insure Enable insure++ instrumentation (linux only)],
|
||||
[ MOZ_INSURE="insure" MOZ_INSURIFYING=1 MOZ_INSURE_DIRS="." MOZ_INSURE_EXCLUDE_DIRS="config" ])
|
||||
_ENABLE_INSURE=1,
|
||||
_ENABLE_INSURE= )
|
||||
if test -n "$_ENABLE_INSURE"; then
|
||||
MOZ_INSURE="insure"
|
||||
MOZ_INSURIFYING=1
|
||||
MOZ_INSURE_DIRS="."
|
||||
MOZ_INSURE_EXCLUDE_DIRS="config"
|
||||
fi
|
||||
|
||||
MOZ_ARG_WITH_STRING(insure-dirs,
|
||||
[ --with-insure-dirs=DIRS
|
||||
|
@ -4099,7 +4198,8 @@ dnl update xterm title
|
|||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(xterm-updates,
|
||||
[ --enable-xterm-updates Update XTERM titles with current command.],
|
||||
MOZ_UPDATE_XTERM=1)
|
||||
MOZ_UPDATE_XTERM=1,
|
||||
MOZ_UPDATE_XTERM= )
|
||||
|
||||
dnl =========================================================
|
||||
dnl = Chrome format
|
||||
|
|
Загрузка…
Ссылка в новой задаче