Skip to content

Commit

Permalink
Fix picojson header file issue
Browse files Browse the repository at this point in the history
Use the built-in picojson git submodule instead of system-wide picojson
  • Loading branch information
chenzhiwei committed Sep 25, 2015
1 parent 1a31e22 commit 26ff9f6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "3rdparty/picojson"]
path = 3rdparty/picojson
url = https://github.com/kazuho/picojson
1 change: 1 addition & 0 deletions 3rdparty/picojson
Submodule picojson added at 25fc21
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Building Mesos modules requires system-wide installation of the following:
1. google-protobuf
2. glog
3. boost
4. picojson

## Build Mesos with some unbundled dependencies

Expand Down
7 changes: 3 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ else
fi
fi

basedir=$(cd $(dirname $0) && pwd)
MESOS_CPPFLAGS="${MESOS_CPPFLAGS} -I${basedir}/3rdparty/picojson"

AC_SUBST(MESOS_CPPFLAGS)
AC_SUBST(MESOS_LDFLAGS)

Expand Down Expand Up @@ -159,10 +162,6 @@ AC_CHECK_HEADER([google/protobuf/message.h],
[AC_MSG_ERROR([google protobuf is not installed.])])],
[AC_MSG_ERROR([google protobuf is not installed.])])

AC_CHECK_HEADER([picojson.h],
[],
[AC_MSG_ERROR([picojson is not installed.])])

AC_CHECK_HEADERS([boost/lexical_cast.hpp boost/functional/hash.hpp],
[],
[AC_MSG_ERROR([boost is not installed.])])
Expand Down

0 comments on commit 26ff9f6

Please sign in to comment.