[Xfce4-commits] r22990 - in xfce4-dev-tools/trunk: . m4macros

Benedikt Meurer benny at xfce.org
Sat Sep 2 11:33:29 UTC 2006


Author: benny
Date: 2006-09-02 11:33:28 +0000 (Sat, 02 Sep 2006)
New Revision: 22990

Modified:
   xfce4-dev-tools/trunk/ChangeLog
   xfce4-dev-tools/trunk/m4macros/xdt-features.m4
Log:
2006-09-02	Benedikt Meurer <benny at xfce.org>

	* m4macros/xdt-features.m4: Set gcc specific compiler flags only if
	  gcc is being used. Bug #2251.




Modified: xfce4-dev-tools/trunk/ChangeLog
===================================================================
--- xfce4-dev-tools/trunk/ChangeLog	2006-09-02 10:19:54 UTC (rev 22989)
+++ xfce4-dev-tools/trunk/ChangeLog	2006-09-02 11:33:28 UTC (rev 22990)
@@ -1,3 +1,8 @@
+2006-09-02	Benedikt Meurer <benny at xfce.org>
+
+	* m4macros/xdt-features.m4: Set gcc specific compiler flags only if
+	  gcc is being used. Bug #2251.
+
 2006-07-09      Benedikt Meurer <benny at xfce.org>
 
 	* === Released 4.3.90.2 ===

Modified: xfce4-dev-tools/trunk/m4macros/xdt-features.m4
===================================================================
--- xfce4-dev-tools/trunk/m4macros/xdt-features.m4	2006-09-02 10:19:54 UTC (rev 22989)
+++ xfce4-dev-tools/trunk/m4macros/xdt-features.m4	2006-09-02 11:33:28 UTC (rev 22990)
@@ -44,16 +44,22 @@
   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
 



More information about the Xfce4-commits mailing list