./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_stub_status_module --add-module=/usr/local/ngx_devel_kit-0.3.0 --add-module=/usr/local/lua-nginx-module-0.10.6 --add-module=/usr/local/echo-nginx-module-0.60
--with-cc-opt="-I/usr/local/Cellar/pcre/8.39/include" --with-ld-opt="-L/usr/local/Cellar/pcre/8.39/lib"
困扰了两天的问题,终于解决了。。
增加这两个参数
--with-cc-opt="-I/usr/local/Cellar/pcre/8.39/include" --with-ld-opt="-L/usr/local/Cellar/pcre/8.39/lib"