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=440
This commit is contained in:
Marius Vollmer
1998-10-11 13:21:53 +00:00
parent eb77c46802
commit 9d4241b7c7
2 changed files with 37 additions and 10 deletions

View File

@ -1,3 +1,12 @@
1998-10-11 Marius Vollmer <mvo@zagadka.ping.de>
* 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.
1998-10-11 Martin Baulig <martin@home-of-linux.org>
* gnome-libgtop-check.m4 (GNOME_INIT_LIBGTOP): Added optional

View File

@ -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