Top Level Namespace

Defined Under Namespace

Modules: GLU, Glu Classes: Nurbs, Quadric, Tess

Instance Method Summary collapse

Instance Method Details

#have_framework(fw, &b) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
# File 'ext/glu/extconf.rb', line 3

def have_framework(fw, &b)
  checking_for fw do
    src = cpp_include("#{fw}/#{fw}.h") << "\n" "int main(void){return 0;}"
    if try_link(src, opt = "-ObjC -framework #{fw}", &b)
      $defs.push(format("-DHAVE_FRAMEWORK_%s", fw.tr_cpp))
      $LDFLAGS << " " << opt
      true
    else
      false
    end
  end
end