winemaker: try to use -fms-extensions
Kirill Smelkov
kirr at landau.phys.spbu.ru
Sat Dec 13 13:35:38 CST 2003
Hello,
Kirill Smelkov <kirr at landau.phys.spbu.ru>
winemaker: added test for -fms-extensions to generated
configure.ac.
-------------- next part --------------
Index: tools/winemaker
===================================================================
RCS file: /home/wine/wine/tools/winemaker,v
retrieving revision 1.69
diff -u -u -r1.69 winemaker
--- tools/winemaker 25 Nov 2003 03:31:26 -0000 1.69
+++ tools/winemaker 13 Dec 2003 11:31:51 -0000
@@ -2499,6 +2499,14 @@
[has_gxx_permissive="yes"],
[has_gxx_permissive="no"])
)
+ CXXFLAGS="-fms-extensions";
+ AC_CACHE_CHECK([for g++ -fms-extensions option], has_gxx_msextensions,
+ AC_TRY_COMPILE(,[
+ ;
+ ],
+ [has_gxx_msextensions="yes"],
+ [has_gxx_msextensions="no"])
+ )
CXXFLAGS="-fno-for-scope";
AC_CACHE_CHECK([for g++ -fno-for-scope option], has_gxx_no_for_scope,
AC_TRY_COMPILE(,[
@@ -2513,6 +2521,10 @@
then
CXXFLAGS="$CXXFLAGS -fpermissive"
fi
+ if test "$has_gxx_msextensions" = "yes"
+ then
+ CXXFLAGS="$CXXFLAGS -fms-extensions"
+ fi
if test "$has_gxx_no_for_scope" = "yes"
then
CXXFLAGS="$CXXFLAGS -fno-for-scope"
More information about the wine-patches
mailing list