Auto-Merge pull request #3138 from mkauf/fix_exec_environment
authorcollectd bot <32910397+collectd-bot@users.noreply.github.com>
Tue, 22 Oct 2019 14:28:38 +0000 (16:28 +0200)
committerGitHub <noreply@github.com>
Tue, 22 Oct 2019 14:28:38 +0000 (16:28 +0200)
Automatically merged due to "Automerge" label

1  2 
configure.ac

diff --combined configure.ac
@@@ -743,10 -743,10 +743,10 @@@ test_cxx_flags() 
  #
  AC_CHECK_FUNCS_ONCE([ \
      asprintf \
+     execvpe \
      getpwnam \
      getpwnam_r \
      if_indextoname \
-     setenv \
      setgroups \
      setlocale
    ]
@@@ -858,17 -858,6 +858,17 @@@ AC_CHECK_FUNCS([socket]
  AM_CONDITIONAL([BUILD_WITH_LIBSOCKET], [test "x$socket_needs_socket" = "xyes"])
  AM_CONDITIONAL([BUILD_WITH_GNULIB], [test "x$socket_needs_gnulib" = "xyes"])
  
 +AC_CHECK_FUNCS([inet_ntop],
 +  [],
 +  [
 +    AC_CHECK_LIB([nsl], [inet_ntop],
 +      [inet_ntop_needs_nsl="yes"],
 +      [AC_MSG_ERROR([cannot find inet_ntop() in libnsl])]
 +    )
 +  ]
 +)
 +AM_CONDITIONAL([BUILD_WITH_LIBNSL], [test "x$inet_ntop_needs_nsl" = "xyes"])
 +
  clock_gettime_needs_posix4="no"
  AC_CHECK_FUNCS([clock_gettime],
    [have_clock_gettime="yes"],