diff options
Diffstat (limited to 'build_posix/configure.ac.in')
-rw-r--r-- | build_posix/configure.ac.in | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/build_posix/configure.ac.in b/build_posix/configure.ac.in index cbd9e4e4123..608d602937d 100644 --- a/build_posix/configure.ac.in +++ b/build_posix/configure.ac.in @@ -38,9 +38,9 @@ if test "$wt_cv_enable_strict" = "yes"; then wt_cv_cc_version="`$CC --version | sed -eq`" case "$wt_cv_cc_version" in *clang*) - AM_CLANG_WARNINGS;; - *gcc*|*GCC*) - AM_GCC_WARNINGS;; + AM_CLANG_WARNINGS($wt_cv_cc_version);; + *cc*|*CC*) # cc, CC, gcc, GCC + AM_GCC_WARNINGS($wt_cv_cc_version);; *) AC_MSG_ERROR( [--enable-strict does not support "$wt_cv_cc_version".]);; @@ -87,6 +87,12 @@ if test "$GCC" = "yes"; then if test "`uname -s`" = "SunOS"; then AM_CFLAGS="$AM_CFLAGS -pthreads" fi + + # ARMv8-A is the 64-bit ARM architecture, turn on the optional CRC + # instructions. + if test "$wt_cv_arm64" = "yes"; then + AM_CFLAGS="$AM_CFLAGS -march=armv8-a+crc" + fi else # The Solaris native compiler gets the additional -mt flag. if test "`uname -s`" = "SunOS"; then |