diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-25 07:45:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-25 07:45:08 +0000 |
commit | 256f355af5cc3efb543608193da615d5a9fcd340 (patch) | |
tree | 65334a23d4ca2a78b72073fda5d4a8bde9d12772 | |
parent | 62dfc45bb28ae99927ad2ae91f5d6293ff13d5c6 (diff) | |
download | ruby-256f355af5cc3efb543608193da615d5a9fcd340.tar.gz |
* configure.in: ignore all warnings from an arbitrary
header in /usr/local/include.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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" |