[SCM] Samba Shared Repository - branch master updated

Matthias Dieter Wallnöfer mdw at samba.org
Tue Nov 24 15:38:10 MST 2009


The branch, master has been updated
       via  f299c19... s4: Check SUN compiler and remove "-fullwarn" when using it
      from  b2dd546... Allow us to pass RAW-CHKPATH with FILE_FLAG_POSIX_SEMANTICS set or with wide links = no. Jeremy.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit f299c19aa8bb731c66c14b7c061d1fc82cc199d0
Author: Brian Lu <brian.lu at sun.com>
Date:   Tue Nov 24 22:10:22 2009 +0100

    s4: Check SUN compiler and remove "-fullwarn" when using it
    
    This option is only supported by "gcc".
    For details consider https://bugzilla.samba.org/show_bug.cgi?id=6905
    
    Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer at yahoo.de>

-----------------------------------------------------------------------

Summary of changes:
 source4/build/m4/check_cc.m4 |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4
index 32e4b50..8149a8f 100644
--- a/source4/build/m4/check_cc.m4
+++ b/source4/build/m4/check_cc.m4
@@ -16,6 +16,24 @@ if test x$ac_cv_prog_cc_g = xyes -a x$debug = xyes; then
 	CFLAGS="${CFLAGS} -g"
 fi
 
+dnl ###########################################################################
+dnl _AC_LANG_COMPILER_SUNCC
+dnl Check whether the compiler for the current language is really Sun compiler.
+dnl ###########################################################################
+m4_define([AC_LANG_COMPILER_SUNCC],
+[AC_CACHE_CHECK([whether we are really using the Sun _AC_LANG compiler],
+                [ac_cv_[]_AC_LANG_ABBREV[]_compiler_suncc],
+[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef __SUNPRO_C
+       choke me
+#endif
+]])],
+                   [ac_compiler_suncc=yes],
+                   [ac_compiler_suncc=no])
+ac_cv_[]_AC_LANG_ABBREV[]_compiler_suncc=$ac_compiler_suncc
+])])
+
+AC_LANG_COMPILER_SUNCC
+
 ############################################
 # check if the compiler handles c99 struct initialization
 LIBREPLACE_C99_STRUCT_INIT(samba_cv_c99_struct_initialization=yes,
@@ -131,7 +149,7 @@ if test x$developer = xyes; then
 	    AC_SUBST(CFLAG_NO_CAST_QUAL)
 	    AX_CFLAGS_GCC_OPTION(-Wno-unused-macros, CFLAG_NO_UNUSED_MACROS)
 	    AC_SUBST(CFLAG_NO_UNUSED_MACROS)
-	else
+	elif test x"$ac_cv_c_compiler_suncc" != x"yes"; then
 	    AX_CFLAGS_IRIX_OPTION(-fullwarn, DEVELOPER_CFLAGS)
 	fi
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list