Reverse final libpcap check so it does not mess up flags if something goes wrong

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@811 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Stefan Knoblich 2009-08-25 20:59:59 +00:00
parent 2e87d9d315
commit 765ab30282
1 changed files with 4 additions and 4 deletions

View File

@ -123,10 +123,7 @@ AC_ARG_WITH(pcap-include,
fi
AC_MSG_CHECKING(whether to include pcap)
if test "X$ac_cv_pcap_where_lib" = "X" -a "X$ac_cv_pcap_where_inc" = "X"; then
ac_cv_found_pcap=no
AC_MSG_RESULT(no)
else
if test "X$ac_cv_pcap_where_lib" != "X" -a "X$ac_cv_pcap_where_inc" != "X"; then
ac_cv_found_pcap=yes
AC_MSG_RESULT(yes)
PCAP_INC_DIR=$ac_cv_pcap_where_inc
@ -138,6 +135,9 @@ AC_ARG_WITH(pcap-include,
AC_SUBST(PCAP_INC_FLAGS)
AC_SUBST(PCAP_LIB_FLAGS)
AC_DEFINE([HAVE_LIBPCAP],[1],[libpcap])
else
ac_cv_found_pcap=no
AC_MSG_RESULT(no)
fi
])