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:
parent
2e87d9d315
commit
765ab30282
|
@ -123,10 +123,7 @@ AC_ARG_WITH(pcap-include,
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING(whether to include pcap)
|
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
|
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
|
|
||||||
ac_cv_found_pcap=yes
|
ac_cv_found_pcap=yes
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
PCAP_INC_DIR=$ac_cv_pcap_where_inc
|
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_INC_FLAGS)
|
||||||
AC_SUBST(PCAP_LIB_FLAGS)
|
AC_SUBST(PCAP_LIB_FLAGS)
|
||||||
AC_DEFINE([HAVE_LIBPCAP],[1],[libpcap])
|
AC_DEFINE([HAVE_LIBPCAP],[1],[libpcap])
|
||||||
|
else
|
||||||
|
ac_cv_found_pcap=no
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue