aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2008-10-27 04:50:57 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2008-10-27 04:50:57 +0000
commit3c150b6f339433d432648499ccfdc6d9c216aab3 (patch)
treeb4ba1971ac1b9ea228540dd609718d57fd5b7b62 /acinclude.m4
parent92ced39898f8980ddc52a4f0aacb432c5d9258fa (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26571 f5534014-38df-0310-8fa8-9805f1628bb7
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