From: Roy Marples Date: Thu, 10 May 2007 15:02:09 +0000 (+0000) Subject: Use posix conform directory existance check (Roy Marples ) X-Git-Tag: v1.3.8~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46d9afb160bfd330452442d28318809079a7f84f;p=thirdparty%2Fiptables.git Use posix conform directory existance check (Roy Marples ) Makefile uses [ -a /dir ] which is invalid on non bash shells Bugzilla #569 --- diff --git a/Makefile b/Makefile index 3d7d7b3f..8a9dd8cc 100644 --- a/Makefile +++ b/Makefile @@ -79,7 +79,7 @@ endif # Generic test if arch wasn't found above ifneq ($(POINTERTEST),1) # Try to determine if kernel is 64bit and we are compiling for 32bit - ifeq ($(shell [ -a $(KERNEL_DIR)/include/asm ] && echo YES), YES) + ifeq ($(shell [ -d $(KERNEL_DIR)/include/asm ] && echo YES), YES) 64bitkernel := $(shell echo -e "\#include \n\#if BITS_PER_LONG == 64\nkernel_is_64bits\n\#endif" | $(CC) $(CFLAGS) -D__KERNEL__ -E - | grep kernel_is_64bits) ifdef 64bitkernel 32bituser := $(shell echo -e "\#include \n\#if !defined(__arch64__) && !defined(_LP64)\nuserspace_is_32bit\n\#endif" | $(CC) $(CFLAGS) -E - | grep userspace_is_32bit)