aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2008-10-27 04:50:57 +0000
committerGerald Combs <gerald@wireshark.org>2008-10-27 04:50:57 +0000
commit1b7064bb6a8176e979595c3a0e5d9b96778b4fc8 (patch)
treeb4ba1971ac1b9ea228540dd609718d57fd5b7b62 /acinclude.m4
parent09bf9e694629b37f201467b988589573f5c3acf9 (diff)
Add support for the GeoIP library. Using different database files,
GeoIP can map IP addresses to Countries, Cities, AS numbers, ISPs, etc. If any library paths are defined AND any database files are found, corresponding columns are added to the endpoint tables in the GUI. To do: - Add columns to the conversation list - Add GeoIP info to "-z conv,..." - Create a default UAT file. svn path=/trunk/; revision=26571
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m430
1 files changed, 30 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index d2ef5a59e5..794ed097f7 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1542,6 +1542,36 @@ AC_DEFUN([AC_WIRESHARK_KRB5_CHECK],
])
#
+# AC_WIRESHARK_GEOIP_CHECK
+#
+AC_DEFUN([AC_WIRESHARK_GEOIP_CHECK],
+[
+ want_geoip=defaultyes
+
+ if test "x$want_geoip" = "xdefaultyes"; then
+ want_geoip=yes
+ if test "x$ac_cv_enable_usr_local" = "xyes" ; then
+ withval=/usr/local
+ if test -d "$withval"; then
+ AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib)
+ fi
+ fi
+ fi
+
+ if test "x$want_geoip" = "xyes"; then
+ AC_CHECK_LIB(GeoIP, GeoIP_new,
+ [
+ GEOIP_LIBS=-lGeoIP
+ AC_DEFINE(HAVE_GEOIP, 1, [Define to use GeoIP library])
+ have_good_geoip=yes
+ ],,
+ )
+ else
+ AC_MSG_RESULT(not required)
+ fi
+])
+
+#
# AC_WIRESHARK_GCC_CFLAGS_CHECK
#
# $1 : cflags to test