summaryrefslogtreecommitdiff
path: root/guile
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2008-03-20 09:25:33 +0100
committerLudovic Courtès <ludo@gnu.org>2008-03-20 09:25:33 +0100
commitd5b3b9c5b4cd118cb3229f3b64d8bda146bf7b1b (patch)
tree6ea1111faab650450be58900985b2fdba8ba4bb2 /guile
parent45af721c79dad46ba60e1fc75911ebe7fc1ce25f (diff)
downloadgnutls-d5b3b9c5b4cd118cb3229f3b64d8bda146bf7b1b.tar.gz
Check whether `-fgnu89-inline' is supported before using it.
* configure.in: Check for `-fgnu89-inline', define Automake conditional `HAVE_GCC_GNU89_INLINE_OPTION'. * guile/src/Makefile.am (AM_CFLAGS): Only use `-fgnu89-inline' when `HAVE_GCC_GNU89_INLINE_OPTION' is true.
Diffstat (limited to 'guile')
-rw-r--r--guile/src/Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/guile/src/Makefile.am b/guile/src/Makefile.am
index f50b5c233d..9bcaf63264 100644
--- a/guile/src/Makefile.am
+++ b/guile/src/Makefile.am
@@ -68,10 +68,16 @@ if HAVE_GCC
# after `-Ws-p'.
AM_CFLAGS += -Wno-strict-prototypes
+# The `-fgnu89-inline' option appeared in GCC 4.1.3.
+if HAVE_GCC_GNU89_INLINE_OPTION
+
# Guile and GMP currently rely on GNU inline semantics, not C99 inline.
AM_CFLAGS += -fgnu89-inline
-endif
+endif HAVE_GCC_GNU89_INLINE_OPTION
+
+endif HAVE_GCC
+
enums.h: $(srcdir)/make-enum-header.scm
$(GUILE_FOR_BUILD) $^ > $@