blob: 7f79f642cd06e590e400c1f9e47286454b3796ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
--- a/configure.ac
+++ b/configure.ac
@@ -53,6 +53,7 @@
dnl Check for libraries
dnl Add your macro calls to check required libraries, if you have any.
+PKG_CHECK_MODULES([FFI], [libffi])
dnl Platform-dependent configuration.
AC_ARG_ENABLE(objc, [ --enable-objc turn on Objective-C support])
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -20,9 +20,9 @@
GAUCHE_PACKAGE = @GAUCHE_PACKAGE@
INSTALL = @GAUCHE_INSTALL@
-CPPFLAGS = -I./libffi/include -DGAUCHE_API_0_8_8 @CPPFLAGS@
+CPPFLAGS = -DGAUCHE_API_0_8_8 @FFI_CFLAGS@ @CPPFLAGS@
LDFLAGS = @LDFLAGS@
-LIBS = libffi/.libs/libffi.a @LIBS@
+LIBS = @FFI_LIBS@ @LIBS@
YACC = @YACC@
@@ -38,7 +38,7 @@
SCMFILES =
HEADERS =
-TARGET = libffi/.libs/libffi.a $(ARCHFILES)
+TARGET = $(ARCHFILES)
GENERATED = libffi
CONFIG_GENERATED = libffi/Makefile Makefile cwcompile
|