diff options
author | Marius Vollmer <mvo@src.gnome.org> | 1998-10-11 13:21:53 +0000 |
---|---|---|
committer | Marius Vollmer <mvo@src.gnome.org> | 1998-10-11 13:21:53 +0000 |
commit | 47de9577af7e0baf8ad992545c32295f03fcc320 (patch) | |
tree | 013677db03db7269c22a7652d1da5f247e464430 /macros/gnome-guile-checks.m4 | |
parent | f878dd384a475127a58686ca267503399685e4e9 (diff) | |
download | shared-mime-info-47de9577af7e0baf8ad992545c32295f03fcc320.tar.gz |
Check for "guile-config" and then for "build-guile", if guile-config
* gnome-guile-checks.m4: Check for "guile-config" and then for
"build-guile", if guile-config couldn't be found. Do not
explicitely include output from "info libdir", it is already
included in "link". Use "compile" instead of "info includedir". Do
not include "1.2" in error message when Guile can't be found at
all.
svn path=/trunk/; revision=433
Diffstat (limited to 'macros/gnome-guile-checks.m4')
-rw-r--r-- | macros/gnome-guile-checks.m4 | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/macros/gnome-guile-checks.m4 b/macros/gnome-guile-checks.m4 index 3414e6a7..f56cb96a 100644 --- a/macros/gnome-guile-checks.m4 +++ b/macros/gnome-guile-checks.m4 @@ -24,30 +24,48 @@ AC_DEFUN([GNOME_CHECK_GUILE], AC_SUBST(READLINE_LIB) if test "x$cross_compiling" = "xyes" ; then - name_build_guile="$target_alias-build-guile" + name_build_guile="$target_alias-guile-config" else - name_build_guile="build-guile" + name_build_guile="guile-config" fi AC_CHECK_PROG(BUILD_GUILE, $name_build_guile, yes, no) if test "x$BUILD_GUILE" = "xyes"; then - AC_MSG_CHECKING(whether build-guile works) - if test x`build-guile --version >/dev/null 2>&1 || \ - echo no` = xno; then - BUILD_GUILE=no + AC_MSG_CHECKING(whether $name_build_guile works) + if test x`$name_build_guile --version >/dev/null 2>&1 || \ + echo no` = xno; then + BUILD_GUILE=no + fi + AC_MSG_RESULT($BUILD_GUILE) + else + + if test "x$cross_compiling" = "xyes" ; then + name_build_guile="$target_alias-build-guile" + else + name_build_guile="build-guile" + fi + + AC_CHECK_PROG(BUILD_GUILE, $name_build_guile, yes, no) + + if test "x$BUILD_GUILE" = "xyes"; then + AC_MSG_CHECKING(whether $name_build_guile works) + if test x`$name_build_guile --version >/dev/null 2>&1 || \ + echo no` = xno; then + BUILD_GUILE=no fi AC_MSG_RESULT($BUILD_GUILE) + fi fi AC_CHECK_LIB(m, sin) if test "x$BUILD_GUILE" = "xyes"; then AC_MSG_CHECKING(for guile libraries) - GUILE_LIBS="-L`build-guile info libdir` `build-guile link`" + GUILE_LIBS="`$name_build_guile link`" AC_MSG_RESULT($GUILE_LIBS) AC_MSG_CHECKING(for guile headers) - GUILE_INCS="-I`build-guile info includedir`" + GUILE_INCS="`$name_build_guile compile`" AC_MSG_RESULT($GUILE_INCS) else GUILE_LIBS="$GNOME_LIBDIR" @@ -83,9 +101,9 @@ AC_DEFUN([GNOME_CHECK_GUILE], if test x$ac_cv_guile_found = xno ; then if test x$1 = xfail ; then - AC_MSG_ERROR(Can not find Guile 1.2 on this system) + AC_MSG_ERROR(Can not find Guile on this system) else - AC_MSG_WARN(Can not find Guile 1.2 on this system) + AC_MSG_WARN(Can not find Guile on this system) fi ac_cv_guile_found=no fi |