Bug 471854 - Build error in accessible/public/msaa on x64 Windows with VC8; r=(m_kato + ted.mielczarek)

This commit is contained in:
Masatoshi Kimura 2009-01-21 16:12:35 +01:00
Родитель 4ece783901
Коммит aee5ab0d98
3 изменённых файлов: 14 добавлений и 44 удалений

Просмотреть файл

@ -571,27 +571,24 @@ case "$target" in
_MIDL_REV_VERSION=`echo ${_MIDL_FULL_VERSION} | $AWK -F\. '{ print $3 }'`
# Add flags if necessary
AC_MSG_CHECKING([for midl flags])
if test -n "$_MIDL_MAJOR_VERSION"; then
if test \( "$_MIDL_MAJOR_VERSION" -gt "6" \) -o \( "$_MIDL_MAJOR_VERSION" = "6" -a "$_MIDL_MINOR_VERSION" -gt "0" \) -o \( "$_MIDL_MAJOR_VERSION" = "6" -a "$_MIDL_MINOR_VERSION" = "00" -a "$_MIDL_REV_VERSION" -gt "359" \); then
# Starting with MIDL version 6.0.359, the MIDL compiler
# generates /Oicf /robust stubs by default, which is not
# compatible with versions of Windows older than Win2k.
# This switches us back to the old behaviour. When we drop
# support for Windows older than Win2k, we should remove
# this.
MIDL_FLAGS="${MIDL_FLAGS} -no_robust"
AC_MSG_RESULT([need -no_robust])
case "$target" in
i*86-*)
if test \( "$_MIDL_MAJOR_VERSION" = "7" -a "$_MIDL_MINOR_VERSION" = "00" -a "$_MIDL_REV_VERSION" = "0499" \); then
# MIDL version 7.00.0499 defaults /env win64 on x64 platforms.
# MIDL version 7.00.0500 or later has no problem.
MIDL_FLAGS="${MIDL_FLAGS} -env win32"
AC_MSG_RESULT([need -env win32])
else
MIDL_FLAGS="${MIDL_FLAGS}"
AC_MSG_RESULT([none needed])
fi
else
MIDL_FLAGS="${MIDL_FLAGS}"
;;
*)
AC_MSG_RESULT([none needed])
fi
;;
esac
unset _MSVC_VER_FILTER
else
# Check w32api version
_W32API_MAJOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $1 }'`

Просмотреть файл

@ -189,8 +189,6 @@ USE_SHORT_LIBNAME = @USE_SHORT_LIBNAME@
IMPLIB = @IMPLIB@
FILTER = @FILTER@
BIN_FLAGS = @BIN_FLAGS@
MIDL = @MIDL@
MIDL_FLAGS = @MIDL_FLAGS@
_MSC_VER = @_MSC_VER@
DLL_PREFIX = @DLL_PREFIX@

Просмотреть файл

@ -183,7 +183,6 @@ case "$target" in
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 AS=ml; fi
if test -z "$MIDL"; then MIDL=midl; fi
;;
esac
fi
@ -407,7 +406,6 @@ case "$target" in
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"
@ -507,29 +505,8 @@ case "$target" in
fi
INCREMENTAL_LINKER=1
# Check midl version
_MIDL_FULL_VERSION=`"${MIDL}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"`
_MIDL_MAJOR_VERSION=`echo ${_MIDL_FULL_VERSION} | $AWK -F\. '{ print $1 }'`
_MIDL_MINOR_VERSION=`echo ${_MIDL_FULL_VERSION} | $AWK -F\. '{ print $2 }'`
_MIDL_REV_VERSION=`echo ${_MIDL_FULL_VERSION} | $AWK -F\. '{ print $3 }'`
# Add flags if necessary
AC_MSG_CHECKING([for midl flags])
if test \( "$_MIDL_MAJOR_VERSION" -gt "6" \) -o \( "$_MIDL_MAJOR_VERSION" = "6" -a "$_MIDL_MINOR_VERSION" -gt "0" \) -o \( "$_MIDL_MAJOR_VERSION" = "6" -a "$_MIDL_MINOR_VERSION" = "00" -a "$_MIDL_REV_VERSION" -gt "359" \); then
# Starting with MIDL version 6.0.359, the MIDL compiler
# generates /Oicf /robust stubs by default, which is not
# compatible with versions of Windows older than Win2k.
# This switches us back to the old behaviour. When we drop
# support for Windows older than Win2k, we should remove
# this.
MIDL_FLAGS="${MIDL_FLAGS} -no_robust"
AC_MSG_RESULT([need -no_robust])
else
MIDL_FLAGS="${MIDL_FLAGS}"
AC_MSG_RESULT([none needed])
fi
unset _MSVC_VER_FILTER
else
# Check w32api version
_W32API_MAJOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $1 }'`
@ -625,7 +602,6 @@ else
CROSS_COMPILE=
fi
AC_SUBST(MIDL_FLAGS)
AC_SUBST(_MSC_VER)
AC_SUBST(GNU_AS)
@ -5209,7 +5185,6 @@ cygwin*|msvc*|mks*)
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'`
;;