mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
configure.ac: replace --enable-stacksize-verbose with --enable-stacksize=verbose, and change _LINUXKM_DEFAULTS ENABLED_SP_DEFAULT and ENABLED_SP_MATH_ALL_DEFAULT from small to yes.
This commit is contained in:
23
configure.ac
23
configure.ac
@ -240,8 +240,8 @@ fi
|
|||||||
# Single Precision maths implementation
|
# Single Precision maths implementation
|
||||||
if test "$ENABLED_LINUXKM_DEFAULTS" = "yes"
|
if test "$ENABLED_LINUXKM_DEFAULTS" = "yes"
|
||||||
then
|
then
|
||||||
ENABLED_SP_DEFAULT=small
|
ENABLED_SP_DEFAULT=yes
|
||||||
ENABLED_SP_MATH_ALL_DEFAULT=small
|
ENABLED_SP_MATH_ALL_DEFAULT=yes
|
||||||
else
|
else
|
||||||
ENABLED_SP_DEFAULT=no
|
ENABLED_SP_DEFAULT=no
|
||||||
ENABLED_SP_MATH_ALL_DEFAULT=no
|
ENABLED_SP_MATH_ALL_DEFAULT=no
|
||||||
@ -2204,26 +2204,14 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# STACK SIZE info for examples
|
# STACK SIZE info for testwolfcrypt and examples
|
||||||
AC_ARG_ENABLE([stacksize],
|
AC_ARG_ENABLE([stacksize],
|
||||||
[AS_HELP_STRING([--enable-stacksize],[Enable stack size info on examples (default: disabled)])],
|
[AS_HELP_STRING([--enable-stacksize],[Enable stack size info on examples (default: disabled)])],
|
||||||
[ ENABLED_STACKSIZE=$enableval ],
|
[ ENABLED_STACKSIZE=$enableval ],
|
||||||
[ ENABLED_STACKSIZE=no ]
|
[ ENABLED_STACKSIZE=no ]
|
||||||
)
|
)
|
||||||
|
|
||||||
# verbose, per-test stack size info, currently only implemented in testwolfcrypt
|
if test "$ENABLED_STACKSIZE" != "no"
|
||||||
AC_ARG_ENABLE([stacksize-verbose],
|
|
||||||
[AS_HELP_STRING([--enable-stacksize-verbose],[Enable verbose stack size info on testwolfcrypt (default: disabled)])],
|
|
||||||
[ ENABLED_STACKSIZE_VERBOSE=$enableval ],
|
|
||||||
[ ENABLED_STACKSIZE_VERBOSE=no ]
|
|
||||||
)
|
|
||||||
|
|
||||||
if test "$ENABLED_STACKSIZE_VERBOSE" = "yes"
|
|
||||||
then
|
|
||||||
ENABLED_STACKSIZE=yes
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$ENABLED_STACKSIZE" = "yes"
|
|
||||||
then
|
then
|
||||||
AC_CHECK_FUNC([posix_memalign], [], [AC_MSG_ERROR(stacksize needs posix_memalign)])
|
AC_CHECK_FUNC([posix_memalign], [], [AC_MSG_ERROR(stacksize needs posix_memalign)])
|
||||||
AC_CHECK_DECL([posix_memalign], [], [AC_MSG_ERROR(stacksize needs posix_memalign)])
|
AC_CHECK_DECL([posix_memalign], [], [AC_MSG_ERROR(stacksize needs posix_memalign)])
|
||||||
@ -2232,13 +2220,14 @@ then
|
|||||||
AM_CFLAGS="$AM_CFLAGS -DHAVE_STACK_SIZE"
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_STACK_SIZE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$ENABLED_STACKSIZE_VERBOSE" = "yes"
|
if test "$ENABLED_STACKSIZE" = "verbose"
|
||||||
then
|
then
|
||||||
if test "$thread_ls_on" != "yes"
|
if test "$thread_ls_on" != "yes"
|
||||||
then
|
then
|
||||||
AC_MSG_ERROR(stacksize-verbose needs thread-local storage.)
|
AC_MSG_ERROR(stacksize-verbose needs thread-local storage.)
|
||||||
fi
|
fi
|
||||||
AM_CFLAGS="$AM_CFLAGS -DHAVE_STACK_SIZE_VERBOSE"
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_STACK_SIZE_VERBOSE"
|
||||||
|
ENABLED_STACKSIZE=yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user