Index: acinclude.m4
===================================================================
--- acinclude.m4	(revision 28662)
+++ acinclude.m4	(working copy)
@@ -299,8 +299,8 @@
 	    # Found - use it to get the include flags for
 	    # libpcap.
 	    #
-	    CFLAGS="$CFLAGS `\"$PCAP_CONFIG\" --cflags`"
-	    CPPFLAGS="$CPPFLAGS `\"$PCAP_CONFIG\" --cflags`"
+	    CFLAGS="$CFLAGS `\"$PCAP_CONFIG\" --cflags|sed -e 's/-I /-I/g'`"
+	    CPPFLAGS="$CPPFLAGS `\"$PCAP_CONFIG\" --cflags|sed -e 's/-I /-I/g'`"
 	  else  
 	    #
 	    # Didn't find it; we have to look for libpcap ourselves.
@@ -371,9 +371,9 @@
 	  # libraries libpcap needs.
 	  #
 	  if test x$enable_static = xyes; then
-	    PCAP_LIBS="`\"$PCAP_CONFIG\" --libs --static`"
+	    PCAP_LIBS="`\"$PCAP_CONFIG\" --libs --static|sed -e 's/-L /-L/g'`"
 	  else
-	    PCAP_LIBS="`\"$PCAP_CONFIG\" --libs`"
+	    PCAP_LIBS="`\"$PCAP_CONFIG\" --libs|sed -e 's/-L /-L/g'`"
 	  fi
 	  AC_DEFINE(HAVE_LIBPCAP, 1, [Define to use libpcap library])
 	else
