X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=configure.ac;h=3578f2e145dd404d184313f3be68a05464c5453d;hp=3ef087d4de58981eb33649c5a3c497f1ff36f0e9;hb=6616302fb8dbbca4eddc11a756ed4843bd0bf61a;hpb=0e73c26f5670b2f11eecfdadaf545bcc7f260658 diff --git a/configure.ac b/configure.ac index 3ef087d4..3578f2e1 100644 --- a/configure.ac +++ b/configure.ac @@ -743,10 +743,10 @@ test_cxx_flags() { # AC_CHECK_FUNCS_ONCE([ \ asprintf \ + execvpe \ getpwnam \ getpwnam_r \ if_indextoname \ - setenv \ setgroups \ setlocale ] @@ -2722,6 +2722,7 @@ if test "x$withval" != "xno"; then else AC_MSG_RESULT([no]) with_libgrpcpp="no (requires C++11 support)" + with_libprotobuf="no ( requires C++11 support)" fi fi @@ -4568,7 +4569,7 @@ if test "x$withval" != "xno"; then AC_CHECK_LIB([protobuf], [main], [ SAVE_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$with_libprotobuf_cppflags $PROTOBUF_CFLAGS" + CPPFLAGS="-std=c++11 $with_libprotobuf_cppflags $PROTOBUF_CFLAGS" if test "x$PROTOBUF_LIBS" = "x" then PROTOBUF_LIBS="-lprotobuf" @@ -5517,7 +5518,7 @@ AC_ARG_WITH([libupsclient], else if test "x$withval" = "xyes"; then with_libupsclient="use_pkgconfig" else - if test -x "$withval"; then + if test -f "$withval" && test -x "$withval"; then with_libupsclient_config="$withval" with_libupsclient="use_libupsclient_config" else if test -x "$withval/bin/libupsclient-config"; then