# libpcap.
#
ac_save_LIBS="$LIBS"
- AC_MSG_CHECKING(whether pcap_version is defined by libpcap)
LIBS="$PCAP_LIBS $SOCKET_LIBS $NSL_LIBS $LIBS"
- AC_TRY_LINK(
- [
-# include <stdio.h>
- extern char *pcap_version;
- ],
- [
- printf ("%s\n", pcap_version);
- ],
- ac_cv_pcap_version_defined=yes,
- ac_cv_pcap_version_defined=no,
- [echo $ac_n "cross compiling; assumed OK... $ac_c"])
- if test "$ac_cv_pcap_version_defined" = yes ; then
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_PCAP_VERSION, 1, [Define if libpcap version is known])
- else
- AC_MSG_RESULT(no)
- fi
AC_CHECK_FUNCS(pcap_open_dead pcap_freecode)
#
# pcap_breakloop may be present in the library but not declared
ac_mit_version_newdir=`grep 'Massachusetts Institute of Technology' $krb5_dir/include/krb5/krb5.h | head -n 1 | sed 's/^.*Massachusetts Institute of Technology.*$/MIT/'`
ac_krb5_version="$ac_heimdal_version$ac_mit_version_olddir$ac_mit_version_newdir"
if test "x$ac_krb5_version" = "xHEIMDAL"
- KRB5_LIBS="-L$krb5_dir/lib -lkrb5 -lasn1 $SSL_LIBS -lroken -lcrypt"
then
+ KRB5_LIBS="-L$krb5_dir/lib -lkrb5 -lasn1 $SSL_LIBS -lroken -lcrypt"
+ else
KRB5_LIBS="-L$krb5_dir/lib -lkrb5 -lk5crypto -lcom_err"
fi
if test "x$ac_krb5_version" = "xMIT"
have_good_geoip=yes
],,
)
+ if test "x$have_good_geoip" = "xyes"; then
+ AC_CHECK_LIB(GeoIP, GeoIP_country_name_by_ipnum_v6,
+ [
+ AC_DEFINE(HAVE_GEOIP_V6, 1, [Define if GeoIP supports IPv6 (GeoIP 1.4.5 and later)])
+ ],,
+ )
+ fi
else
AC_MSG_RESULT(not required)
fi