]> granicus.if.org Git - json-c/commitdiff
Fix warnings from autoconf about "...no AC_LANG_SOURCE call detected..." by adding...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sat, 22 Mar 2014 23:15:01 +0000 (19:15 -0400)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sat, 22 Mar 2014 23:15:01 +0000 (19:15 -0400)
configure.ac

index 20ad715f31943f0efc7d913f97f5303cc2369df6..6ad10adf8290ce803f00c472db43ea6330261d72 100644 (file)
@@ -40,12 +40,12 @@ AC_CHECK_DECLS([_finite], [], [], [[#include <float.h>]])
 AC_LANG_PUSH([C])
 
 AC_MSG_CHECKING([if .gnu.warning accepts long strings])
-AC_LINK_IFELSE([[
+AC_LINK_IFELSE([AC_LANG_SOURCE([[
 extern void json_object_get();
 __asm__(".section .gnu.json_object_get,\n\t.ascii \"Please link against libjson-c instead of libjson\"\n\t.text");
 
 int main(int c,char* v) {return 0;}
-]], [
+]])], [
     AC_DEFINE(HAS_GNU_WARNING_LONG, 1, [Define if .gnu.warning accepts long strings.])
     AC_MSG_RESULT(yes)
 ], [