mej pushed a commit to branch master.

commit 12e2329458361da47e42f1b6266280cf8902b7a5
Author: Michael Jennings <[email protected]>
Date:   Wed Mar 6 15:55:55 2013 -0800

    Fix CSE check.
---
 libast.m4 | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/libast.m4 b/libast.m4
index 02adcff..bc604fa 100644
--- a/libast.m4
+++ b/libast.m4
@@ -373,28 +373,23 @@ dnl#
 AC_DEFUN([AST_COMPILER_CHECKS], [
     AC_MSG_CHECKING([for ({...}) compiler support])
     AC_CACHE_VAL(ast_cv_compiler_compound_statement_expr, [
-        AC_TRY_COMPILE(
+        AC_TRY_COMPILE([],
             changequote(<<, >>)dnl
 <<
-int main(void)
-{
     int a = 1, b = 2, c = 3, d;
 
     d = ({ b *= c; a += b - c; a + b + c; });
     return 0;
-} >>
+>>
             changequote([, ]),
         [ast_cv_compiler_compound_statement_expr=0],
-        [ast_cv_compiler_compound_statement_expr=1],
-        [ast_cv_compiler_compound_statement_expr=2])
+        [ast_cv_compiler_compound_statement_expr=1])
     ])
     if test $ast_cv_compiler_compound_statement_expr -eq 0; then
         AC_MSG_RESULT([yes])
         AC_DEFINE([LIBAST_SUPPORT_MACRO_CSE], [1], [Defined if compiler 
supports compound statement expressions.])
-    elif test $ast_cv_compiler_compound_statement_expr -eq 1; then
-        AC_MSG_RESULT([no])
     else
-        AC_MSG_RESULT([unknown, assuming none])
+        AC_MSG_RESULT([no])
     fi
 ])
 

-- 

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev

Reply via email to