diff options
author | Ruslan Ermilov <ru@nginx.com> | 2013-01-24 20:15:07 +0400 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2013-01-24 20:15:07 +0400 |
commit | 6aa684c3c31180752cd7ccac2e73261799a3445f (patch) | |
tree | c702508f66d979501c71b2f11f74c5bc7c1bafaf /auto/lib/geoip | |
parent | 9e334857a1709b5c5d4e587d042f6da673f7041e (diff) |
Configure: fixed GeoIP library detection.
Diffstat (limited to 'auto/lib/geoip')
-rw-r--r-- | auto/lib/geoip/conf | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/auto/lib/geoip/conf b/auto/lib/geoip/conf index 02f813e25..49af32ad2 100644 --- a/auto/lib/geoip/conf +++ b/auto/lib/geoip/conf @@ -6,7 +6,7 @@ ngx_feature="GeoIP library" ngx_feature_name= ngx_feature_run=no - ngx_feature_incs= + ngx_feature_incs="#include <GeoIP.h>" ngx_feature_path= ngx_feature_libs="-lGeoIP" ngx_feature_test="GeoIP_open(NULL, 0)" @@ -18,6 +18,7 @@ if [ $ngx_found = no ]; then # FreeBSD port ngx_feature="GeoIP library in /usr/local/" + ngx_feature_path="/usr/local/include" if [ $NGX_RPATH = YES ]; then ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lGeoIP" @@ -64,6 +65,8 @@ fi if [ $ngx_found = yes ]; then + + CORE_INCS="$CORE_INCS $ngx_feature_path" CORE_LIBS="$CORE_LIBS $ngx_feature_libs" else |