diff options
author | Benedikt Meurer <benny@xfce.org> | 2006-09-02 11:33:28 +0000 |
---|---|---|
committer | Benedikt Meurer <benny@xfce.org> | 2006-09-02 11:33:28 +0000 |
commit | d2cb4cd5563fd69b23dbc462ff9f4f0ccd83ab55 (patch) | |
tree | 1b328fca71d1cc692280cdefa8ad67a3e13c0b6f /m4macros | |
parent | b4cf8b9f32d275b9256c6d349f39995de72341e5 (diff) | |
download | xfce4-dev-tools-d2cb4cd5563fd69b23dbc462ff9f4f0ccd83ab55.tar.gz |
2006-09-02 Benedikt Meurer <benny@xfce.org>
* m4macros/xdt-features.m4: Set gcc specific compiler flags only if
gcc is being used. Bug #2251.
(Old svn revision: 22990)
Diffstat (limited to 'm4macros')
-rw-r--r-- | m4macros/xdt-features.m4 | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/m4macros/xdt-features.m4 b/m4macros/xdt-features.m4 index 082273e..b2d2817 100644 --- a/m4macros/xdt-features.m4 +++ b/m4macros/xdt-features.m4 @@ -44,16 +44,22 @@ AC_HELP_STRING([--disable-debug], [Include no debugging support [default]]), AC_MSG_CHECKING([whether to build with debugging support]) if test x"$enable_debug" != x"no"; then AC_DEFINE([DEBUG], [1], [Define for debugging support]) - - xdt_cv_additional_CFLAGS="-Wall" + + if test x"$GCC" = x"yes"; then + xdt_cv_additional_CFLAGS="-Wall" + fi xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -DXFCE_DISABLE_DEPRECATED" if test x"$enable_debug" = x"full"; then AC_DEFINE([DEBUG_TRACE], [1], [Define for tracing support]) - xdt_cv_additional_CFLAGS="-g3 -Werror $xdt_cv_additional_CFLAGS" + if test x"$GCC" = x"yes"; then + xdt_cv_additional_CFLAGS="-g3 -Werror $xdt_cv_additional_CFLAGS" + fi AC_MSG_RESULT([full]) else - xdt_cv_additional_CFLAGS="-g $xdt_cv_additional_CFLAGS" + if test x"$GCC" = x"yes"; then + xdt_cv_additional_CFLAGS="-g $xdt_cv_additional_CFLAGS" + fi AC_MSG_RESULT([yes]) fi |