Add cross-compiling workaround to AC_TRY_RUN macros

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14846 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2006-09-14 16:27:32 +00:00
parent 7dcc2b5e45
commit 7951de863c

View File

@ -433,6 +433,11 @@ AC_TRY_RUN([
sizeof(gint64)))
],[
AC_MSG_RESULT(no)
],[
AC_MSG_RESULT(assuming yes)
AC_CHECK_LIB(guile, scm_long_long2num,
AC_DEFINE(GUILE_LONG_LONG_OK,1,is sizeof(long_long) >=
sizeof(gint64)))
])
CFLAGS="$GNC_OLDCFLAGS"
@ -452,6 +457,8 @@ AC_TRY_RUN([
],[
AC_MSG_RESULT(no)
AC_MSG_ERROR(cannot continue, size of unsigned long too small.)
],[
AC_MSG_RESULT(assuming yes)
])
CFLAGS="$GNC_OLDCFLAGS"