Enlightenment CVS committal Author : doursse Project : e17 Module : libs/eet
Dir : e17/libs/eet Modified Files: configure.in Log Message: add unsued attribute when needed =================================================================== RCS file: /cvs/e/e17/libs/eet/configure.in,v retrieving revision 1.89 retrieving revision 1.90 diff -u -3 -r1.89 -r1.90 --- configure.in 29 Mar 2008 08:27:44 -0000 1.89 +++ configure.in 3 Apr 2008 19:47:07 -0000 1.90 @@ -28,8 +28,6 @@ version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN" AC_SUBST(version_info) -AC_FUNC_ALLOCA - WIN32_CFLAGS="" WIN32_LIBS="" create_shared_lib="" @@ -51,6 +49,24 @@ AC_SUBST(WIN32_CFLAGS) AC_SUBST(WIN32_LIBS) 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_HEADER(zlib.h,, AC_MSG_ERROR("Cannot find zlib.h. Make sure your CFLAGS environment variable contains include lines for the location of this file")) AC_CHECK_HEADER(jpeglib.h,, AC_MSG_ERROR("Cannot find jpeglib.h. Make sure your CFLAGS environment variable contains include lines for the location of this file")) ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs