3 # The equivalent of the 'AC_C_INLINE' macro.
5 # defines 'HAVE_INLINE' if inline is available,
6 # and defines 'inline' to be __inline__ or __inline if necessary
7 # or to "" if not available.
9 # Returns 1 if 'inline' is available or 0 otherwise
11 proc cc-check-inline {} {
12 msg-checking "Checking for inline support..."
14 foreach i {inline __inline__ __inline} {
15 if {[cctest -declare "#ifndef __cplusplus\nstatic $i void testfunc__(void);\n#endif"]} {
31 define-feature inline $ok