|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-09-07 13:17 UTC] cweiske@php.net
Description: ------------ When using ./configure --with-foo, configure tells me at the end: > Notice: Following unknown configure options were used: > --with-foo There are two problems: - This problem is echoed to stdout, not stderr where capturing it would be possible - The exit code is still 0, although I clearly issued a wrong option. In the end I cannot figure out if the configure run was *fully* successful. Expected result: ---------------- 1. config option errors echoed to stderr 2. exit code of configure script != 0 PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 12:00:01 2025 UTC |
Helo, instead of building a custom macro for checking configure options, Autoconf 2.62+ already outputs a warning at the beginning and the end of the output of configure script. It automatically detects correct and wrong options better. So now instead a better way is the default Autoconf approach: This outputs a warning at the beginning and end of the configure output: ./configure --with-non-existing This results in fatal error: ./configure --non-existing configure: error: unrecognized option: `--non-existing' Try `./configure --help' for more information The `--enable-option-checking=fatal` results in fatal error for all non existing options: ./configure --with-non-existing --enable-option-checking=fatal configure: error: unrecognized options: --with-non-existing Applied to PHP-7.4+. Hope this helps more now. Thank you for reporting issues and helping make PHP better.