gnucash maint: 722200 - configure script does not pick the correct am_cv_scanf version
John Ralls
jralls at code.gnucash.org
Tue Jun 3 13:58:10 EDT 2014
Updated via https://github.com/Gnucash/gnucash/commit/8ac8c70c (commit)
from https://github.com/Gnucash/gnucash/commit/c5de3a9c (commit)
commit 8ac8c70cf1e973d65bf5a1822dd466139ffff734
Author: John Ralls <jralls at ceridwen.us>
Date: Tue Jun 3 09:39:44 2014 -0700
722200 - configure script does not pick the correct am_cv_scanf version
Wrap SCANF_FOO_CHECK calls with CFLAGs including -Wall -Werror so
that the tests fail to compile and %lld fails as it does during the
build.
diff --git a/configure.ac b/configure.ac
index be11ca1..f12512f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -170,6 +170,8 @@ AC_CHECK_FUNCS(setenv,,[
])
STRUCT_TM_GMTOFF_CHECK
+cflags_save=${CFLAGS}
+CFLAGS="${CFLAGS} -Wall -Werror"
SCANF_LLD_CHECK
if test x$am_cv_scanf_lld = "xno"; then
SCANF_QD_CHECK
@@ -181,6 +183,7 @@ if test x$am_cv_scanf_lld = "xno"; then
fi
fi
fi
+CFLAGS="${cflags_save}"
# test whether we are building directly from svn/svk/git/bzr
AC_MSG_CHECKING(if building from an scm managed directory)
Summary of changes:
configure.ac | 3 +++
1 file changed, 3 insertions(+)
More information about the gnucash-changes
mailing list