aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2010-03-28 21:14:08 +0300
committerPetri Lehtinen <petri@digip.org>2010-03-28 21:14:08 +0300
commit29ee3832cf1cee4cfebad8e440b58877437c4615 (patch)
tree526f7b0bf76b216ccf45a23dc0a6c3de60709f54 /configure.ac
parentc7c2edae8a6a2ba25c31d50c9f44bbbf080889da (diff)
downloadjansson-29ee3832cf1cee4cfebad8e440b58877437c4615.zip
jansson-29ee3832cf1cee4cfebad8e440b58877437c4615.tar.gz
jansson-29ee3832cf1cee4cfebad8e440b58877437c4615.tar.bz2
Support compilers that don't have the "inline" keyword
Use AC_C_INLINE autoconf macro, include config.h where needed, and add a define of JSON_INLINE to jansson.h that has the correct "inline" keyword.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 6bc9064..746bff2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,6 +17,14 @@ AC_PROG_LIBTOOL
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_INT32_T
+AC_C_INLINE
+case $ac_cv_c_inline in
+ yes) json_inline=inline;;
+ no) json_inline=;;
+ *) json_inline=$ac_cv_c_inline;;
+esac
+AC_SUBST([json_inline])
+
# Checks for library functions.
AC_CONFIG_FILES([
@@ -24,6 +32,7 @@ AC_CONFIG_FILES([
Makefile
doc/Makefile
src/Makefile
+ src/jansson.h
test/Makefile
test/bin/Makefile
test/suites/Makefile