]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Use posix conform directory existance check (Roy Marples <uberlord@gentoo.org>)
authorRoy Marples <uberlord@gentoo.org>
Thu, 10 May 2007 15:02:09 +0000 (15:02 +0000)
committerPatrick McHardy <kaber@trash.net>
Thu, 10 May 2007 15:02:09 +0000 (15:02 +0000)
Makefile uses [ -a /dir ] which is invalid on non bash shells

Bugzilla #569

Makefile

index 3d7d7b3f14374343c641b6da59f8f1b7da9edae9..8a9dd8cc5b53018a189cddde02b06b591102ecbc 100644 (file)
--- 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 <asm/types.h>\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 <stdio.h>\n\#if !defined(__arch64__) && !defined(_LP64)\nuserspace_is_32bit\n\#endif" | $(CC) $(CFLAGS) -E - | grep userspace_is_32bit)