Skip to content

Commit

Permalink
Merge pull request flux-framework#1282 from grondo/issue#1280
Browse files Browse the repository at this point in the history
build: detect broken libyaml-cpp during configure
  • Loading branch information
garlick authored Nov 9, 2017
2 parents cc5cd0a + 9f570e7 commit b989b36
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/x_ac_yamlcpp.m4
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ AC_DEFUN([X_AC_YAMLCPP], [
CFLAGS="$CFLAGS $YAMLCPP_CFLAGS"
AC_LANG_PUSH([C++])
AC_MSG_CHECKING([whether yaml-cpp/yaml.h is usable])
AC_PREPROC_IFELSE(
[AC_LANG_PROGRAM([#include <yaml-cpp/yaml.h>], [])],
[AC_MSG_RESULT([yes])],
[AC_MSG_FAILURE([yaml-cpp/yaml.h doesn't appear to be usable.])]
)
# YAML::Node::Mark() is only present in yaml-cpp beginning
# with release 0.5.3.
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <yaml-cpp/yaml.h>],
Expand Down

0 comments on commit b989b36

Please sign in to comment.