[config] configure.ac checks required features, updated porting

Added a real config.rpath
Fixed build date calc for BSD
Require some needed headers at configure time
Correctly check libav functions using pkg-config flags
Made checks for some Linux features available on other ports
Fixed porting issue with antlr dep files
Added default HOST_NAME_MAX if not defined
Added missing libav header
This commit is contained in:
Scott Shambarger
2016-12-29 16:14:22 -08:00
parent bcf7324c0a
commit 8ead7ea3b8
9 changed files with 765 additions and 87 deletions

View File

@@ -183,11 +183,11 @@ commands_base_new(struct event_base *evbase, command_exit_cb exit_cb)
return NULL;
}
# if defined(__linux__)
#ifdef HAVE_PIPE2
ret = pipe2(cmdbase->command_pipe, O_CLOEXEC);
# else
#else
ret = pipe(cmdbase->command_pipe);
# endif
#endif
if (ret < 0)
{
DPRINTF(E_LOG, L_MAIN, "Could not create command pipe: %s\n", strerror(errno));