build: searching for pcre/geoip on /opt/local directory

This commit is contained in:
Felipe Zimmerle
2015-08-12 23:03:11 -03:00
parent d5fe21ce3c
commit 73c6c8cf7c
2 changed files with 3 additions and 10 deletions

View File

@@ -29,7 +29,7 @@ AC_ARG_WITH(
AS_CASE(["${with_geoip}"],
[no], [test_paths=],
[yes], [test_paths="/usr/local/libgeoip /usr/local/geoip /usr/local /opt/libgeoip /opt/geoip /opt /usr"],
[yes], [test_paths="/usr/local/libgeoip /usr/local/geoip /usr/local /opt/libgeoip /opt/geoip /opt /usr /opt/local/include /opt/local"],
[test_paths="${with_geoip}"])
AS_IF([test "x${test_paths}" != "x"], [
@@ -100,7 +100,7 @@ else
fi
done
for x in ${test_paths}; do
if test -e "${x}/include/geoip_parse.h"; then
if test -e "${x}/include/GeoIPCity.h"; then
geoip_inc_path="${x}/include"
break
elif test -e "${x}/GeoIPCity.h"; then