From b6ac55a99266832b8598d852576af108dd650e9e Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Torgeir=20Lerker=C3=B8d?= Date: Thu, 30 Jul 2009 21:32:29 +0200 Subject: [PATCH] S4: Not all non GCC compilers are IRIX CC MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Without this change configure doesn't finish on my system (OpenSolaris 11.06). This as a result of which compiler flags are sett. When compiling in DEVELOPER mode the IRIX -fullwarn flag are added for non IRIX CC if compiler understands this as something. In the case of Sun CC this is passed as -f to the Sun ld. In the Sun world thats equiliant with "specify library for which this file is an auxiliary filter". E.g not good as this gives some rather unfortunate results. The fix in this patch introduces a switch and does the right thing for the platforms that are known. E.g. spesefic Sun cc warnings are turned on in check and old behavior are kept for IRIX cc. Signed-off-by: Torgeir Lerkerød --- source4/build/m4/check_cc.m4 | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4 index 32e4b50..d9ca3bf 100644 --- a/source4/build/m4/check_cc.m4 +++ b/source4/build/m4/check_cc.m4 @@ -132,7 +132,17 @@ if test x$developer = xyes; then AX_CFLAGS_GCC_OPTION(-Wno-unused-macros, CFLAG_NO_UNUSED_MACROS) AC_SUBST(CFLAG_NO_UNUSED_MACROS) else + case "$host_os" in + *irix*) AX_CFLAGS_IRIX_OPTION(-fullwarn, DEVELOPER_CFLAGS) + ;; + *solaris*) + DEVELOPER_CFLAGS="-v" + ;; + *sunos*) + DEVELOPER_CFLAGS="-v" + ;; + esac fi CFLAGS="${OLD_CFLAGS}" -- 1.5.6.5