diff options
-rw-r--r-- | config/gr_guile.m4 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/config/gr_guile.m4 b/config/gr_guile.m4 index ccf817031..f6cc15216 100644 --- a/config/gr_guile.m4 +++ b/config/gr_guile.m4 @@ -27,8 +27,16 @@ dnl AC_DEFUN([GUILE_DEVEL],[ dnl see if GUILE is installed AC_PATH_PROG(GUILE, guile) - GUILE_CFLAGS="" - GUILE_LIBS="-lguile" + dnl get the config program + AC_PATH_PROG(GUILE_CONFIG, guile-config) + if test x${GUILE_CONFIG} != x; then + GUILE_CFLAGS="`${GUILE_CONFIG} compile`" + GUILE_LIBS="`${GUILE_CONFIG} link`" + else + GUILE_CFLAGS="" + GUILE_LIBS="Wl,-Bsymbolic-functions -lguile lgmp -lcrypt" + fi + AC_SUBST(GUILE_CFLAGS) AC_SUBST(GUILE_LIBS) ]) |