From f10533f2c6604f7ad9c88d9358f9f5059b7224aa Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Sat, 25 Oct 2008 19:58:52 +0000 Subject: [PATCH] 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 git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17653 57a11ea4-9604-0410-9ed3-97b8803252fd --- configure.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.in b/configure.in index 4b04b10b23..1a4f9a4ff7 100644 --- a/configure.in +++ b/configure.in @@ -412,7 +412,9 @@ fi ### 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 #include @@ -433,13 +435,16 @@ AC_TRY_RUN([ 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 int main(int argc, char *argv[]) { @@ -454,6 +459,7 @@ AC_TRY_RUN([ AC_MSG_RESULT(assuming yes) ]) CFLAGS="$GNC_OLDCFLAGS" +LDFLAGS="$GNC_OLDLDFLAGS" ### --------------------------------------------------------------------------