]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Reverse final libpcap check so it does not mess up flags if something goes wrong
authorStefan Knoblich <stkn@freeswitch.org>
Tue, 25 Aug 2009 20:59:59 +0000 (20:59 +0000)
committerStefan Knoblich <stkn@freeswitch.org>
Tue, 25 Aug 2009 20:59:59 +0000 (20:59 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@811 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/build/libpcap.m4

index fd3bbe1da0efa9eb199bf5693ece334896602a80..8c758a1a5e007a91862dbd86e743190f8008c7fb 100644 (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
        ])