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" ### --------------------------------------------------------------------------