From 69deef089db0d2eb94b7adc6d6ac78a1cf0d5511 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Thu, 2 Aug 2012 18:30:26 +0100 Subject: [PATCH] configure: Don't run Xen compile checks in subshells The Xen compile checks are currently run inside subshells. This is unnecessary and has the effect that if do_cc() exits with an error message then this only causes the subshell to exit, not the whole of configure, which is confusing. Remove the subshells, changing: if ( cat ; compile_prog ) ; then ... to if cat && compile_prog ; then ... Signed-off-by: Peter Maydell Signed-off-by: Blue Swirl --- configure | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/configure b/configure index 3ca13a6ce1..f05b837c09 100755 --- a/configure +++ b/configure @@ -1396,8 +1396,8 @@ EOF xen=no # Xen unstable - elif ( - cat > $TMPC < $TMPC < #include #include @@ -1417,12 +1417,12 @@ int main(void) { } EOF compile_prog "" "$xen_libs" - ) ; then + then xen_ctrl_version=420 xen=yes - elif ( - cat > $TMPC < $TMPC < #include #include @@ -1441,13 +1441,13 @@ int main(void) { } EOF compile_prog "" "$xen_libs" - ) ; then + then xen_ctrl_version=410 xen=yes # Xen 4.0.0 - elif ( - cat > $TMPC < $TMPC < #include #include @@ -1468,13 +1468,13 @@ int main(void) { } EOF compile_prog "" "$xen_libs" - ) ; then + then xen_ctrl_version=400 xen=yes # Xen 3.4.0 - elif ( - cat > $TMPC < $TMPC < #include int main(void) { @@ -1490,13 +1490,13 @@ int main(void) { } EOF compile_prog "" "$xen_libs" - ) ; then + then xen_ctrl_version=340 xen=yes # Xen 3.3.0 - elif ( - cat > $TMPC < $TMPC < #include int main(void) { @@ -1508,7 +1508,7 @@ int main(void) { } EOF compile_prog "" "$xen_libs" - ) ; then + then xen_ctrl_version=330 xen=yes