projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rand: cleanup rand_between() and helpers
[fio.git]
/
configure
diff --git
a/configure
b/configure
index a5c0f6ef84482d95fa0e7c2fbf45591a7921b134..9bdc7a156e73ab46bd6102615f4dfbfe4619b14f 100755
(executable)
--- a/
configure
+++ b/
configure
@@
-609,7
+609,7
@@
int main(void)
EOF
if compile_prog "" "" "posixaio" ; then
posix_aio="yes"
EOF
if compile_prog "" "" "posixaio" ; then
posix_aio="yes"
-elif compile_prog "" "-lrt" "posixaio"; then
+elif compile_prog "" "-lrt" "posixaio
-lrt
"; then
posix_aio="yes"
posix_aio_lrt="yes"
LIBS="-lrt $LIBS"
posix_aio="yes"
posix_aio_lrt="yes"
LIBS="-lrt $LIBS"
@@
-1894,15
+1894,15
@@
fi
##########################################
# Report whether pmemblk engine is enabled
##########################################
# Report whether pmemblk engine is enabled
-print_config "
NVML
pmemblk engine" "$pmemblk"
+print_config "
PMDK
pmemblk engine" "$pmemblk"
##########################################
# Report whether dev-dax engine is enabled
##########################################
# Report whether dev-dax engine is enabled
-print_config "
NVML
dev-dax engine" "$devdax"
+print_config "
PMDK
dev-dax engine" "$devdax"
##########################################
# Report whether libpmem engine is enabled
##########################################
# Report whether libpmem engine is enabled
-print_config "
NVML
libpmem engine" "$pmem"
+print_config "
PMDK
libpmem engine" "$pmem"
##########################################
# Check if we have lex/yacc available
##########################################
# Check if we have lex/yacc available
@@
-2117,18
+2117,23
@@
if test "$march_armv8_a_crc_crypto" != "yes" ; then
fi
if test "$cpu" = "arm64" ; then
cat > $TMPC <<EOF
fi
if test "$cpu" = "arm64" ; then
cat > $TMPC <<EOF
-#include <sys/auxv.h>
#include <arm_acle.h>
#include <arm_neon.h>
#include <arm_acle.h>
#include <arm_neon.h>
+#include <sys/auxv.h>
int main(void)
{
int main(void)
{
- return 0;
+ /* Can we also do a runtime probe? */
+#if __linux__
+ return getauxval(AT_HWCAP);
+#else
+# error "Don't know how to do runtime probe for ARM CRC32c"
+#endif
}
EOF
}
EOF
- if compile_prog "-march=armv8-a+crc+crypto" "" ""; then
+ if compile_prog "-march=armv8-a+crc+crypto" "" "
ARM CRC32c
"; then
march_armv8_a_crc_crypto="yes"
march_armv8_a_crc_crypto="yes"
- CFLAGS="$CFLAGS -march=armv8-a+crc+crypto
-DARCH_HAVE_CRC_CRYPTO
"
+ CFLAGS="$CFLAGS -march=armv8-a+crc+crypto"
march_set="yes"
fi
fi
march_set="yes"
fi
fi
@@
-2213,10
+2218,10
@@
if test "$posix_pshared" = "yes" ; then
output_sym "CONFIG_PSHARED"
fi
if test "$have_asprintf" = "yes" ; then
output_sym "CONFIG_PSHARED"
fi
if test "$have_asprintf" = "yes" ; then
- output_sym "HAVE_ASPRINTF"
+ output_sym "
CONFIG_
HAVE_ASPRINTF"
fi
if test "$have_vasprintf" = "yes" ; then
fi
if test "$have_vasprintf" = "yes" ; then
- output_sym "HAVE_VASPRINTF"
+ output_sym "
CONFIG_
HAVE_VASPRINTF"
fi
if test "$linux_fallocate" = "yes" ; then
output_sym "CONFIG_LINUX_FALLOCATE"
fi
if test "$linux_fallocate" = "yes" ; then
output_sym "CONFIG_LINUX_FALLOCATE"
@@
-2430,6
+2435,9
@@
if test "$zlib" = "no" ; then
echo "Note that some distros have separate packages for static libraries."
fi
fi
echo "Note that some distros have separate packages for static libraries."
fi
fi
+if test "$march_armv8_a_crc_crypto" = "yes" ; then
+ output_sym "ARCH_HAVE_CRC_CRYPTO"
+fi
if test "$cuda" = "yes" ; then
output_sym "CONFIG_CUDA"
fi
if test "$cuda" = "yes" ; then
output_sym "CONFIG_CUDA"
fi