Update of /cvsroot/mahogany/M
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv14093
Modified Files:
configure configure.in
Log Message:
only use -Wno-pointer-sign for cclient compilation if gcc supports it
Index: configure
===================================================================
RCS file: /cvsroot/mahogany/M/configure,v
retrieving revision 1.333
retrieving revision 1.334
diff -b -u -2 -r1.333 -r1.334
--- configure 25 Aug 2006 15:07:55 -0000 1.333
+++ configure 25 Aug 2006 15:39:11 -0000 1.334
@@ -5325,5 +5325,27 @@
IMAP_CFLAGS="$CFLAGS"
IMAP_CPPFLAGS="$IMAP_CPPFLAGS $CPPFLAGS"
-if test "$GCC" = "yes"; then
+echo $ac_n "checking whether $CC accepts -Wno-pointer-sign""... $ac_c" 1>&6
+echo "configure:5329: checking whether $CC accepts -Wno-pointer-sign" >&5
+if eval "test \"`echo '$''{'m_cv_cc_no_warn_ptr_sign'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+
+
+ if test "x$GCC" = "xyes"; then
+ echo 'void f(){}' >conftest.c
+ case "`$CC -Wno-pointer-sign -c conftest.c 2>&1`" in
+ '') m_cv_cc_no_warn_ptr_sign="yes" ;;
+ *) m_cv_cc_no_warn_ptr_sign="no" ;;
+ esac
+ rm -f conftest.*
+ else
+ m_cv_cc_no_warn_ptr_sign="no"
+ fi
+
+
+fi
+
+echo "$ac_t""$m_cv_cc_no_warn_ptr_sign" 1>&6
+if test $m_cv_cc_no_warn_ptr_sign="yes"; then
IMAP_CPPFLAGS="$IMAP_CPPFLAGS -Wno-pointer-sign"
fi
@@ -5381,5 +5403,5 @@
if test "x$GXX" != "xyes"; then
echo $ac_n "checking whether ${CXX} accepts ${DEPFLAGS}""... $ac_c" 1>&6
-echo "configure:5384: checking whether ${CXX} accepts ${DEPFLAGS}" >&5
+echo "configure:5406: checking whether ${CXX} accepts ${DEPFLAGS}" >&5
if eval "test \"`echo '$''{'m_cv_cxx_depflags'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -5404,5 +5426,5 @@
if test "x$GCC" != "xyes"; then
echo $ac_n "checking whether ${CC} accepts ${DEPFLAGS}""... $ac_c"
1>&6
-echo "configure:5407: checking whether ${CC} accepts ${DEPFLAGS}" >&5
+echo "configure:5429: checking whether ${CC} accepts ${DEPFLAGS}" >&5
if eval "test \"`echo '$''{'m_cv_c_depflags'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
Index: configure.in
===================================================================
RCS file: /cvsroot/mahogany/M/configure.in,v
retrieving revision 1.317
retrieving revision 1.318
diff -b -u -2 -r1.317 -r1.318
--- configure.in 31 Jul 2006 00:32:44 -0000 1.317
+++ configure.in 25 Aug 2006 15:39:12 -0000 1.318
@@ -1294,7 +1294,13 @@
IMAP_CFLAGS="$CFLAGS"
IMAP_CPPFLAGS="$IMAP_CPPFLAGS $CPPFLAGS"
-if test "$GCC" = "yes"; then
- dnl there are too many warnings in c-client sources which its author
- dnl refuses to fix, suppress them when using gcc
+dnl there are too many warnings in c-client sources which its author
+dnl refuses to fix, suppress them when using gcc4
+AC_CACHE_CHECK([whether $CC accepts -Wno-pointer-sign],
+ m_cv_cc_no_warn_ptr_sign,
+ [M_GCC_OPTION(-Wno-pointer-sign,
+ m_cv_cc_no_warn_ptr_sign="yes",
+ m_cv_cc_no_warn_ptr_sign="no")]
+)
+if test $m_cv_cc_no_warn_ptr_sign="yes"; then
IMAP_CPPFLAGS="$IMAP_CPPFLAGS -Wno-pointer-sign"
fi
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates