[lttng-dev] [PATCH lttng-tools 3/4] configure: add check for compiler inline keyword support

Jonathan Rajotte jonathan.rajotte-julien at efficios.com
Mon Feb 2 16:33:56 EST 2015


Check support of the inline keyword by the compiler.
If not supported, inline is replaced by the appropriate keyword or nothing.[1]

Based on autoscan diagnostic

[1]http://www.gnu.org/software/autoconf/manual/autoconf.html#AC_005fC_005fINLINE

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien at efficios.com>
---
 configure.ac | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.ac b/configure.ac
index 5290add..8871889 100644
--- a/configure.ac
+++ b/configure.ac
@@ -70,6 +70,7 @@ AC_CHECK_FUNCS([ \
 	strncasecmp strndup strpbrk strrchr strstr strtol strtoul \
 	strtoull \
 ])
+
 # Babeltrace viewer check
 AC_ARG_WITH([babeltrace-bin],
 	AS_HELP_STRING([--with-babeltrace-bin],
@@ -414,7 +415,11 @@ fi
 AM_CONDITIONAL([BUILD_JAVA_LOG4J_AGENT], [test "x$build_java_log4j_agent" = "xyes"])
 
 AC_SYS_LARGEFILE
+
+# C compiler tests
 AC_PROG_CC
+AC_C_INLINE
+
 LT_INIT
 AC_PROG_YACC
 AC_PROG_LEX
-- 
1.9.1




More information about the lttng-dev mailing list