diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.in | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sun Sep 25 16:45:05 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * configure.in: ignore all warnings from an arbitrary + header in /usr/local/include. + Sun Sep 25 03:43:03 2011 NARUSE, Yui <naruse@ruby-lang.org> * enum.c (slice_before_i): use rb_attr_get to surpress wrong warning diff --git a/configure.in b/configure.in index 14165a3c18..819a3d1ff8 100644 --- a/configure.in +++ b/configure.in @@ -2109,7 +2109,7 @@ if test "$with_dln_a_out" != yes; then # /usr/local/include is always searched for # some reason, but /usr/local/lib is not. hdr=`find /usr/local/include -name \*.h -type f | sed 's:^/usr/local/include/::;q'` - if test -n "$hdr" && $CC -E -include "$hdr" -xc /dev/null | fgrep -q "$hdr"; then + if test -n "$hdr" && $CC -E -include "$hdr" -xc /dev/null 2>/dev/null | fgrep -q "$hdr"; then $CC -print-search-dirs | grep -q '^libraries:.*:/usr/local/lib/*' || echo " $LDFLAGS " | grep -q ' -L */usr/local/lib/* ' || LDFLAGS="${LDFLAGS:+$LDFLAGS }-L/usr/local/lib" |