Skip to content

Configure.ac updates#10712

Open
kareem-wolfssl wants to merge 3 commits into
wolfSSL:masterfrom
kareem-wolfssl:gh10679
Open

Configure.ac updates#10712
kareem-wolfssl wants to merge 3 commits into
wolfSSL:masterfrom
kareem-wolfssl:gh10679

Conversation

@kareem-wolfssl

Copy link
Copy Markdown
Contributor

Description

Fixes zd#21992 report 24, #10690, #10679

Testing

Generated and tested configure manually + Built in tests

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates configure.ac to improve autotools configuration behavior for specific feature sets and host targets, addressing reported build/configuration issues (notably Lighttpd defaults and x86_64 MinGW SP-ASM selection), and adds a guard around eval-based path expansion.

Changes:

  • Auto-enables --enable-curve25519 when --enable-lighty is selected (and not in FIPS mode).
  • Rejects (or disables with a warning) --enable-sp-asm on x86_64 Windows-like autotools hosts (MinGW/Cygwin/MSYS) to avoid assembler failures.
  • Adds validation intended to prevent command execution via --libdir/--includedir values before eval expansion.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread configure.ac
Comment on lines +12514 to +12523
# The eval calls below expand ${prefix}/${exec_prefix} references embedded in
# the libdir/includedir values. eval would, however, also execute any shell
# command substitution contained in a --libdir/--includedir value (e.g.
# --libdir='$(cmd)/lib'), running arbitrary commands during configure.
# Reject values that contain command substitution before the eval.
case "$libdir $includedir" in
*'`'* | *'$('*)
AC_MSG_ERROR([--libdir and --includedir must not contain shell command substitution])
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Not For This Release Not for release 5.9.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants