Enlightenment CVS committal Author : mej Project : eterm Module : libast
Dir : eterm/libast Modified Files: .cvsignore ChangeLog autogen.sh configure.in libast.spec Log Message: Tue Jun 7 16:28:43 2005 Michael Jennings (mej) Force STRICT_ISO_C99 to be defined when using gcc >= 4.0. Suggestions and partial patch from John Ellson <[EMAIL PROTECTED]>. ---------------------------------------------------------------------- =================================================================== RCS file: /cvsroot/enlightenment/eterm/libast/.cvsignore,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- .cvsignore 10 Nov 2000 03:13:08 -0000 1.2 +++ .cvsignore 7 Jun 2005 20:32:36 -0000 1.3 @@ -27,3 +27,5 @@ *.da *.lo libast-config +autom4te* +depcomp =================================================================== RCS file: /cvsroot/enlightenment/eterm/libast/ChangeLog,v retrieving revision 1.136 retrieving revision 1.137 diff -u -3 -r1.136 -r1.137 --- ChangeLog 7 Mar 2005 22:29:06 -0000 1.136 +++ ChangeLog 7 Jun 2005 20:32:37 -0000 1.137 @@ -741,3 +741,8 @@ Finally found and fixed that stupid "Config file is designed for a newer version of FOO" bullshit warning. ---------------------------------------------------------------------- +Tue Jun 7 16:28:43 2005 Michael Jennings (mej) + +Force STRICT_ISO_C99 to be defined when using gcc >= 4.0. Suggestions +and partial patch from John Ellson <[EMAIL PROTECTED]>. +---------------------------------------------------------------------- =================================================================== RCS file: /cvsroot/enlightenment/eterm/libast/autogen.sh,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- autogen.sh 30 Dec 2004 00:58:45 -0000 1.8 +++ autogen.sh 7 Jun 2005 20:32:37 -0000 1.9 @@ -1,6 +1,6 @@ #!/bin/sh # Run this to generate all the initial makefiles, etc. -# $Id: autogen.sh,v 1.8 2004/12/30 00:58:45 mej Exp $ +# $Id: autogen.sh,v 1.9 2005/06/07 20:32:37 mej Exp $ broken() { echo @@ -61,4 +61,4 @@ (set -x && $AUTOMAKE -a -c) # Run configure. -./configure "$@" +(set -x && ./configure "$@") =================================================================== RCS file: /cvsroot/enlightenment/eterm/libast/configure.in,v retrieving revision 1.24 retrieving revision 1.25 diff -u -3 -r1.24 -r1.25 --- configure.in 7 Mar 2005 20:07:10 -0000 1.24 +++ configure.in 7 Jun 2005 20:32:37 -0000 1.25 @@ -1,4 +1,4 @@ -dnl# $Id: configure.in,v 1.24 2005/03/07 20:07:10 mej Exp $ +dnl# $Id: configure.in,v 1.25 2005/06/07 20:32:37 mej Exp $ test "x$LIBTOOLIZE" = "x" && LIBTOOLIZE=libtoolize test "x$ACLOCAL" = "x" && ACLOCAL=aclocal @@ -72,11 +72,25 @@ [ if test "$withval" != "no"; then CFLAGS="$CFLAGS -Wall -Werror -std=c99 -pedantic" - AC_DEFINE(STRICT_ISO_C99, 1, [Defined if strict ISO C99 (9899:1999) is requested.]) + AC_DEFINE(STRICT_ISO_C99, 1, [Defined if strict ISO C99 (9899:1999) is requested or required.]) fi ] ) +AC_MSG_CHECKING(if STRICT_ISO_C99 required) +AC_TRY_RUN([ + int main () { + int a = 0, b = 0; + (long) a = (long) b; + return 0; + } + ], AC_MSG_RESULT(no), [ + AC_MSG_RESULT(yes) + AC_DEFINE(STRICT_ISO_C99, 1, [Defined if strict ISO C99 (9899:1999) is requested or required.]) + ], [ + AC_MSG_RESULT(no - assumed because cross-compiling) +]) + AST_X11_SUPPORT() AST_IMLIB2_SUPPORT() AST_MMX_SUPPORT() =================================================================== RCS file: /cvsroot/enlightenment/eterm/libast/libast.spec,v retrieving revision 1.20 retrieving revision 1.21 diff -u -3 -r1.20 -r1.21 --- libast.spec 5 Jan 2005 20:20:28 -0000 1.20 +++ libast.spec 7 Jun 2005 20:32:37 -0000 1.21 @@ -1,3 +1,8 @@ +%define __os_install_post /usr/lib/rpm/brp-compress +%if %{?optflags:1}0 +%define optflags ${RPM_OPT_FLAGS} +%endif + Summary: Library of Assorted Spiffy Things Name: libast Version: 0.7 @@ -23,6 +28,10 @@ %setup -q %build +#CFLAGS="-O0 -g3" +CFLAGS="%{optflags}" +export CFLAGS + %{configure} --prefix=%{_prefix} --bindir=%{_bindir} --libdir=%{_libdir} \ --includedir=%{_includedir} --datadir=%{_datadir} %{?acflags} %{__make} %{?_smp_mflags} %{?mflags} ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs