Skip to content

Commit

Permalink
Reenable 1.6 private method expose.
Browse files Browse the repository at this point in the history
  • Loading branch information
tadejm committed Jan 7, 2013
1 parent e3898ce commit 67d9ab7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ext/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
exit
end

# def has_cups_1_6_installed?
# `cups-config --version`.scan(/1.6/).size > 0
# end
def has_cups_1_6_installed?
puts 'cups version:'
puts `cups-config --version`
`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_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 67d9ab7

Please sign in to comment.