summaryrefslogtreecommitdiff
path: root/guile
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2008-03-07 11:30:06 +0100
committerLudovic Courtès <ludo@gnu.org>2008-03-07 11:30:06 +0100
commite61667622d41f0219bb4f39c88a2db8bbff29ca9 (patch)
tree830e43f27ff85db2e27ff364e7290ad0a89c7173 /guile
parentc61b65efb27bc543ec864ab01abca538d21fb8fc (diff)
downloadgnutls-e61667622d41f0219bb4f39c88a2db8bbff29ca9.tar.gz
guile: Propagate Guile's CPPFLAGS to `guile-snarf'.
Diffstat (limited to 'guile')
-rw-r--r--guile/src/Makefile.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/guile/src/Makefile.am b/guile/src/Makefile.am
index 03945929d6..c3b6d8a806 100644
--- a/guile/src/Makefile.am
+++ b/guile/src/Makefile.am
@@ -1,5 +1,5 @@
# GNUTLS -- Guile bindings for GnuTLS.
-# Copyright (C) 2007 Free Software Foundation
+# Copyright (C) 2007, 2008 Free Software Foundation
#
# GNUTLS is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@ -103,8 +103,10 @@ extra-smob-types.i.c: $(srcdir)/make-smob-types.scm
# C file snarfing.
+# `$(GUILE_CFLAGS)' may contain a series of `-I' switches so it must be
+# included here, even though we'd really want `$(GUILE_CPPFLAGS)'.
snarfcppopts = $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(CFLAGS) $(AM_CFLAGS)
+ $(CFLAGS) $(AM_CFLAGS) $(GUILE_CFLAGS)
.c.x:
$(guile_snarf) -o $@ $< $(snarfcppopts)