diff options
author | Bruno Haible <bruno@clisp.org> | 2006-11-07 13:46:03 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2006-11-07 13:46:03 +0000 |
commit | 0e1d2681418340ff55594a579f9cf12514e06353 (patch) | |
tree | 485d7b6eaf432226125f35c775e22abc62dfabd3 /m4/inline.m4 | |
parent | 52bcbab28bb36cbb3d80128b3951bacc46390d00 (diff) | |
download | gnulib-0e1d2681418340ff55594a579f9cf12514e06353.tar.gz |
New macro gl_INLINE.
Diffstat (limited to 'm4/inline.m4')
-rw-r--r-- | m4/inline.m4 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/m4/inline.m4 b/m4/inline.m4 new file mode 100644 index 0000000000..18f8ebfc3b --- /dev/null +++ b/m4/inline.m4 @@ -0,0 +1,19 @@ +# inline.m4 serial 1 +dnl Copyright (C) 2006 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Test for the 'inline' keyword or equivalent. +dnl Define 'inline' to a supported equivalent, or to nothing if not supported, +dnl like AC_C_INLINE does. Also, define HAVE_INLINE if 'inline' or an +dnl equivalent is supported, i.e. if the compiler is likely to drop unused +dnl 'static inline' functions. +AC_DEFUN([gl_INLINE], +[ + AC_REQUIRE([AC_C_INLINE]) + if test $ac_cv_c_inline != no; then + AC_DEFINE([HAVE_INLINE], 1, + [Define to 1 if the compiler supports one of the keywords 'inline', '__inline__', '__inline'.]) + fi +]) |