remove the dependency on the HAVE_STATEMENT_EXPRESSIONS flag. This reduces the dependency on the ./configure script

This commit is contained in:
kr.angelov
2013-09-04 10:06:07 +00:00
parent 1f91d2287b
commit 49c7a029b6
15 changed files with 82 additions and 271 deletions

View File

@@ -41,22 +41,6 @@ AC_DEFUN([AC_C_FAM_IN_MEM],
fi
])
## AC_C_STATEMENT_EXPRESSIONS
AC_DEFUN([AC_C_STATEMENT_EXPRESSIONS],
[
AC_CACHE_CHECK([for statement expressions],
ac_cv_c_statement_expressions,
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([], [int x = ({ int a = 42; a = a + 1; a; })])],
[ac_cv_c_statement_expressions=yes],
[ac_cv_c_statement_expressions=no])])
if test $ac_cv_c_statement_expressions = yes; then
AC_DEFINE([HAVE_STATEMENT_EXPRESSIONS], 1,
[Define to 1 if statement expressions are supported.])
fi
])
## AC_C_ASCII
AC_DEFUN([AC_C_ASCII],
[