Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Shervin Nourbakhsh
cameo
Commits
b3fe9a57
Commit
b3fe9a57
authored
Nov 27, 2019
by
legoc
Browse files
Added rapidjson.m4
parent
c3c2a11c
Changes
1
Hide whitespace changes
Inline
Side-by-side
cameo-api-cpp/m4/rapidjson.m4
0 → 100644
View file @
b3fe9a57
###############################################################################
# Version 27/11/2019
# defines RAPIDJSON_CFLAGS
#
AC_DEFUN([AC_RAPIDJSON],
[
AC_ARG_WITH([rapidjson],
AS_HELP_STRING([--with-rapidjson=PREFIX],[Specify rapidjson library location]),
[],
[with_rapidjson=yes])
RAPIDJSON_CFLAGS=
if test $with_rapidjson != no; then
if test $with_rapidjson != yes; then
rapidjson_possible_path="$with_rapidjson"
else
rapidjson_possible_path="/usr/local /usr /opt /var"
fi
AC_MSG_CHECKING([for rapidjson headers])
rapidjson_save_CXXFLAGS="$CXXFLAGS"
rapidjson_found=no
for rapidjson_path_tmp in $rapidjson_possible_path ; do
# test include
CXXFLAGS="$CXXFLAGS -I$rapidjson_path_tmp/include"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <rapidjson/rapidjson.h>]],[[]])],
[RAPIDJSON_CFLAGS="-I$rapidjson_path_tmp/include"
rapidjson_found=yes]
[])
CXXFLAGS="$rapidjson_save_CXXFLAGS"
if test $rapidjson_found = yes; then
break;
fi
done
AC_MSG_RESULT($rapidjson_found)
if test $rapidjson_found = yes; then
HAVE_RAPIDJSON=1
AC_MSG_RESULT(yes)
AC_SUBST(RAPIDJSON_CFLAGS)
else
AC_MSG_RESULT(no)
fi
fi
])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment