[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: PATCH: gcc 3 hacks
From: Dirk Mueller <dmuell () gmx ! net>
Date: 2001-02-17 16:59:20
[Download RAW message or body]
Moin Stephan!
> you're out. But if you phrase it 'work around broken compilers' perhaps?
> :)
ok?
Dirk
["patch.configure" (text/plain)]
Index: acinclude.m4.in
===================================================================
RCS file: /home/kde/kde-common/admin/acinclude.m4.in,v
retrieving revision 2.68
diff -u -3 -d -p -r2.68 acinclude.m4.in
--- acinclude.m4.in 2001/02/14 03:02:30 2.68
+++ acinclude.m4.in 2001/02/17 16:59:06
@@ -2239,15 +2239,26 @@ dnl dependecies between AC_PROG_CPP and
fi
fi
- KDE_CHECK_COMPILER_FLAG(fno-exceptions,
+ AC_ARG_ENABLE(exceptions, [ --enable-exceptions Use for broken libstdc++ \
that doesn't support -fno-exceptions [default=no]], [
- CXXFLAGS="$CXXFLAGS -fno-exceptions"
- ])
+ if test "$enableval" = "yes"; then
+ kde_use_exceptions="yes"
+ else
+ kde_use_exceptions="no"
+ fi
+ ], [ kde_use_exceptions="no"])
+
+ if test "$kde_use_exceptions" = "no"; then
+ KDE_CHECK_COMPILER_FLAG(fno-exceptions,
+ [
+ CXXFLAGS="$CXXFLAGS -fno-exceptions"
+ ])
+ fi
if test "$GXX" = "yes"; then
dnl the libstdc++ v3 shipped with newer gcc's
dnl does not like Qt's strlen #defines
- if test "`$CXX --version`" = "2.97"; then
+ if test "`$CXX --version`" = "3.0"; then
CXXFLAGS="$CXXFLAGS -DQT_GENUINE_STR"
fi
fi
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic