@@ -129,8 +129,8 @@ AC_CHECK_HEADER(assert.h, [AM_CPPFLAGS="$AM_CPPFLAGS -DWOLFSSL_HAVE_ASSERT_H"],[
129129# check if functions of interest are linkable, but also check if
130130# they're declared by the expected headers, and if not, supersede the
131131# unusable positive from AC_CHECK_FUNCS().
132- AC_CHECK_FUNCS ( [ gethostbyname getaddrinfo gettimeofday gmtime_r gmtime_s inet_ntoa memset socket strftime atexit isascii] )
133- AC_CHECK_DECLS ( [ gethostbyname, getaddrinfo, gettimeofday, gmtime_r, gmtime_s, inet_ntoa, memset, socket, strftime, atexit, isascii] , [ ] , [
132+ AC_CHECK_FUNCS ( [ gethostbyname getaddrinfo gettimeofday gmtime_r gmtime_s inet_ntoa memset socket strftime atexit isascii getpid ] )
133+ AC_CHECK_DECLS ( [ gethostbyname, getaddrinfo, gettimeofday, gmtime_r, gmtime_s, inet_ntoa, memset, socket, strftime, atexit, isascii, getpid ] , [ ] , [
134134if test "$(eval echo \$"$(eval 'echo ac_cv_func_${as_decl_name}')")" = "yes"
135135then
136136 AC_MSG_NOTICE ( [ note: earlier check for $(eval 'echo ${as_decl_name}') superseded.] )
@@ -3261,6 +3261,26 @@ then
32613261 ENABLED_ARMASM_CRYPTO_SM4=yes
32623262 ENABLED_ARMASM_PLUS=yes
32633263 ;;
3264+ barrier-sb)
3265+ case $host_cpu in
3266+ *aarch64*)
3267+ ;;
3268+ *)
3269+ AC_MSG_ERROR ( [ SB instructions only available on Aarch64 v8.5+ CPU.] )
3270+ break;;
3271+ esac
3272+ ENABLED_ARMASM_BARRIER_SB=yes
3273+ ;;
3274+ barrier-detect)
3275+ case $host_cpu in
3276+ *aarch64*)
3277+ ;;
3278+ *)
3279+ AC_MSG_ERROR ( [ SB instructions only available on Aarch64 v8.5+ CPU.] )
3280+ break;;
3281+ esac
3282+ ENABLED_ARMASM_BARRIER_DETECT=yes
3283+ ;;
32643284 *)
32653285 AC_MSG_ERROR ( [ Invalid choice of ARM asm inclusions (yes, sha512-crypto, sha3-crypto): $ENABLED_ARMASM.] )
32663286 break;;
@@ -3403,6 +3423,12 @@ fi
34033423if test "$ENABLED_ARMASM_SM4" = "yes"; then
34043424 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ARMASM_CRYPTO_SM4"
34053425fi
3426+ if test "$ENABLED_ARMASM_BARRIER_SB" = "yes"; then
3427+ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ARMASM_BARRIER_SB"
3428+ fi
3429+ if test "$ENABLED_ARMASM_BARRIER_DETECT" = "yes"; then
3430+ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ARMASM_BARRIER_DETECT"
3431+ fi
34063432if test "$ENABLED_ARMASM_CRYPTO" = "unknown"; then
34073433 ENABLED_ARMASM_CRYPTO=no
34083434fi
@@ -7214,10 +7240,16 @@ then
72147240fi
72157241
72167242# Small Stack - Cache on object
7243+ if test "$ENABLED_LINUXKM_DEFAULTS" = "yes"
7244+ then
7245+ ENABLED_SMALL_STACK_CACHE_DEFAULT=yes
7246+ else
7247+ ENABLED_SMALL_STACK_CACHE_DEFAULT=no
7248+ fi
72177249AC_ARG_ENABLE ( [ smallstackcache] ,
72187250 [ AS_HELP_STRING ( [ --enable-smallstackcache] ,[ Enable Small Stack Usage Caching (default: disabled)] ) ] ,
72197251 [ ENABLED_SMALL_STACK_CACHE=$enableval ] ,
7220- [ ENABLED_SMALL_STACK_CACHE=no ]
7252+ [ ENABLED_SMALL_STACK_CACHE=$ENABLED_SMALL_STACK_CACHE_DEFAULT ]
72217253 )
72227254
72237255if test "x$ENABLED_SMALL_STACK_CACHE" = "xyes"
0 commit comments