Ticket #29204: patch-configure.ac.diff
File patch-configure.ac.diff, 2.7 KB (added by higginja@…, 13 years ago) |
---|
-
configure.ac
old new 51 51 52 52 # Find Guile library, flags, etcetera: 53 53 54 AC_CHECK_PROG(GUILE, guile , guile, unknown)54 AC_CHECK_PROG(GUILE, guile16, guile16, unknown) 55 55 if test x"$guile_ok" = xunknown; then 56 56 AC_MSG_ERROR([could not find guile program; check your PATH]) 57 57 fi 58 58 AC_SUBST(GUILE) 59 59 60 AC_CHECK_PROG(GUILE_CONFIG, guile -config, guile-config, unknown)60 AC_CHECK_PROG(GUILE_CONFIG, guile16-config, guile16-config, unknown) 61 61 if test "x$GUILE_CONFIG" = "xunknown"; then 62 62 AC_CHECK_LIB(m, sqrt) 63 63 AC_CHECK_LIB(readline, readline) 64 64 AC_CHECK_LIB(dl, dlopen) 65 AC_CHECK_LIB(guile , gh_eval_str)65 AC_CHECK_LIB(guile16, gh_eval_str) 66 66 else 67 67 CPPFLAGS="$CPPFLAGS `$GUILE_CONFIG compile`" 68 68 LIBS="$LIBS `$GUILE_CONFIG link`" … … 80 80 81 81 AC_MSG_CHECKING([for gh_load]) 82 82 ok=yes 83 AC_TRY_LINK([#include <guile /gh.h>83 AC_TRY_LINK([#include <guile16/gh.h> 84 84 ], [gh_load(0);], [AC_DEFINE(HAVE_GH_LOAD, 1, [Define if we have gh_load.])], ok=no) 85 85 AC_MSG_RESULT($ok) 86 86 87 87 AC_MSG_CHECKING([for gh_bool2scm]) 88 88 ok=yes 89 AC_TRY_LINK([#include <guile /gh.h>89 AC_TRY_LINK([#include <guile16/gh.h> 90 90 ], [gh_bool2scm(0);], [AC_DEFINE(HAVE_GH_BOOL2SCM, 1, [Define if we have gh_bool2scm])], ok=no) 91 91 AC_MSG_RESULT($ok) 92 92 93 93 AC_MSG_CHECKING([for gh_vector_ref]) 94 94 ok=yes 95 AC_TRY_LINK([#include <guile /gh.h>95 AC_TRY_LINK([#include <guile16/gh.h> 96 96 ], [gh_vector_ref(0,0);], [AC_DEFINE(HAVE_GH_VECTOR_REF, 1, [Define if we have gh_vector_ref])], ok=no) 97 97 AC_MSG_RESULT($ok) 98 98 99 99 AC_MSG_CHECKING([for gh_list_ref]) 100 100 ok=yes 101 AC_TRY_LINK([#include <guile /gh.h>101 AC_TRY_LINK([#include <guile16/gh.h> 102 102 ], [gh_list_ref(0,0);], [AC_DEFINE(HAVE_GH_LIST_REF, 1, [Define if we have gh_list_ref])], ok=no) 103 103 AC_MSG_RESULT($ok) 104 104 105 105 AC_MSG_CHECKING([for gh_length]) 106 106 ok=yes 107 AC_TRY_LINK([#include <guile /gh.h>107 AC_TRY_LINK([#include <guile16/gh.h> 108 108 ], [gh_length(0);], [AC_DEFINE(HAVE_GH_LENGTH, 1, [Define if we have gh_length])], ok=no) 109 109 AC_MSG_RESULT($ok) 110 110 111 111 AC_MSG_CHECKING([for scm_flush_all_ports]) 112 112 ok=yes 113 AC_TRY_LINK([#include <guile /gh.h>113 AC_TRY_LINK([#include <guile16/gh.h> 114 114 ], [scm_flush_all_ports();], [AC_DEFINE(HAVE_SCM_FLUSH_ALL_PORTS, 1, [Define if we have scm_flush_all_ports])], ok=no) 115 115 AC_MSG_RESULT($ok) 116 116 … … 118 118 119 119 AC_MSG_CHECKING([for SCM_COMPLEXP]) 120 120 ok=yes 121 AC_TRY_LINK([#include <guile /gh.h>121 AC_TRY_LINK([#include <guile16/gh.h> 122 122 ], [SCM x; SCM_COMPLEXP(x);], [AC_DEFINE(HAVE_SCM_COMPLEXP, 1, [Define if we have SCM_COMPLEXP])], ok=no) 123 123 AC_MSG_RESULT($ok) 124 124 … … 126 126 ok=yes 127 127 AC_TRY_RUN([ 128 128 #include <stdlib.h> 129 #include <guile /gh.h>129 #include <guile16/gh.h> 130 130 void main_entry(int argc, char *argv[]) 131 131 { 132 132 gh_eval_str("(define foo 3.14159)");