summaryrefslogtreecommitdiff
path: root/m4/attributes.m4
AgeCommit message (Collapse)Author
2008-11-20Some warning fixes: XINE_FORMAT_SCANF, statics in headers, consts, ...František Dvořák
Add warning flags to the DEBUG_CFLAGS too.
2008-11-19Create a new macro CC_NOUNDEFINED to check for the -z defs flag orDiego E. 'Flameeyes' Pettenò
equivalent. I wanted this because I'm going to reuse attribute.m4 with that macro for a couple other projects. This also removes AC_TRY_LDFLAGS since it's not used any longer (replaced by CC_CHECK_LDFLAGS, which also caches results).
2008-11-19Update the attributes.m4 file from lscube projects.Diego E. 'Flameeyes' Pettenò
This adds variants of CC_CHECK_CFLAGS that append the flags automatically, and a few comments.
2008-08-07Make the CC_CHECK_* macro work when used in for loops.Diego 'Flameeyes' Pettenò
2008-05-24Backport CC_CHECK_LDFLAGS macro from 1.2 branch.Diego 'Flameeyes' Pettenò
2008-05-24Use M4sh AS_IF rather than sh if statements for common macros.Diego 'Flameeyes' Pettenò
Instead of using directly the sh if statement, use AS_IF, which makes it possible for autotools to identify conditionally-called macros, and allows to avoid M4 ifelse macros.
2008-05-20Add check for const attribute (for mathematical functions).Diego 'Flameeyes' Pettenò
Add CC_ATTRIBUTE_CONST macro to the attributes.h. Run CC_ATTRIBUTE_CONST in configure. Define SUPPORT_ATTRIBUTE_CONST for GCC 3. Define XINE_CONST to __attribute__((__const__)) if supported. --HG-- extra : transplant_source : /26%26%DF%C0%3C%AC%27%5C%B7%B1y%FEQ%8Ay%EE%F1%BD
2008-05-22Merge fix for 54ad8b80e6fc.Diego 'Flameeyes' Pettenò
2008-05-22Don't leak -Werror into the build system.Diego 'Flameeyes' Pettenò
Using the same variable name to save and restore CFLAGS between macros is a bad idea.
2008-05-22Create a backend macro CC_CHECK_FLAGS_SILENT for specific flag macros, and ↵Diego 'Flameeyes' Pettenò
use it for checking -fvisibility=hidden. --HG-- extra : transplant_source : %7B%9AW%E8%B4u%06%18%E4%25K%80d%CF%B2z%EA%0C%ECA
2008-05-22Announce check for -Werror (and equivalent) flags and its result.Diego 'Flameeyes' Pettenò
--HG-- extra : transplant_source : %F0n%9C%FB%F9%B3%1E%A5P%D6%20%01%EF%83k8%7D%8A%D4%5B
2008-05-22Set the cc_cv_cflags_* cached values to no when the flag is not supported.Diego 'Flameeyes' Pettenò
--HG-- extra : transplant_source : %D0hU%99%0D%1F%7D%0D%86s%7B%B2%CB%19_%13%153%86%84
2008-05-09Cleanup handling of packed attribute.Diego 'Flameeyes' Pettenò
- Add a configure test for the attribute, during xine build process. - Define the attribute as supported when using GCC 2.95 or later outside xine build process. - Use the new XINE_PACKED define instead of the attribute directly. - Check for SUPPORT_ATTRIBUTE_PACKED rather than doing strange subdefines.
2008-05-05CFLAGS are saved and changed inside the check cache.Diego 'Flameeyes' Pettenò
2008-05-05Check for malloc attribute and define XINE_MALLOC for use in xineutils.h, ↵Diego 'Flameeyes' Pettenò
rather than just checking for GCC 3.
2008-05-05Generalise attributes checking, so that the same code is not copy-pasted for ↵Diego 'Flameeyes' Pettenò
all attributes.
2008-05-03Add support for "deprecated" attribute.Darren Salt
2007-04-09format_arg attribute requires the function to return char*.Diego 'Flameeyes' Pettenò
2007-04-01Fix test for visibility attributes. Patch thanks to Matt Messier.Diego 'Flameeyes' Pettenò
CVS patchset: 8782 CVS date: 2007/04/01 21:56:35
2007-03-24Improve tests for visibility attribute support; Mach-O supports default ↵Diego 'Flameeyes' Pettenò
visibility but not protected (as the default is actually kinda like protected), thanks to Matt Messier in bug #1686194 for pointing me at that. CVS patchset: 8744 CVS date: 2007/03/24 02:36:52
2007-03-20The AC_C_ATTRIBUTE_ALIGNED macro is broken, it always reports maximum ↵Diego 'Flameeyes' Pettenò
aligned available as 64 even on Darwin where the maximum is 16, as it does not use -Werror, and the wrong alignment is considered only a warning. Rewrite it as CC_ATTRIBUTE_ALIGNED (in attributes.m4, where other similar macros are located). Also reverse the order of the checks, so that the highest version is tried first; this way you can avoid five compile tests on systems where 64 is the highest alignment available. CVS patchset: 8726 CVS date: 2007/03/20 00:30:55
2007-03-19Make CC_CHECK_CFLAGS report the name of the compiler, like AC_TRY_CFLAGS ↵Diego 'Flameeyes' Pettenò
used to. CVS patchset: 8722 CVS date: 2007/03/19 23:41:49
2007-03-19Rewrite the CC_CHECK_CFLAGS macro, to be more in style with Autoconf macros, ↵Diego 'Flameeyes' Pettenò
and cache the value. Rewrite also CC_CHECK_WERROR, caching there too. Rename the final variable with the werror flag ($werror -> $cc_cv_werror). CVS patchset: 8714 CVS date: 2007/03/19 23:02:16
2007-03-16Add a check if the compiler supports weak aliases, to add FreeBSD support to ↵Diego 'Flameeyes' Pettenò
Real codecs. CVS patchset: 8680 CVS date: 2007/03/16 20:12:41
2006-10-02build cdio for builddir != .František Dvořák
update for attic platforms (mainly older MinGW) unsupported attributes not used (fixes warnings) added check for sentinel attribute enabled TrueSpeech codec CVS patchset: 8327 CVS date: 2006/10/02 15:56:03
2006-07-10Add the m4 file with the needed check for -fvisibility=hidden.Diego 'Flameeyes' Pettenò
CVS patchset: 8102 CVS date: 2006/07/10 22:14:55