diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2014-03-22 19:15:01 -0400 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2014-03-22 19:15:01 -0400 |
commit | 9f26d96f0979efb8c8acf4901fd77265c9bf7e8d (patch) | |
tree | 43d7e7ac6315057b8ed1caf31f42f985f41d62d2 | |
parent | 05da316b9ceee79fa98575133d9f4c9e2abe59d0 (diff) |
Fix warnings from autoconf about "...no AC_LANG_SOURCE call detected..." by adding that call within the AC_LINK_IFELSE call.
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 20ad715..6ad10ad 100644 --- a/configure.ac +++ b/configure.ac @@ -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) ], [ |