On Mon, 2007-04-16 at 13:51 +1000, Bojan Smojver wrote:

> I created another patch, against 3.0.RC1 for now.

Apologies :-(

I sent one that wasn't quick cleaned up. Here is a better one
(hopefully :-).

-- 
Bojan
--- configure.in.original	2007-04-15 13:09:32.000000000 +1000
+++ configure.in	2007-04-16 13:53:41.000000000 +1000
@@ -302,11 +302,19 @@
      LNETINC="${testdir}/include/libnet.h"
      LNETINCDIR="$testdir/include"
      if test $dynamic_link = yes; then
-         LNETLIB="-L${testdir}/lib -lnet"
-     elif test -f "${testdir}/lib64/libnet.a" ; then
-         LNETLIB="${testdir}/lib64/libnet.a"
+         if test -f "${testdir}/lib64/libnet${shrext_cmds}" ; then
+             LNETLIB="${testdir}/lib64/libnet${shrext_cmds}"
+         elif test -f "${testdir}/lib/libnet${shrext_cmds}" ; then
+             LNETLIB="${testdir}/lib/libnet${shrext_cmds}"
+         elif test -f "${testdir}/lib64/libnet.${libext}" ; then
+             LNETLIB="${testdir}/lib64/libnet.${libext}"
+         else
+             LNETLIB="${testdir}/lib/libnet.${libext}"
+         fi
+     elif test -f "${testdir}/lib64/libnet.${libext}" ; then
+         LNETLIB="${testdir}/lib64/libnet.${libext}"
      else
-         LNETLIB="${testdir}/lib/libnet.a"
+         LNETLIB="${testdir}/lib/libnet.${libext}"
      fi
      foundnet=$testdir
     fi
@@ -414,23 +422,30 @@
         	LPCAPINC="${testdir}/include/pcap.h"
 	        LPCAPINCDIR="${testdir}/include"
 	        if test $dynamic_link = yes; then
-				if test -f "${testdir}/lib/libpcap.a" ; then
-		            LPCAPLIB="-L${testdir}/lib -lpcap"
-				elif test -f "${testdir}/lib64/libpcap.a" ; then
-					LPCAPLIB="-L${testdir}/lib64 -lpcap"
-				else
-					AC_ERROR([Unable to find libpcap in ${testdir}])
-				fi
-	        elif test -f "${testdir}/lib64/libpcap.a" ; then
-	            LPCAPLIB="${testdir}/lib64/libpcap.a"
-	        elif test -f "${testdir}/lib/libpcap.a" ; then
-	            LPCAPLIB="${testdir}/lib/libpcap.a"
-	        elif test -f "${testdir}/lib/libwpcap.a" ; then
-	            LPCAPLIB="${testdir}/lib/libwpcap.a"
-				AC_DEFINE([HAVE_WINPCAP], [1], [Do we have WinPcap?])
-		 	else
-				AC_ERROR([Unable to find matching library for header file in ${testdir}])
-			fi
+		    if test -f "${testdir}/lib64/libpcap${shrext_cmds}" ; then
+		        LPCAPLIB="${testdir}/lib64/libpcap${shrext_cmds}"
+		    elif test -f "${testdir}/lib/libpcap${shrext_cmds}" ; then
+		        LPCAPLIB="{testdir}/lib/libpcap${shrext_cmds}"
+	            elif test -f "${testdir}/lib64/libpcap.${libext}" ; then
+	                LPCAPLIB="${testdir}/lib64/libpcap.${libext}"
+	            elif test -f "${testdir}/lib/libpcap.${libext}" ; then
+	                LPCAPLIB="${testdir}/lib/libpcap.${libext}"
+	            elif test -f "${testdir}/lib/libwpcap.${libext}" ; then
+	                LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
+		        AC_DEFINE([HAVE_WINPCAP], [1], [Do we have WinPcap?])
+		    else
+		        AC_ERROR([Unable to find matching library for header file in ${testdir}])
+		    fi
+	        elif test -f "${testdir}/lib64/libpcap.${libext}" ; then
+	            LPCAPLIB="${testdir}/lib64/libpcap.${libext}"
+	        elif test -f "${testdir}/lib/libpcap.${libext}" ; then
+	            LPCAPLIB="${testdir}/lib/libpcap.${libext}"
+	        elif test -f "${testdir}/lib/libwpcap.${libext}" ; then
+	            LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
+		    AC_DEFINE([HAVE_WINPCAP], [1], [Do we have WinPcap?])
+		else
+		    AC_ERROR([Unable to find matching library for header file in ${testdir}])
+		fi
         	foundpcap=$testdir
      	fi
 	done
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Tcpreplay-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users

Reply via email to