Skip to content

Commit

Permalink
Expose CUPS 1.6 private methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
tadejm committed Jan 7, 2013
1 parent 503c8bb commit be54fb2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
exit
end

def has_cups_1_6_installed?
`cups-config --version`.scan(/1.6/).size > 0
end

cups_cflags = `cups-config --cflags`.chomp || ""
cups_cflags += ' -D_IPP_PRIVATE_STRUCTURES' if has_cups_1_6_installed?
cups_libs = `cups-config --libs`.chomp || ""

with_cflags(cups_cflags) {
Expand Down

0 comments on commit be54fb2

Please sign in to comment.