mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
make: config -- Add testing if we have libbsd installed
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
5f00a9ca40
commit
0bae3bc181
3 changed files with 28 additions and 2 deletions
|
|
@ -3,6 +3,11 @@ include scripts/feature-tests.mak
|
|||
|
||||
CONFIG := include/config.h
|
||||
|
||||
ifeq ($(call try-cc,$(LIBBSD_DEV_TEST),-lbsd),y)
|
||||
LIBS += -lbsd
|
||||
DEFINES += -DCONFIG_HAS_LIBBSD
|
||||
endif
|
||||
|
||||
$(CONFIG): scripts/utilities.mak scripts/feature-tests.mak include/config-base.h
|
||||
$(E) " GEN " $@
|
||||
$(Q) @echo '#ifndef __CR_CONFIG_H__' > $@
|
||||
|
|
@ -16,10 +21,10 @@ endif
|
|||
ifeq ($(call try-cc,$(PRLIMIT_TEST),),y)
|
||||
$(Q) @echo '#define CONFIG_HAS_PRLIMIT' >> $@
|
||||
endif
|
||||
ifeq ($(call try-cc,$(STRLCPY_TEST),),y)
|
||||
ifeq ($(call try-cc,$(STRLCPY_TEST),$(LIBS)),y)
|
||||
$(Q) @echo '#define CONFIG_HAS_STRLCPY' >> $@
|
||||
endif
|
||||
ifeq ($(call try-cc,$(STRLCAT_TEST),),y)
|
||||
ifeq ($(call try-cc,$(STRLCAT_TEST),$(LIBS)),y)
|
||||
$(Q) @echo '#define CONFIG_HAS_STRLCAT' >> $@
|
||||
endif
|
||||
ifeq ($(call try-cc,$(PTRACE_PEEKSIGINFO_TEST),),y)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue