From 5c9a63d5a0c2c2bf1f6cc9df4e5f01bf5026a517 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Mon, 18 Sep 2006 15:45:10 +0000 Subject: [PATCH] Allow the user to override the guile flags. Necessary when build-time guile and run-time guile are different, i.e. when cross-compiling. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14857 57a11ea4-9604-0410-9ed3-97b8803252fd --- configure.in | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/configure.in b/configure.in index 169c16f7b4..e94136d387 100644 --- a/configure.in +++ b/configure.in @@ -268,8 +268,24 @@ esac ### Guile and g-wrap version checks (should this be something other than ### the Gnome check?) +# If the user has given these values, cache them to override the +# detected values. +if test "x$GUILE_LIBS" != x; then + saved_GUILE_LIBS="$GUILE_LIBS" +fi +if test "x$GUILE_INCS" != x; then + saved_GUILE_INCS="$GUILE_INCS" +fi GUILE_LIBS="" GNOME_CHECK_GUILE + +if test "x$saved_GUILE_LIBS" != x; then + GUILE_LIBS="$saved_GUILE_LIBS" +fi +if test "x$saved_GUILE_INCS" != x; then + GUILE_INCS="$saved_GUILE_INCS" +fi + AS_SCRUB_INCLUDE(GUILE_INCS) AC_SUBST(GUILE_LIBS)