AUDIT: r17653 - gnucash/trunk - Bug #554042: Fix configure fail on checking 'unsigned long is at least as big as guint32'

Christian Stimming cstim at cvs.gnucash.org
Sat Oct 25 15:58:52 EDT 2008


Author: cstim
Date: 2008-10-25 15:58:52 -0400 (Sat, 25 Oct 2008)
New Revision: 17653
Trac: http://svn.gnucash.org/trac/changeset/17653

Modified:
   gnucash/trunk/configure.in
Log:
Bug #554042: Fix configure fail on checking 'unsigned long is at least as big as guint32'

This is new patch including fix checking 'unsigned long is at least as big as
guint32' and 'guile long_long is at least as big as gint64'

Patch by Halton Huo.
BP

Modified: gnucash/trunk/configure.in
===================================================================
--- gnucash/trunk/configure.in	2008-10-25 19:51:40 UTC (rev 17652)
+++ gnucash/trunk/configure.in	2008-10-25 19:58:52 UTC (rev 17653)
@@ -412,7 +412,9 @@
 ### Check size of long_long - some guile's are broken.
 AC_MSG_CHECKING(if guile long_long is at least as big as gint64)
 GNC_OLDCFLAGS="$CFLAGS"
+GNC_OLDLDFLAGS="$LDFLAGS"
 CFLAGS="${GNOME_CFLAGS} ${GUILE_INCS} ${CFLAGS} ${GLIB_CFLAGS}"
+LDFLAGS="${LDFLAGS} ${GLIB_LIBS}"
 AC_TRY_RUN([
   #include <glib.h>
   #include <libguile/__scm.h>
@@ -433,13 +435,16 @@
 	       sizeof(gint64)))
 ])
 CFLAGS="$GNC_OLDCFLAGS"
+LDFLAGS="$GNC_OLDLDFLAGS"
 
 # One of the places this is critical is in gnc_scm_to_gint64 and inverse.
 # However, I'm sure we require this elsewhere, so don't remove this test
 # unless you've done sufficient code review/testing.
 AC_MSG_CHECKING(if unsigned long is at least as big as guint32)
 GNC_OLDCFLAGS="$CFLAGS"
+GNC_OLDLDFLAGS="$LDFLAGS"
 CFLAGS="${GNOME_CFLAGS} ${GUILE_INCS} ${CFLAGS} ${GLIB_CFLAGS}"
+LDFLAGS="${LDFLAGS} ${GLIB_LIBS}"
 AC_TRY_RUN([
   #include <glib.h>
   int main(int argc, char *argv[]) {
@@ -454,6 +459,7 @@
   AC_MSG_RESULT(assuming yes)
 ])
 CFLAGS="$GNC_OLDCFLAGS"
+LDFLAGS="$GNC_OLDLDFLAGS"
 
 
 ### --------------------------------------------------------------------------



More information about the gnucash-changes mailing list