Don't say "Checking for broken pcap-config" if we don't have a

pcap-config to check for brokenness.

svn path=/trunk/; revision=31919
This commit is contained in:
Guy Harris 2010-02-19 00:15:29 +00:00
parent 88035881c3
commit 980ac5960e
1 changed files with 10 additions and 8 deletions

View File

@ -329,13 +329,15 @@ AC_DEFUN([AC_WIRESHARK_PCAP_CHECK],
#
AC_PATH_PROG(PCAP_CONFIG, pcap-config)
#
# Now check whether it's the libpcap 1.0 version, which
# put a space after "-L" - on some platforms, that doesn't
# work.
#
AC_MSG_CHECKING(for broken pcap-config)
if test -n "$PCAP_CONFIG" ; then
#
# Found it.
#
# Now check whether it's the libpcap 1.0 version, which
# put a space after "-L" - on some platforms, that doesn't
# work.
#
AC_MSG_CHECKING(for broken pcap-config)
case "`\"$PCAP_CONFIG\" --libs`" in
"-L "*)
@ -356,8 +358,8 @@ AC_DEFUN([AC_WIRESHARK_PCAP_CHECK],
fi
if test -n "$PCAP_CONFIG" ; then
#
# Found - use it to get the include flags for
# libpcap.
# Found it, and it's usable; use it to get the include flags
# for libpcap.
#
CFLAGS="$CFLAGS `\"$PCAP_CONFIG\" --cflags`"
CPPFLAGS="$CPPFLAGS `\"$PCAP_CONFIG\" --cflags`"