diff options
author | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2007-09-19 12:29:54 +0000 |
---|---|---|
committer | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2007-09-19 12:29:54 +0000 |
commit | 38e020602d8b5ce9a6bac4ec15ca6e12c91102b1 (patch) | |
tree | 62cf528b17b68f2c8b576f29f50fa216ac101ff8 /lib/sbin | |
parent | eaa8e7b2a5afd1e52a0dad1287240d051ffce636 (diff) |
Introduce a new autoconf macro CCTK_CHECK_C_INLINE, which checks for
the inline keyword very similarly to AC_C_INLINE. CCTK_CHECK_C_INLINE
works in the following way:
Do nothing if the compiler accepts the inline keyword. Otherwise
define inline to __inline__ or __inline if one of those work,
otherwise define inline to be empty.
The setting '__inline__ __attribute__((__gnu_inline__))' is for gcc
4.3 and later. By default this version of gcc follows the new ANSI
standard for "static inline" and "extern inline", which is
incompatible with many libraries (e.g. GSL), leading to linker errors
about duplicate symbols. This is because "static inline" now
generates an externally visible symbol. The setting above makes gcc
fall back to the old meaning, which does not generate an externally
visible symbol for "static inline".
Use CCTK_CHECK_C_INLINE instead of AC_C_INLINE in configure.in.
Re-generate configure.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4429 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin')
0 files changed, 0 insertions, 0 deletions