-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from xw19/switch-to-jansson-SM
Switch to jansson sm Remove YAJL and Jansson
- Loading branch information
Showing
9 changed files
with
12 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
AC_PREREQ([2.63]) | ||
AC_INIT([libocispec], [0.3], [[email protected]]) | ||
AC_INIT([libocispec], [0.4], [[email protected]]) | ||
AC_CONFIG_HEADER([config.h]) | ||
AC_CONFIG_MACRO_DIR([m4]) | ||
AC_CONFIG_AUX_DIR([build-aux]) | ||
|
@@ -12,33 +12,6 @@ AM_INIT_AUTOMAKE([1.11 -Wno-portability foreign tar-ustar no-dist-gzip dist-xz s | |
AM_MAINTAINER_MODE([enable]) | ||
AM_SILENT_RULES([yes]) | ||
|
||
AM_EXTRA_RECURSIVE_TARGETS([yajl jansson]) | ||
AC_CONFIG_SUBDIRS([yajl jansson]) | ||
|
||
AC_ARG_ENABLE(embedded-yajl, | ||
AS_HELP_STRING([--enable-embedded-yajl], [Statically link a modified yajl version]), | ||
[ | ||
case "${enableval}" in | ||
yes) embedded_yajl=true ;; | ||
no) embedded_yajl=false ;; | ||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-embedded-yajl) ;; | ||
esac],[embedded_yajl=false]) | ||
|
||
AM_CONDITIONAL([HAVE_EMBEDDED_YAJL], [test x"$embedded_yajl" = xtrue]) | ||
AM_COND_IF([HAVE_EMBEDDED_YAJL], [], [ | ||
AC_SEARCH_LIBS(yajl_tree_get, [yajl], [AC_DEFINE([HAVE_YAJL], 1, [Define if libyajl is available])], [AC_MSG_ERROR([*** libyajl headers not found])]) | ||
PKG_CHECK_MODULES([YAJL], [yajl >= 2.0.0]) | ||
]) | ||
|
||
AC_ARG_ENABLE(embedded-jansson, | ||
AS_HELP_STRING([--enable-embedded-jansson], [Statically link a jansson version]), | ||
[ | ||
case "${enableval}" in | ||
yes) embedded_jansson=true ;; | ||
no) embedded_jansson=false ;; | ||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-embedded-jansson) ;; | ||
esac],[embedded_jansson=false]) | ||
|
||
AM_CONDITIONAL([HAVE_EMBEDDED_JANSSON], [test x"$embedded_jansson" = xtrue]) | ||
AM_COND_IF([HAVE_EMBEDDED_JANSSON], [], [ | ||
AC_SEARCH_LIBS(json_object, [jansson], [AC_DEFINE([HAVE_JANSSON], 1, [Define if libjansson is available])], [AC_MSG_ERROR([*** libjansson headers not found])]) | ||
|
Submodule jansson
deleted from
684e18
Submodule yajl
deleted from
6bc521