提交 fd786e1a 编写于 作者: P Peter Maydell 提交者: Stefan Hajnoczi

configure: Include #define name in check_define compiler error

Include the name of the #define being tested for in the compiler
error produced when a check_define test is run and fails. This
appears only in the config.log, but it does make it a little easier
to debug problems by inspecting config.log.
Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
上级 0eba62e0
...@@ -249,7 +249,7 @@ source_path=`cd "$source_path"; pwd` ...@@ -249,7 +249,7 @@ source_path=`cd "$source_path"; pwd`
check_define() { check_define() {
cat > $TMPC <<EOF cat > $TMPC <<EOF
#if !defined($1) #if !defined($1)
#error Not defined #error $1 not defined
#endif #endif
int main(void) { return 0; } int main(void) { return 0; }
EOF EOF
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册