Enlightenment CVS committal
Author : doursse
Project : e17
Module : libs/embryo
Dir : e17/libs/embryo
Modified Files:
configure.in
Log Message:
fix gettimeofday on windows and add __UNUSED__ for unused parameters
===================================================================
RCS file: /cvs/e/e17/libs/embryo/configure.in,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -3 -r1.65 -r1.66
--- configure.in 22 Mar 2008 08:31:38 -0000 1.65
+++ configure.in 11 Apr 2008 05:59:41 -0000 1.66
@@ -29,10 +29,6 @@
version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
AC_SUBST(version_info)
-AC_FUNC_ALLOCA
-
-AC_CHECK_FUNCS(gettimeofday)
-
WIN32_CFLAGS=""
create_shared_lib=""
case "$host_os" in
@@ -41,14 +37,35 @@
AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed])
dnl needed for correct definition of EAPI
AC_DEFINE(EFL_EMBRYO_BUILD, 1, [Define to mention that embryo
is built])
+ AC_DEFINE(HAVE_GETTIMEOFDAY, 1, [Defined to 1 (MinGW / CeGCC
platform)])
if test "x$host_os" = "xcegcc" ; then
WIN32_CFLAGS="-mwin32"
fi
create_shared_lib="-no-undefined"
;;
+ *)
+ AC_CHECK_FUNCS(gettimeofday)
esac
AC_SUBST(WIN32_CFLAGS)
AC_SUBST(create_shared_lib)
+
+dnl Checking for __attribute__ support
+AC_MSG_CHECKING([for __attribute__])
+AC_CACHE_VAL(have___attribute__,
+ [
+ AC_TRY_COMPILE([#include <stdlib.h>],
+ [int func(int x); int foo(int x __attribute__ ((unused))) { exit(1); }],
+ [have___attribute__="yes"],
+ [have___attribute__="no"])
+ ]
+)
+
+if test "x${have___attribute__}" = "xyes" ; then
+ AC_DEFINE(HAVE___ATTRIBUTE__, 1, [Define to 1 if your compiler has
__attribute__])
+fi
+AC_MSG_RESULT(${have___attribute__})
+
+AC_FUNC_ALLOCA
AC_CHECK_HEADERS(fnmatch.h,, AC_MSG_ERROR([Cannot find fnmatch.h. Make sure
your CFLAGS environment variable contains include lines for the location of
this file]))
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs