Ticket #29204: patch-configure.ac.diff

File patch-configure.ac.diff, 2.7 KB (added by higginja@…, 13 years ago)
  • configure.ac

    old new  
    5151
    5252# Find Guile library, flags, etcetera:
    5353
    54 AC_CHECK_PROG(GUILE, guile, guile, unknown)
     54AC_CHECK_PROG(GUILE, guile16, guile16, unknown)
    5555if test x"$guile_ok" = xunknown; then
    5656        AC_MSG_ERROR([could not find guile program; check your PATH])
    5757fi
    5858AC_SUBST(GUILE)
    5959
    60 AC_CHECK_PROG(GUILE_CONFIG, guile-config, guile-config, unknown)
     60AC_CHECK_PROG(GUILE_CONFIG, guile16-config, guile16-config, unknown)
    6161if test "x$GUILE_CONFIG" = "xunknown"; then
    6262        AC_CHECK_LIB(m, sqrt)
    6363        AC_CHECK_LIB(readline, readline)
    6464        AC_CHECK_LIB(dl, dlopen)
    65         AC_CHECK_LIB(guile, gh_eval_str)
     65        AC_CHECK_LIB(guile16, gh_eval_str)
    6666else
    6767        CPPFLAGS="$CPPFLAGS `$GUILE_CONFIG compile`"
    6868        LIBS="$LIBS `$GUILE_CONFIG link`"
     
    8080
    8181AC_MSG_CHECKING([for gh_load])
    8282ok=yes
    83 AC_TRY_LINK([#include <guile/gh.h>
     83AC_TRY_LINK([#include <guile16/gh.h>
    8484], [gh_load(0);], [AC_DEFINE(HAVE_GH_LOAD, 1, [Define if we have gh_load.])], ok=no)
    8585AC_MSG_RESULT($ok)
    8686
    8787AC_MSG_CHECKING([for gh_bool2scm])
    8888ok=yes
    89 AC_TRY_LINK([#include <guile/gh.h>
     89AC_TRY_LINK([#include <guile16/gh.h>
    9090], [gh_bool2scm(0);], [AC_DEFINE(HAVE_GH_BOOL2SCM, 1, [Define if we have gh_bool2scm])], ok=no)
    9191AC_MSG_RESULT($ok)
    9292
    9393AC_MSG_CHECKING([for gh_vector_ref])
    9494ok=yes
    95 AC_TRY_LINK([#include <guile/gh.h>
     95AC_TRY_LINK([#include <guile16/gh.h>
    9696], [gh_vector_ref(0,0);], [AC_DEFINE(HAVE_GH_VECTOR_REF, 1, [Define if we have gh_vector_ref])], ok=no)
    9797AC_MSG_RESULT($ok)
    9898
    9999AC_MSG_CHECKING([for gh_list_ref])
    100100ok=yes
    101 AC_TRY_LINK([#include <guile/gh.h>
     101AC_TRY_LINK([#include <guile16/gh.h>
    102102], [gh_list_ref(0,0);], [AC_DEFINE(HAVE_GH_LIST_REF, 1, [Define if we have gh_list_ref])], ok=no)
    103103AC_MSG_RESULT($ok)
    104104
    105105AC_MSG_CHECKING([for gh_length])
    106106ok=yes
    107 AC_TRY_LINK([#include <guile/gh.h>
     107AC_TRY_LINK([#include <guile16/gh.h>
    108108], [gh_length(0);], [AC_DEFINE(HAVE_GH_LENGTH, 1, [Define if we have gh_length])], ok=no)
    109109AC_MSG_RESULT($ok)
    110110
    111111AC_MSG_CHECKING([for scm_flush_all_ports])
    112112ok=yes
    113 AC_TRY_LINK([#include <guile/gh.h>
     113AC_TRY_LINK([#include <guile16/gh.h>
    114114], [scm_flush_all_ports();], [AC_DEFINE(HAVE_SCM_FLUSH_ALL_PORTS, 1, [Define if we have scm_flush_all_ports])], ok=no)
    115115AC_MSG_RESULT($ok)
    116116
     
    118118
    119119AC_MSG_CHECKING([for SCM_COMPLEXP])
    120120ok=yes
    121 AC_TRY_LINK([#include <guile/gh.h>
     121AC_TRY_LINK([#include <guile16/gh.h>
    122122], [SCM x; SCM_COMPLEXP(x);], [AC_DEFINE(HAVE_SCM_COMPLEXP, 1, [Define if we have SCM_COMPLEXP])], ok=no)
    123123AC_MSG_RESULT($ok)
    124124
     
    126126ok=yes
    127127AC_TRY_RUN([
    128128#include <stdlib.h>
    129 #include <guile/gh.h>
     129#include <guile16/gh.h>
    130130void main_entry(int argc, char *argv[])
    131131{
    132132     gh_eval_str("(define foo 3.14159)");