summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDenis Ovsienko <denis@ovsienko.info>2018-07-28 20:07:13 +0100
committerDenis Ovsienko <denis@ovsienko.info>2018-07-28 20:48:16 +0100
commit9b1c2ba51b6dbc57af17c8c054ff8b55486d674c (patch)
tree7edfa70b627b694e2594495954496d933220517d /configure
parent40e217a816cee20d4aa92f5d06d7ad5d4acc4050 (diff)
downloadtcpdump-9b1c2ba51b6dbc57af17c8c054ff8b55486d674c.tar.gz
Try the pcap_dump_ftell() check after pcap-config.
Apparently, the test for pcap_dump_ftell() cannot succeed if the test program isn't linked with libpcap, this depending on the output of pcap-config. That's why all pcap_* function checks come after the pcap-config check. This explains why in my working copy a ./configure build of the previous commit tree with the master branch of libpcap found that the function was "missing" and tried to substitute it with the local implementation and eventually failed trying to link with libpcap that actually had the function. However, this does not explain why all 32 Travis CI builds of the same tree passed, including the builds that used autotools.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure27
1 files changed, 14 insertions, 13 deletions
diff --git a/configure b/configure
index 07febdef..99860fcf 100755
--- a/configure
+++ b/configure
@@ -5126,19 +5126,6 @@ esac
fi
-ac_fn_c_check_func "$LINENO" "pcap_dump_ftell" "ac_cv_func_pcap_dump_ftell"
-if test "x$ac_cv_func_pcap_dump_ftell" = xyes; then :
- $as_echo "#define HAVE_PCAP_DUMP_FTELL 1" >>confdefs.h
-
-else
- case " $LIBOBJS " in
- *" pcap_dump_ftell.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
- ;;
-esac
-
-fi
-
for ac_func in fork vfork strftime
do :
@@ -6229,6 +6216,20 @@ _ACEOF
fi
done
+ac_fn_c_check_func "$LINENO" "pcap_dump_ftell" "ac_cv_func_pcap_dump_ftell"
+if test "x$ac_cv_func_pcap_dump_ftell" = xyes; then :
+ $as_echo "#define HAVE_PCAP_DUMP_FTELL 1" >>confdefs.h
+
+else
+ case " $LIBOBJS " in
+ *" pcap_dump_ftell.$ac_objext "* ) ;;
+ *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
+ ;;
+esac
+
+fi
+
+
#
# Check for special debugging functions