Whamcloud - gitweb
LU-3570 libcfs: accelerate crc32c with pclmulqdq
[fs/lustre-release.git] / libcfs / libcfs / autoMakefile.am
index 989d47d..66154b1 100644 (file)
@@ -28,7 +28,7 @@
 # Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
 # Use is subject to license terms.
 #
-# Copyright (c) 2012, Whamcloud, Inc.
+# Copyright (c) 2012, Intel Corporation.
 #
 
 #
@@ -49,8 +49,10 @@ libcfs_a_SOURCES= posix/posix-debug.c user-prim.c user-lock.c user-tcpip.c  \
                  posix/rbtree.c user-crypto.c posix/posix-crc32.c          \
                  posix/posix-adler.c heap.c
 
-if ARCH_x86
-libcfs_a_SOURCES += user-crc32pclmul.c crc32-pclmul_asm.S
+if HAVE_PCLMULQDQ
+if NEED_PCLMULQDQ_CRC32
+libcfs_a_SOURCES += user-crc32pclmul.c linux/crc32-pclmul_asm.S
+endif
 endif
 
 libcfs_a_CPPFLAGS = $(LLCPPFLAGS)