public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jeroen Roovers (jer)" <jer@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/tcpreplay/files: tcpreplay-3.4.4-cross-compile.patch
Date: Thu, 12 Apr 2012 04:04:47 +0000 (UTC)	[thread overview]
Message-ID: <20120412040447.733652004C@flycatcher.gentoo.org> (raw)

jer         12/04/12 04:04:47

  Added:                tcpreplay-3.4.4-cross-compile.patch
  Log:
  Add cross-compile patch by Bertrand Jacquin (bug #375679). Use emake instead of make. Fix one quoting issue.
  
  (Portage version: 2.2.0_alpha100/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  net-analyzer/tcpreplay/files/tcpreplay-3.4.4-cross-compile.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpreplay/files/tcpreplay-3.4.4-cross-compile.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/tcpreplay/files/tcpreplay-3.4.4-cross-compile.patch?rev=1.1&content-type=text/plain

Index: tcpreplay-3.4.4-cross-compile.patch
===================================================================
--- a/configure.ac
+++ b/configure.ac
@@ -402,7 +402,6 @@
 
 dnl 0.9.6 (which is still thinks it is 0.9.5 due to a bug) introduces an important
 dnl fix for OSX.  See: http://tcpreplay.synfin.net/trac/ticket/167
-libpcap_version_096=no
 AC_RUN_IFELSE(AC_LANG_PROGRAM([[
 #include <string.h>
 #include <stdlib.h>
@@ -419,11 +418,12 @@
             exit(0);
 
     exit(1);
-]]), [
-    libpcap_version_096=yes
-])
+]]),
+ [libpcap_version_096=yes],
+ [libpcap_version_096=no],
+ [libpcap_version_096=yes]
+)
 
-libpcap_ver8=no
 AC_RUN_IFELSE(AC_LANG_PROGRAM([[
 #include <string.h>
 #include <stdlib.h>
@@ -444,13 +444,12 @@
         exit(0);
 
     exit(1);
-]]), [
-    libpcap_ver8=yes
-], [
-    libpcap_ver8=no
-])
+]]),
+ [libpcap_ver8=yes],
+ [libpcap_ver8=no],
+ [libpcap_ver8=yes]
+)
 
-libpcap_ver7=no
 AC_RUN_IFELSE(AC_LANG_PROGRAM([[
 #include <string.h>
 #include <stdlib.h>
@@ -469,11 +468,11 @@
             exit(0);
 
     exit(1);
-]]), [
-    libpcap_ver7=yes
-], [
-    libpcap_ver7=no
-])
+]]),
+ [libpcap_ver7=yes],
+ [libpcap_ver7=no],
+ [libpcap_ver7=yes]
+)
 
 if test x$libpcap_ver8 = xyes ; then
     AC_MSG_RESULT(>= 0.8.0)
@@ -761,8 +760,8 @@
 
 have_bpf=no
 dnl Check for BSD's BPF
-AC_MSG_CHECKING(for BPF device sending support)
-AC_TRY_RUN([
+AC_CACHE_CHECK([for BPF device sending support], ac_cv_have_bpf,
+[AC_TRY_RUN([
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
@@ -796,8 +795,11 @@
             [Do we have BPF device support?])
     AC_MSG_RESULT(yes)
     have_bpf=yes
-],[
-    AC_MSG_RESULT(no)
+],
+[AC_MSG_RESULT(no)],
+[AC_MSG_ERROR([cross-compiling,
+  presetting ac_cv_have_bpf=(yes|no) will help])]
+)
 ])
 
 






             reply	other threads:[~2012-04-12  4:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-12  4:04 Jeroen Roovers (jer) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-01-31 13:09 [gentoo-commits] gentoo-x86 commit in net-analyzer/tcpreplay/files: tcpreplay-3.4.4-cross-compile.patch Jeroen Roovers (jer)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120412040447.733652004C@flycatcher.gentoo.org \
    --to=jer@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox