From bb70b45c1f3869ec81678fc857e3dfad60da5de4 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Wed, 3 Sep 2014 21:37:30 -0700 Subject: [PATCH] [master] correct libgeoip check in configure --- configure | 26 +++++++++++++------------- configure.in | 4 ++-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/configure b/configure index 926962c506..53e070aa96 100755 --- a/configure +++ b/configure @@ -13707,9 +13707,9 @@ else fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_open" >&5 -$as_echo_n "checking for library containing GeoIP_open... " >&6; } -if ${ac_cv_search_GeoIP_open+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_addr_gl" >&5 +$as_echo_n "checking for library containing GeoIP_id_by_addr_gl... " >&6; } +if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS @@ -13722,11 +13722,11 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #ifdef __cplusplus extern "C" #endif -char GeoIP_open (); +char GeoIP_id_by_addr_gl (); int main () { -return GeoIP_open (); +return GeoIP_id_by_addr_gl (); ; return 0; } @@ -13739,30 +13739,30 @@ for ac_lib in '' GeoIP; do LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_GeoIP_open=$ac_res + ac_cv_search_GeoIP_id_by_addr_gl=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext - if ${ac_cv_search_GeoIP_open+:} false; then : + if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then : break fi done -if ${ac_cv_search_GeoIP_open+:} false; then : +if ${ac_cv_search_GeoIP_id_by_addr_gl+:} false; then : else - ac_cv_search_GeoIP_open=no + ac_cv_search_GeoIP_id_by_addr_gl=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_open" >&5 -$as_echo "$ac_cv_search_GeoIP_open" >&6; } -ac_res=$ac_cv_search_GeoIP_open +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_addr_gl" >&5 +$as_echo "$ac_cv_search_GeoIP_id_by_addr_gl" >&6; } +ac_res=$ac_cv_search_GeoIP_id_by_addr_gl if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" else - as_fn_error $? "GeoIP library not found" "$LINENO" 5 + as_fn_error $? "suitable GeoIP library not found" "$LINENO" 5 fi diff --git a/configure.in b/configure.in index 6c2580a89b..4e0c9ae33a 100644 --- a/configure.in +++ b/configure.in @@ -723,8 +723,8 @@ case "$use_geoip" in AC_CHECK_HEADER(GeoIP.h, [], [AC_MSG_ERROR([GeoIP header file not found])] ) - AC_SEARCH_LIBS(GeoIP_open, GeoIP, [], - [AC_MSG_ERROR([GeoIP library not found])] + AC_SEARCH_LIBS(GeoIP_id_by_addr_gl, GeoIP, [], + [AC_MSG_ERROR([suitable GeoIP library not found])] ) AC_SEARCH_LIBS(fabsf, m, [], [AC_MSG_ERROR([Math library not found])]