error.h \
error_utils.h \
file_utils.h \
+ ../include/strchrnul.h \
../include/netns_ifaddrs.h \
initutils.h \
list.h \
if ENABLE_SECCOMP
lxc_attach_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_attach_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_autostart_SOURCES = tools/lxc_autostart.c \
if ENABLE_SECCOMP
lxc_autostart_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_autostart_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_cgroup_SOURCES = tools/lxc_cgroup.c \
if ENABLE_SECCOMP
lxc_cgroup_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_cgroup_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_config_SOURCES = tools/lxc_config.c \
if ENABLE_SECCOMP
lxc_config_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_config_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_console_SOURCES = tools/lxc_console.c \
if ENABLE_SECCOMP
lxc_console_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_console_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_destroy_SOURCES = tools/lxc_destroy.c \
if ENABLE_SECCOMP
lxc_destroy_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_destroy_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_device_SOURCES = tools/lxc_device.c \
if ENABLE_SECCOMP
lxc_device_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_device_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_execute_SOURCES = tools/lxc_execute.c \
if ENABLE_SECCOMP
lxc_execute_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_execute_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_freeze_SOURCES = tools/lxc_freeze.c \
if ENABLE_SECCOMP
lxc_freeze_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_freeze_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_info_SOURCES = tools/lxc_info.c \
if ENABLE_SECCOMP
lxc_info_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_info_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_monitor_SOURCES = tools/lxc_monitor.c \
if ENABLE_SECCOMP
lxc_monitor_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_monitor_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_ls_SOURCES = tools/lxc_ls.c \
if ENABLE_SECCOMP
lxc_ls_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_ls_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_copy_SOURCES = tools/lxc_copy.c \
if ENABLE_SECCOMP
lxc_copy_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_copy_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_start_SOURCES = tools/lxc_start.c \
if ENABLE_SECCOMP
lxc_start_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_start_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_stop_SOURCES = tools/lxc_stop.c \
if ENABLE_SECCOMP
lxc_stop_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_stop_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_top_SOURCES = tools/lxc_top.c \
if ENABLE_SECCOMP
lxc_top_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_top_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_unfreeze_SOURCES = tools/lxc_unfreeze.c \
if ENABLE_SECCOMP
lxc_unfreeze_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_unfreeze_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_unshare_SOURCES = tools/lxc_unshare.c \
if ENABLE_SECCOMP
lxc_unshare_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_unshare_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_wait_SOURCES = tools/lxc_wait.c \
if ENABLE_SECCOMP
lxc_wait_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_wait_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_create_SOURCES = tools/lxc_create.c \
if ENABLE_SECCOMP
lxc_create_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_create_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_snapshot_SOURCES = tools/lxc_snapshot.c \
if ENABLE_SECCOMP
lxc_snapshot_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_snapshot_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_checkpoint_SOURCES = tools/lxc_checkpoint.c \
if ENABLE_SECCOMP
lxc_checkpoint_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_checkpoint_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
+
endif
endif
if ENABLE_SECCOMP
lxc_monitord_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_monitord_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_user_nic_SOURCES = cmd/lxc_user_nic.c
if ENABLE_SECCOMP
lxc_user_nic_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_user_nic_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
lxc_usernsexec_SOURCES = cmd/lxc_usernsexec.c
if ENABLE_SECCOMP
lxc_usernsexec_SOURCES += seccomp.c lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_usernsexec_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
endif
endif
lxc_test_api_reboot_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif
+if !HAVE_STRCHRNUL
+lxc_test_api_reboot_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
+
lxc_test_apparmor_SOURCES = aa.c \
../lxc/af_unix.c ../lxc/af_unix.h \
../lxc/caps.c ../lxc/caps.h \
lxc_test_apparmor_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif
+if !HAVE_STRCHRNUL
+lxc_test_apparmor_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
+
lxc_test_attach_SOURCES = attach.c \
../lxc/af_unix.c ../lxc/af_unix.h \
../lxc/caps.c ../lxc/caps.h \
lxc_test_attach_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif
+if !HAVE_STRCHRNUL
+lxc_test_attach_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
+
lxc_test_basic_SOURCES = basic.c
lxc_test_cgpath_SOURCES = cgpath.c \
../lxc/af_unix.c ../lxc/af_unix.h \
lxc_test_cgpath_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif
+if !HAVE_STRCHRNUL
+lxc_test_cgpath_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
+
lxc_test_clonetest_SOURCES = clonetest.c
lxc_test_concurrent_SOURCES = concurrent.c
lxc_test_config_jump_table_SOURCES = config_jump_table.c \
lxc_test_config_jump_table_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif
+if !HAVE_STRCHRNUL
+lxc_test_config_jump_table_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
+
lxc_test_console_SOURCES = console.c
lxc_test_console_log_SOURCES = console_log.c lxctest.h
lxc_test_containertests_SOURCES = containertests.c
if ENABLE_SECCOMP
lxc_test_device_add_remove_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_test_device_add_remove_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
+
lxc_test_getkeys_SOURCES = getkeys.c
lxc_test_get_item_SOURCES = get_item.c \
../lxc/af_unix.c ../lxc/af_unix.h \
if ENABLE_SECCOMP
lxc_test_get_item_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif
+
+if !HAVE_STRCHRNUL
+lxc_test_get_item_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
+
lxc_test_list_SOURCES = list.c
lxc_test_locktests_SOURCES = locktests.c \
../lxc/af_unix.c ../lxc/af_unix.h \
lxc_test_locktests_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif
+if !HAVE_STRCHRNUL
+lxc_test_locktests_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
+
lxc_test_lxcpath_SOURCES = lxcpath.c
lxc_test_may_control_SOURCES = may_control.c
lxc_test_mount_injection_SOURCES = mount_injection.c \
lxc_test_mount_injection_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif
+if !HAVE_STRCHRNUL
+lxc_test_mount_injection_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
+
lxc_test_parse_config_file_SOURCES = parse_config_file.c \
lxctest.h \
../lxc/af_unix.c ../lxc/af_unix.h \
lxc_test_parse_config_file_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif
+if !HAVE_STRCHRNUL
+lxc_test_parse_config_file_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
+
lxc_test_raw_clone_SOURCES = lxc_raw_clone.c \
lxctest.h \
../lxc/af_unix.c ../lxc/af_unix.h \
lxc_test_raw_clone_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif
+if !HAVE_STRCHRNUL
+lxc_test_raw_clone_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
+
lxc_test_reboot_SOURCES = reboot.c
lxc_test_saveconfig_SOURCES = saveconfig.c
lxc_test_share_ns_SOURCES = share_ns.c \
lxc_test_utils_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif
+if !HAVE_STRCHRNUL
+lxc_test_utils_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
+endif
+
AM_CFLAGS += -DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
-DLXCPATH=\"$(LXCPATH)\" \
-DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \