configure: Follow the variable naming convention for libpcap.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2015-10-22 19:33:27 +09:00
parent 060db73ab6
commit ded44ed947
3 changed files with 5 additions and 4 deletions

5
configure vendored
View File

@ -677,7 +677,7 @@ XSLT_LIBS
XSLT_CFLAGS
XML2_LIBS
XML2_CFLAGS
LIBPCAP
PCAP_LIBS
X_EXTRA_LIBS
X_LIBS
X_PRE_LIBS
@ -10941,7 +10941,7 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
$as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
LIBPCAP="-lpcap"
PCAP_LIBS="-lpcap"
fi
@ -17127,6 +17127,7 @@ X_CFLAGS = $X_CFLAGS
X_PRE_LIBS = $X_PRE_LIBS
X_LIBS = $X_LIBS
X_EXTRA_LIBS = $X_EXTRA_LIBS
PCAP_LIBS = $PCAP_LIBS
XML2_CFLAGS = $XML2_CFLAGS
XML2_LIBS = $XML2_LIBS
XSLT_CFLAGS = $XSLT_CFLAGS

View File

@ -1289,7 +1289,7 @@ test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_op
dnl **** Check for libpcap ****
if test "$ac_cv_header_pcap_pcap_h" = "yes"
then
AC_CHECK_LIB(pcap,pcap_create,[AC_SUBST(LIBPCAP,["-lpcap"])])
AC_CHECK_LIB(pcap,pcap_create,[AC_SUBST(PCAP_LIBS,["-lpcap"])])
fi
WINE_NOTICE_WITH(pcap,[test "x$ac_cv_lib_pcap_pcap_create" != xyes],
[pcap ${notice_platform}development files not found, wpcap won't be supported.])

View File

@ -1,6 +1,6 @@
MODULE = wpcap.dll
DELAYIMPORTS = ws2_32
EXTRALIBS = @LIBPCAP@
EXTRALIBS = $(PCAP_LIBS)
C_SRCS = \
wpcap.c