Configure: fixed GeoIP library detection.
This commit is contained in:
parent
cb50a5a269
commit
cd4c54ee05
1 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
ngx_feature="GeoIP library"
|
ngx_feature="GeoIP library"
|
||||||
ngx_feature_name=
|
ngx_feature_name=
|
||||||
ngx_feature_run=no
|
ngx_feature_run=no
|
||||||
ngx_feature_incs=
|
ngx_feature_incs="#include <GeoIP.h>"
|
||||||
ngx_feature_path=
|
ngx_feature_path=
|
||||||
ngx_feature_libs="-lGeoIP"
|
ngx_feature_libs="-lGeoIP"
|
||||||
ngx_feature_test="GeoIP_open(NULL, 0)"
|
ngx_feature_test="GeoIP_open(NULL, 0)"
|
||||||
|
@ -18,6 +18,7 @@ if [ $ngx_found = no ]; then
|
||||||
# FreeBSD port
|
# FreeBSD port
|
||||||
|
|
||||||
ngx_feature="GeoIP library in /usr/local/"
|
ngx_feature="GeoIP library in /usr/local/"
|
||||||
|
ngx_feature_path="/usr/local/include"
|
||||||
|
|
||||||
if [ $NGX_RPATH = YES ]; then
|
if [ $NGX_RPATH = YES ]; then
|
||||||
ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lGeoIP"
|
ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lGeoIP"
|
||||||
|
@ -64,6 +65,8 @@ fi
|
||||||
|
|
||||||
|
|
||||||
if [ $ngx_found = yes ]; then
|
if [ $ngx_found = yes ]; then
|
||||||
|
|
||||||
|
CORE_INCS="$CORE_INCS $ngx_feature_path"
|
||||||
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
|
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue