ext/rqr/extconf.rb in z-rqr-0.2.3 vs ext/rqr/extconf.rb in z-rqr-0.2.4

- old
+ new

@@ -11,13 +11,16 @@ =end require 'mkmf' require 'rbconfig' $libs = append_library($libs, "supc++") -if File.exists?('/sw') - DARWIN_PORT_DIR = '/sw' +FINK_DIR = '/sw' +MACPORT_DIR = '/opt/local' + +if File.exists?(FINK_DIR) + DARWIN_PORT_DIR = FINK_DIR else - DARWIN_PORT_DIR = '/opt/local' + DARWIN_PORT_DIR = MACPORT_DIR end if RUBY_PLATFORM =~ /darwin/ dir_config('jpeg', DARWIN_PORT_DIR) dir_config('png', DARWIN_PORT_DIR)