Skip to content

Commit

Permalink
Merge pull request #1218 from neonichu/master
Browse files Browse the repository at this point in the history
Use have_header() to check for the existence of iconv.h
  • Loading branch information
knu committed Oct 30, 2015
2 parents 6bc9635 + c623c84 commit 7c14888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/nokogiri/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,10 @@ def install
]
end
else
if darwin_p && !File.exist?('/usr/include/iconv.h')
if darwin_p && !have_header('iconv.h')
abort <<'EOM'.chomp
-----
The file "/usr/include/iconv.h" is missing in your build environment,
The file "iconv.h" is missing in your build environment,
which means you haven't installed Xcode Command Line Tools properly.
To install Command Line Tools, try running `xcode-select --install` on
Expand Down

0 comments on commit 7c14888

Please sign in to comment.