with_config(config, default = nil) -> bool | String[permalink][rdoc][edit] [added by mkmf]with_config(config, default = nil) {|config, default| ... } -> bool | String[added by mkmf]-
configure のオプションを検査します。
configure のオプションに --with-<config> が指定された場合は真を返します。--without-<config> が指定された場合は偽を返します。どちらでもない場合は default を返します。
これはデバッグ情報などのカスタム定義を、追加するのに役立ちます。
- [PARAM]
config: - configure のオプションの名前を指定します。
- [PARAM]
default: - デフォルト値を返します。
require 'mkmf' if with_config("debug") $defs.push("-DOSSL_DEBUG") unless $defs.include? "-DOSSL_DEBUG" end - [PARAM]