From: Eric Haszlakiewicz Date: Sat, 22 Mar 2014 23:15:01 +0000 (-0400) Subject: Fix warnings from autoconf about "...no AC_LANG_SOURCE call detected..." by adding... X-Git-Tag: json-c-0.12-20140410~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f26d96f0979efb8c8acf4901fd77265c9bf7e8d;p=thirdparty%2Fjson-c.git Fix warnings from autoconf about "...no AC_LANG_SOURCE call detected..." by adding that call within the AC_LINK_IFELSE call. --- diff --git a/configure.ac b/configure.ac index 20ad715f..6ad10adf 100644 --- a/configure.ac +++ b/configure.ac @@ -40,12 +40,12 @@ AC_CHECK_DECLS([_finite], [], [], [[#include ]]) 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) ], [