Bug 451909 - kill MOZ_XUL_APP now that all apps set it; configure cleanup, comm-central, refreshed; r=bugspam.Callek
--- a/config/autoconf.mk.in
+++ b/config/autoconf.mk.in
@@ -574,17 +574,16 @@ export LIB = @MOZ_LIB@
export PATH = @MOZ_PATH@
DLLFLAGS = @DLLFLAGS@
endif
endif
# Codesighs tools option, enables win32 mapfiles.
MOZ_MAPINFO = @MOZ_MAPINFO@
-MOZ_XUL_APP = @MOZ_XUL_APP@
MOZ_THUNDERBIRD = @MOZ_THUNDERBIRD@
MOZ_STATIC_MAIL_BUILD = @MOZ_STATIC_MAIL_BUILD@
MOZ_SUNBIRD = @MOZ_SUNBIRD@
MOZ_SUITE = @MOZ_SUITE@
WINCE = @WINCE@
MOZ_DISTRIBUTION_ID = @MOZ_DISTRIBUTION_ID@
--- a/configure.in
+++ b/configure.in
@@ -4326,17 +4326,16 @@ MOZ_UNIVERSALCHARDET=1
MOZ_URL_CLASSIFIER=
MOZ_USE_NATIVE_UCONV=
MOZ_VIEW_SOURCE=1
MOZ_XPFE_COMPONENTS=1
MOZ_XPINSTALL=1
MOZ_XSLT_STANDALONE=
MOZ_XTF=1
MOZ_XUL=1
-MOZ_XUL_APP=1
MOZ_ZIPWRITER=1
NS_PRINTING=1
JS_STATIC_BUILD=
XPC_IDISPATCH_SUPPORT=
case "$target_os" in
darwin*)
@@ -4508,23 +4507,16 @@ fi
# Now is a good time to test for logic errors, define mismatches, etc.
case "$MOZ_BUILD_APP" in
xulrunner)
if test "$LIBXUL_SDK"; then
AC_MSG_ERROR([Building XULRunner --with-libxul-sdk doesn't make sense; XULRunner provides the libxul SDK.])
fi
;;
-*)
- # Fix this case for folks who forget. Warn them.
- if test -n "$LIBXUL_SDK" -a -z "$MOZ_XUL_APP"; then
- AC_MSG_WARN([Setting MOZ_XUL_APP since LIBXUL_SDK was set. Add to confvars.sh!])
- MOZ_XUL_APP=1
- fi
- ;;
esac
# Special cases where we need to AC_DEFINE something. Also a holdover for apps
# that haven't made a confvars.sh yet. Don't add new stuff here, use
# MOZ_BUILD_APP.
case "$MOZ_BUILD_APP" in
suite)
AC_DEFINE(MOZ_SUITE)
@@ -4536,27 +4528,22 @@ mail)
calendar)
AC_DEFINE(MOZ_SUNBIRD)
;;
esac
AC_SUBST(MOZ_BUILD_APP)
-AC_SUBST(MOZ_XUL_APP)
AC_SUBST(MOZ_SUITE)
AC_SUBST(MOZ_THUNDERBIRD)
AC_SUBST(MOZ_SUNBIRD)
AC_DEFINE_UNQUOTED(MOZ_BUILD_APP,$MOZ_BUILD_APP)
-if test "$MOZ_XUL_APP"; then
- AC_DEFINE(MOZ_XUL_APP)
-fi
-
dnl ========================================================
dnl =
dnl = Toolkit Options
dnl =
dnl ========================================================
MOZ_ARG_HEADER(Toolkit Options)
dnl ========================================================
@@ -5292,17 +5279,17 @@ case "$target_os" in
MOZ_INSTALLER=1
;;
esac
MOZ_ARG_DISABLE_BOOL(installer,
[ --disable-installer Disable building of installer],
MOZ_INSTALLER=,
MOZ_INSTALLER=1 )
-if test -n "$MOZ_INSTALLER" -a -n "$MOZ_XUL_APP" -a "$OS_ARCH" = "WINNT"; then
+if test -n "$MOZ_INSTALLER" -a "$OS_ARCH" = "WINNT"; then
# Disable installer for Windows builds that use the new toolkit if NSIS
# isn't in the path.
AC_PATH_PROGS(MAKENSIS, makensis)
if test -z "$MAKENSIS" || test "$MAKENSIS" = ":"; then
AC_MSG_ERROR([To build the installer makensis is required in your path. To build without the installer reconfigure using --disable-installer.])
fi
# The Windows build for NSIS requires the iconv command line utility to
# convert the charset of the locale files.
@@ -6655,20 +6642,16 @@ MOZ_ARG_ENABLE_BOOL(libxul,
[ --enable-libxul Enable building of libxul],
MOZ_ENABLE_LIBXUL=1,
MOZ_ENABLE_LIBXUL=)
if test -n "$MOZ_ENABLE_LIBXUL" -a -n "$BUILD_STATIC_LIBS"; then
AC_MSG_ERROR([--enable-libxul is not compatible with --enable-static])
fi
-if test -n "$MOZ_ENABLE_LIBXUL" -a -z "$MOZ_XUL_APP"; then
- AC_MSG_ERROR([--enable-libxul is only compatible with toolkit XUL applications.])
-fi
-
if test -n "$MOZ_ENABLE_LIBXUL"; then
XPCOM_LIBS="$LIBXUL_LIBS"
AC_DEFINE(MOZ_ENABLE_LIBXUL)
else
if test -n "$BUILD_STATIC_LIBS"; then
AC_DEFINE(MOZ_STATIC_BUILD)
fi
XPCOM_LIBS="$DYNAMIC_XPCOM_LIBS"