From 9c3179dc6982626fdadf26cce7bee4e57ac9c8f9 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 18 Apr 2021 04:49:41 +0300 Subject: [PATCH 48/48] tcc.m4: Fix duplicate result output from FC_VALUE_AFTER_EXIT() See osdn #42021 Signed-off-by: Marko Lindqvist --- m4/tcc.m4 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/m4/tcc.m4 b/m4/tcc.m4 index 5170e72c9f..a9815d90f5 100644 --- a/m4/tcc.m4 +++ b/m4/tcc.m4 @@ -9,16 +9,14 @@ AC_DEFUN([FC_VALUE_AFTER_EXIT], int func(void) { exit(1); -}]], [])], [ac_cv_value_after_exit=no -AC_MSG_RESULT([not needed])], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +}]], [])], [ac_cv_value_after_exit=no], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include int func(void) { exit(1); return 0; -}]], [])], [ac_cv_value_after_exit=yes -AC_MSG_RESULT([needed])], [ac_cv_value_after_exit=unknown -AC_MSG_RESULT([unknown])])])]) +}]], [])], [ac_cv_value_after_exit=yes], [ac_cv_value_after_exit=unknown])])]) if test "x${ac_cv_value_after_exit}" = "xyes" ; then AC_DEFINE([FREECIV_RETURN_VALUE_AFTER_EXIT], [1], [[Value must be returned even after exit()]]) fi -- 2.30.2