author | Mitchell Field <mitchell.field@live.com.au> |
Wed, 26 Jan 2011 07:14:30 +1100 | |
changeset 63450 | 261f1a85206a2cc3ddc483d6d86e388c3c6ca1c6 |
parent 60991 | 4f4c88ce0fe16e72c37cdc1f49d069c281aa470f |
child 63451 | 86c69ae84c4c278d055ce38c5749aa812da52816 |
child 63453 | db0fc32b2dc9cc96801a05b8545aca78e3fe8f8b |
push id | 19231 |
push user | khuey@kylehuey.com |
push date | Wed, 23 Mar 2011 00:22:04 +0000 |
treeherder | mozilla-central@57a0f8967cce [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | khuey |
bugs | 462361 |
milestone | 2.0b10pre |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
Makefile.in | file | annotate | diff | comparison | revisions | |
build/cygwin-wrapper | file | annotate | diff | comparison | revisions | |
config/autoconf.mk.in | file | annotate | diff | comparison | revisions | |
config/config.mk | file | annotate | diff | comparison | revisions | |
config/rules.mk | file | annotate | diff | comparison | revisions | |
configure.in | file | annotate | diff | comparison | revisions | |
js/src/build/cygwin-wrapper | file | annotate | diff | comparison | revisions | |
js/src/config.mk | file | annotate | diff | comparison | revisions | |
js/src/config/autoconf.mk.in | file | annotate | diff | comparison | revisions | |
js/src/config/config.mk | file | annotate | diff | comparison | revisions | |
js/src/config/rules.mk | file | annotate | diff | comparison | revisions | |
js/src/configure.in | file | annotate | diff | comparison | revisions |
--- a/Makefile.in +++ b/Makefile.in @@ -129,24 +129,20 @@ endif include $(topsrcdir)/config/rules.mk distclean:: cat unallmakefiles | $(XARGS) rm -f rm -f unallmakefiles $(DIST_GARBAGE) ifeq ($(OS_ARCH),WINNT) # we want to copy PDB files on Windows -MAKE_SYM_STORE_ARGS := -c +MAKE_SYM_STORE_ARGS := -c --vcs-info ifdef PDBSTR_PATH MAKE_SYM_STORE_ARGS += -i endif -ifeq (,$(CYGWIN_WRAPPER)) -# this doesn't work with Cygwin Python -MAKE_SYM_STORE_ARGS += --vcs-info -endif DUMP_SYMS_BIN ?= $(topsrcdir)/toolkit/crashreporter/tools/win32/dump_syms_vc$(_MSC_VER).exe # PDB files don't get moved to dist, so we need to scan the whole objdir MAKE_SYM_STORE_PATH := . endif ifeq ($(OS_ARCH),Darwin) # need to pass arch flags for universal builds ifdef UNIVERSAL_BINARY MAKE_SYM_STORE_ARGS := -c -a "i386 x86_64" --vcs-info
deleted file mode 100755 --- a/build/cygwin-wrapper +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/sh -# -# Stupid wrapper to avoid win32 dospath/cygdrive issues -# Try not to spawn programs from within this file. If the stuff in here looks royally -# confusing, see bug: http://bugzilla.mozilla.org/show_bug.cgi?id=206643 -# and look at the older versions of this file that are easier to read, but -# do basically the same thing -# - -prog=$1 -shift -if test -z "$prog"; then - exit 0 -fi - -# If $CYGDRIVE_MOUNT was not set in configure, give $mountpoint the results of mount -p -mountpoint=$CYGDRIVE_MOUNT -if test -z "$mountpoint"; then - mountpoint=`mount -p` - if test -z "$mountpoint"; then - print "Cannot determine cygwin mount points. Exiting" - exit 1 - fi -fi - -# Delete everything but "/cygdrive" (or other mountpoint) from mount=`mount -p` -mountpoint=${mountpoint#*/} -mountpoint=/${mountpoint%%[!A-Za-z0-9_]*} -mountpoint=${mountpoint%/} - -args="" -up="" -if test "${prog}" = "-up"; then - up=1 - prog=${1} - shift -fi - -process=1 - -# Convert the mountpoint in parameters to Win32 filenames -# For instance: /cygdrive/c/foo -> c:/foo -for i in "${@}" -do - if test "${i}" = "-wrap"; then - process=1 - else - if test "${i}" = "-nowrap"; then - process= - else - if test -n "${process}"; then - if test -n "${up}"; then - pathname=${i#-I[a-zA-Z]:/} - if ! test "${pathname}" = "${i}"; then - no_i=${i#-I} - driveletter=${no_i%%:*} - i=-I${mountpoint}/${driveletter}/${pathname} - fi - else - eval 'leader=${i%%'${mountpoint}'/[a-zA-Z]/*}' - if ! test "${leader}" = "${i}"; then - eval 'pathname=${i#'${leader}${mountpoint}'/[a-zA-Z]/}' - eval 'no_mountpoint=${i#'${leader}${mountpoint}'/}' - driveletter=${no_mountpoint%%/*} - i=${leader}${driveletter}:/${pathname} - fi - fi - fi - - args="${args} ${i}" - fi - fi -done - -exec $prog $args
--- a/config/autoconf.mk.in +++ b/config/autoconf.mk.in @@ -328,19 +328,16 @@ XLDFLAGS = @XLDFLAGS@ XLIBS = @XLIBS@ XEXT_LIBS = @XEXT_LIBS@ XCOMPOSITE_LIBS = @XCOMPOSITE_LIBS@ XSS_LIBS = @XSS_LIBS@ MOZ_THUMB2 = @MOZ_THUMB2@ WIN_TOP_SRC = @WIN_TOP_SRC@ -CYGWIN_WRAPPER = @CYGWIN_WRAPPER@ -AS_PERL = @AS_PERL@ -CYGDRIVE_MOUNT = @CYGDRIVE_MOUNT@ AR = @AR@ AR_FLAGS = @AR_FLAGS@ AR_EXTRACT = @AR_EXTRACT@ AR_LIST = @AR_LIST@ AR_DELETE = @AR_DELETE@ AS = @AS@ ASFLAGS = @ASFLAGS@ AS_DASH_C_FLAG = @AS_DASH_C_FLAG@
--- a/config/config.mk +++ b/config/config.mk @@ -444,26 +444,26 @@ endif # Personal makefile customizations go in these optional make include files. # MY_CONFIG := $(DEPTH)/config/myconfig.mk MY_RULES := $(DEPTH)/config/myrules.mk # # Default command macros; can be overridden in <arch>.mk. # -CCC = $(CXX) -NFSPWD = $(CONFIG_TOOLS)/nfspwd -PURIFY = purify $(PURIFYOPTIONS) -QUANTIFY = quantify $(QUANTIFYOPTIONS) +CCC = $(CXX) +NFSPWD = $(CONFIG_TOOLS)/nfspwd +PURIFY = purify $(PURIFYOPTIONS) +QUANTIFY = quantify $(QUANTIFYOPTIONS) ifdef CROSS_COMPILE -XPIDL_COMPILE = $(CYGWIN_WRAPPER) $(LIBXUL_DIST)/host/bin/host_xpidl$(HOST_BIN_SUFFIX) -XPIDL_LINK = $(CYGWIN_WRAPPER) $(LIBXUL_DIST)/host/bin/host_xpt_link$(HOST_BIN_SUFFIX) +XPIDL_COMPILE = $(LIBXUL_DIST)/host/bin/host_xpidl$(HOST_BIN_SUFFIX) +XPIDL_LINK = $(LIBXUL_DIST)/host/bin/host_xpt_link$(HOST_BIN_SUFFIX) else -XPIDL_COMPILE = $(CYGWIN_WRAPPER) $(LIBXUL_DIST)/bin/xpidl$(BIN_SUFFIX) -XPIDL_LINK = $(CYGWIN_WRAPPER) $(LIBXUL_DIST)/bin/xpt_link$(BIN_SUFFIX) +XPIDL_COMPILE = $(LIBXUL_DIST)/bin/xpidl$(BIN_SUFFIX) +XPIDL_LINK = $(LIBXUL_DIST)/bin/xpt_link$(BIN_SUFFIX) endif # Java macros JAVA_GEN_DIR = _javagen JAVA_DIST_DIR = $(DEPTH)/$(JAVA_GEN_DIR) JAVA_IFACES_PKG_NAME = org/mozilla/interfaces INCLUDES = \ @@ -670,21 +670,21 @@ ifeq (1,$(HAS_XCODE_2_1)) XCODE_PRODUCT_DIR = build/$(BUILDSTYLE) else XCODE_PRODUCT_DIR = build endif # HAS_XCODE_2_1=1 endif # OS_ARCH=Darwin ifdef MOZ_NATIVE_MAKEDEPEND -MKDEPEND_DIR = -MKDEPEND = $(CYGWIN_WRAPPER) $(MOZ_NATIVE_MAKEDEPEND) +MKDEPEND_DIR = +MKDEPEND = $(MOZ_NATIVE_MAKEDEPEND) else -MKDEPEND_DIR = $(CONFIG_TOOLS)/mkdepend -MKDEPEND = $(CYGWIN_WRAPPER) $(MKDEPEND_DIR)/mkdepend$(BIN_SUFFIX) +MKDEPEND_DIR = $(CONFIG_TOOLS)/mkdepend +MKDEPEND = $(MKDEPEND_DIR)/mkdepend$(BIN_SUFFIX) endif # Set link flags according to whether we want a console. ifdef MOZ_WINCONSOLE ifeq ($(MOZ_WINCONSOLE),1) ifeq ($(OS_ARCH),OS2) BIN_FLAGS += -Zlinker -PM:VIO endif @@ -738,22 +738,22 @@ GARBAGE += $(DEPENDENCIES) $(MKDEPENDEN ifeq ($(OS_ARCH),Darwin) ifndef NSDISTMODE NSDISTMODE=absolute_symlink endif PWD := $(CURDIR) endif ifdef NSINSTALL_BIN -NSINSTALL = $(CYGWIN_WRAPPER) $(NSINSTALL_BIN) +NSINSTALL = $(NSINSTALL_BIN) else ifeq (OS2,$(CROSS_COMPILE)$(OS_ARCH)) -NSINSTALL = $(MOZ_TOOLS_DIR)/nsinstall +NSINSTALL = $(MOZ_TOOLS_DIR)/nsinstall else -NSINSTALL = $(CONFIG_TOOLS)/nsinstall$(HOST_BIN_SUFFIX) +NSINSTALL = $(CONFIG_TOOLS)/nsinstall$(HOST_BIN_SUFFIX) endif # OS2 endif # NSINSTALL_BIN ifeq (,$(CROSS_COMPILE)$(filter-out WINNT OS2, $(OS_ARCH))) INSTALL = $(NSINSTALL) else ifeq ($(NSDISTMODE),copy) @@ -772,22 +772,16 @@ else INSTALL = $(NSINSTALL) -R endif # absolute_symlink endif # copy endif # WINNT/OS2 # Use nsinstall in copy mode to install files on the system SYSINSTALL = $(NSINSTALL) -t -ifeq ($(OS_ARCH),WINNT) -ifneq (,$(CYGDRIVE_MOUNT)) -export CYGDRIVE_MOUNT -endif -endif - # # Localization build automation # # Because you might wish to "make locales AB_CD=ab-CD", we don't hardcode # MOZ_UI_LOCALE directly, but use an intermediate variable that can be # overridden by the command line. (Besides, AB_CD is prettier). AB_CD = $(MOZ_UI_LOCALE)
--- a/config/rules.mk +++ b/config/rules.mk @@ -1548,32 +1548,27 @@ ifneq (,$(filter OS2 WINNT WINCE,$(OS_AR SEP := ; else SEP := : endif EMPTY := SPACE := $(EMPTY) $(EMPTY) -# Cygwin and MSYS have their own special path form, but javac expects the source -# and class paths to be in the DOS form (i.e. e:/builds/...). This function -# does the appropriate conversion on Windows, but is a noop on other systems. +# MSYS has its own special path form, but javac expects the source and class +# paths to be in the DOS form (i.e. e:/builds/...). This function does the +# appropriate conversion on Windows, but is a noop on other systems. ifeq (,$(filter-out WINNT WINCE, $(HOST_OS_ARCH))) -ifdef CYGWIN_WRAPPER -normalizepath = $(foreach p,$(1),$(shell cygpath -m $(p))) -else -# assume MSYS # We use 'pwd -W' to get DOS form of the path. However, since the given path # could be a file or a non-existent path, we cannot call 'pwd -W' directly # on the path. Instead, we extract the root path (i.e. "c:/"), call 'pwd -W' # on it, then merge with the rest of the path. root-path = $(shell echo $(1) | sed -e "s|\(/[^/]*\)/\?\(.*\)|\1|") non-root-path = $(shell echo $(1) | sed -e "s|\(/[^/]*\)/\?\(.*\)|\2|") normalizepath = $(foreach p,$(1),$(if $(filter /%,$(1)),$(patsubst %/,%,$(shell cd $(call root-path,$(1)) && pwd -W))/$(call non-root-path,$(1)),$(1))) -endif else normalizepath = $(1) endif _srcdir = $(call normalizepath,$(srcdir)) ifdef JAVA_SOURCEPATH SP = $(subst $(SPACE),$(SEP),$(call normalizepath,$(strip $(JAVA_SOURCEPATH)))) _JAVA_SOURCEPATH = ".$(SEP)$(_srcdir)$(SEP)$(SP)" @@ -1588,43 +1583,37 @@ else _JAVA_CLASSPATH = . endif _JAVA_DIR = _java $(_JAVA_DIR):: $(NSINSTALL) -D $@ $(_JAVA_DIR)/%.class: %.java $(GLOBAL_DEPS) $(_JAVA_DIR) - $(CYGWIN_WRAPPER) $(JAVAC) $(JAVAC_FLAGS) -classpath $(_JAVA_CLASSPATH) \ + $(JAVAC) $(JAVAC_FLAGS) -classpath $(_JAVA_CLASSPATH) \ -sourcepath $(_JAVA_SOURCEPATH) -d $(_JAVA_DIR) $(_VPATH_SRCS) $(JAVA_LIBRARY): $(addprefix $(_JAVA_DIR)/,$(JAVA_SRCS:.java=.class)) $(GLOBAL_DEPS) $(JAR) cf $@ -C $(_JAVA_DIR) . GARBAGE_DIRS += $(_JAVA_DIR) ############################################################################### # Update Makefiles ############################################################################### -# In GNU make 3.80, makefiles must use the /cygdrive syntax, even if we're -# processing them with AS perl. See bug 232003 -ifdef AS_PERL -CYGWIN_TOPSRCDIR = -nowrap -p $(topsrcdir) -wrap -endif - # Note: Passing depth to make-makefile is optional. # It saves the script some work, though. Makefile: Makefile.in - @$(PERL) $(AUTOCONF_TOOLS)/make-makefile -t $(topsrcdir) -d $(DEPTH) $(CYGWIN_TOPSRCDIR) + @$(PERL) $(AUTOCONF_TOOLS)/make-makefile -t $(topsrcdir) -d $(DEPTH) ifdef SUBMAKEFILES # VPATH does not work on some machines in this case, so add $(srcdir) $(SUBMAKEFILES): % : $(srcdir)/%.in - $(PERL) $(AUTOCONF_TOOLS)/make-makefile -t $(topsrcdir) -d $(DEPTH) $(CYGWIN_TOPSRCDIR) $@ + $(PERL) $(AUTOCONF_TOOLS)/make-makefile -t $(topsrcdir) -d $(DEPTH) $@ endif ifdef AUTOUPDATE_CONFIGURE $(topsrcdir)/configure: $(topsrcdir)/configure.in (cd $(topsrcdir) && $(AUTOCONF)) && (cd $(DEPTH) && ./config.status --recheck) endif ###############################################################################
--- a/configure.in +++ b/configure.in @@ -180,17 +180,17 @@ then fi fi MOZ_BUILD_ROOT=`pwd` dnl Default to MSVC for win32 and gcc-4.2 for darwin dnl ============================================================== if test -z "$CROSS_COMPILE"; then case "$target" in -*-cygwin*|*-mingw*|*-msvc*|*-mks*) +*-mingw*) if test -z "$CC"; then CC=cl; fi if test -z "$CXX"; then CXX=cl; fi if test -z "$CPP"; then CPP="cl -E -nologo"; fi if test -z "$CXXCPP"; then CXXCPP="cl -TP -E -nologo"; ac_cv_prog_CXXCPP="$CXXCPP"; fi if test -z "$LD"; then LD=link; fi if test -z "$AS"; then case "${target_cpu}" in i*86) @@ -608,17 +608,17 @@ esac if test -n "$COMPILE_ENVIRONMENT"; then if test "$MOZ_WINSDK_TARGETVER" -lt "06000000"; then # We can't build parental controls either MOZ_DISABLE_PARENTAL_CONTROLS=1 fi fi case "$target" in -*-cygwin*|*-mingw*|*-msvc*|*-mks*|*-wince|*-winmo) +*-mingw*|*-wince|*-winmo) if test "$GCC" != "yes"; then # Check to see if we are really running in a msvc environemnt _WIN32_MSVC=1 AC_CHECK_PROGS(MIDL, midl) # Make sure compilers are valid CFLAGS="$CFLAGS -TC -nologo" CXXFLAGS="$CXXFLAGS -TP -nologo" @@ -1170,17 +1170,17 @@ fi # COMPILE_ENVIRONMENT if test -n "$MAKE"; then if test `echo $MAKE | grep -c make.py` != 1; then NOT_PYMAKE=$MAKE fi fi case "$host_os" in -cygwin*|mingw*|mks*|msvc*) +mingw*) MOZ_PATH_PROGS(GMAKE, $GMAKE $NOT_PYMAKE make gmake, :) ;; *) MOZ_PATH_PROGS(GMAKE, $GMAKE $NOT_PYMAKE gmake make, :) ;; esac if test "$GMAKE" = ":"; then AC_MSG_ERROR([GNU make not found]) @@ -1208,17 +1208,16 @@ DLL_PREFIX=lib LIB_PREFIX=lib DLL_SUFFIX=.so OBJ_SUFFIX=o LIB_SUFFIX=a ASM_SUFFIX=s IMPORT_LIB_SUFFIX= TARGET_MD_ARCH=unix DIRENT_INO=d_ino -CYGWIN_WRAPPER= WIN_TOP_SRC= MOZ_USER_DIR=".mozilla" MOZ_JPEG_CFLAGS= MOZ_JPEG_LIBS='$(call EXPAND_LIBNAME_PATH,mozjpeg,$(DEPTH)/jpeg)' MOZ_ZLIB_CFLAGS= MOZ_ZLIB_LIBS='$(call EXPAND_LIBNAME_PATH,mozz,$(DEPTH)/modules/zlib/src)' MOZ_BZ2_CFLAGS= @@ -1289,17 +1288,17 @@ HOST_OS_ARCH=`echo $host_os | sed -e 's| # OS_ARCH # OS_TEST # OS_TARGET # OS_RELEASE # OS_MINOR_RELEASE # case "$HOST_OS_ARCH" in -cygwin*|mingw*|mks*|msvc*) +mingw*) HOST_OS_ARCH=WINNT ;; darwin*) HOST_OS_ARCH=Darwin ;; linux*) HOST_OS_ARCH=Linux ;; @@ -1382,23 +1381,18 @@ Windows_NT) OS_ARCH=WINNT OS_TARGET=WINNT OS_MINOR_RELEASE=`uname -v` if test "$OS_MINOR_RELEASE" = "00"; then OS_MINOR_RELEASE=0 fi OS_RELEASE="${OS_RELEASE}.${OS_MINOR_RELEASE}" ;; -CYGWIN32_NT|CYGWIN_NT*|MINGW*_NT*) +MINGW*_NT*) # -# If uname -s returns "CYGWIN_NT-4.0", we assume that we are using -# the uname.exe in the Cygwin tools. -# Prior to the Beta 20 release, Cygwin was called GNU-Win32. -# If uname -s returns "CYGWIN32/NT", we assume that we are using -# the uname.exe in the GNU-Win32 tools. # If uname -s returns MINGW32_NT-5.1, we assume that we are using # the uname.exe in the MSYS tools. # OS_RELEASE=`expr $OS_ARCH : '.*NT-\(.*\)'` OS_ARCH=WINNT OS_TARGET=WINNT ;; AIX) @@ -1848,49 +1842,33 @@ dnl System overrides of the defaults for dnl ======================================================== case "$host" in *-beos*) HOST_CFLAGS="$HOST_CFLAGS -DXP_BEOS -DBeOS -DBEOS -D_POSIX_SOURCE -DNO_X11" HOST_NSPR_MDCPUCFG='\"md/_beos.cfg\"' HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}" ;; -*cygwin*|*mingw*|*mks*|*msvc*|*wince|*winmo) +*mingw*|*wince|*winmo) if test -n "$_WIN32_MSVC"; then HOST_AR=lib HOST_AR_FLAGS='-NOLOGO -OUT:"$@"' HOST_CFLAGS="$HOST_CFLAGS -TC -nologo -Fd\$(HOST_PDBFILE)" HOST_RANLIB='echo ranlib' else HOST_CFLAGS="$HOST_CFLAGS -mno-cygwin" fi HOST_CFLAGS="$HOST_CFLAGS -DXP_WIN32 -DXP_WIN -DWIN32 -D_WIN32 -DNO_X11" HOST_NSPR_MDCPUCFG='\"md/_winnt.cfg\"' HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O2}" HOST_BIN_SUFFIX=.exe case "$host" in *mingw*) - dnl MinGW/MSYS does not need CYGWIN_WRAPPER PERL="/bin/sh ${_topsrcdir}/build/msys-perl-wrapper" ;; - *) - CYGWIN_WRAPPER="${srcdir}/build/cygwin-wrapper" - if test "`echo ${srcdir} | grep -c ^/ 2>/dev/null`" = 0; then - _pwd=`pwd` - CYGWIN_WRAPPER="${_pwd}/${srcdir}/build/cygwin-wrapper" - fi - if test "`${PERL} -v | grep -c cygwin 2>/dev/null`" = 0; then - AS_PERL=1 - PERL="${CYGWIN_WRAPPER} $PERL" - fi - - if test "`${PYTHON} -c 'import sys; print sys.platform;'`" != "cygwin"; then - PYTHON="${CYGWIN_WRAPPER} $PYTHON" - fi - ;; esac case "${host_cpu}" in x86_64) HOST_CFLAGS="$HOST_CFLAGS -D_AMD64_" ;; esac ;; @@ -2334,18 +2312,17 @@ ia64*-hpux*) # Sanity check for WINCE_WINDOWS_MOBILE # XXX disabled until we can fix the mobile tinderbox ##if test "$WINCE_WINDOWS_MOBILE"; then ## AC_CHECK_HEADER(tpcshell.h, [], ## AC_MSG_ERROR([Can't find tpcshell.h in your SDK; are you sure you don't need --disable-windows-mobile-components?])) ##fi ;; - -*-mingw*|*-cygwin*|*-msvc*|*-mks*) +*-mingw*) DSO_CFLAGS= DSO_PIC_CFLAGS= DLL_SUFFIX=.dll RC=rc.exe # certain versions of cygwin's makedepend barf on the # #include <string> vs -I./dist/include/string issue so don't use it SYSTEM_MAKEDEPEND= if test -n "$GNU_CC"; then @@ -2459,57 +2436,44 @@ ia64*-hpux*) dnl Hardcode to win95 for now - cls TARGET_NSPR_MDCPUCFG='\"md/_win95.cfg\"' dnl set NO_X11 defines here as the general check is skipped on win32 no_x=yes AC_DEFINE(NO_X11) - dnl MinGW/MSYS doesn't provide or need cygpath + case "$host" in + *-mingw*) + MOZ_BUILD_ROOT=`cd $MOZ_BUILD_ROOT && pwd -W` + ;; + esac + case "$host" in *-mingw*) - CYGPATH_W=echo - CYGPATH_S=cat - MOZ_BUILD_ROOT=`cd $MOZ_BUILD_ROOT && pwd -W` - ;; - *-cygwin*|*-msvc*|*-mks*) - CYGPATH_W="cygpath -a -w" - CYGPATH_S="sed -e s|\\\\|/|g" - MOZ_BUILD_ROOT=`$CYGPATH_W $MOZ_BUILD_ROOT | $CYGPATH_S` - ;; - esac - case "$host" in - *-mingw*|*-cygwin*|*-msvc*|*-mks*) - - if test -z "$MOZ_TOOLS"; then - AC_MSG_ERROR([MOZ_TOOLS is not set]) - fi - - MOZ_TOOLS_DIR=`cd $MOZ_TOOLS && pwd -W` - if test "$?" != "0" -o -z "$MOZ_TOOLS_DIR"; then - AC_MSG_ERROR([cd \$MOZ_TOOLS failed. MOZ_TOOLS ==? $MOZ_TOOLS]) - fi - MOZ_TOOLS_BIN_DIR="$(cd "$MOZ_TOOLS_DIR/bin" && pwd)" - if test `echo ${PATH}: | grep -ic "$MOZ_TOOLS_BINDIR:"` = 0; then - AC_MSG_ERROR([\$MOZ_TOOLS\\bin must be in your path.]) - fi - MOZ_TOOLS_DIR=`$CYGPATH_W $MOZ_TOOLS_DIR | $CYGPATH_S` - ;; + if test -z "$MOZ_TOOLS"; then + AC_MSG_ERROR([MOZ_TOOLS is not set]) + fi + MOZ_TOOLS_DIR=`cd $MOZ_TOOLS && pwd -W` + if test "$?" != "0" -o -z "$MOZ_TOOLS_DIR"; then + AC_MSG_ERROR([cd \$MOZ_TOOLS failed. MOZ_TOOLS ==? $MOZ_TOOLS]) + fi + MOZ_TOOLS_BIN_DIR="$(cd "$MOZ_TOOLS_DIR/bin" && pwd)" + if test `echo ${PATH}: | grep -ic "$MOZ_TOOLS_BINDIR:"` = 0; then + AC_MSG_ERROR([\$MOZ_TOOLS\\bin must be in your path.]) + fi + ;; esac - case "$host_os" in cygwin*|msvc*|mks*) - AC_MSG_WARN([Using a cygwin build environment is unsupported. Configure cannot check for the presence of necessary headers. Please upgrade to MozillaBuild; see https://developer.mozilla.org/en/Windows_Build_Prerequisites.]) + AC_MSG_ERROR([Using a Cygwin build environment is unsupported. Configure cannot check for presence of necessary headers. Please upgrade to MozillaBuild; see https://developer.mozilla.org/en/Windows_Build_Prerequisites.]) ;; - *) AC_CHECK_HEADERS(oleacc.idl) - AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_CHECK_HEADERS(atlbase.h) AC_LANG_RESTORE ;; esac case "$target" in @@ -2885,17 +2849,17 @@ case "$target" in NO_LD_ARCHIVE_FLAGS= ;; *-aix4.3*|*-aix5*) NO_LD_ARCHIVE_FLAGS= ;; *-openvms*) NO_LD_ARCHIVE_FLAGS= ;; -*-msvc*|*-mks*|*-mingw*|*-cygwin*|*-wince|*-winmo) +*-mingw*|*-wince|*-winmo) if test -z "$GNU_CC"; then NO_LD_ARCHIVE_FLAGS= fi ;; esac AC_SUBST(NO_LD_ARCHIVE_FLAGS) dnl ======================================================== @@ -2919,17 +2883,17 @@ case "$target" in fi ;; *-nto*) MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script' ;; *-darwin*) MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,-exported_symbols_list -Wl,$(BUILD_TOOLS)/gnu-ld-scripts/components-export-list' ;; - *-cygwin*|*-mingw*|*-mks*|*-msvc|*-wince|*-winmo) + *-mingw*|*-wince|*-winmo) if test -n "$GNU_CC"; then MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script' fi ;; esac if test -z "$COMPILE_ENVIRONMENT"; then SKIP_COMPILER_CHECKS=1 @@ -3886,17 +3850,17 @@ AC_CACHE_CHECK( )] ) if test "$ac_cv_func_gnu_get_libc_version" = "yes"; then AC_DEFINE(HAVE_GNU_GET_LIBC_VERSION) fi case $target_os in - os2*|msvc*|mks*|cygwin*|mingw*|darwin*|wince*|winmo*|beos*) + darwin*|mingw*|os2*|wince*|winmo*) ;; *) AC_CHECK_LIB(c, iconv, [_ICONV_LIBS="$_ICONV_LIBS"], AC_CHECK_LIB(iconv, iconv, [_ICONV_LIBS="$_ICONV_LIBS -liconv"], AC_CHECK_LIB(iconv, libiconv, [_ICONV_LIBS="$_ICONV_LIBS -liconv"]))) _SAVE_LIBS=$LIBS LIBS="$LIBS $_ICONV_LIBS" @@ -5017,17 +4981,17 @@ case "${target}" in ACCESSIBILITY= ;; *) ACCESSIBILITY=1 ;; esac case "$target_os" in - msvc*|mks*|cygwin*|mingw*) + mingw*) NS_ENABLE_TSF=1 if test -z "$GNU_CC"; then if test "$MOZ_WINSDK_TARGETVER" -lt "06000000"; then NS_ENABLE_TSF= fi fi if test -n "$NS_ENABLE_TSF"; then AC_DEFINE(NS_ENABLE_TSF) @@ -5869,17 +5833,17 @@ MOZ_ARG_DISABLE_BOOL(accessibility, ACCESSIBILITY=, ACCESSIBILITY=1 ) if test "$ACCESSIBILITY"; then AC_DEFINE(ACCESSIBILITY) fi if test -n "$ACCESSIBILITY" -a "$COMPILE_ENVIRONMENT" = "1"; then case "$target" in -*-mingw*|*-cygwin*|*-msvc*|*-mks*) +*-mingw*) if test "$ac_cv_header_atlbase_h" = "no"; then AC_MSG_ERROR([System header atlbase.h is not available. See http://developer.mozilla.org/en/docs/atlbase.h for details on fixing this problem.]) fi if test "$ac_cv_header_oleacc_idl" = "no"; then AC_MSG_ERROR([System header oleacc.idl is not available. See http://developer.mozilla.org/en/docs/oleacc.idl for details on fixing this problem.]) fi ;; esac @@ -6269,21 +6233,16 @@ esac MOZ_ARG_ENABLE_BOOL(javaxpcom, [ --enable-javaxpcom Enable Java-XPCOM bridge], MOZ_JAVAXPCOM=1, MOZ_JAVAXPCOM=) case "$host_os" in - cygwin*|msvc*|mks*) - if test -n "$JAVA_HOME"; then - JAVA_HOME=`cygpath -u \`cygpath -m -s "$JAVA_HOME"\`` - fi - ;; *mingw*) if test -n "$JAVA_HOME"; then JAVA_HOME=`cd "$JAVA_HOME" && pwd` fi ;; esac if test -n "${JAVA_BIN_PATH}"; then @@ -6330,19 +6289,19 @@ fi dnl ======================================================== dnl = ANGLE OpenGL->D3D translator for WebGL dnl = * only applies to win32 dnl = * enabled by default (shipping build); requires explicit --disable to disable dnl ======================================================== MOZ_ANGLE= MOZ_DIRECTX_SDK_PATH= case "$target_os" in - *msvc*|*mks*|*cygwin*|*mingw*) - MOZ_ANGLE=1 - ;; +*mingw*) + MOZ_ANGLE=1 + ;; esac if test -n "$MOZ_ANGLE"; then MOZ_ARG_DISABLE_BOOL(angle, [ --disable-angle Disable building of ANGLE for WebGL->D3D translation], MOZ_ANGLE=, MOZ_ANGLE=1) @@ -6583,22 +6542,21 @@ if test -n "$MOZ_TREE_FREETYPE"; then FT2_LIBS='$(call EXPAND_LIBNAME_PATH,freetype,$(DEPTH)/modules/freetype2/.libs)' CAIRO_FT_LIBS='$(call EXPAND_LIBNAME_PATH,freetype,$(DEPTH)/modules/freetype2/.libs)' AC_DEFINE(HAVE_FT_BITMAP_SIZE_Y_PPEM) AC_DEFINE(HAVE_FT_GLYPHSLOT_EMBOLDEN) AC_DEFINE(HAVE_FT_LOAD_SFNT_TABLE) AC_SUBST(CAIRO_FT_CFLAGS) fi - dnl ======================================================== dnl Installer dnl ======================================================== case "$target_os" in - aix*|solaris*|linux*|msvc*|mks*|cygwin*|mingw*|os2*|wince*|winmo*) + aix*|solaris*|linux*|mingw*|os2*|wince*|winmo*) MOZ_INSTALLER=1 ;; esac MOZ_ARG_DISABLE_BOOL(installer, [ --disable-installer Disable building of installer], MOZ_INSTALLER=, MOZ_INSTALLER=1) @@ -6622,17 +6580,16 @@ if test -n "$MOZ_INSTALLER" -a "$OS_ARCH AC_MSG_CHECKING([for Unicode NSIS with major version == $REQ_NSIS_MAJOR_VER and minor version >= $MIN_NSIS_MINOR_VER]) if test "$MAKENSISU_VER" = "" || test ! "$MAKENSISU_MAJOR_VER" = "$REQ_NSIS_MAJOR_VER" -o \ ! "$MAKENSISU_MINOR_VER" -ge $MIN_NSIS_MINOR_VER; then AC_MSG_RESULT([no]) AC_MSG_ERROR([To build the installer you must have the latest MozillaBuild or Unicode NSIS with a major version of $REQ_NSIS_MAJOR_VER and a minimum minor version of $MIN_NSIS_MINOR_VER in your path. To build without the installer reconfigure using --disable-installer.]) fi AC_MSG_RESULT([yes]) - MAKENSISU="${CYGWIN_WRAPPER} $MAKENSISU" fi AC_SUBST(MOZ_INSTALLER) AC_MSG_CHECKING([for tar archiver]) AC_CHECK_PROGS(TAR, gnutar gtar tar, "") if test -z "$TAR"; then AC_MSG_ERROR([no tar archiver found in \$PATH]) @@ -6706,17 +6663,17 @@ AC_SUBST(MOZ_ACTIVEX_SCRIPTING_SUPPORT) if test -n "$MOZ_NO_ACTIVEX_SUPPORT" -a -n "$MOZ_ACTIVEX_SCRIPTING_SUPPORT"; then AC_MSG_ERROR([Cannot enable ActiveX scripting support when ActiveX support is disabled.]) fi if test "$COMPILE_ENVIRONMENT" = "1"; then if test -n "$XPC_IDISPATCH_SUPPORT" -o -n "$MOZ_ACTIVEX_SCRIPTING_SUPPORT" -o -z "$MOZ_NO_ACTIVEX_SUPPORT"; then case "$target" in -*-mingw*|*-cygwin*|*-msvc*|*-mks*) +*-mingw*) if test "$ac_cv_header_atlbase_h" = "no"; then AC_MSG_ERROR([System header atlbase.h is not available. See http://developer.mozilla.org/en/docs/atlbase.h for details on fixing this problem.]) fi ;; esac fi fi @@ -7476,17 +7433,17 @@ if test "$MOZ_MEMORY"; then AC_DEFINE(MOZ_MEMORY_LINUX) ;; *-netbsd*) AC_DEFINE(MOZ_MEMORY_BSD) ;; *-solaris*) AC_DEFINE(MOZ_MEMORY_SOLARIS) ;; - *-msvc*|*-mks*|*-cygwin*|*-mingw*) + *-mingw*) AC_DEFINE(MOZ_MEMORY_WINDOWS) dnl This is sort of awful. Will revisit if we add support for more versions if test "$CC_VERSION" != "14.00.50727.762" -a "$CC_VERSION" != "15.00.30729.01"; then AC_MSG_ERROR([Building jemalloc requires exactly Visual C++ 2005 SP1 or 2008 SP1 currently.]) fi if test -z "$WIN32_CRT_SRC_DIR"; then if test -z "$VCINSTALLDIR" -o ! -d "$VCINSTALLDIR"; then AC_MSG_ERROR([When building jemalloc, set WIN32_CRT_SRC_DIR to the path to the Visual C++ CRT source (usually VCINSTALLDIR\crt\src, but VCINSTALLDIR is not set, so I can't autodetect it for you).]) @@ -8373,24 +8330,23 @@ if test -z "$CROSS_COMPILE"; then HOST_LIBIDL_PREFIX="$LIBIDL_PREFIX" fi fi if test "$SKIP_IDL_CHECK" = "no" then _LIBIDL_FOUND= case "$host" in - *-mingw*|*-cygwin*|*-msvc*|*-mks*) + *-mingw*) if test -n "$GLIB_PREFIX"; then _GLIB_PREFIX_DIR=`cd $GLIB_PREFIX && pwd -W` if test "$?" = "0"; then if test `echo ${PATH}: | grep -ic "$_GLIB_PREFIX_DIR/bin:"` = 0; then AC_MSG_ERROR([GLIB_PREFIX must be in your \$PATH.]) fi - _GLIB_PREFIX_DIR=`$CYGPATH_W $_GLIB_PREFIX_DIR | $CYGPATH_S` else AC_MSG_ERROR([GLIB_PREFIX is set but "${GLIB_PREFIX}" is not a directory.]) fi else _GLIB_PREFIX_DIR=$MOZ_TOOLS_DIR fi if test ! -f "${_GLIB_PREFIX_DIR}/include/glib.h"; then AC_MSG_ERROR([Cannot find $_GLIB_PREFIX_DIR/include/glib.h .]) @@ -8405,17 +8361,16 @@ then fi if test -n "$HOST_LIBIDL_PREFIX"; then _LIBIDL_PREFIX_DIR=`cd $HOST_LIBIDL_PREFIX && pwd -W` if test "$?" = "0"; then if test `echo ${PATH}: | grep -ic "$_LIBIDL_PREFIX_DIR/bin:"` = 0; then AC_MSG_ERROR([LIBIDL_PREFIX must be in your \$PATH.]) fi - _LIBIDL_PREFIX_DIR=`$CYGPATH_W $_LIBIDL_PREFIX_DIR | $CYGPATH_S` else AC_MSG_ERROR([LIBIDL_PREFIX is set but "${LIBIDL_PREFIX}" is not a directory.]) fi else _LIBIDL_PREFIX_DIR=$MOZ_TOOLS_DIR fi if test ! -f "${_LIBIDL_PREFIX_DIR}/include/libIDL/IDL.h"; then AC_MSG_ERROR([Cannot find $_LIBIDL_PREFIX_DIR/include/libIDL/IDL.h .]) @@ -8514,17 +8469,17 @@ int main() { if test -n "$_MACSAVE_NEXT_ROOT" ; then export NEXT_ROOT="$_MACSAVE_NEXT_ROOT" fi fi fi if test -n "$CROSS_COMPILE"; then case "$target" in - *-mingw*|*-cygwin*|*-msvc*|*-mks*) + *-mingw*) if test -n "$GLIB_PREFIX"; then GLIB_CFLAGS="-I${GLIB_PREFIX}/include" if test -f "${GLIB_PREFIX}/lib/glib-1.2_s.lib"; then GLIB_LIBS="${GLIB_PREFIX}/lib/glib-1.2_s.lib" elif test -f "${GLIB_PREFIX}/lib/glib-1.2.lib"; then GLIB_LIBS="${GLIB_PREFIX}/lib/glib-1.2.lib" else AC_MSG_ERROR([Cannot find $GLIB_PREFIX/lib/glib-1.2.lib or $GLIB_PREFIX/lib/glib-1.2_s.lib]) @@ -9071,18 +9026,16 @@ AC_SUBST(MOZ_UA_BUILDID) AC_SUBST(MOZ_PKG_SPECIAL) AC_SUBST(MOZILLA_OFFICIAL) dnl win32 options AC_SUBST(MOZ_MAPINFO) AC_SUBST(MOZ_BROWSE_INFO) AC_SUBST(MOZ_TOOLS_DIR) -AC_SUBST(CYGWIN_WRAPPER) -AC_SUBST(AS_PERL) AC_SUBST(WIN32_REDIST_DIR) AC_SUBST(PYTHON) AC_SUBST(MAKENSISU) AC_SUBST(WINCE) AC_SUBST(WINCE_SDK_DIR) AC_SUBST(WINCE_WINDOWS_MOBILE) @@ -9324,39 +9277,22 @@ if test "$ACCESSIBILITY" -a "$MOZ_ENABLE ATK_MAJOR_VERSION=`echo ${ATK_FULL_VERSION} | $AWK -F\. '{ print $1 }'` ATK_MINOR_VERSION=`echo ${ATK_FULL_VERSION} | $AWK -F\. '{ print $2 }'` ATK_REV_VERSION=`echo ${ATK_FULL_VERSION} | $AWK -F\. '{ print $3 }'` AC_DEFINE_UNQUOTED(ATK_MAJOR_VERSION, $ATK_MAJOR_VERSION) AC_DEFINE_UNQUOTED(ATK_MINOR_VERSION, $ATK_MINOR_VERSION) AC_DEFINE_UNQUOTED(ATK_REV_VERSION, $ATK_REV_VERSION) fi -dnl ======================================================== -dnl Use cygwin wrapper for win32 builds, except MSYS/MinGW -dnl ======================================================== case "$host_os" in mingw*) WIN_TOP_SRC=`cd $srcdir; pwd -W` ;; -cygwin*|msvc*|mks*) - HOST_CC="\$(CYGWIN_WRAPPER) $HOST_CC" - HOST_CXX="\$(CYGWIN_WRAPPER) $HOST_CXX" - CC="\$(CYGWIN_WRAPPER) $CC" - CXX="\$(CYGWIN_WRAPPER) $CXX" - CPP="\$(CYGWIN_WRAPPER) $CPP" - LD="\$(CYGWIN_WRAPPER) $LD" - AS="\$(CYGWIN_WRAPPER) $AS" - RC="\$(CYGWIN_WRAPPER) $RC" - MIDL="\$(CYGWIN_WRAPPER) $MIDL" - CYGDRIVE_MOUNT=`mount -p | awk '{ if (/^\//) { print $1; exit } }'` - WIN_TOP_SRC=`cygpath -a -w $srcdir | sed -e 's|\\\\|/|g'` - ;; esac -AC_SUBST(CYGDRIVE_MOUNT) AC_SUBST(WIN_TOP_SRC) AC_SUBST(MOZILLA_VERSION) AC_SUBST(ac_configure_args) dnl Spit out some output dnl ======================================================== @@ -9458,21 +9394,17 @@ dnl If it succeeds, it outputs a shell c dnl for the files it cannot handle correctly. This way, config.status dnl will handle these files. dnl If it fails, nothing is set and config.status will run as usual. dnl dnl This does not change the $MAKEFILES variable. dnl dnl OpenVMS gets a line overflow on the long eval command, so use a temp file. dnl -if test -z "${AS_PERL}"; then echo $MAKEFILES | ${PERL} $srcdir/build/autoconf/acoutput-fast.pl > conftest.sh -else -echo $MAKEFILES | ${PERL} $srcdir/build/autoconf/acoutput-fast.pl -nowrap --cygwin-srcdir=$srcdir > conftest.sh -fi . ./conftest.sh rm conftest.sh echo $MAKEFILES > unallmakefiles mv -f config/autoconf.mk config/autoconf.mk.orig 2> /dev/null AC_OUTPUT($MAKEFILES)
deleted file mode 100644 --- a/js/src/build/cygwin-wrapper +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/sh -# -# Stupid wrapper to avoid win32 dospath/cygdrive issues -# Try not to spawn programs from within this file. If the stuff in here looks royally -# confusing, see bug: http://bugzilla.mozilla.org/show_bug.cgi?id=206643 -# and look at the older versions of this file that are easier to read, but -# do basically the same thing -# - -prog=$1 -shift -if test -z "$prog"; then - exit 0 -fi - -# If $CYGDRIVE_MOUNT was not set in configure, give $mountpoint the results of mount -p -mountpoint=$CYGDRIVE_MOUNT -if test -z "$mountpoint"; then - mountpoint=`mount -p` - if test -z "$mountpoint"; then - print "Cannot determine cygwin mount points. Exiting" - exit 1 - fi -fi - -# Delete everything but "/cygdrive" (or other mountpoint) from mount=`mount -p` -mountpoint=${mountpoint#*/} -mountpoint=/${mountpoint%%[!A-Za-z0-9_]*} -mountpoint=${mountpoint%/} - -args="" -up="" -if test "${prog}" = "-up"; then - up=1 - prog=${1} - shift -fi - -process=1 - -# Convert the mountpoint in parameters to Win32 filenames -# For instance: /cygdrive/c/foo -> c:/foo -for i in "${@}" -do - if test "${i}" = "-wrap"; then - process=1 - else - if test "${i}" = "-nowrap"; then - process= - else - if test -n "${process}"; then - if test -n "${up}"; then - pathname=${i#-I[a-zA-Z]:/} - if ! test "${pathname}" = "${i}"; then - no_i=${i#-I} - driveletter=${no_i%%:*} - i=-I${mountpoint}/${driveletter}/${pathname} - fi - else - eval 'leader=${i%%'${mountpoint}'/[a-zA-Z]/*}' - if ! test "${leader}" = "${i}"; then - eval 'pathname=${i#'${leader}${mountpoint}'/[a-zA-Z]/}' - eval 'no_mountpoint=${i#'${leader}${mountpoint}'/}' - driveletter=${no_mountpoint%%/*} - i=${leader}${driveletter}:/${pathname} - fi - fi - fi - - args="${args} ${i}" - fi - fi -done - -exec $prog $args
--- a/js/src/config.mk +++ b/js/src/config.mk @@ -57,38 +57,31 @@ else OS_RELEASE := $(shell uname -r) endif endif ifeq ($(OS_ARCH),IRIX64) OS_ARCH := IRIX endif # Handle output from win32 unames other than Netscape's version -ifeq (,$(filter-out Windows_95 Windows_98 CYGWIN_95-4.0 CYGWIN_98-4.10, $(OS_ARCH))) +ifeq (,$(filter-out Windows_95 Windows_98, $(OS_ARCH))) OS_ARCH := WIN95 endif ifeq ($(OS_ARCH),WIN95) OS_ARCH := WINNT OS_RELEASE := 4.0 endif ifeq ($(OS_ARCH), Windows_NT) OS_ARCH := WINNT OS_MINOR_RELEASE := $(shell uname -v) ifeq ($(OS_MINOR_RELEASE),00) OS_MINOR_RELEASE = 0 endif OS_RELEASE := $(OS_RELEASE).$(OS_MINOR_RELEASE) endif -ifeq (CYGWIN_NT,$(findstring CYGWIN_NT,$(OS_ARCH))) - OS_RELEASE := $(patsubst CYGWIN_NT-%,%,$(OS_ARCH)) - OS_ARCH := WINNT -endif -ifeq ($(OS_ARCH), CYGWIN32_NT) - OS_ARCH := WINNT -endif ifeq (MINGW32_NT,$(findstring MINGW32_NT,$(OS_ARCH))) OS_RELEASE := $(patsubst MINGW32_NT-%,%,$(OS_ARCH)) OS_ARCH := WINNT endif # Virtually all Linux versions are identical. # Any distinctions are handled in linux.h ifeq ($(OS_ARCH),Linux)
--- a/js/src/config/autoconf.mk.in +++ b/js/src/config/autoconf.mk.in @@ -153,19 +153,16 @@ MOZ_EXCEPTIONS_FLAGS_ON = @_MOZ_EXCEPTIO MOZ_PROFILE_GUIDED_OPTIMIZE_DISABLE = @MOZ_PROFILE_GUIDED_OPTIMIZE_DISABLE@ PROFILE_GEN_CFLAGS = @PROFILE_GEN_CFLAGS@ PROFILE_GEN_LDFLAGS = @PROFILE_GEN_LDFLAGS@ PROFILE_USE_CFLAGS = @PROFILE_USE_CFLAGS@ PROFILE_USE_LDFLAGS = @PROFILE_USE_LDFLAGS@ WIN_TOP_SRC = @WIN_TOP_SRC@ -CYGWIN_WRAPPER = @CYGWIN_WRAPPER@ -AS_PERL = @AS_PERL@ -CYGDRIVE_MOUNT = @CYGDRIVE_MOUNT@ AR = @AR@ AR_FLAGS = @AR_FLAGS@ AR_EXTRACT = @AR_EXTRACT@ AR_LIST = @AR_LIST@ AR_DELETE = @AR_DELETE@ AS = @AS@ ASFLAGS = @ASFLAGS@ AS_DASH_C_FLAG = @AS_DASH_C_FLAG@
--- a/js/src/config/config.mk +++ b/js/src/config/config.mk @@ -444,26 +444,26 @@ endif # Personal makefile customizations go in these optional make include files. # MY_CONFIG := $(DEPTH)/config/myconfig.mk MY_RULES := $(DEPTH)/config/myrules.mk # # Default command macros; can be overridden in <arch>.mk. # -CCC = $(CXX) -NFSPWD = $(CONFIG_TOOLS)/nfspwd -PURIFY = purify $(PURIFYOPTIONS) -QUANTIFY = quantify $(QUANTIFYOPTIONS) +CCC = $(CXX) +NFSPWD = $(CONFIG_TOOLS)/nfspwd +PURIFY = purify $(PURIFYOPTIONS) +QUANTIFY = quantify $(QUANTIFYOPTIONS) ifdef CROSS_COMPILE -XPIDL_COMPILE = $(CYGWIN_WRAPPER) $(LIBXUL_DIST)/host/bin/host_xpidl$(HOST_BIN_SUFFIX) -XPIDL_LINK = $(CYGWIN_WRAPPER) $(LIBXUL_DIST)/host/bin/host_xpt_link$(HOST_BIN_SUFFIX) +XPIDL_COMPILE = $(LIBXUL_DIST)/host/bin/host_xpidl$(HOST_BIN_SUFFIX) +XPIDL_LINK = $(LIBXUL_DIST)/host/bin/host_xpt_link$(HOST_BIN_SUFFIX) else -XPIDL_COMPILE = $(CYGWIN_WRAPPER) $(LIBXUL_DIST)/bin/xpidl$(BIN_SUFFIX) -XPIDL_LINK = $(CYGWIN_WRAPPER) $(LIBXUL_DIST)/bin/xpt_link$(BIN_SUFFIX) +XPIDL_COMPILE = $(LIBXUL_DIST)/bin/xpidl$(BIN_SUFFIX) +XPIDL_LINK = $(LIBXUL_DIST)/bin/xpt_link$(BIN_SUFFIX) endif # Java macros JAVA_GEN_DIR = _javagen JAVA_DIST_DIR = $(DEPTH)/$(JAVA_GEN_DIR) JAVA_IFACES_PKG_NAME = org/mozilla/interfaces INCLUDES = \ @@ -670,21 +670,21 @@ ifeq (1,$(HAS_XCODE_2_1)) XCODE_PRODUCT_DIR = build/$(BUILDSTYLE) else XCODE_PRODUCT_DIR = build endif # HAS_XCODE_2_1=1 endif # OS_ARCH=Darwin ifdef MOZ_NATIVE_MAKEDEPEND -MKDEPEND_DIR = -MKDEPEND = $(CYGWIN_WRAPPER) $(MOZ_NATIVE_MAKEDEPEND) +MKDEPEND_DIR = +MKDEPEND = $(MOZ_NATIVE_MAKEDEPEND) else -MKDEPEND_DIR = $(CONFIG_TOOLS)/mkdepend -MKDEPEND = $(CYGWIN_WRAPPER) $(MKDEPEND_DIR)/mkdepend$(BIN_SUFFIX) +MKDEPEND_DIR = $(CONFIG_TOOLS)/mkdepend +MKDEPEND = $(MKDEPEND_DIR)/mkdepend$(BIN_SUFFIX) endif # Set link flags according to whether we want a console. ifdef MOZ_WINCONSOLE ifeq ($(MOZ_WINCONSOLE),1) ifeq ($(OS_ARCH),OS2) BIN_FLAGS += -Zlinker -PM:VIO endif @@ -738,22 +738,22 @@ GARBAGE += $(DEPENDENCIES) $(MKDEPENDEN ifeq ($(OS_ARCH),Darwin) ifndef NSDISTMODE NSDISTMODE=absolute_symlink endif PWD := $(CURDIR) endif ifdef NSINSTALL_BIN -NSINSTALL = $(CYGWIN_WRAPPER) $(NSINSTALL_BIN) +NSINSTALL = $(NSINSTALL_BIN) else ifeq (OS2,$(CROSS_COMPILE)$(OS_ARCH)) -NSINSTALL = $(MOZ_TOOLS_DIR)/nsinstall +NSINSTALL = $(MOZ_TOOLS_DIR)/nsinstall else -NSINSTALL = $(CONFIG_TOOLS)/nsinstall$(HOST_BIN_SUFFIX) +NSINSTALL = $(CONFIG_TOOLS)/nsinstall$(HOST_BIN_SUFFIX) endif # OS2 endif # NSINSTALL_BIN ifeq (,$(CROSS_COMPILE)$(filter-out WINNT OS2, $(OS_ARCH))) INSTALL = $(NSINSTALL) else ifeq ($(NSDISTMODE),copy) @@ -772,22 +772,16 @@ else INSTALL = $(NSINSTALL) -R endif # absolute_symlink endif # copy endif # WINNT/OS2 # Use nsinstall in copy mode to install files on the system SYSINSTALL = $(NSINSTALL) -t -ifeq ($(OS_ARCH),WINNT) -ifneq (,$(CYGDRIVE_MOUNT)) -export CYGDRIVE_MOUNT -endif -endif - # # Localization build automation # # Because you might wish to "make locales AB_CD=ab-CD", we don't hardcode # MOZ_UI_LOCALE directly, but use an intermediate variable that can be # overridden by the command line. (Besides, AB_CD is prettier). AB_CD = $(MOZ_UI_LOCALE)
--- a/js/src/config/rules.mk +++ b/js/src/config/rules.mk @@ -1548,32 +1548,27 @@ ifneq (,$(filter OS2 WINNT WINCE,$(OS_AR SEP := ; else SEP := : endif EMPTY := SPACE := $(EMPTY) $(EMPTY) -# Cygwin and MSYS have their own special path form, but javac expects the source -# and class paths to be in the DOS form (i.e. e:/builds/...). This function -# does the appropriate conversion on Windows, but is a noop on other systems. +# MSYS has its own special path form, but javac expects the source and class +# paths to be in the DOS form (i.e. e:/builds/...). This function does the +# appropriate conversion on Windows, but is a noop on other systems. ifeq (,$(filter-out WINNT WINCE, $(HOST_OS_ARCH))) -ifdef CYGWIN_WRAPPER -normalizepath = $(foreach p,$(1),$(shell cygpath -m $(p))) -else -# assume MSYS # We use 'pwd -W' to get DOS form of the path. However, since the given path # could be a file or a non-existent path, we cannot call 'pwd -W' directly # on the path. Instead, we extract the root path (i.e. "c:/"), call 'pwd -W' # on it, then merge with the rest of the path. root-path = $(shell echo $(1) | sed -e "s|\(/[^/]*\)/\?\(.*\)|\1|") non-root-path = $(shell echo $(1) | sed -e "s|\(/[^/]*\)/\?\(.*\)|\2|") normalizepath = $(foreach p,$(1),$(if $(filter /%,$(1)),$(patsubst %/,%,$(shell cd $(call root-path,$(1)) && pwd -W))/$(call non-root-path,$(1)),$(1))) -endif else normalizepath = $(1) endif _srcdir = $(call normalizepath,$(srcdir)) ifdef JAVA_SOURCEPATH SP = $(subst $(SPACE),$(SEP),$(call normalizepath,$(strip $(JAVA_SOURCEPATH)))) _JAVA_SOURCEPATH = ".$(SEP)$(_srcdir)$(SEP)$(SP)" @@ -1588,43 +1583,37 @@ else _JAVA_CLASSPATH = . endif _JAVA_DIR = _java $(_JAVA_DIR):: $(NSINSTALL) -D $@ $(_JAVA_DIR)/%.class: %.java $(GLOBAL_DEPS) $(_JAVA_DIR) - $(CYGWIN_WRAPPER) $(JAVAC) $(JAVAC_FLAGS) -classpath $(_JAVA_CLASSPATH) \ + $(JAVAC) $(JAVAC_FLAGS) -classpath $(_JAVA_CLASSPATH) \ -sourcepath $(_JAVA_SOURCEPATH) -d $(_JAVA_DIR) $(_VPATH_SRCS) $(JAVA_LIBRARY): $(addprefix $(_JAVA_DIR)/,$(JAVA_SRCS:.java=.class)) $(GLOBAL_DEPS) $(JAR) cf $@ -C $(_JAVA_DIR) . GARBAGE_DIRS += $(_JAVA_DIR) ############################################################################### # Update Makefiles ############################################################################### -# In GNU make 3.80, makefiles must use the /cygdrive syntax, even if we're -# processing them with AS perl. See bug 232003 -ifdef AS_PERL -CYGWIN_TOPSRCDIR = -nowrap -p $(topsrcdir) -wrap -endif - # Note: Passing depth to make-makefile is optional. # It saves the script some work, though. Makefile: Makefile.in - @$(PERL) $(AUTOCONF_TOOLS)/make-makefile -t $(topsrcdir) -d $(DEPTH) $(CYGWIN_TOPSRCDIR) + @$(PERL) $(AUTOCONF_TOOLS)/make-makefile -t $(topsrcdir) -d $(DEPTH) ifdef SUBMAKEFILES # VPATH does not work on some machines in this case, so add $(srcdir) $(SUBMAKEFILES): % : $(srcdir)/%.in - $(PERL) $(AUTOCONF_TOOLS)/make-makefile -t $(topsrcdir) -d $(DEPTH) $(CYGWIN_TOPSRCDIR) $@ + $(PERL) $(AUTOCONF_TOOLS)/make-makefile -t $(topsrcdir) -d $(DEPTH) $@ endif ifdef AUTOUPDATE_CONFIGURE $(topsrcdir)/configure: $(topsrcdir)/configure.in (cd $(topsrcdir) && $(AUTOCONF)) && (cd $(DEPTH) && ./config.status --recheck) endif ###############################################################################
--- a/js/src/configure.in +++ b/js/src/configure.in @@ -172,17 +172,17 @@ MOZ_ARG_WITH_STRING(dist-dir, TOP_DIST=$withval, TOP_DIST=dist) AC_SUBST(TOP_DIST) dnl Default to MSVC for win32 and gcc-4.2 for darwin dnl ============================================================== if test -z "$CROSS_COMPILE"; then case "$target" in -*-cygwin*|*-mingw*|*-msvc*|*-mks*) +*-mingw*) if test -z "$CC"; then CC=cl; fi if test -z "$CXX"; then CXX=cl; fi if test -z "$CPP"; then CPP="cl -E -nologo"; fi if test -z "$CXXCPP"; then CXXCPP="cl -TP -E -nologo"; ac_cv_prog_CXXCPP="$CXXCPP"; fi if test -z "$LD"; then LD=link; fi if test -z "$AS"; then case "${target_cpu}" in i*86) @@ -595,17 +595,17 @@ 502|600|601) *) AC_MSG_ERROR([Invalid value for --with-windows-version ($WINSDK_TARGETVER), must be 502, 600 or 601]); ;; esac case "$target" in -*-cygwin*|*-mingw*|*-msvc*|*-mks*|*-wince|*-winmo) +*-mingw*|*-wince|*-winmo) if test "$GCC" != "yes"; then # Check to see if we are really running in a msvc environemnt _WIN32_MSVC=1 # Make sure compilers are valid CFLAGS="$CFLAGS -TC -nologo" CXXFLAGS="$CXXFLAGS -TP -nologo" # MSVC warning C4345 warns of newly conformant behavior as of VS2003. @@ -1163,17 +1163,17 @@ fi # COMPILE_ENVIRONMENT if test -n "$MAKE"; then if test `echo $MAKE | grep -c make.py` != 1; then NOT_PYMAKE=$MAKE fi fi case "$host_os" in -cygwin*|mingw*|mks*|msvc*) +mingw*) MOZ_PATH_PROGS(GMAKE, $GMAKE $NOT_PYMAKE make gmake, :) ;; *) MOZ_PATH_PROGS(GMAKE, $GMAKE $NOT_PYMAKE gmake make, :) ;; esac if test "$GMAKE" = ":"; then AC_MSG_ERROR([GNU make not found]) @@ -1201,17 +1201,16 @@ DLL_PREFIX=lib LIB_PREFIX=lib DLL_SUFFIX=.so OBJ_SUFFIX=o LIB_SUFFIX=a ASM_SUFFIX=s IMPORT_LIB_SUFFIX= TARGET_MD_ARCH=unix DIRENT_INO=d_ino -CYGWIN_WRAPPER= WIN_TOP_SRC= MOZ_USER_DIR=".mozilla" MOZ_JS_LIBS='-L$(libdir) -lmozjs' MOZ_FIX_LINK_PATHS='-Wl,-rpath-link,$(LIBXUL_DIST)/bin -Wl,-rpath-link,$(prefix)/lib' MOZ_COMPONENT_NSPR_LIBS='-L$(LIBXUL_DIST)/bin $(NSPR_LIBS)' @@ -1265,17 +1264,17 @@ HOST_OS_ARCH=`echo $host_os | sed -e 's| # OS_ARCH # OS_TEST # OS_TARGET # OS_RELEASE # OS_MINOR_RELEASE # case "$HOST_OS_ARCH" in -cygwin*|mingw*|mks*|msvc*) +mingw*) HOST_OS_ARCH=WINNT ;; darwin*) HOST_OS_ARCH=Darwin ;; linux*) HOST_OS_ARCH=Linux ;; @@ -1358,23 +1357,18 @@ Windows_NT) OS_ARCH=WINNT OS_TARGET=WINNT OS_MINOR_RELEASE=`uname -v` if test "$OS_MINOR_RELEASE" = "00"; then OS_MINOR_RELEASE=0 fi OS_RELEASE="${OS_RELEASE}.${OS_MINOR_RELEASE}" ;; -CYGWIN32_NT|CYGWIN_NT*|MINGW*_NT*) +MINGW*_NT*) # -# If uname -s returns "CYGWIN_NT-4.0", we assume that we are using -# the uname.exe in the Cygwin tools. -# Prior to the Beta 20 release, Cygwin was called GNU-Win32. -# If uname -s returns "CYGWIN32/NT", we assume that we are using -# the uname.exe in the GNU-Win32 tools. # If uname -s returns MINGW32_NT-5.1, we assume that we are using # the uname.exe in the MSYS tools. # OS_RELEASE=`expr $OS_ARCH : '.*NT-\(.*\)'` OS_ARCH=WINNT OS_TARGET=WINNT ;; AIX) @@ -1824,51 +1818,35 @@ dnl System overrides of the defaults for dnl ======================================================== case "$host" in *-beos*) HOST_CFLAGS="$HOST_CFLAGS -DXP_BEOS -DBeOS -DBEOS -D_POSIX_SOURCE -DNO_X11" HOST_NSPR_MDCPUCFG='\"md/_beos.cfg\"' HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}" ;; -*cygwin*|*mingw*|*mks*|*msvc*|*wince|*winmo) +*mingw*|*wince|*winmo) # we need Python 2.5 on Windows PYTHON_VERSION=2.5 if test -n "$_WIN32_MSVC"; then HOST_AR=lib HOST_AR_FLAGS='-NOLOGO -OUT:"$@"' HOST_CFLAGS="$HOST_CFLAGS -TC -nologo -Fd\$(HOST_PDBFILE)" HOST_RANLIB='echo ranlib' else HOST_CFLAGS="$HOST_CFLAGS -mno-cygwin" fi HOST_CFLAGS="$HOST_CFLAGS -DXP_WIN32 -DXP_WIN -DWIN32 -D_WIN32 -DNO_X11" HOST_NSPR_MDCPUCFG='\"md/_winnt.cfg\"' HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O2}" HOST_BIN_SUFFIX=.exe case "$host" in *mingw*) - dnl MinGW/MSYS does not need CYGWIN_WRAPPER PERL="/bin/sh ${_topsrcdir}/build/msys-perl-wrapper" ;; - *) - CYGWIN_WRAPPER="${srcdir}/build/cygwin-wrapper" - if test "`echo ${srcdir} | grep -c ^/ 2>/dev/null`" = 0; then - _pwd=`pwd` - CYGWIN_WRAPPER="${_pwd}/${srcdir}/build/cygwin-wrapper" - fi - if test "`${PERL} -v | grep -c cygwin 2>/dev/null`" = 0; then - AS_PERL=1 - PERL="${CYGWIN_WRAPPER} $PERL" - fi - - if test "`${PYTHON} -c 'import sys; print sys.platform;'`" != "cygwin"; then - PYTHON="${CYGWIN_WRAPPER} $PYTHON" - fi - ;; esac case "${host_cpu}" in x86_64) HOST_CFLAGS="$HOST_CFLAGS -D_AMD64_" ;; esac ;; @@ -2325,17 +2303,17 @@ ia64*-hpux*) MKSHLIB= DSO_LDOPTS= DSO_CFLAGS= VISIBILITY_FLAGS= TARGET_NSPR_MDCPUCFG='\"md/_symbian.cfg\"' RANLIB='echo no ranlib ' ;; -*-mingw*|*-cygwin*|*-msvc*|*-mks*) +*-mingw*) DSO_CFLAGS= DSO_PIC_CFLAGS= DLL_SUFFIX=.dll RC=rc.exe # certain versions of cygwin's makedepend barf on the # #include <string> vs -I./dist/include/string issue so don't use it SYSTEM_MAKEDEPEND= if test -n "$GNU_CC"; then @@ -2446,52 +2424,41 @@ ia64*-hpux*) dnl Hardcode to win95 for now - cls TARGET_NSPR_MDCPUCFG='\"md/_win95.cfg\"' dnl set NO_X11 defines here as the general check is skipped on win32 no_x=yes AC_DEFINE(NO_X11) - dnl MinGW/MSYS doesn't provide or need cygpath + case "$host" in + *-mingw*) + MOZ_BUILD_ROOT=`cd $MOZ_BUILD_ROOT && pwd -W` + ;; + esac + case "$host" in *-mingw*) - CYGPATH_W=echo - CYGPATH_S=cat - MOZ_BUILD_ROOT=`cd $MOZ_BUILD_ROOT && pwd -W` - ;; - *-cygwin*|*-msvc*|*-mks*) - CYGPATH_W="cygpath -a -w" - CYGPATH_S="sed -e s|\\\\|/|g" - MOZ_BUILD_ROOT=`$CYGPATH_W $MOZ_BUILD_ROOT | $CYGPATH_S` - ;; - esac - case "$host" in - *-mingw*|*-cygwin*|*-msvc*|*-mks*) - - if test -z "$MOZ_TOOLS"; then - AC_MSG_ERROR([MOZ_TOOLS is not set]) - fi - - MOZ_TOOLS_DIR=`cd $MOZ_TOOLS && pwd -W` - if test "$?" != "0" -o -z "$MOZ_TOOLS_DIR"; then - AC_MSG_ERROR([cd \$MOZ_TOOLS failed. MOZ_TOOLS ==? $MOZ_TOOLS]) - fi - MOZ_TOOLS_BIN_DIR="$(cd "$MOZ_TOOLS_DIR/bin" && pwd)" - if test `echo ${PATH}: | grep -ic "$MOZ_TOOLS_BINDIR:"` = 0; then - AC_MSG_ERROR([\$MOZ_TOOLS\\bin must be in your path.]) - fi - MOZ_TOOLS_DIR=`$CYGPATH_W $MOZ_TOOLS_DIR | $CYGPATH_S` - ;; + if test -z "$MOZ_TOOLS"; then + AC_MSG_ERROR([MOZ_TOOLS is not set]) + fi + MOZ_TOOLS_DIR=`cd $MOZ_TOOLS && pwd -W` + if test "$?" != "0" -o -z "$MOZ_TOOLS_DIR"; then + AC_MSG_ERROR([cd \$MOZ_TOOLS failed. MOZ_TOOLS ==? $MOZ_TOOLS]) + fi + MOZ_TOOLS_BIN_DIR="$(cd "$MOZ_TOOLS_DIR/bin" && pwd)" + if test `echo ${PATH}: | grep -ic "$MOZ_TOOLS_BINDIR:"` = 0; then + AC_MSG_ERROR([\$MOZ_TOOLS\\bin must be in your path.]) + fi + ;; esac - case "$host_os" in cygwin*|msvc*|mks*) - AC_MSG_WARN([Using a cygwin build environment is unsupported. Configure cannot check for the presence of necessary headers. Please upgrade to MozillaBuild; see https://developer.mozilla.org/en/Windows_Build_Prerequisites.]) + AC_MSG_ERROR([Using a Cygwin build environment is unsupported. Configure cannot check for presence of necessary headers. Please upgrade to MozillaBuild; see https://developer.mozilla.org/en/Windows_Build_Prerequisites.]) ;; esac case "$target" in i*86-*) if test "$HAVE_64BIT_OS"; then AC_MSG_ERROR([You are targeting i386 but using the 64-bit compiler.]) fi @@ -2863,17 +2830,17 @@ case "$target" in NO_LD_ARCHIVE_FLAGS= ;; *-aix4.3*|*-aix5*) NO_LD_ARCHIVE_FLAGS= ;; *-openvms*) NO_LD_ARCHIVE_FLAGS= ;; -*-msvc*|*-mks*|*-mingw*|*-cygwin*|*-wince|*-winmo) +*-mingw*|*-wince|*-winmo) if test -z "$GNU_CC"; then NO_LD_ARCHIVE_FLAGS= fi ;; esac AC_SUBST(NO_LD_ARCHIVE_FLAGS) dnl ======================================================== @@ -2895,17 +2862,17 @@ case "$target" in fi ;; *-nto*) MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script' ;; *-darwin*) MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,-exported_symbols_list -Wl,$(BUILD_TOOLS)/gnu-ld-scripts/components-export-list' ;; - *-cygwin*|*-mingw*|*-mks*|*-msvc|*-wince|*-winmo) + *-mingw*|*-wince|*-winmo) if test -n "$GNU_CC"; then MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script' fi ;; esac if test -z "$COMPILE_ENVIRONMENT"; then SKIP_COMPILER_CHECKS=1 @@ -3027,17 +2994,17 @@ case "$target" in AC_DEFINE(AVMPLUS_UNIX) ;; *-freebsd*|*-kfreebsd*) AC_DEFINE(AVMPLUS_UNIX) ;; *-gnu*) AC_DEFINE(AVMPLUS_UNIX) ;; -*-cygwin*|*-mingw*|*-mks*|*-msvc*|*-wince|*-winmo) +*-mingw*|*-wince|*-winmo) AC_DEFINE(AVMPLUS_WIN32) ;; *-os2*) AC_DEFINE(AVMPLUS_OS2) ;; *) AC_MSG_ERROR([Unrecognized nanojit platform. Use --disable-tracejit to build without tracing JIT support.]) esac @@ -3842,17 +3809,17 @@ AC_CACHE_CHECK( )] ) if test "$ac_cv_func_gnu_get_libc_version" = "yes"; then AC_DEFINE(HAVE_GNU_GET_LIBC_VERSION) fi case $target_os in - os2*|msvc*|mks*|cygwin*|mingw*|darwin*|wince*|winmo*|beos*) + darwin*|mingw*|os2*|wince*|winmo*) ;; *) AC_CHECK_LIB(c, iconv, [_ICONV_LIBS="$_ICONV_LIBS"], AC_CHECK_LIB(iconv, iconv, [_ICONV_LIBS="$_ICONV_LIBS -liconv"], AC_CHECK_LIB(iconv, libiconv, [_ICONV_LIBS="$_ICONV_LIBS -liconv"]))) _SAVE_LIBS=$LIBS LIBS="$LIBS $_ICONV_LIBS" @@ -4932,17 +4899,17 @@ if test "$MOZ_MEMORY"; then AC_DEFINE(MOZ_MEMORY_LINUX) ;; *-netbsd*) AC_DEFINE(MOZ_MEMORY_BSD) ;; *-solaris*) AC_DEFINE(MOZ_MEMORY_SOLARIS) ;; - *-msvc*|*-mks*|*-cygwin*|*-mingw*) + *-mingw*) AC_DEFINE(MOZ_MEMORY_WINDOWS) # the interesting bits will get passed down in MOZ_MEMORY_LDFLAGS ;; *-*wince) AC_DEFINE(MOZ_MEMORY_WINCE) AC_DEFINE(MOZ_MEMORY_WINDOWS) if test -z "$WINCE_WINDOWS_MOBILE"; then AC_DEFINE(MOZ_MEMORY_WINCE6) @@ -5590,17 +5557,17 @@ MOZ_ARG_ENABLE_BOOL(readline, JS_WANT_READLINE=1, JS_WANT_READLINE= ) JS_NATIVE_EDITLINE= EDITLINE_LIBS= JS_DISABLE_SHELL= case "$target" in -*-wince*|*-winmo*|*-mingw*|*-cygwin*|*-msvc*|*-mks*) +*-mingw*|*-wince*|*-winmo*) NO_EDITLINE=1 ;; *-symbian*) NO_EDITLINE=1 JS_DISABLE_SHELL=1 ;; *) ;; @@ -5731,18 +5698,16 @@ AC_SUBST(FIREFOX_VERSION) AC_SUBST(MOZ_PKG_SPECIAL) AC_SUBST(MOZILLA_OFFICIAL) dnl win32 options AC_SUBST(MOZ_MAPINFO) AC_SUBST(MOZ_BROWSE_INFO) AC_SUBST(MOZ_TOOLS_DIR) -AC_SUBST(CYGWIN_WRAPPER) -AC_SUBST(AS_PERL) AC_SUBST(WIN32_REDIST_DIR) AC_SUBST(PYTHON) AC_SUBST(WINCE) AC_SUBST(WINCE_SDK_DIR) AC_SUBST(WINCE_WINDOWS_MOBILE) dnl Echo the CFLAGS to remove extra whitespace. @@ -5922,38 +5887,22 @@ fi dnl ======================================================== dnl JavaScript shell dnl ======================================================== AC_HAVE_FUNCS(setlocale) AC_HAVE_FUNCS(localeconv) -dnl ======================================================== -dnl Use cygwin wrapper for win32 builds, except MSYS/MinGW -dnl ======================================================== case "$host_os" in mingw*) WIN_TOP_SRC=`cd $srcdir; pwd -W` ;; -cygwin*|msvc*|mks*) - HOST_CC="\$(CYGWIN_WRAPPER) $HOST_CC" - HOST_CXX="\$(CYGWIN_WRAPPER) $HOST_CXX" - CC="\$(CYGWIN_WRAPPER) $CC" - CXX="\$(CYGWIN_WRAPPER) $CXX" - CPP="\$(CYGWIN_WRAPPER) $CPP" - LD="\$(CYGWIN_WRAPPER) $LD" - AS="\$(CYGWIN_WRAPPER) $AS" - RC="\$(CYGWIN_WRAPPER) $RC" - CYGDRIVE_MOUNT=`mount -p | awk '{ if (/^\//) { print $1; exit } }'` - WIN_TOP_SRC=`cygpath -a -w $srcdir | sed -e 's|\\\\|/|g'` - ;; esac -AC_SUBST(CYGDRIVE_MOUNT) AC_SUBST(WIN_TOP_SRC) AC_SUBST(MOZILLA_VERSION) AC_SUBST(ac_configure_args) dnl Spit out some output dnl ======================================================== @@ -6033,21 +5982,17 @@ dnl If it succeeds, it outputs a shell c dnl for the files it cannot handle correctly. This way, config.status dnl will handle these files. dnl If it fails, nothing is set and config.status will run as usual. dnl dnl This does not change the $MAKEFILES variable. dnl dnl OpenVMS gets a line overflow on the long eval command, so use a temp file. dnl -if test -z "${AS_PERL}"; then echo $MAKEFILES | ${PERL} $srcdir/build/autoconf/acoutput-fast.pl > conftest.sh -else -echo $MAKEFILES | ${PERL} $srcdir/build/autoconf/acoutput-fast.pl -nowrap --cygwin-srcdir=$srcdir > conftest.sh -fi . ./conftest.sh rm conftest.sh echo $MAKEFILES > unallmakefiles mv -f config/autoconf.mk config/autoconf.mk.orig 2> /dev/null AC_OUTPUT($MAKEFILES)