diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-05-19 10:56:52 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-05-19 10:56:52 -0700 |
commit | 125e5bc5cab2aba24062e2cd68c23eb7549fbea3 (patch) | |
tree | 1017e3f8e061296069f69bf38272442121ef2175 /aclocal.m4 | |
parent | 3c436d6c6171f2676e03d34d1f929514205e989a (diff) | |
download | tcpdump-125e5bc5cab2aba24062e2cd68c23eb7549fbea3.tar.gz |
Check for pcap_free_datalinks().
Fixes GitHub issue #390.
Also, if all we do when checking for a function is set a HAVE_XXX
AC_CHECK_FUNC, as AC_CHECK_FUNCS will set the #define for you.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -615,14 +615,15 @@ reproduce this problem ourselves.]) dnl if they're not present. dnl AC_CHECK_FUNC(pcap_list_datalinks, - AC_DEFINE(HAVE_PCAP_LIST_DATALINKS, 1, - [define if libpcap has pcap_list_datalinks()]), + [ + AC_DEFINE(HAVE_PCAP_LIST_DATALINKS, 1, + [define if libpcap has pcap_list_datalinks()]) + AC_CHECK_FUNCS(pcap_free_datalinks) + ], [ AC_LIBOBJ(datalinks) ]) - AC_CHECK_FUNC(pcap_set_datalink, - AC_DEFINE(HAVE_PCAP_SET_DATALINK, 1, - [define if libpcap has pcap_set_datalink()])) + AC_CHECK_FUNCS(pcap_set_datalink) AC_CHECK_FUNC(pcap_datalink_name_to_val, [ AC_DEFINE(HAVE_PCAP_DATALINK_NAME_TO_VAL, 1, @@ -648,6 +649,7 @@ reproduce this problem ourselves.]) dnl dnl Check for "pcap_dump_ftell()" and use a substitute version dnl if it's not present. + dnl AC_CHECK_FUNC(pcap_dump_ftell, AC_DEFINE(HAVE_PCAP_DUMP_FTELL, 1, [define if libpcap has pcap_dump_ftell()]), |