Fix the build with guile-3.0.0.
v2: Update configure.ac too. Signed-off-by: orbea <orbea@riseup.net>
This commit is contained in:
parent
d2dda92daf
commit
6d2d304136
@ -33,7 +33,7 @@ endif()
|
||||
|
||||
find_package(PkgConfig)
|
||||
if(PKG_CONFIG_FOUND)
|
||||
pkg_search_module(GUILE guile-2.2 guile-2.0)
|
||||
pkg_search_module(GUILE guile-3.0 guile-2.2 guile-2.0)
|
||||
if(GUILE_FOUND)
|
||||
# check if variable "scm_install_gmp_memory_functions" exists
|
||||
set(CMAKE_REQUIRED_INCLUDES ${GUILE_INCLUDE_DIRS})
|
||||
|
@ -730,7 +730,7 @@ if test "x$enable_guile" = "xyes" ; then
|
||||
guile_found="no"
|
||||
AC_MSG_CHECKING(for Guile headers and libraries)
|
||||
echo
|
||||
for v in "2.2" "2.0" ; do
|
||||
for v in "3.0" "2.2" "2.0" ; do
|
||||
pkgconfig_guile_found=`$PKGCONFIG --exists guile-$v 2>/dev/null`
|
||||
if test "x$?" = "x0" ; then
|
||||
GUILE_VERSION=`$PKGCONFIG --modversion guile-$v`
|
||||
|
@ -24,6 +24,8 @@
|
||||
|
||||
#include <libguile.h>
|
||||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "../plugin-script.h"
|
||||
|
@ -30,6 +30,8 @@
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <libgen.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "../plugin-script.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user