summaryrefslogtreecommitdiffhomepage
path: root/auto/lib/geoip/conf
diff options
context:
space:
mode:
Diffstat (limited to 'auto/lib/geoip/conf')
-rw-r--r--auto/lib/geoip/conf17
1 files changed, 17 insertions, 0 deletions
diff --git a/auto/lib/geoip/conf b/auto/lib/geoip/conf
index 8302aae17..47165b15b 100644
--- a/auto/lib/geoip/conf
+++ b/auto/lib/geoip/conf
@@ -64,6 +64,23 @@ if [ $ngx_found = no ]; then
fi
+if [ $ngx_found = no ]; then
+
+ # Homebrew on Apple Silicon
+
+ ngx_feature="GeoIP library in /opt/homebrew/"
+ ngx_feature_path="/opt/homebrew/include"
+
+ if [ $NGX_RPATH = YES ]; then
+ ngx_feature_libs="-R/opt/homebrew/lib -L/opt/homebrew/lib -lGeoIP"
+ else
+ ngx_feature_libs="-L/opt/homebrew/lib -lGeoIP"
+ fi
+
+ . auto/feature
+fi
+
+
if [ $ngx_found = yes ]; then
CORE_INCS="$CORE_INCS $ngx_feature_path"