|
|
if test "$GXX" = "yes" || test "$CXX" = "KCC"; then | if test "$GXX" = "yes" || test "$CXX" = "KCC"; then |
if test "$kde_use_debug_code" != "no"; then | if test "$kde_use_debug_code" != "no"; then |
if test "$CXX" = "KCC"; then | if test "$CXX" = "KCC"; then |
CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS" |
CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS" |
else | else |
if test "$kde_use_debug_code" = "full"; then | if test "$kde_use_debug_code" = "full"; then |
CXXFLAGS="-g3 $CXXFLAGS" | CXXFLAGS="-g3 $CXXFLAGS" |
|
|
if test "$GCC" = "yes"; then | if test "$GCC" = "yes"; then |
case $host in | case $host in |
*-*-linux-gnu) | *-*-linux-gnu) |
CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS" |
CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS" |
CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion $CXXFLAGS" | CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion $CXXFLAGS" |
;; | ;; |
esac | esac |
CXXFLAGS="-Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS" |
CXXFLAGS="-Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS" |
KDE_CHECK_COMPILER_FLAG(Wundef,[CXXFLAGS="-Wundef $CXXFLAGS"]) | KDE_CHECK_COMPILER_FLAG(Wundef,[CXXFLAGS="-Wundef $CXXFLAGS"]) |
KDE_CHECK_COMPILER_FLAG(Wbad-function-cast,[CXXFLAGS="-Wbad-function-cast $CXXFLAGS"]) |
|
KDE_CHECK_COMPILER_FLAG(Wno-long-long,[CXXFLAGS="-Wno-long-long $CXXFLAGS"]) | KDE_CHECK_COMPILER_FLAG(Wno-long-long,[CXXFLAGS="-Wno-long-long $CXXFLAGS"]) |
KDE_CHECK_COMPILER_FLAG(Wnon-virtual-dtor,[CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"]) | KDE_CHECK_COMPILER_FLAG(Wnon-virtual-dtor,[CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"]) |
fi | fi |
|
|
AC_CACHE_VAL(kde_cv_func_stpcpy, | AC_CACHE_VAL(kde_cv_func_stpcpy, |
[ | [ |
kde_safe_cxxflags=$CXXFLAGS | kde_safe_cxxflags=$CXXFLAGS |
CXXFLAGS="-Wmissing-prototypes -Werror" |
CXXFLAGS="-Werror" |
AC_LANG_SAVE | AC_LANG_SAVE |
AC_LANG_CPLUSPLUS | AC_LANG_CPLUSPLUS |
AC_TRY_COMPILE([ | AC_TRY_COMPILE([ |