[Gnucash-changes] r13493 - gnucash/trunk - * configure.in: change
the g-wrap 1.3 + GCC4 behavior.
Derek Atkins
warlord at cvs.gnucash.org
Sun Mar 5 14:33:01 EST 2006
Author: warlord
Date: 2006-03-05 14:33:00 -0500 (Sun, 05 Mar 2006)
New Revision: 13493
Trac: http://svn.gnucash.org/trac/changeset/13493
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/configure.in
Log:
* configure.in: change the g-wrap 1.3 + GCC4 behavior.
only warn the user (not blow out) if they explicitly request
--enable-error-on-warning. But still blow out if they
didn't specifically request it and we turned it on by default.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-03-05 18:51:55 UTC (rev 13492)
+++ gnucash/trunk/ChangeLog 2006-03-05 19:33:00 UTC (rev 13493)
@@ -22,6 +22,11 @@
Fix a compiler warning so the code builds properly:
- warning: suggest parentheses around assignment used as truth value
+ * configure.in: change the g-wrap 1.3 + GCC4 behavior.
+ only warn the user (not blow out) if they explicitly request
+ --enable-error-on-warning. But still blow out if they
+ didn't specifically request it and we turned it on by default.
+
2006-03-05 Christian Stimming <stimming at tuhh.de>
* src/register/ledger-core/split-register-control.c: Fix missing
Modified: gnucash/trunk/configure.in
===================================================================
--- gnucash/trunk/configure.in 2006-03-05 18:51:55 UTC (rev 13492)
+++ gnucash/trunk/configure.in 2006-03-05 19:33:00 UTC (rev 13493)
@@ -2019,10 +2019,11 @@
# Enable error-on-warning by default -- I'm tired of fixing other
# people's missing #includes, etc.
+ gnc_error_on_warning=auto
AC_ARG_ENABLE(error-on-warning,
[ --disable-error-on-warning disable treating compile warnings as errors],
[case "${enableval}" in
- yes) warnFLAGS="${warnFLAGS} -Werror" ;;
+ yes) warnFLAGS="${warnFLAGS} -Werror" ; gnc_error_on_warning=yes ;;
no) gnc_error_on_warning=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-error-on-warning) ;;
esac],
@@ -2042,9 +2043,11 @@
warnFLAGS="${warnFLAGS} -Wdeclaration-after-statement -Wno-pointer-sign"
# rpmbuild on FC4 forces this flag. Can't hurt to always compile with it.
warnFLAGS="${warnFLAGS} -D_FORTIFY_SOURCE=2"
- if test "x$gnc_error_on_warning" = x -a $gwrap_major_version = 1 -a $gwrap_minor_version -lt 9 ; then
- # This is g-wrap 1.3 + gcc4 + --enable-error-on-warning
- AC_MSG_ERROR([
+ if test $gwrap_major_version = 1 -a $gwrap_minor_version -lt 9 ; then
+ # This is g-wrap 1.3 + gcc4. Test error-on-warning
+ case "$gnc_error_on_warning" in
+ auto)
+ AC_MSG_ERROR([
Sorry, your current configuration will not compile. You are
running g-wrap 1.3.x, GCC4, and --enable-error-on-warning, which
@@ -2055,6 +2058,15 @@
You can find it at http://www.nongnu.org/g-wrap/ .
])
+ ;;
+ yes)
+ AC_MSG_WARN([
+
+ g-wrap 1.3.x and GCC4 may cause build problems. You have been warned!
+
+])
+ ;;
+ esac
fi
fi
fi
More information about the gnucash-changes
mailing list