インストール済みPCREのconfigureオプションが知りたい


configureのオプション

いわゆる./configuremakemake installの手順で既にビルドされたプログラムがあって、それの./configureに指定したオプションを後から知りたいことがたまにある。例えばnginxならnginx -Vで確認可能だ。

$ nginx -V
nginx version: nginx/1.5.13
built by clang 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
TLS SNI support enabled
configure arguments: --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-debug --with-http_gzip_static_module --with-http_spdy_module --with-http_ssl_module --with-http_stub_status_module --with-cc-opt=-Wno-deprecated-declarations --with-pcre=../pcre-8.34 --with-pcre-jit --with-cc-opt='-W -g -Wno-deprecated-declarations -Wno-unused-parameter' --add-module=../ngx_devel_kit --add-module=../echo-nginx-module --add-module=../ngx_info --add-module=../ngx_small_light --add-module=../lua-nginx-module

PCREの場合

追記(2014/04/12)

PCREの作者から「pcretest -C使えば同じようなことできるよ」と連絡が来たので、これからはそっちを使うことにする。

$ pcretest -C
PCRE version 8.34 2013-12-15
Compiled with
  8-bit support
  UTF-8 support
  Unicode properties support
  Just-in-time compiler support: x86 64bit (little endian + unaligned)
  Newline sequence is LF
  \R matches all Unicode newlines
  Internal link size = 2
  POSIX malloc threshold = 10
  Parentheses nest limit = 250
  Default match limit = 10000000
  Default recursion depth limit = 10000000
  Match recursion uses stack
$