summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw@src.gnome.org>2018-01-20 16:57:38 +0800
committerTing-Wei Lan <lantw@src.gnome.org>2018-01-24 17:59:46 +0800
commit2d5fb3614586f85cbb364c909900b02f1c23d894 (patch)
tree8ed39ab23d6499f7a4b0ab197bdf24d497969d14
parent331472ccbb5e2e68135c4356a72b695b9e4226a5 (diff)
downloadtracker-2d5fb3614586f85cbb364c909900b02f1c23d894.tar.gz
configure: Don't put includes in function body of AC_LANG_PROGRAM
The second argument of AC_LANG_PROGRAM is the content of main function. We cannot put any includes there, or we end up testing whether the compiler supports nested functions because headers may have definitions for inline functions. https://bugzilla.gnome.org/show_bug.cgi?id=792713
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index fa88b4b2a..47e5fe0b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -173,8 +173,8 @@ if test "x$have_statvfs" = "xyes" ; then
fi
# Check for defines we expect
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
-#include "stdio.h"
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+#include "stdio.h"]], [[
printf ("%s", __FUNCTION__);
]])],
[have_function=yes],