diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2018-01-20 16:57:38 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw@src.gnome.org> | 2018-01-24 17:59:46 +0800 |
commit | 2d5fb3614586f85cbb364c909900b02f1c23d894 (patch) | |
tree | 8ed39ab23d6499f7a4b0ab197bdf24d497969d14 | |
parent | 331472ccbb5e2e68135c4356a72b695b9e4226a5 (diff) | |
download | tracker-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.ac | 4 |
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], |