Author: cazfi
Date: Sat Jul 19 18:01:15 2014
New Revision: 25649

URL: http://svn.gna.org/viewcvs/freeciv?rev=25649&view=rev
Log:
Fixed C11 _Static_assert configure check not to always end up with positive
result.

See bug #22362

Modified:
    trunk/m4/c11.m4

Modified: trunk/m4/c11.m4
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/m4/c11.m4?rev=25649&r1=25648&r2=25649&view=diff
==============================================================================
--- trunk/m4/c11.m4     (original)
+++ trunk/m4/c11.m4     Sat Jul 19 18:01:15 2014
@@ -5,7 +5,7 @@
 AC_DEFUN([FC_C11_STATIC_ASSERT],
 [
   AC_CACHE_CHECK([for C11 static assert], [ac_cv_c11_static_assert],
-    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <assert.h>
+    [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <assert.h>
 ]], [[ _Static_assert(1, "1 is not true"); ]])],
 [ac_cv_c11_static_assert=yes], [ac_cv_c11_static_assert=no])])
   if test "x${ac_cv_c11_static_assert}" = "xyes" ; then


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to