Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e
Modified Files:
acinclude.m4 configure.in
Log Message:
Prepare to enable compiling the code with paranoid compiler settings.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/acinclude.m4,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- acinclude.m4 7 Apr 2003 00:54:53 -0000 1.2
+++ acinclude.m4 20 Mar 2004 15:20:40 -0000 1.3
@@ -7,7 +7,7 @@
dnl AM_PATH_ESD([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for ESD, and define ESD_CFLAGS and ESD_LIBS
dnl
-AC_DEFUN(AM_PATH_ESD,
+AC_DEFUN([AM_PATH_ESD],
[dnl
dnl Get the cflags and libraries from the esd-config script
dnl
@@ -162,4 +162,18 @@
AC_SUBST(ESD_LIBS)
rm -f conf.esdtest
])
+
+AC_DEFUN([AC_C___ATTRIBUTE__],
+[
+ AC_MSG_CHECKING(for __attribute__)
+ AC_CACHE_VAL(ac_cv___attribute__, [
+ AC_TRY_COMPILE([#include <stdlib.h>],
+ [int func(int x); int foo(int x __attribute__ ((unused))) { exit(1); }],
+ ac_cv___attribute__=yes, ac_cv___attribute__=no)])
+ if test "$ac_cv___attribute__" = "yes"; then
+ AC_DEFINE(HAVE___ATTRIBUTE__, 1, [Define to 1 if your compiler has __attribute__])
+ fi
+ AC_MSG_RESULT($ac_cv___attribute__)
+])
+
AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/configure.in,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -3 -r1.85 -r1.86
--- configure.in 16 Mar 2004 22:06:04 -0000 1.85
+++ configure.in 20 Mar 2004 15:20:40 -0000 1.86
@@ -53,6 +53,7 @@
AC_TYPE_SIGNAL
AC_C_BIGENDIAN
+AC_C___ATTRIBUTE__
AC_CHECK_FUNCS(getcwd)
AC_CHECK_FUNCS(mkdir)
@@ -187,7 +188,7 @@
AC_SUBST(XVM_LIBS)
AC_ARG_ENABLE(xrandr,
- [ --enable-xrandr compile with RandR support [default=no]],
,enable_xrandr=no)
+ [ --enable-xrandr compile with RandR support [default=no]],
,enable_xrandr=no)
if test "x$enable_xrandr" = "xyes"; then
AC_CHECK_LIB(Xrandr, XRRQueryExtension,
AC_DEFINE(HAS_XRANDR, 1, [RandR support]) XRANDR_LIBS=-lXrandr, ,$X_LIBS)
@@ -203,6 +204,13 @@
echo " We highly suggest that you rectify this situation immediately."
])
+AC_ARG_ENABLE(gcc-warnings,
+ [ --enable-gcc-warnings enable GCC compiler warnings [default=no]], ,
+ enable_gcc_warnings=no)
+if test "x$enable_gcc_warnings" = "xyes"; then
+ CFLAGS="$CFLAGS -W -Wall -Wmissing-prototypes -Wmissing-declarations
-Wstrict-prototypes -Waggregate-return -Wcast-align -Wpointer-arith #-Wshadow
-Wwrite-strings -Wunreachable-code"
+fi
+
AC_OUTPUT([
Makefile
src/Makefile
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs