From schnetter at cct.lsu.edu Wed Sep 19 07:29:54 2007 From: schnetter at cct.lsu.edu (Erik Schnetter (schnetter)) Date: Wed, 19 Sep 2007 12:29:54 +0000 Subject: [Flesh-cvs] DEVELOPMENT CVS "Cactus/lib/make configure.in configure aclocal.m4" Message-ID: <20070919122954.85BD181A6@asylum.cct.lsu.edu> Update of /cactusdevcvs/Cactus/lib/make In directory asylum.cct.lsu.edu:/tmp/cvs-serv23780 Modified Files: configure.in configure aclocal.m4 Log Message: 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.